<commit_before><?php
header("Content-type: application/json");

$url = 'https://api.github.com/repos/henriyli/issuetest/issues';
$session = curl_init($url);

$post_body = file_get_contents('php://input');

require_once('.token');

curl_setopt($session, CURLOPT_USERPWD, $suggestio_token);
curl_setopt($session, CURLOPT_USERAGENT, "https://github.com/NatLibFi/Finto-suggestio");
curl_setopt($session, CURLOPT_HTTPHEADER, array("Content-type: application/json", "Accept: application/vnd.github.v3+json"));
curl_setopt($session, CURLOPT_TIMEOUT, 15);
curl_setopt($session, CURLOPT_POST, 1);
curl_setopt($session, CURLOPT_POSTFIELDS, $post_body);
curl_setopt($session, CURLOPT_RETURNTRANSFER, 0);

$response = curl_exec($session);
curl_close($session);
<commit_msg>updating the post token system too<commit_after><?php
header("Content-type: application/json");

$url = 'https://api.github.com/repos/Finto-ehdotus/YSE/issues';
$session = curl_init($url);

$post_body = file_get_contents('php://input');

require_once('../../.token');

curl_setopt($session, CURLOPT_USERPWD, $suggestio_token);
curl_setopt($session, CURLOPT_USERAGENT, "https://github.com/NatLibFi/Finto-suggestio");
curl_setopt($session, CURLOPT_HTTPHEADER, array("Content-type: application/json", "Accept: application/vnd.github.v3+json"));
curl_setopt($session, CURLOPT_TIMEOUT, 15);
curl_setopt($session, CURLOPT_POST, 1);
curl_setopt($session, CURLOPT_POSTFIELDS, $post_body);
curl_setopt($session, CURLOPT_RETURNTRANSFER, 0);

$response = curl_exec($session);
curl_close($session);

{'fraction_non_alphanumeric': 0.1686046511627907, 'fraction_numerical': 0.006459948320413436, 'mean_word_length': 9.124183006535947, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '1383371', 'n_tokens_mistral': 595, 'n_tokens_neox': 537, 'n_words': 79}