<commit_before>module.exports = function(grunt) {
    "use strict";
    
    grunt.initConfig({
        pkg: grunt.file.readJSON("package.json"),
        jshint: {
            options: {
                jshintrc: true
            },
            src:  [ "src/scripts/ajax/**/*.js" ]
        },
        jscs: {
            options: {
                config: ".jscsrc"
            },
            src: [ "src/scripts/**.js" ]
        },
        jsdoc: {
            full: {
                src: ['src/scripts/**/*.js'],
                options: {
                    destination: 'doc/full-doc/'
                }
            },
            publicAPI: {
                src: ['src/scripts/**.js'],
                options: {
                    destination: 'doc/public-api/',
                    private: false
                }
            }
        },
        exec: {
            startMockServer: "json-server --watch test/tmp/db.json --ro &",
            xhrFactory_test_bundle: "browserify src/scripts/ajax/xhrFactory.js -s xhrFactory > test/tmp/ajax.xhrFactory.bundle.js",
            chainAddons_test_bundle: "browserify src/scripts/ajax/chainAddons.js -s chainAddons > test/tmp/ajax.chainAddons.bundle.js",
            ajax_test_bundle: "browserify src/scripts/ajax/index.js -s ajax > test/tmp/ajax.bundle.js",
            sinonChai: "browserify node_modules/sinon-chai -s sinonChai > test/tmp/sinon-chai.js"
        },
        mochaTest: {
            test: {
                src: [
                    "test/unit/ajax/**/*.test.js"
                ]
            }
        },
        mocha_phantomjs: {
            test: {
                options: {
                    phantomConfig: {
                        "--local-to-remote-url-access": true
                    }
                },
                src: ["test/unit/**/*.test.html"]}
        }
    });

    // Load the plugins
    grunt.loadNpmTasks("grunt-contrib-jshint");
    grunt.loadNpmTasks("grunt-jscs");
    grunt.loadNpmTasks("grunt-jsdoc");
    grunt.loadNpmTasks("grunt-exec");
    grunt.loadNpmTasks("grunt-mocha-test");
    grunt.loadNpmTasks("grunt-mocha-phantomjs");

    grunt.registerTask("test", ["jshint", "jscs", "exec", "mochaTest", "mocha_phantomjs"]);
};<commit_msg>fixed mocha test targets<commit_after>module.exports = function(grunt) {
    "use strict";
    
    grunt.initConfig({
        pkg: grunt.file.readJSON("package.json"),
        jshint: {
            options: {
                jshintrc: true
            },
            src:  [ "src/scripts/ajax/**/*.js" ]
        },
        jscs: {
            options: {
                config: ".jscsrc"
            },
            src: [ "src/scripts/**.js" ]
        },
        jsdoc: {
            full: {
                src: ['src/scripts/**/*.js'],
                options: {
                    destination: 'doc/full-doc/'
                }
            },
            publicAPI: {
                src: ['src/scripts/**.js'],
                options: {
                    destination: 'doc/public-api/',
                    private: false
                }
            }
        },
        exec: {
            startMockServer: "json-server --watch test/tmp/db.json --ro &",
            xhrFactory_test_bundle: "browserify src/scripts/ajax/xhrFactory.js -s xhrFactory > test/tmp/ajax.xhrFactory.bundle.js",
            chainAddons_test_bundle: "browserify src/scripts/ajax/chainAddons.js -s chainAddons > test/tmp/ajax.chainAddons.bundle.js",
            ajax_test_bundle: "browserify src/scripts/ajax/index.js -s ajax > test/tmp/ajax.bundle.js",
            sinonChai: "browserify node_modules/sinon-chai -s sinonChai > test/tmp/sinon-chai.js"
        },
        mochaTest: {
            test: {
                src: [
                    "test/unit/**/*.test.js"
                ]
            }
        },
        mocha_phantomjs: {
            test: {
                options: {
                    phantomConfig: {
                        "--local-to-remote-url-access": true
                    }
                },
                src: ["test/unit/**/*.test.html"]}
        }
    });

    // Load the plugins
    grunt.loadNpmTasks("grunt-contrib-jshint");
    grunt.loadNpmTasks("grunt-jscs");
    grunt.loadNpmTasks("grunt-jsdoc");
    grunt.loadNpmTasks("grunt-exec");
    grunt.loadNpmTasks("grunt-mocha-test");
    grunt.loadNpmTasks("grunt-mocha-phantomjs");

    grunt.registerTask("test", ["jshint", "jscs", "exec", "mochaTest", "mocha_phantomjs"]);
};
{'fraction_non_alphanumeric': 0.14396628216503993, 'fraction_numerical': 0.0, 'mean_word_length': 1.3278265358802273, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 11, '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': '4171336', 'n_tokens_mistral': 1425, 'n_tokens_neox': 1356, 'n_words': 185}