<commit_before><commit_msg>Adding php file for new task entry system<commit_after><?php
	require_once 'config.php';
	require_once 'SupOAuthClient.php';
	require_once 'AuthJiraCert.php';
	require "predis/autoload.php";

	$redis = new Predis\Client();

	$obj = new AuthJiraCert();
	$client = new SupOAuthClient($obj->consumerKey, $obj->privateKeyFile, $_COOKIE[$COOKIE_PREFIX."_jira_oauth_token"], $_COOKIE[$COOKIE_PREFIX."_jira_oauth_secret"]);
	$url = $obj->jiraBaseUrl . 'rest/api/2/myself';
	$myself = $client->performRequest($url, array("expand"=>"groups"), "GET");

	if ($_SERVER['REQUEST_METHOD'] == "POST")
	{
		$data = json_decode(file_get_contents('php://input'), true);
		foreach ($data as $dkey => $dvalue)
		{
			$redis->hSet($myself["key"].'_recentTaskMetadata', $dkey, $dvalue);
		}
	}
	else
	{
		$data = $redis->hGetAll($myself["key"].'_recentTaskMetadata');
		echo json_encode($data);
	}
	
?>

{'fraction_non_alphanumeric': 0.19162995594713655, 'fraction_numerical': 0.0011013215859030838, 'mean_word_length': 6.046511627906977, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 12, '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': '4277259', 'n_tokens_mistral': 357, 'n_tokens_neox': 340, 'n_words': 54}