<commit_before><?php
function load($dir){
	$handle = opendir($dir);
	while(false !== ($resource = readdir($handle))) {
		if($resource!='.' && $resource!='..'){
			if(is_dir($dir.$resource))
				load($dir.$resource.'/');
			else
			 	include($dir.$resource);
		}
	}
	closedir($handle);
}
function loadApp($dir){
	load($dir.'/app/core/');
	load($dir.'/app/controllers/');
	load($dir.'/app/views/widgets/');
}
function loadAoiSora(){
	include(PACKAGEPATH.'config.php');
	include(PACKAGEPATH.'lib/Route.php');
	include(PACKAGEPATH.'lib/Debug.php');
	load(PACKAGEPATH.'lib/helpers/');	
	load(PACKAGEPATH.'lib/core/');
	load(PACKAGEPATH.'lib/filters/');	
	load(PACKAGEPATH.'lib/controllers/');
	include(PACKAGEPATH.'AoiSoraApp.php');

	global $loadviewengine;
	
	if($loadviewengine)
		load(PACKAGEPATH.'lib/viewengine/'.VIEWENGINE.'/');//.VIEWENGINE.'.php');<commit_msg>Nothing changed<commit_after><?php
function load($dir){
	$handle = opendir($dir);
	while(false !== ($resource = readdir($handle))) {
		if($resource!='.' && $resource!='..'){
			if(is_dir($dir.$resource))
				load($dir.$resource.'/');
			else
			 	include($dir.$resource);
		}
	}
	closedir($handle);
}
function loadApp($dir){
	load($dir.'/app/core/');
//	load($dir.'/app/core/wordpress/');	
	load($dir.'/app/controllers/');
	load($dir.'/app/views/widgets/');
}
function loadAoiSora(){
	include(PACKAGEPATH.'config.php');
	include(PACKAGEPATH.'lib/Route.php');
	include(PACKAGEPATH.'lib/Debug.php');
	load(PACKAGEPATH.'lib/helpers/');	
	load(PACKAGEPATH.'lib/core/');
	load(PACKAGEPATH.'lib/filters/');	
	load(PACKAGEPATH.'lib/controllers/');
	include(PACKAGEPATH.'AoiSoraApp.php');

	global $loadviewengine;
	
	if($loadviewengine)
		load(PACKAGEPATH.'lib/viewengine/'.VIEWENGINE.'/');//.VIEWENGINE.'.php');
{'fraction_non_alphanumeric': 0.23798756359525156, 'fraction_numerical': 0.0, 'mean_word_length': 5.103448275862069, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6751663', 'n_tokens_mistral': 695, 'n_tokens_neox': 657, 'n_words': 69}