<commit_before>module.exports = (grunt) ->
  
  banner = '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= date %> */\n'
  
  grunt.initConfig
    date: grunt.template.today('dd-mm-yyyy')
    pkg: grunt.file.readJSON 'package.json'
    coffee:
      compile:
        files:
          'dist/checkt.js': ['udefine/*.coffee', 'src/*.coffee']
      tests:
        files:
          'test/tests.js': ['test/tests.coffee']
    uglify:
      options:
        banner: banner
        report: 'gzip'
      dist:
        files:
          'dist/<%= pkg.name %>.min.js': ['dist/<%= pkg.name %>.js']
    mochaTest:
      options:
        reporter: 'spec'
      test:
        src: ['test/**/*.js']
    coffeelint:
      app: ['src/**/*.coffee'],
      test: ['src/**/*.coffee'],
      grunt: ['Gruntfile.coffee']

  grunt.loadNpmTasks 'grunt-contrib-coffee'
  grunt.loadNpmTasks 'grunt-contrib-uglify'
  grunt.loadNpmTasks 'grunt-mocha-test'
  grunt.loadNpmTasks 'grunt-coffeelint'

  grunt.registerTask 'test', ['coffeelint', 'mochaTest']
  grunt.registerTask 'default', ['test', 'coffee', 'uglify']<commit_msg>Default task: Unit tests run after they have compiled to JS<commit_after>module.exports = (grunt) ->
  
  banner = '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= date %> */\n'
  
  grunt.initConfig
    date: grunt.template.today('dd-mm-yyyy')
    pkg: grunt.file.readJSON 'package.json'
    coffee:
      compile:
        files:
          'dist/checkt.js': ['udefine/*.coffee', 'src/*.coffee']
      tests:
        files:
          'test/tests.js': ['test/tests.coffee']
    uglify:
      options:
        banner: banner
        report: 'gzip'
      dist:
        files:
          'dist/<%= pkg.name %>.min.js': ['dist/<%= pkg.name %>.js']
    mochaTest:
      options:
        reporter: 'spec'
      test:
        src: ['test/**/*.js']
    coffeelint:
      app: ['src/**/*.coffee'],
      test: ['src/**/*.coffee'],
      grunt: ['Gruntfile.coffee']

  grunt.loadNpmTasks 'grunt-contrib-coffee'
  grunt.loadNpmTasks 'grunt-contrib-uglify'
  grunt.loadNpmTasks 'grunt-mocha-test'
  grunt.loadNpmTasks 'grunt-coffeelint'

  grunt.registerTask 'test', ['coffeelint', 'mochaTest']
  grunt.registerTask 'default', ['coffeelint', 'coffee', 'mochaTest', 'uglify']
{'fraction_non_alphanumeric': 0.18891352549889134, 'fraction_numerical': 0.0, 'mean_word_length': 2.418181818181818, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '5168511', 'n_tokens_mistral': 894, 'n_tokens_neox': 831, 'n_words': 148}