<commit_before><?php

namespace Dothiv\Bundle\ContentfulBundle\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('dothiv_contentful');
        $rootNode
            ->children()
                ->scalarNode('web_path')->defaultValue('/contentful')->end()
                ->scalarNode('local_path')->defaultValue('%kernel.root_dir%/../web/contentful')->end()
                ->arrayNode('webhook')
                    ->children()
                        ->scalarNode('httpBasicUsername')->defaultValue('contentful_api')->end()
                        ->scalarNode('httpBasicPassword')->isRequired()->end()
                    ->end()
                ->end()
            ->end();
        return $treeBuilder;
    }
}
<commit_msg>Require webhook config.<commit_after><?php

namespace Dothiv\Bundle\ContentfulBundle\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('dothiv_contentful');
        $rootNode
            ->children()
                ->scalarNode('web_path')->defaultValue('/contentful')->end()
                ->scalarNode('local_path')->defaultValue('%kernel.root_dir%/../web/contentful')->end()
                ->arrayNode('webhook')
                    ->children()
                        ->scalarNode('httpBasicUsername')->defaultValue('contentful_api')->end()
                        ->scalarNode('httpBasicPassword')->isRequired()->end()
                    ->end()
                    ->isRequired()
                ->end()
            ->end();
        return $treeBuilder;
    }
}

{'fraction_non_alphanumeric': 0.13968100531657807, 'fraction_numerical': 0.0, 'mean_word_length': 2.3173076923076925, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 42, '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': '2121537', 'n_tokens_mistral': 509, 'n_tokens_neox': 493, 'n_words': 67}