<commit_before><?php
	/**
	 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
	 * @copyright (c) Digiflex Development Team
	 * @version 1.0
	 * @author <NAME> <<EMAIL>>
	 * @since Version 1.0
	 */

class PPI_Base {
	
	/**
	 * Class Name Instances
	 * @var object $_instances
	 */
	protected static $_instances = array();

	function __construct($p_aArguments = "") {
	}

	/**
	 * Register the autoload function
	 *
	 */
	public static function registerAutoload() {
		spl_autoload_register(array('PPI_Base', 'autoload'));
	}

	/**
	 * Unregister the autoload function
	 *
	 */
	public static function unregisterAutoload() {
		spl_autoload_unregister(array('PPI_Base', 'autoload'));
	}

	/**
	 * The autoload function, set by spl_autoload_register
	 *
	 * @param string $className The class name
	 */
	static function autoload($className) {
		$sPath = '';
		if(strpos($className, 'PPI_') !== false) {
			$className = substr($className, 4, strlen($className));
			$sPath = SYSTEMPATH;
		} elseif(strpos($className, 'APP_') !==  false) {
			$sPath = APPFOLDER;
			$className = substr($className, 4, strlen($className));
		}
		$file = ($sPath . str_replace('_', DS, $className) . '.php');
		if(file_exists($file)) {
			require_once ($file);
		}
	}
	
	/**
	 * Set the error nad exception handlers
	 *
	 * @param string $p_sErrorHandler The error handler function name
	 * @param string $p_sExceptionHandler The exception handler function name
	 */
	static function setErrorHandlers($p_sErrorHandler = null, $p_sExceptionHandler = null) {
		if($p_sErrorHandler !== null) {
			set_error_handler($p_sErrorHandler, E_ALL);
		}
		if($p_sExceptionHandler !== null) {
			set_exception_handler($p_sExceptionHandler);
		}
	}

}<commit_msg>Removing autoload functionality from base as has moved to PPI_Autoload<commit_after><?php
	/**
	 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
	 * @copyright (c) Digiflex Development Team
	 * @version 1.0
	 * @author <NAME> <<EMAIL>>
	 * @since Version 1.0
	 */

class PPI_Base {
	
	/**
	 * Class Name Instances
	 * @var object $_instances
	 */
	protected static $_instances = array();

	function __construct($p_aArguments = "") {
	}
	
	/**
	 * Set the error nad exception handlers
	 *
	 * @param string $p_sErrorHandler The error handler function name
	 * @param string $p_sExceptionHandler The exception handler function name
	 */
	static function setErrorHandlers($p_sErrorHandler = null, $p_sExceptionHandler = null) {
		if($p_sErrorHandler !== null) {
			set_error_handler($p_sErrorHandler, E_ALL);
		}
		if($p_sExceptionHandler !== null) {
			set_exception_handler($p_sExceptionHandler);
		}
	}

}
{'fraction_non_alphanumeric': 0.13561847988077497, 'fraction_numerical': 0.0037257824143070045, 'mean_word_length': 4.066037735849057, 'pattern_counts': {'":': 0, '<': 11, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1603657', 'n_tokens_mistral': 952, 'n_tokens_neox': 854, 'n_words': 208}