<commit_before><?php
namespace Hostnet\Component\WebpackBridge\Configuration\Config;

use Hostnet\Component\WebpackBridge\Configuration\CodeBlock;
use Hostnet\Component\WebpackBridge\Configuration\ConfigExtensionInterface;
use Symfony\Component\Config\Definition\Builder\NodeBuilder;
use Symfony\Component\DependencyInjection\Container;

final class OutputConfig implements ConfigInterface, ConfigExtensionInterface
{
    /**
     * @var array
     */
    private $config;

    /**
     * @param array $config
     */
    public function __construct(array $config = [])
    {
        $this->config = $config;
    }

    /** {@inheritdoc} */
    public static function applyConfiguration(NodeBuilder $node_builder)
    {
        $node_builder
            ->arrayNode('output')
                ->addDefaultsIfNotSet()
                ->children()
                    ->scalarNode('path')->defaultValue('%kernel.root_dir%/../web')->end()
                    ->scalarNode('dump_path')->defaultValue('%kernel.root_dir%/../web/bundles')->end()
                    ->scalarNode('filename')->defaultValue('[name].js')->end()
                    ->scalarNode('common_id')->defaultValue('common.js')->end()<commit_msg>Rename config default 'common.js' to 'common'<commit_after><?php
namespace Hostnet\Component\WebpackBridge\Configuration\Config;

use Hostnet\Component\WebpackBridge\Configuration\CodeBlock;
use Hostnet\Component\WebpackBridge\Configuration\ConfigExtensionInterface;
use Symfony\Component\Config\Definition\Builder\NodeBuilder;
use Symfony\Component\DependencyInjection\Container;

final class OutputConfig implements ConfigInterface, ConfigExtensionInterface
{
    /**
     * @var array
     */
    private $config;

    /**
     * @param array $config
     */
    public function __construct(array $config = [])
    {
        $this->config = $config;
    }

    /** {@inheritdoc} */
    public static function applyConfiguration(NodeBuilder $node_builder)
    {
        $node_builder
            ->arrayNode('output')
                ->addDefaultsIfNotSet()
                ->children()
                    ->scalarNode('path')->defaultValue('%kernel.root_dir%/../web')->end()
                    ->scalarNode('dump_path')->defaultValue('%kernel.root_dir%/../web/bundles')->end()
                    ->scalarNode('filename')->defaultValue('[name].js')->end()
                    ->scalarNode('common_id')->defaultValue('common')->end()
{'fraction_non_alphanumeric': 0.14314928425357873, 'fraction_numerical': 0.0, 'mean_word_length': 2.8702531645569622, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '3429425', 'n_tokens_mistral': 649, 'n_tokens_neox': 626, 'n_words': 92}