<commit_before>package com.valkryst;

import java.util.Random;
import java.util.function.IntUnaryOperator;

public interface NameGenerator {

    /**
     * Randomly generates a name using the provided random function, of at least the given length
     *
     * @param randomInRange
     *         A function that returns an arbitrary number in the range of [0, param)
     *
     * @param length
     *         The length of the name to generateName.
     *
     * @return
     */
    String generateName(final IntUnaryOperator randomInRange, final int length);

    /**
     * Randomly generates a name using the provided random function, of at least the given length
     *
     * @param random
     *         The instance of Random to use when necessary.
     *
     * @param length
     *         The length of the name to generateName.
     *
     * @return
     */
    default String generateName(final Random random, final int length) {
        return generateName(random::nextInt, length);
    }
}<commit_msg>Removes usages of IntUnaryOperator.<commit_after>package com.valkryst;

import java.util.Random;

public interface NameGenerator {
    /**
     * Randomly generates a name of at-least the desired length.
     *
     * @param random
     *         The instance of Random to use when necessary.
     *
     * @param length
     *         The desired name length.
     *
     * @return
     */
    String generateName(final Random random, final int length);
}
{'fraction_non_alphanumeric': 0.07259158751696065, 'fraction_numerical': 0.0006784260515603799, 'mean_word_length': 2.307174887892377, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1194562', 'n_tokens_mistral': 393, 'n_tokens_neox': 386, 'n_words': 145}