<commit_before><?php namespace core;

/*
 * config - an example for setting up system settings
 * When you are done editing, rename this file to 'config.php'
 *
 * @author <NAME> - <EMAIL> - http://www.daveismyname.com
 * @author <NAME> - <EMAIL>
 * @version 2.1
 * @date June 27, 2014
 */
class Config {

	public function __construct() {

		//turn on output buffering
		ob_start();

		//site address
		define('DIR', 'http://example.com/');

		//set default controller and method for legacy calls
		define('DEFAULT_CONTROLLER', 'welcome');
		define('DEFAULT_METHOD' , 'index');

		//set a default language
		define('LANGUAGE_CODE', 'en');

		//database details ONLY NEEDED IF USING A DATABASE
		define('DB_TYPE', 'mysql');
		define('DB_HOST', 'localhost');
		define('DB_NAME', 'dbname');
		define('DB_USER', 'root');
		define('DB_PASS', 'password');
		define('PREFIX', 'smvc_');

		//set prefix for sessions
		define('SESSION_PREFIX', 'smvc_');

		//optionall create a constant for the name of the site
		define('SITETITLE', 'V2.1');

		//turn on custom error handling
		set_exception_handler('core\logger::exception_handler');
		set_error_handler('core\logger::error_handler');

		//set timezone
		date_default_timezone_set('Europe/London');

		//start sessions
		\helpers\session::init();

		//set the default template
		\helpers\session::set('template', 'default');
	}

}
<commit_msg>added use alias for helpers session<commit_after><?php namespace core;

/*
 * config - an example for setting up system settings
 * When you are done editing, rename this file to 'config.php'
 *
 * @author <NAME> - <EMAIL> - http://www.daveis<EMAIL>
 * @author <NAME> - <EMAIL>
 * @version 2.1
 * @date June 27, 2014
 */
 
use helpers\session;
 
class Config {

	public function __construct() {

		//turn on output buffering
		ob_start();

		//site address
		define('DIR', 'http://example.com/');

		//set default controller and method for legacy calls
		define('DEFAULT_CONTROLLER', 'welcome');
		define('DEFAULT_METHOD' , 'index');

		//set a default language
		define('LANGUAGE_CODE', 'en');

		//database details ONLY NEEDED IF USING A DATABASE
		define('DB_TYPE', 'mysql');
		define('DB_HOST', 'localhost');
		define('DB_NAME', 'dbname');
		define('DB_USER', 'root');
		define('DB_PASS', 'password');
		define('PREFIX', 'smvc_');

		//set prefix for sessions
		define('SESSION_PREFIX', 'smvc_');

		//optionall create a constant for the name of the site
		define('SITETITLE', 'V2.1');

		//turn on custom error handling
		set_exception_handler('core\logger::exception_handler');
		set_error_handler('core\logger::error_handler');

		//set timezone
		date_default_timezone_set('Europe/London');

		//start sessions
		session::init();

		//set the default template
		session::set('template', 'default');
	}

}

{'fraction_non_alphanumeric': 0.15535714285714286, 'fraction_numerical': 0.007142857142857143, 'mean_word_length': 4.1300366300366305, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4197872', 'n_tokens_mistral': 988, 'n_tokens_neox': 883, 'n_words': 253}