<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">

    <services>
        <service id="api_platform.serializer" alias="serializer" />
        <service id="api_platform.property_accessor" alias="property_accessor" public="false" />
        <service id="api_platform.property_info" alias="property_info" public="false" />
        <service id="api_platform.negotiator" class="Negotiation\Negotiator" public="false" />

        <service id="api_platform.resource_class_resolver" class="ApiPlatform\Core\Api\ResourceClassResolver" public="false">
            <argument type="service" id="api_platform.metadata.resource.name_collection_factory" />
        </service>

        <service id="api_platform.operation_method_resolver" class="ApiPlatform\Core\Bridge\Symfony\Routing\OperationMethodResolver" public="false">
            <argument type="service" id="api_platform.router" />
            <argument type="service" id="api_platform.metadata.resource.metadata_factory" />
        </service>

        <service id="api_platform.route_loader" class="ApiPlatform\Core\Bridge\Symfony\Routing\ApiLoader" public="false">
            <argument type="service" id="kernel" />
            <argument type="service" id="api_platform.metadata.resource.name_collection_factory" />
            <argument type="service" id="api_platform.metadata.resource.metadata_factory" />
            <argument type="service" id="api_platform.operation_path_resolver.custom" />
            <argument type="service" id="service_container" />
            <argument>%api_platform.formats%</argument>

            <tag name="routing.loader" />
        </service>

        <service id="api_platform.router" class="ApiPlatform\Core\Bridge\Symfony\Routing\Router" public="false">
            <argument type="service" id="router" />
        </service>

        <service id="api_platform.iri_converter" class="ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter" public="false">
            <argument type="service" id="api_platform.metadata.property.name_collection_factory" />
            <argument type="service" id="api_platform.metadata.property.metadata_factory" />
            <argument type="service" id="api_platform.item_data_provider" />
            <argument type="service" id="api_platform.router" />
            <argument type="service" id="api_platform.property_accessor" />
        </service>
        <service id="api_platform.documentation" class="ApiPlatform\Core\Documentation\Documentation" public="false"/>
        <service id="api_platform.entrypoint" class="ApiPlatform\Core\Api\Entrypoint" public="false" />

        <!-- Serializer -->

        <service id="api_platform.serializer.context_builder" class="ApiPlatform\Core\Serializer\SerializerContextBuilder" public="false">
            <argument type="service" id="api_platform.metadata.resource.metadata_factory" />
        </service>

        <service id="api_platform.serializer.normalizer.item" class="ApiPlatform\Core\Serializer\ItemNormalizer" public="false">
            <argument type="service" id="api_platform.metadata.property.name_collection_factory" />
            <argument type="service" id="api_platform.metadata.property.metadata_factory" />
            <argument type="service" id="api_platform.iri_converter" />
            <argument type="service" id="api_platform.resource_class_resolver" />
            <argument type="service" id="api_platform.property_accessor" />
            <argument type="service" id="api_platform.name_converter" on-invalid="ignore" />

            <tag name="serializer.normalizer" />
        </service>

        <!-- Resources Operations path resolver -->

        <service id="api_platform.operation_path_resolver" alias="api_platform.operation_path_resolver.router" public="false" />

        <service id="api_platform.operation_path_resolver.router" class="ApiPlatform\Core\Bridge\Symfony\Routing\RouterOperationPathResolver" public="false">
            <argument type="service" id="api_platform.router" />
            <argument type="service" id="api_platform.operation_path_resolver.custom" />
        </service>

        <service id="api_platform.operation_path_resolver.custom" class="ApiPlatform\Core\PathResolver\CustomOperationPathResolver" public="false">
            <argument type="service" id="api_platform.operation_path_resolver.default" />
        </service>

        <service id="api_platform.operation_path_resolver.underscore" class="ApiPlatform\Core\PathResolver\UnderscoreOperationPathResolver" public="false" />
        <service id="api_platform.operation_path_resolver.dash" class="ApiPlatform\Core\PathResolver\DashOperationPathResolver" public="false" />

        <!-- Event listeners -->

        <service id="api_platform.listener.request.add_format" class="ApiPlatform\Core\EventListener\AddFormatListener">
            <argument type="service" id="api_platform.negotiator" />
            <argument>%api_platform.formats%</argument>

            <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="7" />
        </service>

        <!-- kernel.request piorities must be >8 to be executed after the firewall -->
        <service id="api_platform.listener.request.read" class="ApiPlatform\Core\EventListener\ReadListener">
            <argument type="service" id="api_platform.collection_data_provider" />
            <argument type="service" id="api_platform.item_data_provider" />

            <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="4" />
        </service>

        <service id="api_platform.listener.request.deserialize" class="ApiPlatform\Core\EventListener\DeserializeListener">
            <argument type="service" id="api_platform.serializer" />
            <argument type="service" id="api_platform.serializer.context_builder" />
            <argument>%api_platform.formats%</argument>

            <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="2" />
        </service>

        <service id="api_platform.listener.view.validate" class="ApiPlatform\Core\Bridge\Symfony\Validator\EventListener\ValidateListener">
            <argument type="service" id="validator" />
            <argument type="service" id="api_platform.metadata.resource.metadata_factory" />

            <tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="64" />
            <tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="64" />
        </service>

        <service id="api_platform.listener.view.serialize" class="ApiPlatform\Core\EventListener\SerializeListener">
            <argument type="service" id="api_platform.serializer" />
            <argument type="service" id="api_platform.serializer.context_builder" />

            <tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="16" />
        </service>

        <service id="api_platform.listener.view.respond" class="ApiPlatform\Core\EventListener\RespondListener">
            <tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="8" />
        </service>

        <service id="api_platform.listener.exception.validation" class="ApiPlatform\Core\Bridge\Symfony\Validator\EventListener\ValidationExceptionListener">
            <argument type="service" id="api_platform.serializer" />
            <argument>%api_platform.error_formats%</argument>

            <tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" />
        </service>

        <service id="api_platform.listener.exception" class="ApiPlatform\Core\EventListener\ExceptionListener">
            <argument>api_platform.action.exception</argument>
            <argument type="service" id="logger" on-invalid="null" />

            <tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" priority="-96" />
            <tag name="monolog.logger" channel="request" />
        </service>

        <!-- Action -->

        <service id="api_platform.action.placeholder" class="ApiPlatform\Core\Action\PlaceholderAction" />
        <service id="api_platform.action.get_collection" alias="api_platform.action.placeholder" />
        <service id="api_platform.action.post_collection" alias="api_platform.action.placeholder" />
        <service id="api_platform.action.get_item" alias="api_platform.action.placeholder" />
        <service id="api_platform.action.put_item" alias="api_platform.action.placeholder" />
        <service id="api_platform.action.delete_item" alias="api_platform.action.placeholder" />

        <service id="api_platform.action.entrypoint" class="ApiPlatform\Core\Action\EntrypointAction">
            <argument type="service" id="api_platform.metadata.resource.name_collection_factory" />
        </service>

        <service id="api_platform.action.documentation" class="ApiPlatform\Core\Documentation\Action\DocumentationAction">
            <argument type="service" id="api_platform.metadata.resource.name_collection_factory" />
            <argument>%api_platform.title%</argument>
            <argument>%api_platform.description%</argument>
            <argument>%api_platform.version%</argument>
            <argument>%api_platform.formats%</argument>
        </service>

        <service id="api_platform.action.exception" class="ApiPlatform\Core\Action\ExceptionAction">
            <argument type="service" id="api_platform.serializer" />
            <argument>%api_platform.error_formats%</argument>
        </service>
    </services>

