<commit_before>package com.valkryst.generator;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class ConsonantVowelGeneratorTest {
    private final List<String> consonants = new ArrayList<>();
    private final List<String> vowels = new ArrayList<>();

    private ConsonantVowelGenerator nameGenerator;

    @Before
    public void initializeVariables() {
        consonants.clear();
        vowels.clear();

        consonants.add("al");
        consonants.add("an");
        consonants.add("ar");
        consonants.add("as");
        consonants.add("at");
        consonants.add("ea");
        consonants.add("ed");
        consonants.add("en");
        consonants.add("er");
        consonants.add("es");
        consonants.add("ha");
        consonants.add("he");
        consonants.add("hi");
        consonants.add("in");
        consonants.add("is");
        consonants.add("it");
        consonants.add("le");
        consonants.add("me");
        consonants.add("nd");
        consonants.add("ne");
        consonants.add("ng");
        consonants.add("nt");
        consonants.add("on");
        consonants.add("or");
        consonants.add("ou");
        consonants.add("re");
        consonants.add("se");
        consonants.add("st");
        consonants.add("te");
        consonants.add("th");
        consonants.add("ti");
        consonants.add("to");
        consonants.add("ve");
        consonants.add("wa");
        consonants.add("it");

        vowels.add("a");
        vowels.add("e");
        vowels.add("i");
        vowels.add("o");
        vowels.add("u");
        vowels.add("y");

        nameGenerator = new ConsonantVowelGenerator(consonants, vowels);
    }

    @Test
    public void testConstructor_withValidConsonantsAndVowels() {
        nameGenerator = new ConsonantVowelGenerator(consonants, vowels);
    }

    @Test(expected=NullPointerException.class)
    public void testConstructor_withNullConsonants() {
        nameGenerator = new ConsonantVowelGenerator(null, vowels);
    }

    @Test(expected=NullPointerException.class)
    public void testConstructor_withNullVowels() {
        nameGenerator = new ConsonantVowelGenerator(consonants, null);
    }

    @Test(expected=IllegalArgumentException.class)
    public void testConstructor_withEmptyConsonants() {
        nameGenerator = new ConsonantVowelGenerator(new ArrayList<>(0), vowels);
    }

    @Test(expected=IllegalArgumentException.class)
    public void testConstructor_withEmptyVowels() {
        nameGenerator = new ConsonantVowelGenerator(consonants, new ArrayList<>(0));
    }

    @Test
    public void testGenerateName_withZeroLength() {<commit_msg>Updates tests to match code changes.<commit_after>package com.valkryst.generator;

import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import java.util.ArrayList;
import java.util.List;

public class ConsonantVowelGeneratorTest {
    private final List<String> consonants = new ArrayList<>();
    private final List<String> vowels = new ArrayList<>();

    private ConsonantVowelGenerator nameGenerator;

    @Before
    public void initializeVariables() {
        consonants.clear();
        vowels.clear();

        consonants.add("al");
        consonants.add("an");
        consonants.add("ar");
        consonants.add("as");
        consonants.add("at");
        consonants.add("ea");
        consonants.add("ed");
        consonants.add("en");
        consonants.add("er");
        consonants.add("es");
        consonants.add("ha");
        consonants.add("he");
        consonants.add("hi");
        consonants.add("in");
        consonants.add("is");
        consonants.add("it");
        consonants.add("le");
        consonants.add("me");
        consonants.add("nd");
        consonants.add("ne");
        consonants.add("ng");
        consonants.add("nt");
        consonants.add("on");
        consonants.add("or");
        consonants.add("ou");
        consonants.add("re");
        consonants.add("se");
        consonants.add("st");
        consonants.add("te");
        consonants.add("th");
        consonants.add("ti");
        consonants.add("to");
        consonants.add("ve");
        consonants.add("wa");
        consonants.add("it");

        vowels.add("a");
        vowels.add("e");
        vowels.add("i");
        vowels.add("o");
        vowels.add("u");
        vowels.add("y");

        nameGenerator = new ConsonantVowelGenerator(consonants, vowels);
    }

    @Test
    public void testConstructor_withValidConsonantsAndVowels() {
        nameGenerator = new ConsonantVowelGenerator(consonants, vowels);
    }

    @Test(expected=IllegalArgumentException.class)
    public void testConstructor_withNullConsonants() {
        nameGenerator = new ConsonantVowelGenerator(null, vowels);
    }

    @Test(expected=IllegalArgumentException.class)
    public void testConstructor_withNullVowels() {
        nameGenerator = new ConsonantVowelGenerator(consonants, null);
    }

    @Test(expected=IllegalArgumentException.class)
    public void testConstructor_withEmptyConsonants() {
        nameGenerator = new ConsonantVowelGenerator(new ArrayList<>(0), vowels);
    }

    @Test(expected=IllegalArgumentException.class)
    public void testConstructor_withEmptyVowels() {
        nameGenerator = new ConsonantVowelGenerator(consonants, new ArrayList<>(0));
    }

    @Test
    public void testGenerateName_withZeroLength() {
{'fraction_non_alphanumeric': 0.13799963827093506, 'fraction_numerical': 0.0007234581298607343, 'mean_word_length': 2.9026111503175724, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5215653', 'n_tokens_mistral': 1733, 'n_tokens_neox': 1680, 'n_words': 259}