<commit_before><?
require_once( 'class.AnimalCaptcha.php' );

// Start or acquire a session if needed
if (!isset($_SESSION))
{
	session_start ();
	header("Cache-control: private");
}

// Load the class
$ac = new AnimalCaptcha;

// Pick an action
if (isset($_GET['generate_captcha']))
	print implode( ',', $ac->generateCaptcha() );
else if (isset($_GET['get_image']))
{
	Header("Content-type: image/jpeg");
	print $ac->getImage($_GET['get_image']);
}
?><commit_msg>Reworked how captcha was generated and handled<commit_after><?
require_once( 'class.AnimalCaptcha.php' );

// Start or acquire a session if needed
if (!isset($_SESSION))
{
	session_start ();
	header("Cache-control: private");
}

// Load the class
$ac = new AnimalCaptcha;
// Pick an action
if (isset($_GET['generate_captcha']))
	print implode( ',', $ac->generateCaptcha() );
else if (isset($_GET['get_image']))
{
	Header("Content-type: image/jpeg");
	print $ac->getImage($_GET['get_image']);
}
?>
{'fraction_non_alphanumeric': 0.19166666666666668, 'fraction_numerical': 0.0, 'mean_word_length': 5.673611111111111, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1911314', 'n_tokens_mistral': 324, 'n_tokens_neox': 318, 'n_words': 78}