<commit_before><?php

namespace SlmQueue\Factory;

use SlmQueue\Options\WorkerOptions;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class WorkerOptionsFactory implements FactoryInterface
{
    /**
     * {@inheritDoc}
     */
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('Config');
        return new WorkerOptions($config['slm_queue']);
    }
}<commit_msg>Fix factory<commit_after><?php

namespace SlmQueue\Factory;

use SlmQueue\Options\WorkerOptions;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class WorkerOptionsFactory implements FactoryInterface
{
    /**
     * {@inheritDoc}
     */
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $config = $serviceLocator->get('Config');
        return new WorkerOptions($config['slm_queue']['worker']);
    }
}
{'fraction_non_alphanumeric': 0.10766045548654245, 'fraction_numerical': 0.0, 'mean_word_length': 4.622093023255814, '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': '4255092', 'n_tokens_mistral': 268, 'n_tokens_neox': 264, 'n_words': 47}