<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="annotations.reader" class="Doctrine\Common\Annotations\AnnotationReader" public="false" />
        <service id="Doctrine\Common\Annotations\Reader" alias="annotations.reader" public="false" />

        <service id="annotations.cached_reader" class="Doctrine\Common\Annotations\CachedReader" public="false">
            <argument type="service" id="annotations.reader" />
            <argument type="service">
                <service class="Doctrine\Common\Cache\ArrayCache" />
            </argument>
            <argument /><!-- Debug-Flag -->
        </service>

        <service id="annotations.filesystem_cache" class="Doctrine\Common\Cache\FilesystemCache" public="false">
            <argument /><!-- Cache-Directory -->
        </service>

        <service id="annotations.cache_warmer" class="Symfony\Bundle\FrameworkBundle\CacheWarmer\AnnotationsCacheWarmer" public="false">
            <argument type="service" id="annotations.reader" />
            <argument>%kernel.cache_dir%/annotations.php</argument>
            <argument type="service" id="cache.annotations" />
        </service>

        <service id="annotations.cache" class="Symfony\Component\Cache\DoctrineProvider" public="false">
            <argument type="service">
                <service class="Symfony\Component\Cache\Adapter\PhpArrayAdapter">
                    <factory class="Symfony\Component\Cache\Adapter\PhpArrayAdapter" method="create" />
                    <argument>%kernel.cache_dir%/annotations.php</argument>
                    <argument type="service" id="cache.annotations" />
                </service>
            </argument>
        </service>

        <service id="annotation_reader" alias="annotations.reader" />
    </services>
</container>
<commit_msg>feature #21837 [FrameworkBundle] Lazy configuration of annotations' loader and `@required` (nicolas-grekas)<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="annotations.reader" class="Doctrine\Common\Annotations\AnnotationReader" public="false">
            <call method="addGlobalIgnoredName">
                <argument>required</argument>
                <argument type="service">
                    <!-- dummy arg to register class_exists as annotation loader only when required -->
                    <service class="Doctrine\Common\Annotations\AnnotationRegistry">
                        <call method="registerLoader">
                            <argument>class_exists</argument>
                        </call>
                    </service>
                </argument>
            </call>
        </service>
        <service id="Doctrine\Common\Annotations\Reader" alias="annotations.reader" public="false" />

        <service id="annotations.cached_reader" class="Doctrine\Common\Annotations\CachedReader" public="false">
            <argument type="service" id="annotations.reader" />
            <argument type="service">
                <service class="Doctrine\Common\Cache\ArrayCache" />
            </argument>
            <argument /><!-- Debug-Flag -->
        </service>

        <service id="annotations.filesystem_cache" class="Doctrine\Common\Cache\FilesystemCache" public="false">
            <argument /><!-- Cache-Directory -->
        </service>

        <service id="annotations.cache_warmer" class="Symfony\Bundle\FrameworkBundle\CacheWarmer\AnnotationsCacheWarmer" public="false">
            <argument type="service" id="annotations.reader" />
            <argument>%kernel.cache_dir%/annotations.php</argument>
            <argument type="service" id="cache.annotations" />
        </service>

        <service id="annotations.cache" class="Symfony\Component\Cache\DoctrineProvider" public="false">
            <argument type="service">
                <service class="Symfony\Component\Cache\Adapter\PhpArrayAdapter">
                    <factory class="Symfony\Component\Cache\Adapter\PhpArrayAdapter" method="create" />
                    <argument>%kernel.cache_dir%/annotations.php</argument>
                    <argument type="service" id="cache.annotations" />
                </service>
            </argument>
        </service>

        <service id="annotation_reader" alias="annotations.reader" />
    </services>
</container>

{'fraction_non_alphanumeric': 0.14312460994383192, 'fraction_numerical': 0.004784688995215311, 'mean_word_length': 2.593423019431988, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 2, '>': 89, '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': '3633783', 'n_tokens_mistral': 1273, 'n_tokens_neox': 1226, 'n_words': 182}