<commit_before>module.exports = function( grunt ) {

    // Create a new multi task.
    grunt.registerMultiTask( 'casperjs', 'This triggers casperjs.', function() {

        // Tell grunt this task is asynchronous.
        var done = this.async(),
            files = grunt.file.expandFiles(this.file.src),
            filepaths = [];

        grunt.file.expandFiles(this.file.src).forEach(function(filepath) {
            filepaths.push(filepath);
        });

        grunt.utils.async.forEachSeries(filepaths, function runCasper(filepath, callback) {
            grunt.helper('casperjs', filepath, function(err){
                if (err) {
                    grunt.warn(err);
                }
                callback();
            });
        }, done);

    });

    grunt.registerHelper('casperjs', function(filepath, callback) {
        var command = 'casperjs "' + filepath + '"',
            exec = require('child_process').exec;

        function puts( error, stdout, stderr ) {

            grunt.log.write( '\nRunning tests from "' + filepath + '":\n' );
            grunt.log.write( stdout );
            //grunt.log.error( stderr );

            if ( error !== null ) {
                callback(error);
            } else {
                callback();
            }
        }

        exec( command, puts );
    });
};<commit_msg>Fixed the indentaions and elimitated the unnecessary spaces.<commit_after>module.exports = function(grunt) {
  // Create a new multi task.
  grunt.registerMultiTask('casperjs', 'This triggers casperjs.', function() {
    // Tell grunt this task is asynchronous.
    var done = this.async(),
        files = grunt.file.expandFiles(this.file.src),
        filepaths = [];

    grunt.file.expandFiles(this.file.src).forEach(function(filepath) {
      filepaths.push(filepath);
    });

   grunt.utils.async.forEachSeries(filepaths, function(filepath, callback) {
     grunt.helper('casperjs', filepath, function(err) {
       if (err) {
         grunt.warn(err);
       }
       callback();
     });
   }, done);
 });

 grunt.registerHelper('casperjs', function(filepath, callback) {
   var command = 'casperjs "' + filepath + '"',
       exec = require('child_process').exec;

   function puts(error, stdout, stderr) {
     grunt.log.write('\nRunning tests from "' + filepath + '":\n');
     grunt.log.write(stdout);
     //grunt.log.error( stderr );

     if ( error !== null ) {
       callback(error);
     } else {
       callback();
     }
   }
   exec(command, puts);
 });
};
{'fraction_non_alphanumeric': 0.14608076009501186, 'fraction_numerical': 0.0, 'mean_word_length': 2.0930232558139537, 'pattern_counts': {'":': 2, '<': 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': '4778475', 'n_tokens_mistral': 760, 'n_tokens_neox': 732, 'n_words': 146}