<commit_before>var bCli = require("buster-cli");
var fs = require("fs");
var http = require("http");
var rampResources = require("ramp-resources");

// TODO: add test coverage (integration test?)
function configureGroup(group, extensions, defaultReporter) {
    group.extensions = extensions;
    group.on("load:framework", function (resourceSet) {
        // Test bed
        resourceSet.addResource({
            path: "/",
            file: __dirname + "/index.html"
        });

        // Wiring between framework and user test cases
        resourceSet.addResources([{
            file: require.resolve("buster-test/lib/reporters/runtime-throttler"),
            path: "/buster/runtime-throttler.js"
        }, {
            file: require.resolve("buster-test/lib/reporters/html"),
            path: "/buster/html-reporter.js"
        }, {
            file: require.resolve("buster-test/lib/reporters/html2"),
            path: "/buster/html-reporter2.js"
        }, {
            file: require.resolve("stack-filter/lib/stack-filter"),
            path: "/buster/stack-filter.js"
        }, {
            file: require.resolve("./browser-wiring"),
            path: "/buster/static-browser-wiring.js"
        }, {
            content: "this.bane = buster.bane;\n" +
                "this._ = buster._;\n" +
                "buster.defaultReporter = \"" + defaultReporter.replace(/\"/g, "\\\"") + "\";",
            path: "/buster/expose-modules.js"
        }, {
            content: "delete this.bane; delete this._;",
            path: "/buster/remove-modules.js"
        }, {
            path: "/buster/buster-0.7.x.js",
            combine: ["/buster/expose-modules.js",
                      "/buster/stack-filter.js",
                      "/buster/runtime-throttler.js",
                      "/buster/html-reporter.js",
                      "/buster/html-reporter2.js",
                      "/buster/static-browser-wiring.js",
                      "/buster/remove-modules.js"]
        }]);

        // Some neat CSS
        resourceSet.addResource({
            file: require.resolve("buster-test/resources/buster-test.css"),
            path: "/buster-test.css"
        });

        resourceSet.addResource({
            file: require.resolve("buster-test/resources/buster-test2.css"),
            path: "/buster/buster-0.7.x.css"
        });

        // Runner
        var options = { resetDocument: false };
        if (group.config.hasOwnProperty("autoRun")) {
            options.autoRun = group.config.autoRun;
        }
        resourceSet.addResource({
            content: "buster.ready(" + JSON.stringify(options) + ");",
            path: "/buster/browser-run.js"
        });

        resourceSet.whenAllAdded(function (rs) {<commit_msg>References to runtime throttler removed.<commit_after>var bCli = require("buster-cli");
var fs = require("fs");
var http = require("http");
var rampResources = require("ramp-resources");

// TODO: add test coverage (integration test?)
function configureGroup(group, extensions, defaultReporter) {
    group.extensions = extensions;
    group.on("load:framework", function (resourceSet) {
        // Test bed
        resourceSet.addResource({
            path: "/",
            file: __dirname + "/index.html"
        });

        // Wiring between framework and user test cases
        resourceSet.addResources([{
            file: require.resolve("buster-test/lib/reporters/html"),
            path: "/buster/html-reporter.js"
        }, {
            file: require.resolve("buster-test/lib/reporters/html2"),
            path: "/buster/html-reporter2.js"
        }, {
            file: require.resolve("stack-filter/lib/stack-filter"),
            path: "/buster/stack-filter.js"
        }, {
            file: require.resolve("./browser-wiring"),
            path: "/buster/static-browser-wiring.js"
        }, {
            content: "this.bane = buster.bane;\n" +
                "this._ = buster._;\n" +
                "buster.defaultReporter = \"" + defaultReporter.replace(/\"/g, "\\\"") + "\";",
            path: "/buster/expose-modules.js"
        }, {
            content: "delete this.bane; delete this._;",
            path: "/buster/remove-modules.js"
        }, {
            path: "/buster/buster-0.7.x.js",
            combine: ["/buster/expose-modules.js",
                      "/buster/stack-filter.js",
                      "/buster/html-reporter.js",
                      "/buster/html-reporter2.js",
                      "/buster/static-browser-wiring.js",
                      "/buster/remove-modules.js"]
        }]);

        // Some neat CSS
        resourceSet.addResource({
            file: require.resolve("buster-test/resources/buster-test.css"),
            path: "/buster-test.css"
        });

        resourceSet.addResource({
            file: require.resolve("buster-test/resources/buster-test2.css"),
            path: "/buster/buster-0.7.x.css"
        });

        // Runner
        var options = { resetDocument: false };
        if (group.config.hasOwnProperty("autoRun")) {
            options.autoRun = group.config.autoRun;
        }
        resourceSet.addResource({
            content: "buster.ready(" + JSON.stringify(options) + ");",
            path: "/buster/browser-run.js"
        });

        resourceSet.whenAllAdded(function (rs) {
{'fraction_non_alphanumeric': 0.1552528456801642, 'fraction_numerical': 0.0029856316476954657, 'mean_word_length': 1.7473090722706304, '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': '2056396', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1527, 'n_words': 235}