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

    coffee:
      glob_to_multiple:
        expand: true
        cwd: 'src'
        src: ['*.coffee']
        dest: 'lib'
        ext: '.js'

    coffeelint:
      options:
        no_empty_param_list:
          level: 'error'
        max_line_length:
          level: 'ignore'

      gruntfile: ['Gruntfile.coffee']
      src: ['src/*.coffee']
      test: ['spec/*.coffee']

    shell:
      test:
        command: 'node node_modules/.bin/jasmine-focused --captureExceptions --coffee spec'
        options:
          stdout: true
          stderr: true
          failOnError: true

    watch:
      scripts:
        files: ['src/*.coffee'],
        tasks: ['test'],
        options:
          spawn: false

  grunt.loadNpmTasks 'grunt-coffeelint'
  grunt.loadNpmTasks 'grunt-contrib-coffee'
  grunt.loadNpmTasks 'grunt-contrib-watch'
  grunt.loadNpmTasks 'grunt-shell'
  grunt.loadTasks 'tasks'

  grunt.registerTask 'clean', ->
    grunt.file.delete 'lib' if grunt.file.exists 'lib'
    grunt.file.delete 'gen' if grunt.file.exists 'gen'

  grunt.registerTask 'lint', ['coffeelint']
  grunt.registerTask 'build', ['coffeelint', 'coffee']
  grunt.registerTask 'default', ['build']
  grunt.registerTask 'test', ['build', 'lint', 'shell:test']
  grunt.registerTask 'prepublish', ['clean', 'build-grammars', 'test']
<commit_msg>chore(Grunt): add spec/ directory to watch list<commit_after>module.exports = (grunt) ->
  grunt.initConfig
    pkg: grunt.file.readJSON 'package.json'

    coffee:
      glob_to_multiple:
        expand: true
        cwd: 'src'
        src: ['*.coffee']
        dest: 'lib'
        ext: '.js'

    coffeelint:
      options:
        no_empty_param_list:
          level: 'error'
        max_line_length:
          level: 'ignore'

      gruntfile: ['Gruntfile.coffee']
      src: ['src/*.coffee']
      test: ['spec/*.coffee']

    shell:
      test:
        command: 'node node_modules/.bin/jasmine-focused --captureExceptions --coffee spec'
        options:
          stdout: true
          stderr: true
          failOnError: true

    watch:
      scripts:
        files: ['src/*.coffee', 'spec/*.coffee'],
        tasks: ['test'],
        options:
          spawn: false

  grunt.loadNpmTasks 'grunt-coffeelint'
  grunt.loadNpmTasks 'grunt-contrib-coffee'
  grunt.loadNpmTasks 'grunt-contrib-watch'
  grunt.loadNpmTasks 'grunt-shell'
  grunt.loadTasks 'tasks'

  grunt.registerTask 'clean', ->
    grunt.file.delete 'lib' if grunt.file.exists 'lib'
    grunt.file.delete 'gen' if grunt.file.exists 'gen'

  grunt.registerTask 'lint', ['coffeelint']
  grunt.registerTask 'build', ['coffeelint', 'coffee']
  grunt.registerTask 'default', ['build']
  grunt.registerTask 'test', ['build', 'lint', 'shell:test']
  grunt.registerTask 'prepublish', ['clean', 'build-grammars', 'test']

{'fraction_non_alphanumeric': 0.14329790881042168, 'fraction_numerical': 0.0, 'mean_word_length': 2.5199034981905912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2707016', 'n_tokens_mistral': 1033, 'n_tokens_neox': 989, 'n_words': 203}