<commit_before><?php

$baseDir = __DIR__ . '/../';
if (file_exists($baseDir . $_SERVER['SCRIPT_NAME'])) {
    return false;
}

require $baseDir . 'index.html';<commit_msg>Fixed: Content type for JSON.<commit_after><?php

$baseDir = __DIR__ . '/../';
if (file_exists($baseDir . $_SERVER['SCRIPT_NAME'])) {
    // Workaround for PHP web server not recognizing JSON mime type;
    if (substr($_SERVER['SCRIPT_NAME'], -4, 4) === 'json') {
        header('Content-Type: application/json');
        readfile($baseDir . $_SERVER['SCRIPT_NAME']);
        exit(0);
    } else {
        return false;
    }
}

require $baseDir . 'index.html';
{'fraction_non_alphanumeric': 0.185126582278481, 'fraction_numerical': 0.004746835443037975, 'mean_word_length': 3.335616438356164, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4349791', 'n_tokens_mistral': 213, 'n_tokens_neox': 208, 'n_words': 46}