<commit_before><?php
/**
 * Package prefix for autoloader.
 */
$loader->add('Aura\Filter\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');

// RuleCollection
$di->params['Aura\Filter\RuleCollection']['rule_locator'] = $di->lazyNew('Aura\Filter\RuleLocator');
$di->params['Aura\Filter\RuleCollection']['translator'] = $di->lazy(function () use ($di) {
    $translators = $di->get('intl_translator_locator');
    return $translators->get('Aura.Cli');
});

/**
 * Intl
 */
$di->params['Aura\Intl\PackageLocator']['registry']['Aura.Cli'] = [
    'en_US' => function () use ($system) {
        $package = require "$system/package/Aura.Cli/intl/en_US.php";
        return new Aura\Intl\Package(
            $package['formatter'],
            $package['fallback'],
            $package['messages']
        );
    },
];

/**
 * Rules for the locator
 */
$di->params['Aura\Filter\RuleLocator']['registry'] = [
    'alnum'                 => function() { return new \Aura\Filter\Rule\Alnum; },
    'alpha'                 => function() { return new \Aura\Filter\Rule\Alpha; },
    'any'                   => function() use ($di) {
        $rule = new \Aura\Filter\Rule\Any;
        $rule->setRuleLocator($di->newInstance('\Aura\Filter\Rule\Locator'));
    },
    'between'               => function() { return new \Aura\Filter\Rule\Between; },
    'blank'                 => function() { return new \Aura\Filter\Rule\Blank; },
    'bool'                  => function() { return new \Aura\Filter\Rule\Bool; },
    'creditCard'            => function() { return new \Aura\Filter\Rule\CreditCard; },
    'dateTime'              => function() { return new \Aura\Filter\Rule\DateTime; },
    'email'                 => function() { return new \Aura\Filter\Rule\Email; },
    'equalToField'          => function() { return new \Aura\Filter\Rule\EqualToField; },
    'equalToValue'          => function() { return new \Aura\Filter\Rule\EqualToValue; },
    'float'                 => function() { return new \Aura\Filter\Rule\Float; },
    'inKeys'                => function() { return new \Aura\Filter\Rule\InKeys; },
    'inValues'              => function() { return new \Aura\Filter\Rule\InValues; },<commit_msg>use Filter, not Cli, for translations<commit_after><?php
/**
 * Package prefix for autoloader.
 */
$loader->add('Aura\Filter\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');

// RuleCollection
$di->params['Aura\Filter\RuleCollection']['rule_locator'] = $di->lazyNew('Aura\Filter\RuleLocator');
$di->params['Aura\Filter\RuleCollection']['translator'] = $di->lazy(function () use ($di) {
    $translators = $di->get('intl_translator_locator');
    return $translators->get('Aura.Filter');
});

/**
 * Intl
 */
$di->params['Aura\Intl\PackageLocator']['registry']['Aura.Filter'] = [
    'en_US' => function () use ($system) {
        $package = require "$system/package/Aura.Filter/intl/en_US.php";
        return new Aura\Intl\Package(
            $package['formatter'],
            $package['fallback'],
            $package['messages']
        );
    },
];

/**
 * Rules for the locator
 */
$di->params['Aura\Filter\RuleLocator']['registry'] = [
    'alnum'                 => function() { return new \Aura\Filter\Rule\Alnum; },
    'alpha'                 => function() { return new \Aura\Filter\Rule\Alpha; },
    'any'                   => function() use ($di) {
        $rule = new \Aura\Filter\Rule\Any;
        $rule->setRuleLocator($di->newInstance('\Aura\Filter\Rule\Locator'));
    },
    'between'               => function() { return new \Aura\Filter\Rule\Between; },
    'blank'                 => function() { return new \Aura\Filter\Rule\Blank; },
    'bool'                  => function() { return new \Aura\Filter\Rule\Bool; },
    'creditCard'            => function() { return new \Aura\Filter\Rule\CreditCard; },
    'dateTime'              => function() { return new \Aura\Filter\Rule\DateTime; },
    'email'                 => function() { return new \Aura\Filter\Rule\Email; },
    'equalToField'          => function() { return new \Aura\Filter\Rule\EqualToField; },
    'equalToValue'          => function() { return new \Aura\Filter\Rule\EqualToValue; },
    'float'                 => function() { return new \Aura\Filter\Rule\Float; },
    'inKeys'                => function() { return new \Aura\Filter\Rule\InKeys; },
    'inValues'              => function() { return new \Aura\Filter\Rule\InValues; },
{'fraction_non_alphanumeric': 0.1874296012615454, 'fraction_numerical': 0.0, 'mean_word_length': 2.4049079754601226, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 55, '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': '1310256', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1373, 'n_words': 231}