<commit_before><?php

namespace mcfedr\Queue\JobManagerBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;

/**
 * This is the class that loads and manages your bundle configuration
 *
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
 */
class mcfedrJobManagerExtension extends Extension
{
    /**
     * {@inheritDoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $container->setDefinition('mcfedr_job_manager.manager', new Definition('mcfedr\Queue\JobManagerBundle\Manager\JobManager', [
            new Reference("mcfedr_queue_manager." . $config['manager'])
        ]));<commit_msg>add the command service<commit_after><?php

namespace mcfedr\Queue\JobManagerBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\Loader;

/**
 * This is the class that loads and manages your bundle configuration
 *
 * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
 */
class mcfedrJobManagerExtension extends Extension
{
    /**
     * {@inheritDoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        $configuration = new Configuration();
        $config = $this->processConfiguration($configuration, $configs);

        $container->setDefinition('mcfedr_job_manager.manager', new Definition('mcfedr\Queue\JobManagerBundle\Manager\JobManager', [
            new Reference("mcfedr_queue_manager." . $config['manager'])
        ]));

        $container->setDefinition('mcfedr_job_manager.command.worker', (new Definition('mcfedr\Queue\JobManagerBundle\Command\WorkerCommand', [
            new Reference("mcfedr_queue_manager." . $config['manager']),
            new Reference("logger")
        ]))->setTags(['console.command']));
{'fraction_non_alphanumeric': 0.1155758077879039, 'fraction_numerical': 0.0, 'mean_word_length': 4.603248259860789, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '5015966', 'n_tokens_mistral': 650, 'n_tokens_neox': 643, 'n_words': 118}