<commit_before><?php
namespace TSAState;

require "../db.class.php";

header('Content-Type: application/json');

$db = new Db();
$numqualifying = $db->query('SELECT value FROM settings WHERE setting=0');
$teams = $db->query('SELECT * FROM scores ORDER BY (program_score+driver_score) DESC, program_score DESC LIMIT ?', 'i', $numqualifying[0]['value']);
for ($i = 0; $i < count($teams); $i++) {
    if ($teams[$i]['program_score'] === null) {
        $teams[$i]['program_score'] = '';
    }
    if ($teams[$i]['driver_score'] === null) {
        $teams[$i]['driver_score'] = '';
    }
}
echo json_encode($teams);<commit_msg>Scrubbed unneeded data from data.php<commit_after><?php
namespace TSAState;

require "../db.class.php";

header('Content-Type: application/json');

$db = new Db();
$numqualifying = $db->query('SELECT value FROM settings WHERE setting=0');
$teams = $db->query('SELECT vin, program_score, driver_score FROM scores ORDER BY (program_score+driver_score) DESC, program_score DESC LIMIT ?', 'i', $numqualifying[0]['value']);
for ($i = 0; $i < count($teams); $i++) {
    if ($teams[$i]['program_score'] === null) {
        $teams[$i]['program_score'] = '';
    }
    if ($teams[$i]['driver_score'] === null) {
        $teams[$i]['driver_score'] = '';
    }
}
echo json_encode($teams);
{'fraction_non_alphanumeric': 0.2153846153846154, 'fraction_numerical': 0.004615384615384616, 'mean_word_length': 4.808035714285714, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '717857', 'n_tokens_mistral': 447, 'n_tokens_neox': 443, 'n_words': 98}