</container>
<commit_msg>Fix wrong comment on kernel.request priority<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">

    <services>
        <service id="api_platform.serializer" alias="serializer" />
        <service id="api_platform.property_accessor" alias="property_accessor" public="false" />
        <service id="api_platform.property_info" alias="property_info" public="false" />
        <service id="api_platform.negotiator" class="Negotiation\Negotiator" public="false" />

        <service id="api_platform.resource_class_resolver" class="ApiPlatform\Core\Api\ResourceClassResolver" public="false">
            <argument type="service" id="api_platform.metadata.resource.name_collection_factory" />
        </service>

        <service id="api_platform.operation_method_resolver" class="ApiPlatform\Core\Bridge\Symfony\Routing\OperationMethodResolver" public="false">
            <argument type="service" id="api_platform.router" />
            <argument type="service" id="api_platform.metadata.resource.metadata_factory" />
        </service>

        <service id="api_platform.route_loader" class="ApiPlatform\Core\Bridge\Symfony\Routing\ApiLoader" public="false">
            <argument type="service" id="kernel" />
            <argument type="service" id="api_platform.metadata.resource.name_collection_factory" />
            <argument type="service" id="api_platform.metadata.resource.metadata_factory" />
            <argument type="service" id="api_platform.operation_path_resolver.custom" />
            <argument type="service" id="service_container" />
            <argument>%api_platform.formats%</argument>

            <tag name="routing.loader" />
        </service>

        <service id="api_platform.router" class="ApiPlatform\Core\Bridge\Symfony\Routing\Router" public="false">
            <argument type="service" id="router" />
        </service>

        <service id="api_platform.iri_converter" class="ApiPlatform\Core\Bridge\Symfony\Routing\IriConverter" public="false">
            <argument type="service" id="api_platform.metadata.property.name_collection_factory" />
            <argument type="service" id="api_platform.metadata.property.metadata_factory" />
            <argument type="service" id="api_platform.item_data_provider" />
            <argument type="service" id="api_platform.router" />
            <argument type="service" id="api_platform.property_accessor" />
        </service>
        <service id="api_platform.documentation" class="ApiPlatform\Core\Documentation\Documentation" public="false"/>
        <service id="api_platform.entrypoint" class="ApiPlatform\Core\Api\Entrypoint" public="false" />

        <!-- Serializer -->

        <service id="api_platform.serializer.context_builder" class="ApiPlatform\Core\Serializer\SerializerContextBuilder" public="false">
            <argument type="service" id="api_platform.metadata.resource.metadata_factory" />
        </service>

        <service id="api_platform.serializer.normalizer.item" class="ApiPlatform\Core\Serializer\ItemNormalizer" public="false">
            <argument type="service" id="api_platform.metadata.property.name_collection_factory" />
            <argument type="service" id="api_platform.metadata.property.metadata_factory" />
            <argument type="service" id="api_platform.iri_converter" />
            <argument type="service" id="api_platform.resource_class_resolver" />
            <argument type="service" id="api_platform.property_accessor" />
            <argument type="service" id="api_platform.name_converter" on-invalid="ignore" />

            <tag name="serializer.normalizer" />
        </service>

        <!-- Resources Operations path resolver -->

        <service id="api_platform.operation_path_resolver" alias="api_platform.operation_path_resolver.router" public="false" />

        <service id="api_platform.operation_path_resolver.router" class="ApiPlatform\Core\Bridge\Symfony\Routing\RouterOperationPathResolver" public="false">
            <argument type="service" id="api_platform.router" />
            <argument type="service" id="api_platform.operation_path_resolver.custom" />
        </service>

        <service id="api_platform.operation_path_resolver.custom" class="ApiPlatform\Core\PathResolver\CustomOperationPathResolver" public="false">
            <argument type="service" id="api_platform.operation_path_resolver.default" />
        </service>

        <service id="api_platform.operation_path_resolver.underscore" class="ApiPlatform\Core\PathResolver\UnderscoreOperationPathResolver" public="false" />
        <service id="api_platform.operation_path_resolver.dash" class="ApiPlatform\Core\PathResolver\DashOperationPathResolver" public="false" />

        <!-- Event listeners -->

        <service id="api_platform.listener.request.add_format" class="ApiPlatform\Core\EventListener\AddFormatListener">
            <argument type="service" id="api_platform.negotiator" />
            <argument>%api_platform.formats%</argument>

            <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="7" />
        </service>

        <!-- kernel.request priority must be < 8 to be executed after the Firewall -->
        <service id="api_platform.listener.request.read" class="ApiPlatform\Core\EventListener\ReadListener">
            <argument type="service" id="api_platform.collection_data_provider" />
            <argument type="service" id="api_platform.item_data_provider" />

            <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="4" />
        </service>

        <service id="api_platform.listener.request.deserialize" class="ApiPlatform\Core\EventListener\DeserializeListener">
            <argument type="service" id="api_platform.serializer" />
            <argument type="service" id="api_platform.serializer.context_builder" />
            <argument>%api_platform.formats%</argument>

            <tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="2" />
        </service>

        <service id="api_platform.listener.view.validate" class="ApiPlatform\Core\Bridge\Symfony\Validator\EventListener\ValidateListener">
            <argument type="service" id="validator" />
            <argument type="service" id="api_platform.metadata.resource.metadata_factory" />

            <tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="64" />
            <tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="64" />
        </service>

        <service id="api_platform.listener.view.serialize" class="ApiPlatform\Core\EventListener\SerializeListener">
            <argument type="service" id="api_platform.serializer" />
            <argument type="service" id="api_platform.serializer.context_builder" />

            <tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="16" />
        </service>

        <service id="api_platform.listener.view.respond" class="ApiPlatform\Core\EventListener\RespondListener">
            <tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="8" />
        </service>

        <service id="api_platform.listener.exception.validation" class="ApiPlatform\Core\Bridge\Symfony\Validator\EventListener\ValidationExceptionListener">
            <argument type="service" id="api_platform.serializer" />
            <argument>%api_platform.error_formats%</argument>

            <tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" />
        </service>

        <service id="api_platform.listener.exception" class="ApiPlatform\Core\EventListener\ExceptionListener">
            <argument>api_platform.action.exception</argument>
            <argument type="service" id="logger" on-invalid="null" />

            <tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" priority="-96" />
            <tag name="monolog.logger" channel="request" />
        </service>

        <!-- Action -->

        <service id="api_platform.action.placeholder" class="ApiPlatform\Core\Action\PlaceholderAction" />
        <service id="api_platform.action.get_collection" alias="api_platform.action.placeholder" />
        <service id="api_platform.action.post_collection" alias="api_platform.action.placeholder" />
        <service id="api_platform.action.get_item" alias="api_platform.action.placeholder" />
        <service id="api_platform.action.put_item" alias="api_platform.action.placeholder" />
        <service id="api_platform.action.delete_item" alias="api_platform.action.placeholder" />

        <service id="api_platform.action.entrypoint" class="ApiPlatform\Core\Action\EntrypointAction">
            <argument type="service" id="api_platform.metadata.resource.name_collection_factory" />
        </service>

        <service id="api_platform.action.documentation" class="ApiPlatform\Core\Documentation\Action\DocumentationAction">
            <argument type="service" id="api_platform.metadata.resource.name_collection_factory" />
            <argument>%api_platform.title%</argument>
            <argument>%api_platform.description%</argument>
            <argument>%api_platform.version%</argument>
            <argument>%api_platform.formats%</argument>
        </service>

        <service id="api_platform.action.exception" class="ApiPlatform\Core\Action\ExceptionAction">
            <argument type="service" id="api_platform.serializer" />
            <argument>%api_platform.error_formats%</argument>
        </service>
    </services>

</container>

{'fraction_non_alphanumeric': 0.1361635379244042, 'fraction_numerical': 0.002226382634215453, 'mean_word_length': 3.7102001906577695, 'pattern_counts': {'":': 0, '<': 274, '<?xml version=': 2, '>': 274, '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': '4817596', 'n_tokens_mistral': 5325, 'n_tokens_neox': 5232, 'n_words': 701}