<commit_before><?php
namespace Vanio\UserBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Vanio\UserBundle\Form\SocialRegistrationFormType;

class Configuration implements ConfigurationInterface
{
    public function getConfigTreeBuilder(): TreeBuilder
    {
        $treeBuilder = new TreeBuilder;
        /* @noinspection PhpUndefinedMethodInspection */
        $treeBuilder->root('vanio_user')
            ->children()
                ->scalarNode('firewall_name')->defaultNull()->end()
                ->booleanNode('email_only')->defaultFalse()->end()
                ->booleanNode('custom_storage_validation')->defaultFalse()->end()
                ->booleanNode('use_flash_notifications')->defaultTrue()->end()
                ->scalarNode('registration_target_path')->defaultNull()->end()
                ->arrayNode('pass_target_path')
                    ->canBeEnabled()
                    ->children()
                        ->booleanNode('default_target_path')->defaultValue('/')->end()
                        ->booleanNode('target_path_parameter')->defaultValue('_target_path')->end()
                        ->arrayNode('ignored_routes')
                            ->prototype('scalar')->end()
                        ->end()
                        ->arrayNode('ignored_route_prefixes')
                            ->prototype('scalar')->end()
                        ->end()
                    ->end()
                ->end()
                ->booleanNode('social_authentication')->defaultNull()->end()
                ->arrayNode('social_registration_form')
                    ->addDefaultsIfNotSet()
                    ->fixXmlConfig('validation_group')
                    ->children()
                        ->scalarNode('type')->defaultValue(SocialRegistrationFormType::class)->end()
                        ->scalarNode('name')->defaultValue('hwi_oauth_registration_form')->end()
                        ->arrayNode('validation_groups')
                            ->prototype('scalar')->end()
                            ->defaultValue(['Profile', 'SocialRegistration', 'Default'])
                        ->end()
                    ->end()
                ->end()
            ->end();

        return $treeBuilder;
    }
}
<commit_msg>Fixed semantic configuration type for "default_target_path" and "target_path_parameter"<commit_after><?php
namespace Vanio\UserBundle\DependencyInjection;

use Symfony\Component\Config\Definition\Builder\TreeBuilder;
use Symfony\Component\Config\Definition\ConfigurationInterface;
use Vanio\UserBundle\Form\SocialRegistrationFormType;

class Configuration implements ConfigurationInterface
{
    public function getConfigTreeBuilder(): TreeBuilder
    {
        $treeBuilder = new TreeBuilder;
        /* @noinspection PhpUndefinedMethodInspection */
        $treeBuilder->root('vanio_user')
            ->children()
                ->scalarNode('firewall_name')->defaultNull()->end()
                ->booleanNode('email_only')->defaultFalse()->end()
                ->booleanNode('custom_storage_validation')->defaultFalse()->end()
                ->booleanNode('use_flash_notifications')->defaultTrue()->end()
                ->scalarNode('registration_target_path')->defaultNull()->end()
                ->arrayNode('pass_target_path')
                    ->canBeEnabled()
                    ->children()
                        ->scalarNode('default_target_path')->defaultValue('/')->end()
                        ->scalarNode('target_path_parameter')->defaultValue('_target_path')->end()
                        ->arrayNode('ignored_routes')
                            ->prototype('scalar')->end()
                        ->end()
                        ->arrayNode('ignored_route_prefixes')
                            ->prototype('scalar')->end()
                        ->end()
                    ->end()
                ->end()
                ->booleanNode('social_authentication')->defaultNull()->end()
                ->arrayNode('social_registration_form')
                    ->addDefaultsIfNotSet()
                    ->fixXmlConfig('validation_group')
                    ->children()
                        ->scalarNode('type')->defaultValue(SocialRegistrationFormType::class)->end()
                        ->scalarNode('name')->defaultValue('hwi_oauth_registration_form')->end()
                        ->arrayNode('validation_groups')
                            ->prototype('scalar')->end()
                            ->defaultValue(['Profile', 'SocialRegistration', 'Default'])
                        ->end()
                    ->end()
                ->end()
            ->end();

        return $treeBuilder;
    }
}

{'fraction_non_alphanumeric': 0.1371168185584093, 'fraction_numerical': 0.0, 'mean_word_length': 1.7816820276497696, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 117, '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': '4107388', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1045, 'n_words': 127}