<commit_before>module.exports = function(grunt) {
    grunt.loadNpmTasks('grunt-contrib-coffee');
    grunt.config('coffee', {
        options: {
            bare: true
        },
        files: {
            expand: true,
            cwd: './',
            src: [
                '*Bundle/Resources/public/coffee/!**!/!*.coffee'
            ],
            dest: './',
            ext: '.js',
            rename: function(dest, src) {
                return src.replace(
                    /^([^\/]*)\/Resources\/public\/coffee\//,
                    '$1/Tests/_mocha/built_sources/js/'
                );
            }
        }
    });

    grunt.loadNpmTasks('grunt-js-test');
    var patternPath = '.'+__dirname.replace(process.cwd(), '')+'/';
    grunt.initConfig({
        'js-test': {
            options: {
                referenceTags: true,
                coverage: false,
                pattern: patternPath+'BackofficeBundle/Tests/_mocha/OrchestraBORouter/OrchestraBORouter-test.js',
                deps: [
                    "vendor/bower_components/jquery/dist/jquery.js",
                    "vendor/bower_components/underscore/underscore.js",
                    "vendor/bower_components/backbone/backbone.js"
                ]
            }
        }
    });
    grunt.registerTask('js-test', ['coffee']);
    grunt.registerTask('default', ['js-test']);

};<commit_msg>update gruntFile.js<commit_after>module.exports = function(grunt) {
    grunt.loadNpmTasks('grunt-contrib-coffee');
    grunt.loadNpmTasks('grunt-js-test');

    grunt.config('coffee', {
        options: {
            bare: true
        },
        files: {
            expand: true,
            cwd: './',
            src: [
                '*Bundle/Resources/public/coffee/**/*.coffee'
            ],
            dest: './',
            ext: '.js',
            rename: function(dest, src) {
                return src.replace(
                    /^([^\/]*)\/Resources\/public\/coffee\//,
                    '$1/Tests/_mocha/built_sources/js/'
                );
            }
        }
    });


    var patternPath = '.'+__dirname.replace(process.cwd(), '')+'/';
    grunt.config('js-test', {
            options: {
                referenceTags: true,
                coverage: false,
                pattern: patternPath+'BackofficeBundle/Tests/_mocha/OrchestraBORouter/OrchestraBORouter-test.js',
                deps: [
                    "vendor/bower_components/jquery/dist/jquery.js",
                    "vendor/bower_components/underscore/underscore.js",
                    "vendor/bower_components/backbone/backbone.js"
                ]
            }
        }
    );
    grunt.registerTask('test', ['coffee', 'js-test']);
    grunt.registerTask('default', ['test']);

};
{'fraction_non_alphanumeric': 0.15462064005753326, 'fraction_numerical': 0.000719165767709457, 'mean_word_length': 1.4065743944636677, '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': '5671574', 'n_tokens_mistral': 849, 'n_tokens_neox': 803, 'n_words': 89}