<commit_before><?php
function syscall ($cmd, $cwd) {
	$descriptorspec = array(
		1 => array('pipe', 'w') // stdout is a pipe that the child will write to
	);
	$resource = proc_open($cmd, $descriptorspec, $pipes, $cwd);
	if (is_resource($resource)) {
		$output = stream_get_contents($pipes[1]);
		fclose($pipes[1]);
		proc_close($resource);
		return $output; 
	}
}
function info($message){
	$date = date('d.m.Y h:i:s'); 
	error_log($date . ' - INFO - ' . $message);
}
function error($message){
	$date = date('d.m.Y h:i:s'); 
	error_log($date . ' - ERROR - ' . $message);
	exit($message);
}
if (!empty($_POST['payload'])) {
	
	try {
		// read the global configuration
		$global_config = json_decode(file_get_contents('config/global.json'));
	} catch (Exception $e) {<commit_msg>Updating to refer to config.json<commit_after><?php
function syscall ($cmd, $cwd) {
	$descriptorspec = array(
		1 => array('pipe', 'w') // stdout is a pipe that the child will write to
	);
	$resource = proc_open($cmd, $descriptorspec, $pipes, $cwd);
	if (is_resource($resource)) {
		$output = stream_get_contents($pipes[1]);
		fclose($pipes[1]);
		proc_close($resource);
		return $output; 
	}
}
function info($message){
	$date = date('d.m.Y h:i:s'); 
	error_log($date . ' - INFO - ' . $message);
}
function error($message){
	$date = date('d.m.Y h:i:s'); 
	error_log($date . ' - ERROR - ' . $message);
	exit($message);
}
if (!empty($_POST['payload'])) {
	
	try {
		// read the global configuration
		$global_config = json_decode(file_get_contents('config.json'));
	} catch (Exception $e) {
{'fraction_non_alphanumeric': 0.19820971867007672, 'fraction_numerical': 0.0038363171355498722, 'mean_word_length': 4.41522491349481, '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': '2413647', 'n_tokens_mistral': 596, 'n_tokens_neox': 573, 'n_words': 128}