<commit_before><?php

namespace Ekyna\Bundle\CharacteristicsBundle\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;

/**
 * Class AdminMenuPass
 * @package Ekyna\Bundle\CharacteristicsBundle\DependencyInjection\Compiler
 * @author <NAME> <<EMAIL>>
 */
class AdminMenuPass implements CompilerPassInterface
{
    public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('ekyna_admin.menu.pool')) {
            return;
        }

        $pool = $container->getDefinition('ekyna_admin.menu.pool');

        $pool->addMethodCall('createGroup', array(array(
            'name'     => 'setting',
            'label'    => 'ekyna_setting.label',
            'icon'     => 'cogs',
            'position' => 99,
        )));
        $pool->addMethodCall('createEntry', array('setting', array(
            'name'     => 'characteristics',
            'route'    => 'ekyna_characteristics_choice_admin_home',
            'label'    => 'ekyna_characteristics.choice.label.plural',
            'resource' => 'ekyna_characteristics_choice',
            'position' => 99,
        )));
    }<commit_msg>Admin menu positions<commit_after><?php

namespace Ekyna\Bundle\CharacteristicsBundle\DependencyInjection\Compiler;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;

/**
 * Class AdminMenuPass
 * @package Ekyna\Bundle\CharacteristicsBundle\DependencyInjection\Compiler
 * @author <NAME> <<EMAIL>>
 */
class AdminMenuPass implements CompilerPassInterface
{
    public function process(ContainerBuilder $container)
    {
        if (!$container->hasDefinition('ekyna_admin.menu.pool')) {
            return;
        }

        $pool = $container->getDefinition('ekyna_admin.menu.pool');

        $pool->addMethodCall('createGroup', array(array(
            'name'     => 'setting',
            'label'    => 'ekyna_setting.label',
            'icon'     => 'cogs',
            'position' => 100,
        )));
        $pool->addMethodCall('createEntry', array('setting', array(
            'name'     => 'characteristics',
            'route'    => 'ekyna_characteristics_choice_admin_home',
            'label'    => 'ekyna_characteristics.choice.label.plural',
            'resource' => 'ekyna_characteristics_choice',
            'position' => 90,
        )));
    }
{'fraction_non_alphanumeric': 0.13141025641025642, 'fraction_numerical': 0.003605769230769231, 'mean_word_length': 2.907668231611894, 'pattern_counts': {'":': 0, '<': 11, '<?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': '5554824', 'n_tokens_mistral': 682, 'n_tokens_neox': 667, 'n_words': 102}