<commit_before><?php
define("server_root",$_SERVER["DOCUMENT_ROOT"].'/..');
define("site_root",server_root);

function loadClass($class)
{
	$pattern='/[A-Za-z0-9\_]+(\_(model|view|controller|inc))/';
	$class=strtolower($class);
	preg_match($pattern,$class,$type_match);
	
	switch($type_match[2])
	{
		case "model":
		$file=site_root.'/../models/'.$class.'.php';
		if(is_readable($file))
		require_once $file;
		else
		echo " The file:".$file." does not exist on this server";
		break;
		
		case "view":
		$file=site_root.'/../views/'.$class.'.php';
		if(is_readable($file))
		require_once $file;
		else
		echo " The file:".$file." does not exist on this server";
		break;
				
		case "controller":
		$file=site_root.'/../controllers/'.$class.'.php';
		if(is_readable($file))
		require_once $file;
		else
		echo " The file:".$file." does not exist on this server";

		break;
		
		case "inc":
		$file=site_root.'/../includes/'.$class.'.php';
		if(is_readable($file))
		require_once $file;
		else
		echo " The file:".$file." does not exist on this server";
		break;
		
		default:
		echo " The file:".$file." does not exist on this server";
		
	}
	
}

spl_autoload_register('loadClass');
?><commit_msg>changed "includes" folder to "plugins"<commit_after><?php
define("server_root",$_SERVER["DOCUMENT_ROOT"].'/..');
define("site_root",server_root);

function loadClass($class)
{
	$pattern='/[A-Za-z0-9\_]+(\_(model|view|controller|inc))/';
	$class=strtolower($class);
	preg_match($pattern,$class,$type_match);
	
	switch($type_match[2])
	{
		case "model":
		$file=site_root.'/../models/'.$class.'.php';
		if(is_readable($file))
		require_once $file;
		else
		echo " The file:".$file." does not exist on this server";
		break;
		
		case "view":
		$file=site_root.'/../views/'.$class.'.php';
		if(is_readable($file))
		require_once $file;
		else
		echo " The file:".$file." does not exist on this server";
		break;
				
		case "controller":
		$file=site_root.'/../controllers/'.$class.'.php';
		if(is_readable($file))
		require_once $file;
		else
		echo " The file:".$file." does not exist on this server";

		break;
		
		case "plugin":
		$file=site_root.'/../plugins/'.$class.'.php';
		if(is_readable($file))
		require_once $file;
		else
		echo " The file:".$file." does not exist on this server";
		break;
		
		default:
		echo " The file:".$file." does not exist on this server";
		
	}
	
}

spl_autoload_register('loadClass');
?>
{'fraction_non_alphanumeric': 0.20057779612051177, 'fraction_numerical': 0.0024762690879075525, 'mean_word_length': 3.91683569979716, 'pattern_counts': {'":': 8, '<': 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': '7361510', 'n_tokens_mistral': 989, 'n_tokens_neox': 882, 'n_words': 180}