<commit_before><?
require '../gitblog.php';
ini_set('html_errors', '0');

GitBlog::verifyConfig();

if (!isset($_SERVER['HTTP_X_GB_SHARED_SECRET']) || $_SERVER['HTTP_X_GB_SHARED_SECRET'] !== gb::$secret) {
	header('Status: 401 Unauthorized');
	exit('error: 401 Unauthorized');
}
try {
	GBRebuilder::rebuild(isset($_REQUEST['force-full-rebuild']));
}
catch (Exception $e) {
	echo 'error:';
	throw $e;
}
?><commit_msg>catching php errors<commit_after><?
require '../gitblog.php';
ini_set('html_errors', '0');

set_error_handler(array('gb', 'catch_error'), E_ALL & ~E_NOTICE);
GitBlog::verifyConfig();

if (!isset($_SERVER['HTTP_X_GB_SHARED_SECRET']) || $_SERVER['HTTP_X_GB_SHARED_SECRET'] !== gb::$secret) {
	header('Status: 401 Unauthorized');
	exit('error: 401 Unauthorized');
}
try {
	GBRebuilder::rebuild(isset($_REQUEST['force-full-rebuild']));
}
catch (Exception $e) {
	echo 'error:';
	throw $e;
}
?>
{'fraction_non_alphanumeric': 0.2157079646017699, 'fraction_numerical': 0.015486725663716814, 'mean_word_length': 8.05, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1416843', 'n_tokens_mistral': 359, 'n_tokens_neox': 345, 'n_words': 56}