<commit_before><?php

namespace Fervo\DeferredEventBundle\DependencyInjection;

use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;

class Configuration implements ConfigurationInterface
{
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('fervo_deferred_event');

        $rootNode
            ->children()
                ->arrayNode('backend')->addDefaultsIfNotSet()
                    ->children()
                        ->enumNode('type')
                            ->values(array('sidekiq', 'immediate', 'amqp'))
                            ->defaultValue('immediate')
                        ->end()
                        ->scalarNode('sidekiq_client_service')->end()
                        ->arrayNode('amqp_config')->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('host')->defaultValue('localhost')->end()
                                ->integerNode('port')->defaultValue(5672)->end()
                                ->scalarNode('user')->defaultValue('guest')->end()
                                ->scalarNode('pass')->defaultValue('<PASSWORD>')->end()
                                ->scalarNode('queue_name')->defaultValue('sf_deferred_events')->end()
                                ->booleanNode('durable')->defaultFalse()->end()
				->scalarNode('vhost')->defaultValue('/')->end()
                                ->booleanNode('batch_publishing')->defaultValue(false)->end()
                            ->end()
                        ->end()
                        ->arrayNode('message_headers')->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('php_bin')->defaultNull()->end()
                                ->scalarNode('console_path')->defaultNull()->end()
                                ->scalarNode('dispatch_path')->defaultNull()->end()
                                ->scalarNode('fastcgi_host')->cannotBeEmpty()->defaultValue('localhost')->end()
                                ->integerNode('fastcgi_port')->cannotBeEmpty()->defaultValue(9000)->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
                ->scalarNode('serializer')->defaultValue('fervo_deferred_event.serializer.base64')->end()
                ->scalarNode('serializer_format')->defaultValue('base64')->end()
                ->booleanNode('debug')->defaultFalse()->end()
            ->end()
        ;

        return $treeBuilder;
    }<commit_msg>Update for Symfony 3. cannotBeEmpty() has been removed for NumericNodeDefinition<commit_after><?php

namespace Fervo\DeferredEventBundle\DependencyInjection;

use Symfony\Component\Config\Definition\ConfigurationInterface;
use Symfony\Component\Config\Definition\Builder\TreeBuilder;

class Configuration implements ConfigurationInterface
{
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('fervo_deferred_event');

        $rootNode
            ->children()
                ->arrayNode('backend')->addDefaultsIfNotSet()
                    ->children()
                        ->enumNode('type')
                            ->values(array('sidekiq', 'immediate', 'amqp'))
                            ->defaultValue('immediate')
                        ->end()
                        ->scalarNode('sidekiq_client_service')->end()
                        ->arrayNode('amqp_config')->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('host')->defaultValue('localhost')->end()
                                ->integerNode('port')->defaultValue(5672)->end()
                                ->scalarNode('user')->defaultValue('guest')->end()
                                ->scalarNode('pass')->defaultValue('<PASSWORD>')->end()
                                ->scalarNode('queue_name')->defaultValue('sf_deferred_events')->end()
                                ->booleanNode('durable')->defaultFalse()->end()
				->scalarNode('vhost')->defaultValue('/')->end()
                                ->booleanNode('batch_publishing')->defaultValue(false)->end()
                            ->end()
                        ->end()
                        ->arrayNode('message_headers')->addDefaultsIfNotSet()
                            ->children()
                                ->scalarNode('php_bin')->defaultNull()->end()
                                ->scalarNode('console_path')->defaultNull()->end()
                                ->scalarNode('dispatch_path')->defaultNull()->end()
                                ->scalarNode('fastcgi_host')->defaultValue('localhost')->end()
                                ->integerNode('fastcgi_port')->defaultValue(9000)->end()
                            ->end()
                        ->end()
                    ->end()
                ->end()
                ->scalarNode('serializer')->defaultValue('fervo_deferred_event.serializer.base64')->end()
                ->scalarNode('serializer_format')->defaultValue('base64')->end()
                ->booleanNode('debug')->defaultFalse()->end()
            ->end()
        ;

        return $treeBuilder;
    }
{'fraction_non_alphanumeric': 0.14940421631530706, 'fraction_numerical': 0.00458295142071494, 'mean_word_length': 1.5224225612575126, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 151, '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': '1868514', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1184, 'n_words': 127}