<commit_before>package com.damienfremont.blog;

import static java.util.Arrays.asList;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

@RunWith(value = Parameterized.class)
public class FeaturesTest {

	private Features classToTest;

	public FeaturesTest(Features classToTest) {
		this.classToTest = classToTest;
	}

	@Parameters(name = "test of class {0}")
	public static Iterable<Object[]> data() {
		return asList(new Object[][] { //
		//
				{ new Java4aVanillaImpl() }, //
				{ new Java4CommonsLangImpl() }, //
				{ new Java6CommonsLangImpl() }, //
				{ new Java6GuavaImpl() }, //
				{ new Java8GuavaImpl() } });
	}

	@Test
	public void test_Condition() {
		assertTrue(classToTest.condition("Valid"));
		assertFalse(classToTest.condition(null));
		assertFalse(classToTest.condition(""));
		assertFalse(classToTest.condition(" "));
	}

	@Test
	public void test_Check() {
		classToTest.check("Valid");
		try {
			classToTest.check(null);
			fail("EXPECTED ERROR!");
		} catch (Exception e) {
			assertTrue(e instanceof IllegalArgumentException);
		}
		try {
			classToTest.check("");
			fail("EXPECTED ERROR!");
		} catch (Exception e) {
			assertTrue(e instanceof IllegalArgumentException);
		}
	}
<commit_msg>Update FeaturesTest.java<commit_after>package com.damienfremont.blog;

import static java.util.Arrays.asList;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
import org.junit.runners.Parameterized.Parameters;

@RunWith(value = Parameterized.class)
public class FeaturesTest {

	private Features classToTest;

	public FeaturesTest(Features classToTest) {
		this.classToTest = classToTest;
	}

	@Parameters(name = "test of class {0}")
	public static Iterable<Object[]> data() {
		return asList(new Object[][] { //
		//
				{ new Java4AVanillaImpl() }, //
				{ new Java4CommonsLangImpl() }, //
				{ new Java6CommonsLangImpl() }, //
				{ new Java6GuavaImpl() }, //
				{ new Java8GuavaImpl() } });
	}

	@Test
	public void test_Condition() {
		assertTrue(classToTest.condition("Valid"));
		assertFalse(classToTest.condition(null));
		assertFalse(classToTest.condition(""));
		assertFalse(classToTest.condition(" "));
	}

	@Test
	public void test_Check() {
		classToTest.check("Valid");
		try {
			classToTest.check(null);
			fail("EXPECTED ERROR!");
		} catch (Exception e) {
			assertTrue(e instanceof IllegalArgumentException);
		}
		try {
			classToTest.check("");
			fail("EXPECTED ERROR!");
		} catch (Exception e) {
			assertTrue(e instanceof IllegalArgumentException);
		}
	}

{'fraction_non_alphanumeric': 0.13463383434601855, 'fraction_numerical': 0.003837543971858011, 'mean_word_length': 4.575757575757576, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1798265', 'n_tokens_mistral': 1064, 'n_tokens_neox': 988, 'n_words': 197}