<commit_before><?php

namespace Netinfluence\UploadBundle\DependencyInjection;

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

/**
 * Class NetinfluenceUploadExtension
 */
class NetinfluenceUploadExtension extends Extension
{
    /**
     * {@inheritDoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        // Register services
        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');

        $configuration = new Configuration();
        $processor = new Processor();
        $config = $processor->processConfiguration($configuration, $configs);

        $container->setParameter('netinfluence_upload.validation.image_constraints', $config['validation.image']);

        // Manipulations on filesystems
        $fileListener = $container->getDefinition('netinfluence_upload.file_listener');
        $fileListener->replaceArgument(0, new Reference($config['netinfluence_upload.filesystems.sandbox']));
    }
}<commit_msg>Fixed another typo<commit_after><?php

namespace Netinfluence\UploadBundle\DependencyInjection;

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

/**
 * Class NetinfluenceUploadExtension
 */
class NetinfluenceUploadExtension extends Extension
{
    /**
     * {@inheritDoc}
     */
    public function load(array $configs, ContainerBuilder $container)
    {
        // Register services
        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
        $loader->load('services.xml');

        $configuration = new Configuration();
        $processor = new Processor();
        $config = $processor->processConfiguration($configuration, $configs);

        $container->setParameter('netinfluence_upload.validation.image_constraints', $config['validation.image']);

        // Manipulations on filesystems
        $fileListener = $container->getDefinition('netinfluence_upload.file_listener');
        $fileListener->replaceArgument(0, new Reference($config['netinfluence_upload.filesystems.sandbox']));
    }
}
{'fraction_non_alphanumeric': 0.11607813673929376, 'fraction_numerical': 0.0007513148009015778, 'mean_word_length': 4.641949152542373, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4037467', 'n_tokens_mistral': 699, 'n_tokens_neox': 675, 'n_words': 112}