<commit_before>module.exports = function(grunt) {
  "use strict";

  grunt.initConfig({
    jshint: {
      all: ['Gruntfile.js', '<config:nodeunit.tasks>'],
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true,
        node: true,
        es5: true
      }
    },

    // Configuration to be run (and then tested).
    clean: {
      test: ['tmp'],
      short: ["tmp/sample_short"],
      long: {
        src: ["tmp/sample_long"]
      }
    },

    // Unit tests.
    nodeunit: {
      tasks: ['test/*_test.js']
    }
  });

  // Actually load this plugin's task(s).
  grunt.loadTasks('tasks');

  // Setup a test helper to create a folder to clean.
  grunt.registerTask('copy', 'Copy fixtures to a temp location', function() {
    grunt.file.copy("test/fixtures/sample_long/long.txt", "tmp/sample_long/long.txt");
    grunt.file.copy("test/fixtures/sample_short/short.txt", "tmp/sample_short/short.txt");
  });

  // Whenever the 'test' task is run, first clean the 'tmp' dir, then run this
  // plugin's task(s), then test the result.
  grunt.registerTask('test', 'clean copy nodeunit');

  // By default, lint and run all tests.
  grunt.registerTask("default", ['jshint', 'copy', 'clean', 'nodeunit']);
};<commit_msg>register alias with array literal<commit_after>module.exports = function(grunt) {
  "use strict";

  grunt.initConfig({
    jshint: {
      all: ['Gruntfile.js', '<config:nodeunit.tasks>'],
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true,
        node: true,
        es5: true
      }
    },

    // Configuration to be run (and then tested).
    clean: {
      test: ['tmp'],
      short: ["tmp/sample_short"],
      long: {
        src: ["tmp/sample_long"]
      }
    },

    // Unit tests.
    nodeunit: {
      tasks: ['test/*_test.js']
    }
  });

  // Actually load this plugin's task(s).
  grunt.loadTasks('tasks');

  // Setup a test helper to create a folder to clean.
  grunt.registerTask('copy', 'Copy fixtures to a temp location', function() {
    grunt.file.copy("test/fixtures/sample_long/long.txt", "tmp/sample_long/long.txt");
    grunt.file.copy("test/fixtures/sample_short/short.txt", "tmp/sample_short/short.txt");
  });

  // Whenever the 'test' task is run, first clean the 'tmp' dir, then run this
  // plugin's task(s), then test the result.
  grunt.registerTask('test', ['clean', 'copy', 'nodeunit']);

  // By default, lint and run all tests.
  grunt.registerTask("default", ['jshint', 'copy', 'clean', 'nodeunit']);
};
{'fraction_non_alphanumeric': 0.15793201133144477, 'fraction_numerical': 0.000708215297450425, 'mean_word_length': 2.3832335329341316, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2165436', 'n_tokens_mistral': 945, 'n_tokens_neox': 922, 'n_words': 240}