<commit_before><?php

namespace Symfony\Cmf\Bundle\SimpleCmsBundle\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('symfony_cmf_simple_cms');

        $rootNode
            ->children()
                ->enumNode('use_sonata_admin')
                    ->values(array(true, false, 'auto'))
                    ->defaultValue('auto')
                ->end()
                ->enumNode('use_menu')
                    ->values(array(true, false, 'auto'))
                    ->defaultValue('auto')
                ->end()
                ->scalarNode('document_class')->defaultValue('Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page')->end()
                ->scalarNode('generic_controller')->defaultValue('symfony_cmf_content.controller:indexAction')->end()
                ->scalarNode('basepath')->defaultValue('/cms/simple')->end()
                ->arrayNode('routing')
                    ->children()
                        ->scalarNode('content_repository_id')->defaultValue('symfony_cmf_routing_extra.content_repository')->end()
                        ->arrayNode('controllers_by_class')
                            ->useAttributeAsKey('alias')
                            ->prototype('scalar')
                            /* why does this not work?
                            ->prototype('array')
                                ->children()
                                    ->scalarNode('Symfony\Cmf\Component\Routing\RedirectRouteInterface')
                                        ->defaultValue('symfony_cmf_routing_extra.redirect_controller:redirectAction')
                                    ->end()
                                ->end()
                             */
                        ->end()->end()
                        ->arrayNode('templates_by_class')
                            ->useAttributeAsKey('alias')
                            ->prototype('scalar')
                        ->end()->end()
                    ->end()
                ->end()
                ->arrayNode('multilang')
                    ->children()
                        ->arrayNode('locales')
                            ->prototype('scalar')
                        ->end()->end()
                    ->end()
                ->end()->end()
            ->end()
        ;

        return $treeBuilder;
    }
}<commit_msg>cosmetics<commit_after><?php

namespace Symfony\Cmf\Bundle\SimpleCmsBundle\DependencyInjection;

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

class Configuration implements ConfigurationInterface
{
    public function getConfigTreeBuilder()
    {
        $treeBuilder = new TreeBuilder();

        $treeBuilder->root('symfony_cmf_simple_cms')
            ->children()
                ->enumNode('use_sonata_admin')
                    ->values(array(true, false, 'auto'))
                    ->defaultValue('auto')
                ->end()
                ->enumNode('use_menu')
                    ->values(array(true, false, 'auto'))
                    ->defaultValue('auto')
                ->end()
                ->scalarNode('document_class')->defaultValue('Symfony\Cmf\Bundle\SimpleCmsBundle\Document\Page')->end()
                ->scalarNode('generic_controller')->defaultValue('symfony_cmf_content.controller:indexAction')->end()
                ->scalarNode('basepath')->defaultValue('/cms/simple')->end()
                ->arrayNode('routing')
                    ->children()
                        ->scalarNode('content_repository_id')->defaultValue('symfony_cmf_routing_extra.content_repository')->end()
                        ->arrayNode('controllers_by_class')
                            ->useAttributeAsKey('alias')
                            ->prototype('scalar')->end()
                        ->end()
                        ->arrayNode('templates_by_class')
                            ->useAttributeAsKey('alias')
                            ->prototype('scalar')->end()
                        ->end()
                    ->end()
                ->end()
                ->arrayNode('multilang')
                    ->children()
                        ->arrayNode('locales')
                            ->prototype('scalar')->end()
                        ->end()
                    ->end()
                ->end()
            ->end()
        ;

        return $treeBuilder;
    }
}
{'fraction_non_alphanumeric': 0.1308589607635207, 'fraction_numerical': 0.0, 'mean_word_length': 1.3674698795180722, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 100, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '393751', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1040, 'n_words': 127}