<commit_before><?php

use MarcusJaschen\Collmex\Csv\SimpleGenerator;

class Issue10Test extends \PHPUnit_Framework_TestCase
{
    public function setUp()
    {
    }

    public function tearDown()
    {
    }

    /**
     * Tests if specifying an invalid field name throws an `InvalidFieldNameException`.
     *
     * @see https://github.com/mjaschen/collmex/issues/10
     *
     * @expectedException \MarcusJaschen\Collmex\Type\Exception\InvalidFieldNameException
     */
    public function testIfInvalidFieldNamesThrowException()
    {
        $customerGet = new \MarcusJaschen\Collmex\Type\CustomerGet(
            [
                'customer_id' => '12345',
                'foo'         => 'bar',
            ]
        );
    }<commit_msg>[CLEANUP] Remove an unused import<commit_after><?php

class Issue10Test extends \PHPUnit_Framework_TestCase
{
    public function setUp()
    {
    }

    public function tearDown()
    {
    }

    /**
     * Tests if specifying an invalid field name throws an `InvalidFieldNameException`.
     *
     * @see https://github.com/mjaschen/collmex/issues/10
     *
     * @expectedException \MarcusJaschen\Collmex\Type\Exception\InvalidFieldNameException
     */
    public function testIfInvalidFieldNamesThrowException()
    {
        $customerGet = new \MarcusJaschen\Collmex\Type\CustomerGet(
            [
                'customer_id' => '12345',
                'foo'         => 'bar',
            ]
        );
    }
{'fraction_non_alphanumeric': 0.10204081632653061, 'fraction_numerical': 0.012244897959183673, 'mean_word_length': 2.163440860215054, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '7238338', 'n_tokens_mistral': 451, 'n_tokens_neox': 424, 'n_words': 76}