<commit_before><?php
# this gets included through php.ini's  auto_prepend_file directive

function __mumstudents_shutdown_handler() {
	$last_error = error_get_last();
	if ($last_error['type'] === E_ERROR || $last_error['type'] === E_PARSE ) {
		// show the custom error page
		include("/var/www/error/500.php");
	}
}

register_shutdown_function("__mumstudents_shutdown_handler");

?><commit_msg>made 500 error show up for everything except E_WARNING and E_NOTICE<commit_after><?php
# this gets included through php.ini's  auto_prepend_file directive

function __mumstudents_shutdown_handler() {
	$last_error = error_get_last();
	if ($last_error['type'] !== E_WARNING && $last_error['type'] !== E_NOTICE ) {
		// show the custom error page
		include("/var/www/error/500.php");
	}
}

register_shutdown_function("__mumstudents_shutdown_handler");

?>
{'fraction_non_alphanumeric': 0.13695395513577333, 'fraction_numerical': 0.010625737898465172, 'mean_word_length': 6.126050420168068, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6913479', 'n_tokens_mistral': 301, 'n_tokens_neox': 285, 'n_words': 58}