<commit_before><?php namespace core;
/*
 * config - setup system wide settings
 *
 * @author <NAME> - <EMAIL> - http://www.daveismyname.com
 * @version 2.1
 * @date June 27, 2014
 */
 
use \helpers\session as Session,
\core\logger as Logger;
 
class Config {

	public function __construct(){

		//turn on output buffering
		ob_start();

		//turn on custom error handling
		set_exception_handler('Logger::exception_handler');
		set_error_handler('Logger::error_handler');

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

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

		//database details ONLY NEEDED IF USING A DATABASE
		define('DB_TYPE','mysql');
		define('DB_HOST','localhost');
		define('DB_NAME','dbname');
		define('DB_USER','username');
		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');

		//start sessions
		Session::init();

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

}<commit_msg>Updated order of calls<commit_after><?php namespace core;
/*
 * config - setup system wide settings
 *
 * @author <NAME> - <EMAIL> - http://www.daveismyname.com
 * @version 2.1
 * @date June 27, 2014
 */
class Config {

	public function __construct(){

		//turn on output buffering
		ob_start();

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

		//database details ONLY NEEDED IF USING A DATABASE
		define('DB_TYPE','mysql');
		define('DB_HOST','localhost');
		define('DB_NAME','dbname');
		define('DB_USER','username');
		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');
		
	}

}
{'fraction_non_alphanumeric': 0.16226071103008205, 'fraction_numerical': 0.009115770282588878, 'mean_word_length': 4.289156626506024, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '4510271', 'n_tokens_mistral': 775, 'n_tokens_neox': 682, 'n_words': 168}