<commit_before><?php

include "common.php.inc";
$dbh = getDBHandle();

if (isset($_GET['problem'])) {
    $codes = getProblemCodes();
    $negative = FALSE;
    if ($_GET['problem'][0] == "-") {
        $_GET['problem'] = substr($_GET['problem'], 1);
        $negative = TRUE;
    }
    if (isset($_GET['negative']))
        $negative = TRUE;
    if (array_search($_GET['problem'], array_keys($codes)) !== FALSE) {
        $code = $codes[$_GET['problem']];
        if ($negative)
            $code *= -1;
        $stm = $dbh->prepare('SELECT qa.qaid as qa_id, expname, ccd, band, problem, x, y, detail FROM qa JOIN files ON (files.fileid=qa.fileid) WHERE problem=' . $code . ' ORDER BY expname, ccd ASC');<commit_msg>fixed #57<commit_after><?php

include "common.php.inc";
$dbh = getDBHandle();

if (isset($_GET['problem'])) {
    $codes = getProblemCodes();
    $negative = FALSE;
    if ($_GET['problem'][0] == "-") {
        $_GET['problem'] = substr($_GET['problem'], 1);
        $negative = TRUE;
    }
    if (isset($_GET['false']))
        $negative = TRUE;
    if (array_search($_GET['problem'], array_keys($codes)) !== FALSE) {
        $code = $codes[$_GET['problem']];
        if ($negative)
            $code *= -1;
        $stm = $dbh->prepare('SELECT qa.qaid as qa_id, expname, ccd, band, problem, x, y, detail FROM qa JOIN files ON (files.fileid=qa.fileid) WHERE problem=' . $code . ' ORDER BY expname, ccd ASC');
{'fraction_non_alphanumeric': 0.20392431674842326, 'fraction_numerical': 0.005606166783461808, 'mean_word_length': 3.1271676300578033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2900116', 'n_tokens_mistral': 498, 'n_tokens_neox': 480, 'n_words': 116}