<commit_before><?php
echo '<!DOCTYPE html>
	<html>
	<head>
	<title>Raygun4WP test error</title>
	</head>
	<body>';

if ($_GET['rg4wp_status'] && function_exists('curl_version') && $_GET['rg4wp_apikey']) {
  require_once dirname(__FILE__).'/external/raygun4php/src/Raygun4php/RaygunClient.php';
  $client = new Raygun4php\RaygunClient($_GET['rg4wp_apikey'], false, true);

  if ($_GET['rg4wp_usertracking']) {
    $client->SetUser($_GET['user']);
  }

  $result = trim($client->SendError(404, 'Congratulations, Raygun4WP is working correctly!', '0', '0'));
  if ($result == 'HTTP/1.1 403 Forbidden') {
  	echo 'The Raygun service did not accept your API key, please enter there is a valid API key in the field for an application you have created, then hit \'Save Changes.\'';
  }
	else if ($result == 'HTTP/1.1 202 Accepted') {
		echo 'Raygun appears to have accepted the test issue, now check your <a href="http://app.raygun.com" target="_blank">dashboard</a>!';
	}
} else {
	echo 'Something was missing! Please check that the status has a green circle beside it, your API key is pasted in and you have saved the settings';
}

echo '<br /><a href="javascript:window.history.back();">Back</a></body></html>';
?><commit_msg>Test error language updated<commit_after><?php
echo '<!DOCTYPE html>
	<html>
	<head>
	<title>Raygun4WP test error</title>
	</head>
	<body>';

if ($_GET['rg4wp_status'] && function_exists('curl_version') && $_GET['rg4wp_apikey']) {
  require_once dirname(__FILE__).'/external/raygun4php/src/Raygun4php/RaygunClient.php';
  $client = new Raygun4php\RaygunClient($_GET['rg4wp_apikey'], false, true);

  if ($_GET['rg4wp_usertracking']) {
    $client->SetUser($_GET['user']);
  }

  $result = trim($client->SendError(404, 'Congratulations, Raygun4WP is working correctly!', '0', '0'));
  if ($result == 'HTTP/1.1 403 Forbidden') {
  	echo 'The Raygun service did not accept your API key, please enter there is a valid API key in the field for an application you have created, then hit \'Save Changes.\'';
  }
	else if ($result == 'HTTP/1.1 202 Accepted') {
		echo 'Raygun appears to have accepted the test issue, now check your <a href="http://app.raygun.com" target="_blank">dashboard</a>!';
	} else {
  	echo 'Woops, the errors status was not reported. Check your <a href="http://app.raygun.com" target="_blank">dashboard</a> to see if your error has been reported. If the error doesn\'t appear make sure you have entered a valid API key for an application you have created then try again.';
	}
} else {
	echo 'Something is missing! Please check that you have enabled PHP error tracking, the API key is pasted in and you have saved the settings.';
}

echo '<br /><a href="javascript:window.history.back();">Back</a></body></html>';
?>
{'fraction_non_alphanumeric': 0.15613652868554828, 'fraction_numerical': 0.017429193899782137, 'mean_word_length': 4.849256900212314, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 39, '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': '2530268', 'n_tokens_mistral': 919, 'n_tokens_neox': 889, 'n_words': 292}