<commit_before><?php

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

namespace Symfony\Bundle\SwiftmailerBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\Configuration\Builder\NodeBuilder;
use Symfony\Component\DependencyInjection\Configuration\Builder\TreeBuilder;

/**
 * This class contains the configuration information for the bundle
 *
 * This information is solely responsible for how the different configuration
 * sections are normalized, and merged.
 *
 * @author <NAME> <<EMAIL>>
 */
class Configuration
{
    /**
     * Generates the configuration tree.
     *
     * @return \Symfony\Component\DependencyInjection\Configuration\NodeInterface
     */
    public function getConfigTree()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('swiftmailer', 'array');

        $rootNode
            ->scalarNode('transport')
                ->defaultValue('smtp')
                ->validate()
                    ->ifNotInArray(array ('smtp', 'mail', 'sendmail', 'gmail'))
                    ->thenInvalid('The %s transport is not supported')
                ->end()
            ->end()
            ->scalarNode('username')->defaultNull()->end()
            ->scalarNode('password')->defaultNull()->end()
            ->scalarNode('host')->defaultValue('localhost')->end()
            ->scalarNode('port')->defaultValue(25)->end()
            ->scalarNode('encryption')
                ->defaultNull()
                ->validate()
                    ->ifNotInArray(array ('tls', 'ssl', null))
                    ->thenInvalid('The %s encryption is not supported')
                ->end()
            ->end()
            ->scalarNode('auth_mode')
                ->defaultNull()
                ->validate()
                    ->ifNotInArray(array ('plain', 'login', 'cram-md5', null))
                    ->thenInvalid('The %s authentication mode is not supported')
                ->end()
            ->end()
            ->arrayNode('spool')
                ->addDefaultsIfNotSet()
                ->scalarNode('type')->defaultValue('file')->end()
                ->scalarNode('path')->defaultValue('%kernel.cache_dir%/swiftmailer/pool')->end()
            ->end()
            ->scalarNode('delivery_adress')->end()
            ->booleanNode('disable_delivery')->end();

        return $treeBuilder->buildTree();
    }
}<commit_msg>fixed typo<commit_after><?php

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

namespace Symfony\Bundle\SwiftmailerBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\Configuration\Builder\NodeBuilder;
use Symfony\Component\DependencyInjection\Configuration\Builder\TreeBuilder;

/**
 * This class contains the configuration information for the bundle
 *
 * This information is solely responsible for how the different configuration
 * sections are normalized, and merged.
 *
 * @author <NAME> <<EMAIL>>
 */
class Configuration
{
    /**
     * Generates the configuration tree.
     *
     * @return \Symfony\Component\DependencyInjection\Configuration\NodeInterface
     */
    public function getConfigTree()
    {
        $treeBuilder = new TreeBuilder();
        $rootNode = $treeBuilder->root('swiftmailer', 'array');

        $rootNode
            ->scalarNode('transport')
                ->defaultValue('smtp')
                ->validate()
                    ->ifNotInArray(array ('smtp', 'mail', 'sendmail', 'gmail'))
                    ->thenInvalid('The %s transport is not supported')
                ->end()
            ->end()
            ->scalarNode('username')->defaultNull()->end()
            ->scalarNode('password')->defaultNull()->end()
            ->scalarNode('host')->defaultValue('localhost')->end()
            ->scalarNode('port')->defaultValue(25)->end()
            ->scalarNode('encryption')
                ->defaultNull()
                ->validate()
                    ->ifNotInArray(array ('tls', 'ssl', null))
                    ->thenInvalid('The %s encryption is not supported')
                ->end()
            ->end()
            ->scalarNode('auth_mode')
                ->defaultNull()
                ->validate()
                    ->ifNotInArray(array ('plain', 'login', 'cram-md5', null))
                    ->thenInvalid('The %s authentication mode is not supported')
                ->end()
            ->end()
            ->arrayNode('spool')
                ->addDefaultsIfNotSet()
                ->scalarNode('type')->defaultValue('file')->end()
                ->scalarNode('path')->defaultValue('%kernel.cache_dir%/swiftmailer/spool')->end()
            ->end()
            ->scalarNode('delivery_adress')->end()
            ->booleanNode('disable_delivery')->end();

        return $treeBuilder->buildTree();
    }
}
{'fraction_non_alphanumeric': 0.14514241123683183, 'fraction_numerical': 0.0011705033164260631, 'mean_word_length': 2.1338630806845966, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 111, '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': '4537751', 'n_tokens_mistral': 1304, 'n_tokens_neox': 1250, 'n_words': 287}