<commit_before><?php

namespace Assmat\Controllers\Home;

use Symfony\Component\HttpFoundation\RedirectResponse;
use Twig_Environment;
use Assmat\DataSource\Repositories;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

class Controller
{
    private
        $twig,
        $urlGenerator,
        $employeurRepository,
        $employeRepository;

    public function __construct(Twig_Environment $twig, UrlGeneratorInterface $urlGenerator, Repositories\Employeur $employeurRepository, Repositories\Employe $employeRepository)
    {
        $this->twig = $twig;
        $this->urlGenerator = $urlGenerator;
        $this->employeurRepository = $employeurRepository;
        $this->employeRepository = $employeRepository;
    }

    public function indexAction()
    {
        return new RedirectResponse($this->urlGenerator->generate('admin_index'));
    }

    public function errorAction()
    {
        return $this->twig->render('Error/index.html.twig');
    }
}<commit_msg>fix: remove unrequire dependencies from home controller<commit_after><?php

namespace Assmat\Controllers\Home;

use Symfony\Component\HttpFoundation\RedirectResponse;
use Twig_Environment;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

class Controller
{
    private
        $twig,
        $urlGenerator;

    public function __construct(Twig_Environment $twig, UrlGeneratorInterface $urlGenerator)
    {
        $this->twig = $twig;
        $this->urlGenerator = $urlGenerator;
    }

    public function indexAction()
    {
        return new RedirectResponse($this->urlGenerator->generate('admin_index'));
    }

    public function errorAction()
    {
        return $this->twig->render('Error/index.html.twig');
    }
}
{'fraction_non_alphanumeric': 0.10265282583621683, 'fraction_numerical': 0.0, 'mean_word_length': 3.6765498652291106, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '2214431', 'n_tokens_mistral': 494, 'n_tokens_neox': 482, 'n_words': 88}