<commit_before><?
session_start();

ob_start();

/* Error handler */

function ErrorHandler($Severity, $Message, $File, $Line, $Variables) {
	if(error_reporting() !== 0) {
		throw new ErrorException($Message, 0, $Severity, $File, $Line);
	}
}

set_error_handler('ErrorHandler');

/* Includes */

require('Framework/Newnorth/Newnorth.php');

/* Execution of application */

use \Framework\Newnorth\Exception;
use \Framework\Newnorth\Application;

try {
	$Layout = null;

	$Page = null;

	$Application = new Application();

	$Application->Run();
}
catch(Exception $Exception) {
	Application::HandleError(
		$Exception->Type,
		$Exception->getMessage(),
		$Exception->getFile(),
		$Exception->getLine(),
		$Exception->Data,
		$Exception->getTrace()
	);
}
catch(\ErrorException $Exception) {
	Application::HandleError(
		'Error',
		$Exception->getMessage(),
		$Exception->getFile(),
		$Exception->getLine(),
		[],
		$Exception->getTrace()
	);
}
catch(\Exception $Exception) {
	Application::HandleError(
		'Unhandled exception',
		$Exception->getMessage(),
		$Exception->getFile(),
		$Exception->getLine(),
		[],
		$Exception->getTrace()
	);
}
?><commit_msg>Code clean up<commit_after><?
session_start();

ob_start();

/* Error handler */

function ErrorHandler($Severity, $Message, $File, $Line, $Variables) {
	if(error_reporting() !== 0) {
		throw new ErrorException($Message, 0, $Severity, $File, $Line);
	}
}

set_error_handler('ErrorHandler');

/* Includes */

require('Framework/Newnorth/Newnorth.php');

/* Global variables */

$Layout = null;

$Page = null;

$Application = null;

/* Execution of application */

try {
	$Application = new \Framework\Newnorth\Application();

	$Application->Run();
}
catch(\Framework\Newnorth\Exception $Exception) {
	\Framework\Newnorth\Application::HandleError(
		$Exception->Type,
		$Exception->getMessage(),
		$Exception->getFile(),
		$Exception->getLine(),
		$Exception->Data,
		$Exception->getTrace()
	);
}
catch(\ErrorException $Exception) {
	\Framework\Newnorth\Application::HandleError(
		'Error',
		$Exception->getMessage(),
		$Exception->getFile(),
		$Exception->getLine(),
		[],
		$Exception->getTrace()
	);
}
catch(\Exception $Exception) {
	\Framework\Newnorth\Application::HandleError(
		'Unhandled exception',
		$Exception->getMessage(),
		$Exception->getFile(),
		$Exception->getLine(),
		[],
		$Exception->getTrace()
	);
}
?>
{'fraction_non_alphanumeric': 0.19015565839293228, 'fraction_numerical': 0.0016827934371055953, 'mean_word_length': 5.128865979381444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 35, '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': '1480922', 'n_tokens_mistral': 825, 'n_tokens_neox': 788, 'n_words': 132}