<commit_before>/*jslint strict: false, plusplus: false, evil: true */
/*global document: false, location: false */

(function () {
    var args = location.search.substring(1),
        parts = args.split('&'),
        dohPath = location.href,
        pathRegExp = /\.\.|:|\/\//,
        html = '',
        i, part;

    args = {};

    //Build up the args from querystring parts.
    for (i = 0; (part = parts[i]); i++) {
        part = part.split('=');
        args[decodeURIComponent(part[0])] = decodeURIComponent(part[1]);
    }

    //Set up dohPath
    i = dohPath.indexOf('/tests/');
    dohPath = dohPath.substring(0, i + 1) + 'tests/doh/';

    function write(path) {
        html += '<' + 'script src="' + path + '"></' + 'script>';
    }

    //Only allow impl and config args that do not have relative paths<commit_msg>charset<commit_after>/*jslint strict: false, plusplus: false, evil: true */
/*global document: false, location: false */

(function () {
    var args = location.search.substring(1),
        parts = args.split('&'),
        dohPath = location.href,
        pathRegExp = /\.\.|:|\/\//,
        html = '',
        i, part;

    args = {};

    //Build up the args from querystring parts.
    for (i = 0; (part = parts[i]); i++) {
        part = part.split('=');
        args[decodeURIComponent(part[0])] = decodeURIComponent(part[1]);
    }

    //Set up dohPath
    i = dohPath.indexOf('/tests/');
    dohPath = dohPath.substring(0, i + 1) + 'tests/doh/';

    function write(path) {
        html += '<' + 'script src="' + path + '" charset="UTF-8"></' + 'script>';
    }

    //Only allow impl and config args that do not have relative paths
{'fraction_non_alphanumeric': 0.18682634730538922, 'fraction_numerical': 0.007784431137724551, 'mean_word_length': 2.3353293413173652, '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': '4477173', 'n_tokens_mistral': 558, 'n_tokens_neox': 541, 'n_words': 142}