<commit_before><?php

namespace Dami\Cli;

use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Yaml\Yaml;

use Dami\DependencyInjection\DamiExtension;
use Rentgen\DependencyInjection\RentgenExtension;
use Rentgen\DependencyInjection\Compiler\ListenerPass;

class Dami
{
    private $container;

    public function __construct()
    {
        $container = new ContainerBuilder();

        $extensions = array(
            new RentgenExtension(),
            new DamiExtension(),
        );
        foreach ($extensions as $extension) {
            $container->registerExtension($extension);
            $container->loadFromExtension($extension->getAlias());
        }
        $container->compile();

        $this->container = $container;
    }

    public function get($service)
    {
        return $this->container->get($service);
    }

    public function getContainer()
    {
        return $this->container;
    }
}<commit_msg>Register liteners<commit_after><?php

namespace Dami\Cli;

use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\Yaml\Yaml;

use Dami\DependencyInjection\DamiExtension;
use Rentgen\DependencyInjection\RentgenExtension;
use Rentgen\DependencyInjection\Compiler\ListenerPass;
use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
class Dami
{
    private $container;

    public function __construct()
    {
        $container = new ContainerBuilder();

        $extensions = array(
            new RentgenExtension(),
            new DamiExtension(),
        );
        foreach ($extensions as $extension) {
            $container->registerExtension($extension);
            $container->loadFromExtension($extension->getAlias());
        }
        $container->addCompilerPass(new RegisterListenersPass());
        $container->compile();

        $this->container = $container;
    }

    public function get($service)
    {
        return $this->container->get($service);
    }

    public function getContainer()
    {
        return $this->container;
    }
}
{'fraction_non_alphanumeric': 0.10708041958041958, 'fraction_numerical': 0.0, 'mean_word_length': 3.207720588235294, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '6472888', 'n_tokens_mistral': 610, 'n_tokens_neox': 592, 'n_words': 109}