<commit_before>(function() {
    if (window.ksRunnerInit) return;

    var appCdnRoot = "./";
    var simCdnRoot = "./";

    var scripts = [
        "bluebird.min.js",
        "typescript.js",
        "blockly/blockly_compressed.js",
        "blockly/blocks_compressed.js",
        "blockly/msg/js/en.js",
        "hexinfo.js",
        "kindlib.js",
        "kindblocks.js",
        "kindsim.js",
        "kindrunner.js"
    ].map(function(s) { return appCdnRoot + s; })

    if (typeof jQuery == "undefined")
        scripts.unshift(appCdnRoot + "jquery.js")

    var ksCallbacks = []

    window.ksRunnerReady = function (f) {
        if (ksCallbacks == null) f()
        else ksCallbacks.push(f)
    }

    window.ksRunnerWhenLoaded = function() {
        ks.runner.initCallbacks = ksCallbacks
        ksCallbacks.push(function() {
            ksCallbacks = null
        })
        ks.runner.init({
            appCdnRoot: appCdnRoot,
            simCdnRoot: simCdnRoot,
        })
    }

    scripts.forEach(function(src) {
        let script = document.createElement('script');
        script.src = src;
        script.async = false;
        document.head.appendChild(script);
    })

} ())<commit_msg>more background compat javascript issues<commit_after>(function() {
    if (window.ksRunnerInit) return;

    var appCdnRoot = "./";
    var simCdnRoot = "./";

    var scripts = [
        "bluebird.min.js",
        "typescript.js",
        "blockly/blockly_compressed.js",
        "blockly/blocks_compressed.js",
        "blockly/msg/js/en.js",
        "hexinfo.js",
        "kindlib.js",
        "kindblocks.js",
        "kindsim.js",
        "kindrunner.js"
    ].map(function(s) { return appCdnRoot + s; })

    if (typeof jQuery == "undefined")
        scripts.unshift(appCdnRoot + "jquery.js")

    var ksCallbacks = []

    window.ksRunnerReady = function (f) {
        if (ksCallbacks == null) f()
        else ksCallbacks.push(f)
    }

    window.ksRunnerWhenLoaded = function() {
        ks.runner.initCallbacks = ksCallbacks
        ksCallbacks.push(function() {
            ksCallbacks = null
        })
        ks.runner.init({
            appCdnRoot: appCdnRoot,
            simCdnRoot: simCdnRoot,
        })
    }

    scripts.forEach(function(src) {
        var script = document.createElement('script');
        script.src = src;
        script.async = false;
        document.head.appendChild(script);
    })

} ())
{'fraction_non_alphanumeric': 0.1367171510437986, 'fraction_numerical': 0.0, 'mean_word_length': 2.006150061500615, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1168179', 'n_tokens_mistral': 797, 'n_tokens_neox': 772, 'n_words': 128}