<commit_before><?php

use Nette\Application\Routers\Route,
	Nette\Application\Routers\SimpleRouter;


// Load Nette Framework

if (@!include __DIR__ . '/../../Nette/loader.php') {
	die('Install Nette using `composer update`');
}



if (@!include __DIR__ . '/../vendor/autoload.php') {
	die('Install Nette using `composer update`');
}




// Configure application
$configurator = new Nette\Configurator;

$configurator->setDebugMode(true);

// Enable Nette Debugger for error visualisation & logging
$configurator->enableDebugger(__DIR__ . '/../../log');

// Enable RobotLoader - this will load all classes automatically
$configurator->setTempDirectory(__DIR__ . '/../../temp');
$configurator->createRobotLoader()
	->addDirectory(__DIR__)
	->register();

// Create Dependency Injection container from config.neon file
$configurator->addConfig(__DIR__ . '/config.neon');
$container = $configurator->createContainer();

// Setup router using mod_rewrite detection
$router = $container->getService('router');
// $router[] = new Route('[<lang=cs [a-z]{2}>/]<project>/<presenter>/<action>', "Dashboard:default");

$router[] = new Route('//taskz/[<lang=cs [a-z]{2}>/]<project>/<action>/<editID>/', "List:list");
$router[] = new Route('//taskz/[<lang=cs [a-z]{2}>/]<project>/', "List:default");
$router[] = new Route('//taskz/[<lang=cs [a-z]{2}>/]project/<action>', "Project:default");

$router[] = new Route('//taskz/[<lang=cs [a-z]{2}>/]<presenter>/<action>[/<editID (\d+)>]', "Dashboard:default");


//$router[] = new Route('[<lang=cs [a-z]{2}>/]<presenter>/<action>[/<editID (\d+)>]', "Dashboard:default");
// $router[] = new Route('', "Error:default");
// $router[] = new Route('login', 'Sign:default');

return $container;<commit_msg>Uprava URL<commit_after><?php

use Nette\Application\Routers\Route,
	Nette\Application\Routers\SimpleRouter;


// Load Nette Framework

if (@!include __DIR__ . '/../../Nette/loader.php') {
	die('Install Nette using `composer update`');
}



if (@!include __DIR__ . '/../vendor/autoload.php') {
	die('Install Nette using `composer update`');
}




// Configure application
$configurator = new Nette\Configurator;

$configurator->setDebugMode(true);

// Enable Nette Debugger for error visualisation & logging
$configurator->enableDebugger(__DIR__ . '/../../log');

// Enable RobotLoader - this will load all classes automatically
$configurator->setTempDirectory(__DIR__ . '/../../temp');
$configurator->createRobotLoader()
	->addDirectory(__DIR__)
	->register();

// Create Dependency Injection container from config.neon file
$configurator->addConfig(__DIR__ . '/config.neon');
$container = $configurator->createContainer();

// Setup router using mod_rewrite detection
$router = $container->getService('router');
// $router[] = new Route('[<lang=cs [a-z]{2}>/]<project>/<presenter>/<action>', "Dashboard:default");

$router[] = new Route('//taskz/[<lang=cs [a-z]{2}>/]<projectID>-<projectName>/<taskListID>-<taskListName>/', "List:list");
$router[] = new Route('//taskz/[<lang=cs [a-z]{2}>/]<projectID>-<projectName>/', "List:default");
$router[] = new Route('//taskz/[<lang=cs [a-z]{2}>/]project/<action>', "Project:default");

$router[] = new Route('//taskz/[<lang=cs [a-z]{2}>/]<presenter>/<action>[/<editID (\d+)>]', "Dashboard:default");


//$router[] = new Route('[<lang=cs [a-z]{2}>/]<presenter>/<action>[/<editID (\d+)>]', "Dashboard:default");
// $router[] = new Route('', "Error:default");
// $router[] = new Route('login', 'Sign:default');

return $container;
{'fraction_non_alphanumeric': 0.23180131316014843, 'fraction_numerical': 0.0034256351698544107, 'mean_word_length': 5.212765957446808, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 63, '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': '2709403', 'n_tokens_mistral': 1200, 'n_tokens_neox': 1185, 'n_words': 226}