<commit_before><?php

namespace Kunstmaan\ChainrouterBundle\Router;

use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Matcher\UrlMatcher;
use Symfony\Component\Routing\Generator\UrlGenerator;

class ChainRouterRouter implements RouterInterface {

    private $context;
    private $routeCollection;
    private $urlGenerator;
    private $container;

    public function __construct($container) {
        $this->container = $container;

        $this->routeCollection = new RouteCollection();

        $this->routeCollection->add('test_route_greet', new Route('/{_locale}/hello/{name}', array('_controller' => 'KunstmaanChainrouterBundle:Default:index')));
    }

    public function getRouteCollection() {
        return $this->routeCollection;
    }
<commit_msg>remove _locale<commit_after><?php

namespace Kunstmaan\ChainrouterBundle\Router;

use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Matcher\UrlMatcher;
use Symfony\Component\Routing\Generator\UrlGenerator;

class ChainRouterRouter implements RouterInterface {

    private $context;
    private $routeCollection;
    private $urlGenerator;
    private $container;

    public function __construct($container) {
        $this->container = $container;

        $this->routeCollection = new RouteCollection();

        $this->routeCollection->add('test_route_greet', new Route('/hello/{name}', array('_controller' => 'KunstmaanChainrouterBundle:Default:index')));
    }

    public function getRouteCollection() {
        return $this->routeCollection;
    }

{'fraction_non_alphanumeric': 0.10953678474114441, 'fraction_numerical': 0.0, 'mean_word_length': 4.903536977491961, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '6270395', 'n_tokens_mistral': 489, 'n_tokens_neox': 498, 'n_words': 91}