<commit_before><?php

namespace Intaro\FileUploaderBundle\DependencyInjection;

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

class Configuration implements ConfigurationInterface
{
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('intaro_file_uploader');
        $rootNode
            ->children()
                ->arrayNode('uploaders')
                    ->children()
                        ->arrayNode('local')
                            ->useAttributeAsKey('name')
                            ->prototype('array')
                                ->children()
                                    ->arrayNode('allowed_types')
                                        ->prototype('scalar')->end()
                                    ->end()<commit_msg>fix deprecations for symfony >= 4.2<commit_after><?php

namespace Intaro\FileUploaderBundle\DependencyInjection;

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

class Configuration implements ConfigurationInterface
{
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder('intaro_file_uploader');
        if (\method_exists($treeBuilder, 'getRootNode')) {
            $rootNode = $treeBuilder->getRootNode();
        } else {
            // BC layer for symfony/config 4.1 and older
            $rootNode = $treeBuilder->root('intaro_file_uploader');
        }
        
        $rootNode
            ->children()
                ->arrayNode('uploaders')
                    ->children()
                        ->arrayNode('local')
                            ->useAttributeAsKey('name')
                            ->prototype('array')
                                ->children()
                                    ->arrayNode('allowed_types')
                                        ->prototype('scalar')->end()
                                    ->end()
{'fraction_non_alphanumeric': 0.10531354715174725, 'fraction_numerical': 0.0019147917663954045, 'mean_word_length': 1.551892551892552, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2871718', 'n_tokens_mistral': 465, 'n_tokens_neox': 451, 'n_words': 76}