<commit_before><?PHP

include("tba_gd_lib.php");
error_reporting(E_ALL ^ E_NOTICE);

function sanatizeGet($value) {
	$output = htmlentities(stripslashes($value));
	return $output;
}

function eventSort($event_a, $event_b) {
    $a_start = strtotime($event_a["start_time"]);
    $b_start = strtotime($event_b["start_time"]);
    if ($a_start == $b_start) {
        return 0;
    }
    return ($a_start < $b_start) ? -1 : 1;
}

function getTeamDetails($teamnumber, $year) {
    $json = file_get_contents("http://www.thebluealliance.com/api/v1/team/details?events=1&team=frc".$teamnumber."&year=".$year);
    return json_decode($json, TRUE);
}

if ($_REQUEST['debug'] == 1) {
	$start_time = microtime(TRUE);<commit_msg>Fix sig image errors<commit_after><?PHP

include("tba_gd_lib.php");
error_reporting(E_ALL ^ E_NOTICE ^ E_STRICT);

function sanatizeGet($value) {
	$output = htmlentities(stripslashes($value));
	return $output;
}

function eventSort($event_a, $event_b) {
    $a_start = strtotime($event_a["start_time"]);
    $b_start = strtotime($event_b["start_time"]);
    if ($a_start == $b_start) {
        return 0;
    }
    return ($a_start < $b_start) ? -1 : 1;
}

function getTeamDetails($teamnumber, $year) {
    $json = file_get_contents("http://www.thebluealliance.com/api/v1/team/details?events=1&team=frc".$teamnumber."&year=".$year);
    return json_decode($json, TRUE);
}

if ($_REQUEST['debug'] == 1) {
	$start_time = microtime(TRUE);
{'fraction_non_alphanumeric': 0.1813793103448276, 'fraction_numerical': 0.008275862068965517, 'mean_word_length': 5.0966386554621845, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5505492', 'n_tokens_mistral': 559, 'n_tokens_neox': 554, 'n_words': 83}