<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="cache.default_pools_clearer" class="Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer" public="false">
            <tag name="kernel.cache_clearer" />
        </service>

        <service id="cache.adapter.shared" alias="cache.adapter.filesystem" />
        <service id="cache.adapter.local" alias="cache.adapter.filesystem" />

        <service id="cache.pool.shared" parent="cache.adapter.shared">
            <tag name="cache.pool" clearer="cache.default_pools_clearer" />
        </service>

        <service id="cache.pool.local" parent="cache.adapter.local">
            <tag name="cache.pool" clearer="cache.default_pools_clearer" />
        </service>

        <service id="cache.pool.validator" parent="cache.adapter.local" public="false">
            <tag name="cache.pool" clearer="cache.default_pools_clearer" />
        </service>

        <service id="cache.pool.serializer" parent="cache.adapter.local" public="false">
            <tag name="cache.pool" clearer="cache.default_pools_clearer" />
        </service>

        <service id="cache.adapter.apcu" class="Symfony\Component\Cache\Adapter\ApcuAdapter" abstract="true">
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
        </service>

        <service id="cache.adapter.doctrine" class="Symfony\Component\Cache\Adapter\DoctrineAdapter" abstract="true">
            <argument /> <!-- Doctrine provider service -->
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
        </service>

        <service id="cache.adapter.filesystem" class="Symfony\Component\Cache\Adapter\FilesystemAdapter" abstract="true">
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
            <argument>%kernel.cache_dir%/pools</argument>
        </service>

        <service id="cache.adapter.psr6" class="Symfony\Component\Cache\Adapter\ProxyAdapter" abstract="true">
            <argument /> <!-- PSR-6 provider service -->
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
        </service>

        <service id="cache.adapter.redis" class="Symfony\Component\Cache\Adapter\RedisAdapter" abstract="true">
            <argument /> <!-- Redis connection object -->
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
        </service>

    </services>
</container><commit_msg>[FrameworkBundle] Add optional logger to cache pools<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="cache.default_pools_clearer" class="Symfony\Component\HttpKernel\CacheClearer\Psr6CacheClearer" public="false">
            <tag name="kernel.cache_clearer" />
        </service>

        <service id="cache.adapter.shared" alias="cache.adapter.filesystem" />
        <service id="cache.adapter.local" alias="cache.adapter.filesystem" />

        <service id="cache.pool.shared" parent="cache.adapter.shared">
            <tag name="cache.pool" clearer="cache.default_pools_clearer" />
        </service>

        <service id="cache.pool.local" parent="cache.adapter.local">
            <tag name="cache.pool" clearer="cache.default_pools_clearer" />
        </service>

        <service id="cache.pool.validator" parent="cache.adapter.local" public="false">
            <tag name="cache.pool" clearer="cache.default_pools_clearer" />
        </service>

        <service id="cache.pool.serializer" parent="cache.adapter.local" public="false">
            <tag name="cache.pool" clearer="cache.default_pools_clearer" />
        </service>

        <service id="cache.adapter.apcu" class="Symfony\Component\Cache\Adapter\ApcuAdapter" abstract="true">
            <tag name="monolog.logger" channel="cache" />
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
            <call method="setLogger">
                <argument type="service" id="logger" on-invalid="ignore" />
            </call>
        </service>

        <service id="cache.adapter.doctrine" class="Symfony\Component\Cache\Adapter\DoctrineAdapter" abstract="true">
            <tag name="monolog.logger" channel="cache" />
            <argument /> <!-- Doctrine provider service -->
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
            <call method="setLogger">
                <argument type="service" id="logger" on-invalid="ignore" />
            </call>
        </service>

        <service id="cache.adapter.filesystem" class="Symfony\Component\Cache\Adapter\FilesystemAdapter" abstract="true">
            <tag name="monolog.logger" channel="cache" />
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
            <argument>%kernel.cache_dir%/pools</argument>
            <call method="setLogger">
                <argument type="service" id="logger" on-invalid="ignore" />
            </call>
        </service>

        <service id="cache.adapter.psr6" class="Symfony\Component\Cache\Adapter\ProxyAdapter" abstract="true">
            <argument /> <!-- PSR-6 provider service -->
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
        </service>

        <service id="cache.adapter.redis" class="Symfony\Component\Cache\Adapter\RedisAdapter" abstract="true">
            <tag name="monolog.logger" channel="cache" />
            <argument /> <!-- Redis connection object -->
            <argument /> <!-- namespace -->
            <argument /> <!-- default lifetime -->
            <call method="setLogger">
                <argument type="service" id="logger" on-invalid="ignore" />
            </call>
        </service>

    </services>
</container>
{'fraction_non_alphanumeric': 0.16679779701022818, 'fraction_numerical': 0.0037765538945712038, 'mean_word_length': 2.4412560909583108, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 2, '>': 139, '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': '5832125', 'n_tokens_mistral': 1744, 'n_tokens_neox': 1699, 'n_words': 277}