<commit_before>module.exports = function (grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        jshint: {
            all: [
                'server.js',
                'controllers.js',
                'models.js',
                'filters.js',
                'routes.js',
                'public/js/*.js',
            ],
            options: {
                jshintrc: '.jshintrc',
            },
        },
    });

    //
    // NPM Tasks
    //

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');

    //
    // Register the Tasks
    //

    grunt.registerTask('default', ['run']);
    grunt.registerTask('build', ['jshint']);

    //
    // Custom Tasks
    //

    // Launches nodemon in the background as well as a new instance of Grunt to
    // watch for file changes. There probably is a better way to do this, but
    // hey, it works.
    grunt.registerTask('run', 'Run NodeJS app for Cruxwit', function () {
        var done = this.async();

        var script = 'server.js',
            filetypes = ['js', 'css', 'html'],
            files = [<commit_msg>Improve Gruntfile.js<commit_after>module.exports = function (grunt) {
    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),

        jshint: {
            all: [
                'server.js',
                'controllers.js',
                'models.js',
                'filters.js',
                'routes.js',
                'public/js/*.js',
            ],
            options: {
                jshintrc: '.jshintrc',
            },
        },

        watch: {
            scripts: {
                files: './**/*.js',
                tasks: ['jshint'],
            },
        },
    });

    //
    // NPM Tasks
    //

    grunt.loadNpmTasks('grunt-contrib-jshint');
    grunt.loadNpmTasks('grunt-contrib-watch');

    //
    // Register the Tasks
    //

    grunt.registerTask('default', ['run']);
    grunt.registerTask('build', ['jshint']);

    //
    // Custom Tasks
    //

    // Launches nodemon in the background as well as a new instance of Grunt to
    // watch for file changes. There probably is a better way to do this, but
    // hey, it works.
    grunt.registerTask('run', 'Run NodeJS app for Cruxwit', function () {
        var done = this.async();

        var script = 'server.js',
            filetypes = ['js', 'css', 'html'],
            files = [
{'fraction_non_alphanumeric': 0.1474541751527495, 'fraction_numerical': 0.0, 'mean_word_length': 1.407843137254902, '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': '3335604', 'n_tokens_mistral': 760, 'n_tokens_neox': 728, 'n_words': 165}