<commit_before><?php
	// Tired of chasing typos and finding them after a commit. 
	// Run this from cmdline in basedir and quickly see if we've 
	// got any parse errors in our application files.


	error_reporting(E_ERROR | E_WARNING | E_PARSE );
	ini_set('display_errors', '1');
	ini_set('log_errors','0');

	include 'boot.php';
	
	$a = new App();

	echo "Directory: mod\n";
	$files = glob('mod/*.php');
	foreach($files as $file) {
		echo $file . "\n";
		include_once($file);
	}

	echo "Directory: include\n";
	$files = glob('include/*.php');
	foreach($files as $file) {
		echo $file . "\n";
		include_once($file);
	}

	echo "Directory: addon\n";
	$dirs = glob('addon/*');

	foreach($dirs as $dir) {
		$addon = basename($dir);
		$files = glob($dir . '/' . $addon . '.php');
		foreach($files as $file) {
			echo $file . "\n";
			include_once($file);
		}
	}<commit_msg>Update util/typo.php to check in to 'object' folder<commit_after><?php
	// Tired of chasing typos and finding them after a commit. 
	// Run this from cmdline in basedir and quickly see if we've 
	// got any parse errors in our application files.


	error_reporting(E_ERROR | E_WARNING | E_PARSE );
	ini_set('display_errors', '1');
	ini_set('log_errors','0');

	include 'boot.php';
	
	$a = new App();

	echo "Directory: mod\n";
	$files = glob('mod/*.php');
	foreach($files as $file) {
		echo $file . "\n";
		include_once($file);
	}

	echo "Directory: include\n";
	$files = glob('include/*.php');
	foreach($files as $file) {
		echo $file . "\n";
		include_once($file);
	}
    
    echo "Directory: object\n";
	$files = glob('object/*.php');
	foreach($files as $file) {
		echo $file . "\n";
		include_once($file);
	}

	echo "Directory: addon\n";
	$dirs = glob('addon/*');

	foreach($dirs as $dir) {
		$addon = basename($dir);
		$files = glob($dir . '/' . $addon . '.php');
		foreach($files as $file) {
			echo $file . "\n";
			include_once($file);
		}
	}
{'fraction_non_alphanumeric': 0.1890625, 'fraction_numerical': 0.0020833333333333333, 'mean_word_length': 3.4364896073903, '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': '600309', 'n_tokens_mistral': 753, 'n_tokens_neox': 699, 'n_words': 191}