<commit_before><?php

declare(strict_types=1);

/*
 * This file is part of the Sonata Project package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use Sonata\MediaBundle\Twig\Extension\FormatterMediaExtension;
use Sonata\MediaBundle\Twig\Extension\MediaExtension;
use Sonata\MediaBundle\Twig\GlobalVariables;
use Sonata\MediaBundle\Twig\MediaRuntime;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    // Use "service" function for creating references to services when dropping support for Symfony 4.4
    $containerConfigurator->services()

        ->set('sonata.media.twig.extension', MediaExtension::class)
            ->tag('twig.extension')
            ->args([
                new ReferenceConfigurator('sonata.media.pool'),
                new ReferenceConfigurator('sonata.media.manager.media'),
                new ReferenceConfigurator('twig'),
            ])

        ->set('sonata.media.twig.runtime', MediaRuntime::class)
            ->tag('twig.runtime')
            ->args([
                new ReferenceConfigurator('sonata.media.pool'),
                new ReferenceConfigurator('sonata.media.manager.media'),
                new ReferenceConfigurator('twig'),
            ])

        ->set('sonata.media.twig.global', GlobalVariables::class)
            ->args([
                new ReferenceConfigurator('sonata.media.pool'),
            ])

        ->set('sonata.media.formatter.twig', FormatterMediaExtension::class)
            ->args([
                new ReferenceConfigurator('sonata.media.twig.extension'),
            ]);
};<commit_msg>Remove useless args from constructor<commit_after><?php

declare(strict_types=1);

/*
 * This file is part of the Sonata Project package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

use Sonata\MediaBundle\Twig\Extension\FormatterMediaExtension;
use Sonata\MediaBundle\Twig\Extension\MediaExtension;
use Sonata\MediaBundle\Twig\GlobalVariables;
use Sonata\MediaBundle\Twig\MediaRuntime;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    // Use "service" function for creating references to services when dropping support for Symfony 4.4
    $containerConfigurator->services()

        ->set('sonata.media.twig.extension', MediaExtension::class)
            ->tag('twig.extension')

        ->set('sonata.media.twig.runtime', MediaRuntime::class)
            ->tag('twig.runtime')
            ->args([
                new ReferenceConfigurator('sonata.media.pool'),
                new ReferenceConfigurator('sonata.media.manager.media'),
                new ReferenceConfigurator('twig'),
            ])

        ->set('sonata.media.twig.global', GlobalVariables::class)
            ->args([
                new ReferenceConfigurator('sonata.media.pool'),
            ])

        ->set('sonata.media.formatter.twig', FormatterMediaExtension::class);
};
{'fraction_non_alphanumeric': 0.11519536903039074, 'fraction_numerical': 0.0017366136034732273, 'mean_word_length': 3.1191895113230035, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5976063', 'n_tokens_mistral': 932, 'n_tokens_neox': 907, 'n_words': 186}