<commit_before><?php

/*
 * This file is part of CacheToolBundle.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CacheTool\Bundle\DependencyInjection;

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

class Configuration implements ConfigurationInterface
{
    /**
     * {@inheritdoc}
     */
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('cachetool');

        $rootNode
            ->children()
                ->scalarNode('adapter')
                    ->defaultValue('fastcgi')
                    ->validate()
                        ->ifNotInArray(array('cli', 'fastcgi'))
                        ->thenInvalid('Adapter `%s` is not valid')
                    ->end()
                ->end()
                ->scalarNode('fastcgi')
                    ->defaultValue('127.0.0.1:9000')
                ->end()
                ->scalarNode('temp_dir')
                    ->defaultValue(null)
                ->end()
            ->end()
        ;

        return $treeBuilder;
    }
}<commit_msg>Correct configuration root & remove unnecessary $rootNode variable<commit_after><?php

/*
 * This file is part of CacheToolBundle.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CacheTool\Bundle\DependencyInjection;

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

class Configuration implements ConfigurationInterface
{
    /**
     * {@inheritdoc}
     */
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();

        $treeBuilder
            ->root('cache_tool')
            ->children()
                ->scalarNode('adapter')
                    ->defaultValue('fastcgi')
                    ->validate()
                        ->ifNotInArray(array('cli', 'fastcgi'))
                        ->thenInvalid('Adapter `%s` is not valid')
                    ->end()
                ->end()
                ->scalarNode('fastcgi')
                    ->defaultValue('127.0.0.1:9000')
                ->end()
                ->scalarNode('temp_dir')
                    ->defaultValue(null)
                ->end()
            ->end()
        ;

        return $treeBuilder;
    }
}
{'fraction_non_alphanumeric': 0.1217457886676876, 'fraction_numerical': 0.007656967840735069, 'mean_word_length': 1.7447478991596639, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6422307', 'n_tokens_mistral': 679, 'n_tokens_neox': 634, 'n_words': 147}