<commit_before><commit_msg>added example job<commit_after><?php
	/*
		basic example file. logs data to php2console, but should give you an idea on how the job script should tell the job scheduler server that it's done.
	*/
	require('../../../../Downloads/PHP-to-Console-master/php/php2console.php'); //https://github.com/keverw/PHP-to-Console
	
	require('../../../../Documents/projects/GitHub/jobScheduler/callback/php/jobScheduler.callback.php');
	
	$jobSchedulerHost = 'http://localhost:5188/';
	
	$jobSchedulerCB = new jobScheduler($jobSchedulerHost);
	
	$php_console = new php_console('localhost', '5088');
	$php_console->output('Got a request!!!');
	
	// sleep for 10 seconds - just to simulate doing somthing
	sleep(10);
	
	//tell the job scheduler that we're done.
	if ($jobSchedulerCB->done($_POST['jobID']))
	{
		$php_console->output('Unlocked!');
	}
	else
	{
		$php_console->output('Failed unlocking...');
	}
?>
{'fraction_non_alphanumeric': 0.1737242128121607, 'fraction_numerical': 0.01520086862106406, 'mean_word_length': 4.038251366120218, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2446195', 'n_tokens_mistral': 322, 'n_tokens_neox': 291, 'n_words': 68}