<commit_before><?php
	require_once("includes/global.php");

	header('Content-Type: text/html;charset=UTF-8');

	Session::refreshSession();
	$smarty->assign('authenticated', Session::isAuthenticated());

	$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
	$urlInfo = parse_url($url);
	$tmp_paths = explode('/',mb_substr($urlInfo['path'],1));
	$GLOB['params'] = array(); // Parametri per index.php
	for($i = $cfg['path_start']; $i < count($tmp_paths); $i++)
	{
		$GLOB['params'][$i - $cfg['path_start']] = $tmp_paths[$i];
	}

	$GLOB['base_url'] = '';
	for($i = 0; $i < $cfg['path_start']; $i++)
	{
		$GLOB['base_url'] .= '/' . $tmp_paths[$i];
	}

	$smarty->assign('base_url', htmles($GLOB['base_url'])); // /my/klense
	$smarty->assign('absolute_base_url', htmles(currentFullBaseUrl())); // http://myhost.com/my/klense/
	$smarty->assign('base_url_params', htmles($_SERVER['REQUEST_URI'])); // /my/klense/image/view/22

	$timezone = 'UTC';<commit_msg>Comments<commit_after><?php
	require_once("includes/global.php");

	header('Content-Type: text/html;charset=UTF-8');

	Session::refreshSession();
	$smarty->assign('authenticated', Session::isAuthenticated());

	/* Parameters START*/
	$url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
	$urlInfo = parse_url($url);
	$tmp_paths = explode('/',mb_substr($urlInfo['path'],1));
	$GLOB['params'] = array(); // Parametri per index.php
	for($i = $cfg['path_start']; $i < count($tmp_paths); $i++)
	{
		$GLOB['params'][$i - $cfg['path_start']] = $tmp_paths[$i];
	}
	/* Parameters END */

	$GLOB['base_url'] = '';
	for($i = 0; $i < $cfg['path_start']; $i++)
	{
		$GLOB['base_url'] .= '/' . $tmp_paths[$i];
	}

	$smarty->assign('base_url', htmles($GLOB['base_url'])); // /my/klense
	$smarty->assign('absolute_base_url', htmles(currentFullBaseUrl())); // http://myhost.com/my/klense/
	$smarty->assign('base_url_params', htmles($_SERVER['REQUEST_URI'])); // /my/klense/image/view/22

	$timezone = 'UTC';
{'fraction_non_alphanumeric': 0.2578680203045685, 'fraction_numerical': 0.005076142131979695, 'mean_word_length': 5.658783783783784, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '2090152', 'n_tokens_mistral': 781, 'n_tokens_neox': 748, 'n_words': 97}