<commit_before><?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="admin.knp.menu.builder.class">FSi\Bundle\AdminBundle\Menu\KnpMenuBuilder</parameter>
        <parameter key="admin.menu.builder.yaml.class">FSi\Bundle\AdminBundle\Menu\Builder\YamlBuilder</parameter>
        <parameter key="admin.menu.builder.evented.class">FSi\Bundle\AdminBundle\Menu\Builder\EventedBuilder</parameter>
        <parameter key="admin.menu.listener.tools.class">FSi\Bundle\AdminBundle\EventListener\MenuToolsListener</parameter>
    </parameters>

    <services>
        <service id="admin.menu.builder.yaml" class="%admin.menu.builder.yaml.class%">
            <argument type="service" id="admin.manager" />
            <argument>%admin.menu_config_path%</argument>
        </service>

        <service id="admin.menu.builder.evented" class="%admin.menu.builder.evented.class%">
            <argument type="service" id="event_dispatcher" />
        </service>

        <service id="admin.menu.knp.builder.elements" class="%admin.knp.menu.builder.class%">
            <argument type="service" id="admin.menu.builder.yaml"/>
            <argument type="service" id="knp_menu.factory"/>
            <call method="setRequest">
                <argument type="service" id="request" on-invalid="null" strict="false" />
            </call>
        </service>

        <service id="admin.menu.knp.builder.tools" class="%admin.knp.menu.builder.class%">
            <argument type="service" id="admin.menu.builder.evented"/>
            <argument type="service" id="knp_menu.factory"/>
            <call method="setRequest">
                <argument type="service" id="request" on-invalid="null" strict="false" />
            </call>
        </service>

        <service id="admin.menu.elements" class="%admin.knp.menu.builder.class%"
                 factory-service="admin.menu.knp.builder.elements"
                 factory-method="createMenu">
            <tag name="knp_menu.menu" alias="elements"/>
        </service>

        <service id="admin.menu.tools" class="%admin.knp.menu.builder.class%"
                 factory-service="admin.menu.knp.builder.tools"
                 factory-method="createMenu">
            <tag name="knp_menu.menu" alias="tools"/>
        </service>

        <service id="admin.menu.listener.tools" class="%admin.menu.listener.tools.class%" scope="request">
            <argument type="string">%admin.display_language_switch%</argument>
            <argument type="service" id="translator"/>
            <call method="setRequest">
                <argument type="service" id="request" on-invalid="null" strict="false" />
            </call>
            <tag name="kernel.event_listener" event="fsi_admin.menu.tools" method="createLocaleMenu" />
        </service>
    </services>
</container><commit_msg>Remove unnecessary scope from service<commit_after><?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="admin.knp.menu.builder.class">FSi\Bundle\AdminBundle\Menu\KnpMenuBuilder</parameter>
        <parameter key="admin.menu.builder.yaml.class">FSi\Bundle\AdminBundle\Menu\Builder\YamlBuilder</parameter>
        <parameter key="admin.menu.builder.evented.class">FSi\Bundle\AdminBundle\Menu\Builder\EventedBuilder</parameter>
        <parameter key="admin.menu.listener.tools.class">FSi\Bundle\AdminBundle\EventListener\MenuToolsListener</parameter>
    </parameters>

    <services>
        <service id="admin.menu.builder.yaml" class="%admin.menu.builder.yaml.class%">
            <argument type="service" id="admin.manager" />
            <argument>%admin.menu_config_path%</argument>
        </service>

        <service id="admin.menu.builder.evented" class="%admin.menu.builder.evented.class%">
            <argument type="service" id="event_dispatcher" />
        </service>

        <service id="admin.menu.knp.builder.elements" class="%admin.knp.menu.builder.class%">
            <argument type="service" id="admin.menu.builder.yaml"/>
            <argument type="service" id="knp_menu.factory"/>
            <call method="setRequest">
                <argument type="service" id="request" on-invalid="null" strict="false" />
            </call>
        </service>

        <service id="admin.menu.knp.builder.tools" class="%admin.knp.menu.builder.class%">
            <argument type="service" id="admin.menu.builder.evented"/>
            <argument type="service" id="knp_menu.factory"/>
            <call method="setRequest">
                <argument type="service" id="request" on-invalid="null" strict="false" />
            </call>
        </service>

        <service id="admin.menu.elements" class="%admin.knp.menu.builder.class%"
                 factory-service="admin.menu.knp.builder.elements"
                 factory-method="createMenu">
            <tag name="knp_menu.menu" alias="elements"/>
        </service>

        <service id="admin.menu.tools" class="%admin.knp.menu.builder.class%"
                 factory-service="admin.menu.knp.builder.tools"
                 factory-method="createMenu">
            <tag name="knp_menu.menu" alias="tools"/>
        </service>

        <service id="admin.menu.listener.tools" class="%admin.menu.listener.tools.class%">
            <argument type="string">%admin.display_language_switch%</argument>
            <argument type="service" id="translator"/>
            <call method="setRequest">
                <argument type="service" id="request" on-invalid="null" strict="false" />
            </call>
            <tag name="kernel.event_listener" event="fsi_admin.menu.tools" method="createLocaleMenu" />
        </service>
    </services>
</container>
{'fraction_non_alphanumeric': 0.1619649805447471, 'fraction_numerical': 0.0029182879377431907, 'mean_word_length': 2.7707823960880194, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 2, '>': 107, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '5867770', 'n_tokens_mistral': 1798, 'n_tokens_neox': 1764, 'n_words': 224}