<commit_before><?php
ob_start();
define('TEST_EXIT_SCRIPT', './support/test_exit.php');
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';

$_SERVER['SERVER_NAME'] = 'example.com';
$_SERVER['REQUEST_URI'] = '/index.php';

function __autoload($class_name)
{
	$file = '../classes/' . $class_name . '.php';
	if (file_exists($file)) {
		require_once($file);
		return;
	}        
	
	die('The class ' . $class_name . ' could not be loaded');
}
?><commit_msg>Updated the test init script to set the document root<commit_after><?php
ob_start();
define('TEST_EXIT_SCRIPT', './support/test_exit.php');
require_once 'PHPUnit/Framework.php';
require_once 'PHPUnit/TextUI/TestRunner.php';

$_SERVER['SERVER_NAME'] = 'example.com';
$_SERVER['REQUEST_URI'] = '/index.php';

if (empty($_SERVER['DOCUMENT_ROOT'])) {
	$_SERVER['DOCUMENT_ROOT'] = realpath(dirname(__FILE__) . '/../');	
}

function __autoload($class_name)
{
	$file = '../classes/' . $class_name . '.php';
	if (file_exists($file)) {
		require_once($file);
		return;
	}        
	
	die('The class ' . $class_name . ' could not be loaded');
}
?>
{'fraction_non_alphanumeric': 0.19714540588760035, 'fraction_numerical': 0.0, 'mean_word_length': 4.813471502590674, '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': '1321960', 'n_tokens_mistral': 403, 'n_tokens_neox': 394, 'n_words': 71}