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

/**
 * Dependency services.
 */
$di->set('signal_manager', function() use ($di) {
    return $di->newInstance('Aura\Signal\Manager', [
        'handler_factory'   => $di->newInstance('Aura\Signal\HandlerFactory'),
        'result_factory'    => $di->newInstance('Aura\Signal\ResultFactory'),
        'result_collection' => new Aura\Signal\ResultCollection, // newInstance() fails with ArrayObject ?
    ]);
});<commit_msg>set params separately from the service<commit_after><?php
/**
 * Package prefix for autoloader.
 */
$loader->add('Aura\Signal\\', dirname(__DIR__) . DIRECTORY_SEPARATOR . 'src');

$di->params['Aura\Signal\Manager'] = [
    'handler_factory'   => $di->newInstance('Aura\Signal\HandlerFactory'),
    'result_factory'    => $di->newInstance('Aura\Signal\ResultFactory'),
    'result_collection' => $di->newInstance('Aura\Signal\ResultCollection'),
];

/**
 * Dependency services.
 */
$di->set('signal_manager', function() use ($di) {
    return $di->newInstance('Aura\Signal\Manager');
});
{'fraction_non_alphanumeric': 0.19461337966985232, 'fraction_numerical': 0.0, 'mean_word_length': 4.433962264150943, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '4288542', 'n_tokens_mistral': 366, 'n_tokens_neox': 367, 'n_words': 57}