<commit_before>
module.exports = (grunt) ->
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)

  grunt.initConfig(
    pkg: grunt.file.readJSON('package.json')
    coffee:
      options:
        bare: false
      process:
        files: [
          {
            expand: true
            cwd:    'src'
            src:    '**/*.coffee'
            dest:   'lib'
            ext:    '.js'
          }
        ]
    uglify:
      options:
        report:           false
        preserveComments: false
        banner:           '// <%= pkg.name %> <%= pkg.version %>\n// <%= pkg.repository.url %>\n// <%= grunt.template.today("yyyy-mm-dd HH:MM:ss Z") %>\n\n'
      process:
        options:
          mangle:   true
          compress: false
          beautify: false
        files: [
          {
            expand: true
            cwd:    'lib'
            src:    ['**/*.js']
            dest:   'lib'
            ext:    '.min.js'
          }
        ]
    watch:
      process:
        files: ['src/**/*.coffee']
        tasks: ['coffee:process']
    mochaTest:
      process:
        options:
          reporter: 'spec'
          require: 'coffee-script/register'
        src: ['test/**/*.coffee']
  )

  grunt.registerTask(
    'make'
    [
      'coffee:process'
      'uglify:process'
    ]
  )

  grunt.registerTask(
    'test'
    [
      'mochaTest:process'
    ]
  )<commit_msg>New Gruntfile with version bump<commit_after>
module.exports = (grunt) ->
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks)

  grunt.initConfig(
    pkg: grunt.file.readJSON('package.json')
    bumpup:
      options:
        updateProps:
          pkg: 'package.json'
      files: ['package.json', 'component.json']
    coffee:
      make:
        options:
          bare: false
        files: [
          {
            expand: true
            cwd:    'src'
            src:    '**/*.coffee'
            dest:   'lib'
            ext:    '.js'
          }
        ]
    uglify:
      make:
        options:
          report:           false
          preserveComments: false
          banner:           '// <%= pkg.name %> <%= pkg.version %>\n// <%= pkg.repository.url %>\n// <%= grunt.template.today("yyyy-mm-dd HH:MM:ss Z") %>\n\n'
          mangle:           true
          compress:         false
          beautify:         false
        files: [
          {
            expand: true
            cwd:    'lib'
            src:    ['**/*.js']
            dest:   'lib'
            ext:    '.min.js'
          }
        ]
    watch:
      files: ['src/**/*.coffee']
      tasks: ['coffee:process']
    mochaTest:
      options:
        reporter: 'spec'
        require: 'coffee-script/register'
      src: ['test/**/*.coffee']
  )

  grunt.registerTask 'release', (type = 'patch') ->
    grunt.task.run 'bumpup:' + type
    grunt.task.run 'coffee'
    grunt.task.run 'uglify'

  grunt.registerTask 'test', ->
    grunt.task.run 'mochaTest'
{'fraction_non_alphanumeric': 0.14986559139784947, 'fraction_numerical': 0.0, 'mean_word_length': 1.331245105716523, 'pattern_counts': {'":': 0, '<': 11, '<?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': '1252921', 'n_tokens_mistral': 1000, 'n_tokens_neox': 947, 'n_words': 177}