<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.manager.class">FSi\Bundle\AdminBundle\Admin\Manager</parameter>
        <parameter key="admin.manager.visitor.element_collection.class">FSi\Bundle\AdminBundle\Admin\Manager\ElementCollectionVisitor</parameter>
        <parameter key="admin.manager.visitor.dependent_elements.class">FSi\Bundle\AdminBundle\Admin\Manager\DependentElementsVisitor</parameter>
        <parameter key="admin.context.manager.class">FSi\Bundle\AdminBundle\Admin\Context\ContextManager</parameter>
        <parameter key="admin.form.builder.batch.class">Symfony\Component\Form\FormBuilder</parameter>
        <parameter key="admin.form.collection_extension.class">FSi\Bundle\AdminBundle\Form\CollectionTypeExtension</parameter>
        <parameter key="admin.element.param.converter.class">FSi\Bundle\AdminBundle\Request\ParamConverter\AdminElementParamConverter</parameter>
        <parameter key="admin.element.factory.production_line.class">FSi\Bundle\AdminBundle\Factory\ProductionLine</parameter>
        <parameter key="admin.element.factory.worker.list.class">FSi\Bundle\AdminBundle\Factory\Worker\ListWorker</parameter>
        <parameter key="admin.element.factory.worker.form.class">FSi\Bundle\AdminBundle\Factory\Worker\FormWorker</parameter>
        <parameter key="admin.element.factory.worker.doctrine.class">FSi\Bundle\AdminBundle\Factory\Worker\DoctrineWorker</parameter>
        <parameter key="admin.element.factory.worker.request_stack.class">FSi\Bundle\AdminBundle\Factory\Worker\RequestStackWorker</parameter>
        <parameter key="admin.element.factory.worker.dependent.class">FSi\Bundle\AdminBundle\Factory\Worker\DependentElementWorker</parameter>
        <parameter key="admin.controller.abstract.class">FSi\Bundle\AdminBundle\Controller\ControllerAbstract</parameter>
        <parameter key="admin.controller.resource.class">FSi\Bundle\AdminBundle\Controller\ResourceController</parameter>
        <parameter key="admin.controller.display.class">FSi\Bundle\AdminBundle\Controller\DisplayController</parameter>
        <parameter key="admin.controller.list.class">FSi\Bundle\AdminBundle\Controller\ListController</parameter>
        <parameter key="admin.controller.form.class">FSi\Bundle\AdminBundle\Controller\FormController</parameter>
        <parameter key="admin.controller.batch.class">FSi\Bundle\AdminBundle\Controller\BatchController</parameter>
        <parameter key="admin.controller.admin.class">FSi\Bundle\AdminBundle\Controller\AdminController</parameter>
    </parameters>

    <services>
        <service id="admin.manager" class="%admin.manager.class%" />

        <service id="admin.element.param.converter" class="%admin.element.param.converter.class%">
            <argument type="service" id="admin.manager" />
            <tag name="request.param_converter" converter="admin.element" priority="10" />
        </service>

        <service id="admin.element.factory.production_line" class="%admin.element.factory.production_line.class%">
            <argument type="collection">
                <argument type="service" id="admin.element.factory.worker.list"/>
                <argument type="service" id="admin.element.factory.worker.form" />
                <argument type="service" id="admin.element.factory.worker.doctrine"/>
                <argument type="service" id="admin.element.factory.worker.request_stack"/>
            </argument>
        </service>

        <service id="admin.context.manager" class="%admin.context.manager.class%">
            <argument type="collection"></argument>
        </service>

        <service id="admin.form.builder.batch" class="%admin.form.builder.batch.class%">
            <factory service="form.factory" method="createNamedBuilder"/>
            <argument type="string">batch_action</argument>
            <argument type="string">form</argument>
            <argument type="collection">
                <argument key="translation_domain" type="string">FSiAdminBundle</argument>
            </argument>
        </service>

        <service id="admin.form.collection_type_extension" class="%admin.form.collection_extension.class%">
            <tag name="form.type_extension" alias="collection" />
        </service>

        <!-- ProductionLine Workers -->
        <service id="admin.element.factory.worker.list" class="%admin.element.factory.worker.list.class%">
            <argument type="service" id="datasource.factory" />
            <argument type="service" id="datagrid.factory" />
        </service>
        <service id="admin.element.factory.worker.form" class="%admin.element.factory.worker.form.class%">
            <argument type="service" id="form.factory" />
        </service>
        <service id="admin.element.factory.worker.doctrine" class="%admin.element.factory.worker.doctrine.class%">
            <argument type="service" id="doctrine" />
        </service>
        <service id="admin.element.factory.worker.request_stack" class="%admin.element.factory.worker.request_stack.class%">
            <argument type="service" id="request_stack" />
        </service>

        <!-- Controllers -->
        <service id="admin.controller.abstract" class="%admin.controller.abstract.class%" abstract="true">
            <argument type="service" id="templating"/>
            <argument type="service" id="admin.context.manager"/>
            <argument type="service" id="event_dispatcher"/>
        </service>

        <service id="admin.controller.batch" class="%admin.controller.batch.class%" parent="admin.controller.abstract" />

        <service id="admin.controller.display" class="%admin.controller.display.class%" parent="admin.controller.abstract">
            <argument>%admin.templates.display%</argument>
        </service>

        <service id="admin.controller.form" class="%admin.controller.form.class%" parent="admin.controller.abstract">
            <argument>%admin.templates.form%</argument>
        </service>

        <service id="admin.controller.list" class="%admin.controller.list.class%" parent="admin.controller.abstract">
            <argument>%admin.templates.list%</argument>
        </service>

        <service id="admin.controller.resource" class="%admin.controller.resource.class%" parent="admin.controller.abstract">
            <argument>%admin.templates.resource%</argument>
        </service>

        <service id="admin.controller.admin" class="%admin.controller.admin.class%">
            <argument type="service" id="templating"/>
            <argument type="service" id="router"/>
            <argument>%admin.templates.index_page%</argument>
        </service>

        <!-- Manager Visitors -->
        <service id="admin.manager.visitor.element_collection" class="%admin.manager.visitor.element_collection.class%">
            <!-- This collection is replaced in AdminElementPass -->
            <argument type="collection" />
            <argument type="service" id="admin.element.factory.production_line" />
            <tag name="admin.manager.visitor" />
        </service>

        <service id="admin.manager.visitor.dependent_elements" class="%admin.manager.visitor.dependent_elements.class%">
            <tag name="admin.manager.visitor" />
        </service>

        <!-- Flash messages -->
        <service id="admin.messages.flash" class="FSi\Bundle\AdminBundle\Message\FlashMessages" lazy="true">
            <argument type="service" id="session" />
            <argument type="string">fsi_admin</argument>
        </service>

        <service id="admin.listener.messages" class="FSi\Bundle\AdminBundle\EventListener\MessagesListener">
            <argument type="service" id="admin.messages.flash"/>
            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="admin.twig.messages_extension" class="FSi\Bundle\AdminBundle\Twig\MessageTwigExtension" public="false">
            <argument type="service" id="admin.messages.flash"/>
            <tag name="twig.extension"/>
        </service>

    </services>
