<commit_before><?php

namespace Checkdomain\ComodoBundle\DependencyInjection;

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

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

        $rootNode = $treeBuilder->root('checkdomain_comodo');

        $rootNode->children()
                 ->arrayNode('account')
                     ->children()
                     ->scalarNode('user')->isRequired()->cannotBeEmpty()->end()
                     ->scalarNode('password')->isRequired()->cannotBeEmpty()->end()
                     ->end()
                 ->end()
                 ->arrayNode('imap')
                    ->children()
                    ->arrayNode('access')
                        ->children()
                        ->scalarNode('host')->end()
                        ->scalarNode('ssl')->end()
                        ->scalarNode('user')->end()
                        ->scalarNode('password')->end()
                        ->end()
                    ->end()
                 ->end();<commit_msg>Change: Comodo-Access optional now<commit_after><?php

namespace Checkdomain\ComodoBundle\DependencyInjection;

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

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

        $rootNode = $treeBuilder->root('checkdomain_comodo');

        $rootNode->children()
                 ->arrayNode('account')
                     ->canBeUnset()
                     ->children()
                     ->scalarNode('user')->defaultNull()->end()
                     ->scalarNode('password')->defaultNull()->end()
                     ->end()
                 ->end()
                 ->arrayNode('imap')
                    ->children()
                    ->arrayNode('access')
                        ->children()
                        ->scalarNode('host')->end()
                        ->scalarNode('ssl')->end()
                        ->scalarNode('user')->end()
                        ->scalarNode('password')->end()
                        ->end()
                    ->end()
                 ->end();
{'fraction_non_alphanumeric': 0.1449389523434423, 'fraction_numerical': 0.0, 'mean_word_length': 1.4708171206225682, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 60, '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': '6943603', 'n_tokens_mistral': 581, 'n_tokens_neox': 549, 'n_words': 81}