<commit_before><?php
/** InputController Library

 * InputController library to bring MVC features
 * 
 */
 
addAutoload('Controller',					'inputcontroller/controller');
addAutoload('ControllerRoute',				'inputcontroller/controllerroute');
addAutoload('InputRequest',					'inputcontroller/inputrequest');
addAutoload('OutputResponse',				'inputcontroller/outputresponse');

addAutoload('HTTPRoute',					'inputcontroller/http/httproute');
addAutoload('HTTPRequest',					'inputcontroller/http/httprequest');
addAutoload('HTTPController',				'inputcontroller/http/httpcontroller');
addAutoload('HTTPResponse',					'inputcontroller/http/httpresponse');
addAutoload('HTMLHTTPResponse',				'inputcontroller/http/htmlhttpresponse');

addAutoload('DelayedPageController',		'inputcontroller/controllers/DelayedPageController');

// define('HOOK_ROUTEMODULE', 'routeModule');
// Hook::create(HOOK_ROUTEMODULE);


function u($routeName, $values=array()) {
	$routes	= HTTPRoute::getRoutes();
	if( !isset($routes[$routeName]) ) {
		throw new Exception('Unable to find route '.$routeName);
	}
	if( !isset($routes[$routeName][HTTPRoute::METHOD_GET]) ) {
		throw new Exception('Unable to find route '.$routeName.' for GET method');
	}
	/* @var $route HTTPRoute */
	$route	= $routes[$routeName][HTTPRoute::METHOD_GET];
	return $route->formatURL($values);
}

function _u($route, $values=array()) {
	echo u($route, $values);
}
<commit_msg>Allow dev to use implicitly a Static page controller<commit_after><?php
/** InputController Library

 * InputController library to bring MVC features
 * 
 */
 
addAutoload('Controller',					'inputcontroller/controller');
addAutoload('ControllerRoute',				'inputcontroller/controllerroute');
addAutoload('InputRequest',					'inputcontroller/inputrequest');
addAutoload('OutputResponse',				'inputcontroller/outputresponse');

addAutoload('HTTPRoute',					'inputcontroller/http/httproute');
addAutoload('HTTPRequest',					'inputcontroller/http/httprequest');
addAutoload('HTTPController',				'inputcontroller/http/httpcontroller');
addAutoload('HTTPResponse',					'inputcontroller/http/httpresponse');
addAutoload('HTMLHTTPResponse',				'inputcontroller/http/htmlhttpresponse');

addAutoload('DelayedPageController',		'inputcontroller/controllers/DelayedPageController');
addAutoload('StaticPageController',			'inputcontroller/controllers/StaticPageController');

// define('HOOK_ROUTEMODULE', 'routeModule');
// Hook::create(HOOK_ROUTEMODULE);


function u($routeName, $values=array()) {
	$routes	= HTTPRoute::getRoutes();
	if( !isset($routes[$routeName]) ) {
		throw new Exception('Unable to find route '.$routeName);
	}
	if( !isset($routes[$routeName][HTTPRoute::METHOD_GET]) ) {
		throw new Exception('Unable to find route '.$routeName.' for GET method');
	}
	/* @var $route HTTPRoute */
	$route	= $routes[$routeName][HTTPRoute::METHOD_GET];
	return $route->formatURL($values);
}

function _u($route, $values=array()) {
	echo u($route, $values);
}

{'fraction_non_alphanumeric': 0.15086913742210561, 'fraction_numerical': 0.0, 'mean_word_length': 5.777777777777778, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7535679', 'n_tokens_mistral': 993, 'n_tokens_neox': 953, 'n_words': 152}