</container>
<commit_msg>Explicitly register controllers as public services<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.manager.class">FSi\Bundle\AdminBundle\Admin\Manager</parameter>
        <parameter key="admin.manager.visitor.element_collection.class">FSi\Bundle\AdminBundle\Admin\Manager\ElementCollectionVisitor</parameter>
        <parameter key="admin.manager.visitor.dependent_elements.class">FSi\Bundle\AdminBundle\Admin\Manager\DependentElementsVisitor</parameter>
        <parameter key="admin.context.manager.class">FSi\Bundle\AdminBundle\Admin\Context\ContextManager</parameter>
        <parameter key="admin.form.builder.batch.class">Symfony\Component\Form\FormBuilder</parameter>
        <parameter key="admin.form.collection_extension.class">FSi\Bundle\AdminBundle\Form\CollectionTypeExtension</parameter>
        <parameter key="admin.element.param.converter.class">FSi\Bundle\AdminBundle\Request\ParamConverter\AdminElementParamConverter</parameter>
        <parameter key="admin.element.factory.production_line.class">FSi\Bundle\AdminBundle\Factory\ProductionLine</parameter>
        <parameter key="admin.element.factory.worker.list.class">FSi\Bundle\AdminBundle\Factory\Worker\ListWorker</parameter>
        <parameter key="admin.element.factory.worker.form.class">FSi\Bundle\AdminBundle\Factory\Worker\FormWorker</parameter>
        <parameter key="admin.element.factory.worker.doctrine.class">FSi\Bundle\AdminBundle\Factory\Worker\DoctrineWorker</parameter>
        <parameter key="admin.element.factory.worker.request_stack.class">FSi\Bundle\AdminBundle\Factory\Worker\RequestStackWorker</parameter>
        <parameter key="admin.element.factory.worker.dependent.class">FSi\Bundle\AdminBundle\Factory\Worker\DependentElementWorker</parameter>
        <parameter key="admin.controller.abstract.class">FSi\Bundle\AdminBundle\Controller\ControllerAbstract</parameter>
        <parameter key="admin.controller.resource.class">FSi\Bundle\AdminBundle\Controller\ResourceController</parameter>
        <parameter key="admin.controller.display.class">FSi\Bundle\AdminBundle\Controller\DisplayController</parameter>
        <parameter key="admin.controller.list.class">FSi\Bundle\AdminBundle\Controller\ListController</parameter>
        <parameter key="admin.controller.form.class">FSi\Bundle\AdminBundle\Controller\FormController</parameter>
        <parameter key="admin.controller.batch.class">FSi\Bundle\AdminBundle\Controller\BatchController</parameter>
        <parameter key="admin.controller.admin.class">FSi\Bundle\AdminBundle\Controller\AdminController</parameter>
    </parameters>

    <services>
        <service id="admin.manager" class="%admin.manager.class%" />

        <service id="admin.element.param.converter" class="%admin.element.param.converter.class%">
            <argument type="service" id="admin.manager" />
            <tag name="request.param_converter" converter="admin.element" priority="10" />
        </service>

        <service id="admin.element.factory.production_line" class="%admin.element.factory.production_line.class%">
            <argument type="collection">
                <argument type="service" id="admin.element.factory.worker.list"/>
                <argument type="service" id="admin.element.factory.worker.form" />
                <argument type="service" id="admin.element.factory.worker.doctrine"/>
                <argument type="service" id="admin.element.factory.worker.request_stack"/>
            </argument>
        </service>

        <service id="admin.context.manager" class="%admin.context.manager.class%">
            <argument type="collection"></argument>
        </service>

        <service id="admin.form.builder.batch" class="%admin.form.builder.batch.class%">
            <factory service="form.factory" method="createNamedBuilder"/>
            <argument type="string">batch_action</argument>
            <argument type="string">form</argument>
            <argument type="collection">
                <argument key="translation_domain" type="string">FSiAdminBundle</argument>
            </argument>
        </service>

        <service id="admin.form.collection_type_extension" class="%admin.form.collection_extension.class%">
            <tag name="form.type_extension" alias="collection" />
        </service>

        <!-- ProductionLine Workers -->
        <service id="admin.element.factory.worker.list" class="%admin.element.factory.worker.list.class%">
            <argument type="service" id="datasource.factory" />
            <argument type="service" id="datagrid.factory" />
        </service>
        <service id="admin.element.factory.worker.form" class="%admin.element.factory.worker.form.class%">
            <argument type="service" id="form.factory" />
        </service>
        <service id="admin.element.factory.worker.doctrine" class="%admin.element.factory.worker.doctrine.class%">
            <argument type="service" id="doctrine" />
        </service>
        <service id="admin.element.factory.worker.request_stack" class="%admin.element.factory.worker.request_stack.class%">
            <argument type="service" id="request_stack" />
        </service>

        <!-- Controllers -->
        <service id="admin.controller.abstract" class="%admin.controller.abstract.class%" abstract="true" public="true">
            <argument type="service" id="templating"/>
            <argument type="service" id="admin.context.manager"/>
            <argument type="service" id="event_dispatcher"/>
        </service>

        <service id="admin.controller.batch" class="%admin.controller.batch.class%" parent="admin.controller.abstract" />

        <service id="admin.controller.display" class="%admin.controller.display.class%" parent="admin.controller.abstract">
            <argument>%admin.templates.display%</argument>
        </service>

        <service id="admin.controller.form" class="%admin.controller.form.class%" parent="admin.controller.abstract">
            <argument>%admin.templates.form%</argument>
        </service>

        <service id="admin.controller.list" class="%admin.controller.list.class%" parent="admin.controller.abstract">
            <argument>%admin.templates.list%</argument>
        </service>

        <service id="admin.controller.resource" class="%admin.controller.resource.class%" parent="admin.controller.abstract">
            <argument>%admin.templates.resource%</argument>
        </service>

        <service id="admin.controller.admin" class="%admin.controller.admin.class%" public="true">
            <argument type="service" id="templating"/>
            <argument type="service" id="router"/>
            <argument>%admin.templates.index_page%</argument>
        </service>

        <!-- Manager Visitors -->
        <service id="admin.manager.visitor.element_collection" class="%admin.manager.visitor.element_collection.class%">
            <!-- This collection is replaced in AdminElementPass -->
            <argument type="collection" />
            <argument type="service" id="admin.element.factory.production_line" />
            <tag name="admin.manager.visitor" />
        </service>

        <service id="admin.manager.visitor.dependent_elements" class="%admin.manager.visitor.dependent_elements.class%">
            <tag name="admin.manager.visitor" />
        </service>

        <!-- Flash messages -->
        <service id="admin.messages.flash" class="FSi\Bundle\AdminBundle\Message\FlashMessages" lazy="true">
            <argument type="service" id="session" />
            <argument type="string">fsi_admin</argument>
        </service>

        <service id="admin.listener.messages" class="FSi\Bundle\AdminBundle\EventListener\MessagesListener">
            <argument type="service" id="admin.messages.flash"/>
            <tag name="kernel.event_subscriber"/>
        </service>

        <service id="admin.twig.messages_extension" class="FSi\Bundle\AdminBundle\Twig\MessageTwigExtension" public="false">
            <argument type="service" id="admin.messages.flash"/>
            <tag name="twig.extension"/>
        </service>

    </services>
</container>

{'fraction_non_alphanumeric': 0.14941773663780233, 'fraction_numerical': 0.0013138250223947447, 'mean_word_length': 3.4231378763866878, 'pattern_counts': {'":': 0, '<': 293, '<?xml version=': 2, '>': 293, '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': '6485053', 'n_tokens_mistral': 4469, 'n_tokens_neox': 4392, 'n_words': 523}