<commit_before><?php

class ThirdParty {

	public static function init() {
		spl_autoload_register(array(self, '::autoload'), true, true);
	}

	public static function autoload($class) {
		$class_array = explode('\\', $class);
		if (count($class_array)>1) {
			if ($class_array[0] == 'ThirdParty') {
				$file_load = $this->config->get('path.third_party').'/'.$class_array[1].'/'.$class_array[2].'.php';
				if (file_exists($file_load))
					include_once $file_load;
			}
		}
	}
}<commit_msg>Fixed autoload problem<commit_after><?php

class ThirdParty {

	public static function init() {
		spl_autoload_register(array(self, '::autoload'), true, true);
	}

	public static function autoload($class) {

		$class_array = explode('\\', $class);
		if (count($class_array)>1) {
			if ($class_array[0] == 'ThirdParty') {
				$file_load = Config::get('path.third_party').'/'.$class_array[1].'/'.$class_array[2].'.php';
				if (file_exists($file_load)) {
					$namespace = "<?php\nnamespace ThirdParty\\$class_array[1];\n?>\n";
					$thirdpartyfile = fopen($file_load, "r");
					$thirdpartyclass = fread($thirdpartyfile,filesize($file_load));
					fclose($thirdpartyfile);
					eval("?>$namespace.$thirdpartyclass");

					//include_once $file_load;
				}
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.19698173153296267, 'fraction_numerical': 0.007148530579825258, 'mean_word_length': 4.454545454545454, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 9, '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': '6865903', 'n_tokens_mistral': 523, 'n_tokens_neox': 451, 'n_words': 70}