<commit_before><?php

namespace App;

use Nette;
use Nette\Application\Routers\Route;
use Nette\Application\Routers\RouteList;

class RouterFactory
{
    /**
     * @return Nette\Application\IRouter
     */
    public static function createRouter()
    {
        $router = new RouteList;

        $router[] = new Route('', 'Front:Homepage:default');
        $router[] = new Route('hry[/<tagSlug>]', 'Front:Game:default');
        $router[] = new Route('hry/<tagSlug>/<slug>', 'Front:Game:detail');
        $router[] = new Route('filmy[/<tagSlug>]', 'Front:Movie:default');
        $router[] = new Route('filmy/<tagSlug>/<slug>', 'Front:Movie:detail');
        $router[] = new Route('knihy[/<tagSlug>]', 'Front:Book:default');
        $router[] = new Route('knihy/<tagSlug>/<slug>', 'Front:Book:detail');
        $router[] = new Route('clanky[/<tagSlug>]', 'Front:Article:default');
        $router[] = new Route('clanky/<tagSlug>/<slug>', 'Front:Article:detail');
        $router[] = new Route('galerie[/<tagSlug>]', 'Front:Gallery:default');
        $router[] = new Route('videa[/<tagSlug>]', 'Front:Video:default');

        $router[] = new Route('uzivatelska-sekce', 'Admin:Homepage:default');
        $router[] = new Route('uzivatelska-sekce/hry', 'Admin:Game:default');
        $router[] = new Route('uzivatelska-sekce/hry/formular', 'Admin:default:form');
        $router[] = new Route('uzivatelska-sekce/filmy', 'Admin:Movie:default');
        $router[] = new Route('uzivatelska-sekce/filmy/formular', 'Admin:Movie:form');
        $router[] = new Route('uzivatelska-sekce/knihy', 'Admin:Book:default');
        $router[] = new Route('uzivatelska-sekce/knihy/formular', 'Admin:Book:form');
        $router[] = new Route('uzivatelska-sekce/clanky', 'Admin:Article:default');
        $router[] = new Route('uzivatelska-sekce/clanky/formular', 'Admin:Article:form');
        $router[] = new Route('uzivatelska-sekce/galerie', 'Admin:Gallery:default');
        $router[] = new Route('uzivatelska-sekce/galerie/formular', 'Admin:Gallery:form');
        $router[] = new Route('uzivatelska-sekce/videa', 'Admin:Video:default');<commit_msg>Router<commit_after><?php

namespace App;

use Nette;
use Nette\Application\Routers\Route;
use Nette\Application\Routers\RouteList;

class RouterFactory
{
    /**
     * @return Nette\Application\IRouter
     */
    public static function createRouter()
    {
        $router = new RouteList;

        $router[] = new Route('', 'Front:Homepage:default');
        $router[] = new Route('hry[/<tagSlug>]', 'Front:Game:default');
        $router[] = new Route('hry/<tagSlug>/<slug>', 'Front:Game:detail');
        $router[] = new Route('filmy[/<tagSlug>]', 'Front:Movie:default');
        $router[] = new Route('filmy/<tagSlug>/<slug>', 'Front:Movie:detail');
        $router[] = new Route('knihy[/<tagSlug>]', 'Front:Book:default');
        $router[] = new Route('knihy/<tagSlug>/<slug>', 'Front:Book:detail');
        $router[] = new Route('clanky[/<tagSlug>]', 'Front:Article:default');
        $router[] = new Route('clanky/<tagSlug>/<slug>', 'Front:Article:detail');
        $router[] = new Route('galerie[/<tagSlug>]', 'Front:Gallery:default');
        $router[] = new Route('videa[/<tagSlug>]', 'Front:Video:default');

        $router[] = new Route('uzivatelska-sekce', 'Admin:Homepage:default');
        $router[] = new Route('uzivatelska-sekce/hry', 'Admin:Game:default');
        $router[] = new Route('uzivatelska-sekce/hry/formular', 'Admin:Game:form');
        $router[] = new Route('uzivatelska-sekce/filmy', 'Admin:Movie:default');
        $router[] = new Route('uzivatelska-sekce/filmy/formular', 'Admin:Movie:form');
        $router[] = new Route('uzivatelska-sekce/knihy', 'Admin:Book:default');
        $router[] = new Route('uzivatelska-sekce/knihy/formular', 'Admin:Book:form');
        $router[] = new Route('uzivatelska-sekce/clanky', 'Admin:Article:default');
        $router[] = new Route('uzivatelska-sekce/clanky/formular', 'Admin:Article:form');
        $router[] = new Route('uzivatelska-sekce/galerie', 'Admin:Gallery:default');
        $router[] = new Route('uzivatelska-sekce/galerie/formular', 'Admin:Gallery:form');
        $router[] = new Route('uzivatelska-sekce/videa', 'Admin:Video:default');
{'fraction_non_alphanumeric': 0.2039381153305204, 'fraction_numerical': 0.0, 'mean_word_length': 4.184690157958688, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 31, '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': '2984738', 'n_tokens_mistral': 1503, 'n_tokens_neox': 1450, 'n_words': 223}