<commit_before><?php

//Create curl post request to hit the Jenkins webhook
$secrets = json_decode(file_get_contents($_SERVER['HOME'] . '/files/private/secrets.json'));

$curl = curl_init($secrets->jenkins_url);

//Setup header with authentication
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json',
    'Authorization: Basic '. base64_encode("$secrets->username:$secrets->api_token"),
));

//Declare request as a post and setup the fields
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, array(
  'token' => $secrets->token,
));

//Execute the request (could store response if necessary)
curl_exec($curl);<commit_msg>Added debugging for terminus based on curl response<commit_after><?php

//Create curl post request to hit the Jenkins webhook
$secrets = json_decode(file_get_contents($_SERVER['HOME'] . '/files/private/secrets.json'));

$curl = curl_init($secrets->jenkins_url);

//Setup header with authentication
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json',
    'Authorization: Basic '. base64_encode("$secrets->username:$secrets->api_token"),
));

//Declare request as a post and setup the fields
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, array(
  'token' => $secrets->token,
));

//Execute the request 
$response = curl_exec($curl);

if($response){
	echo "Build Successful";
}
else{
	echo "Build Failed";
}
{'fraction_non_alphanumeric': 0.14523974982626825, 'fraction_numerical': 0.002779708130646282, 'mean_word_length': 6.309644670050761, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4658820', 'n_tokens_mistral': 497, 'n_tokens_neox': 450, 'n_words': 114}