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

    meta:
      build  : 'build'
      dist   : 'dist'
      name   : 'micro'
      source : 'source'
      specs  : 'specs'

    source:
      micro  : '<%= meta.source %>/<%= meta.name %>.coffee'
      utils  : '<%= meta.source %>/<%= meta.name %>.utils.coffee'
      ajax   : '<%= meta.source %>/<%= meta.name %>.ajax.coffee'
      specs  : '<%= meta.specs %>/*.spec.coffee'

    coffee:
      micro  : files: '<%= meta.build %>/<%= meta.name %>.js'       : '<%= source.micro %>'
      utils  : files: '<%= meta.build %>/<%= meta.name %>.utils.js' : '<%= source.utils %>'
      ajax   : files: '<%= meta.build %>/<%= meta.name %>.ajax.js'  : '<%= source.ajax %>'
      specs  : files: '<%= meta.build %>/<%= meta.name %>.spec.js'  : '<%= source.specs %>'

    clean:
      build  : src: ['build']
      dist   : src: ['dist']

    uglify:
      options: mangle: true, report: 'gzip'
      micro  : files: '<%= meta.dist %>/<%= meta.name %>.js'       : '<%= meta.build %>/<%= meta.name %>.js'
      utils  : files: '<%= meta.dist %>/<%= meta.name %>.utils.js' : '<%= meta.build %>/<%= meta.name %>.utils.js'
      ajax   : files: '<%= meta.dist %>/<%= meta.name %>.ajax.js'  : '<%= meta.build %>/<%= meta.name %>.ajax.js'

    jasmine:
      pivotal: src: [
        '<%= meta.build %>/<%= meta.name %>.js'
        '<%= meta.build %>/<%= meta.name %>.utils.js'
        '<%= meta.build %>/<%= meta.name %>.ajax.js'
      ]
      options: specs: '<%= meta.build %>/<%= meta.name %>.spec.js'

    watch:
      specs: files: [
        '<%= meta.source %>/*.coffee',
        '<%= meta.specs %>/*.coffee'
      ]
      tasks: ['coffee', 'jasmine']

    grunt.loadNpmTasks 'grunt-contrib-coffee'
    grunt.loadNpmTasks 'grunt-contrib-clean'
    grunt.loadNpmTasks 'grunt-contrib-concat'
    grunt.loadNpmTasks 'grunt-contrib-jasmine'
    grunt.loadNpmTasks 'grunt-contrib-uglify'
    grunt.loadNpmTasks 'grunt-contrib-watch'

    grunt.registerTask 'test', ['clean', 'coffee', 'jasmine']
    grunt.registerTask 'default', ['clean', 'coffee', 'uglify', 'jasmine']<commit_msg>Updated Grunt tasks for Browserify<commit_after>module.exports = (grunt) ->
  grunt.initConfig
    pkg: grunt.file.readJSON 'package.json'

    meta:
      build  : 'build'
      dist   : 'dist'
      name   : 'micro'
      source : 'source'
      specs  : 'specs'

    source:
      specs  : '<%= meta.specs %>/*.spec.coffee'

    coffee:
      specs  : files: '<%= meta.build %>/<%= meta.name %>.spec.js' : '<%= source.specs %>'

    clean:
      build  : src: ['build']
      dist   : src: ['dist/**/*']

    browserify:
      dist:
        files: 'dist/micro.js' : ['source/micro.coffee']
        options:
          transform: ['coffeeify']

    uglify:
      options: mangle: true, report: 'gzip'
      micro  : files: '<%= meta.dist %>/<%= meta.name %>.min.js' : '<%= meta.dist %>/<%= meta.name %>.js'

    jasmine:
      pivotal:
        src: [
          '<%= meta.dist %>/<%= meta.name %>.js'
        ]
        options: specs: '<%= meta.build %>/<%= meta.name %>.spec.js'

    watch:
      specs:
        files: [
          '<%= meta.source %>/*.coffee',
          '<%= meta.specs %>/*.coffee'
        ]
        tasks: ['coffee', 'browserify', 'jasmine']

    grunt.loadNpmTasks 'grunt-contrib-coffee'
    grunt.loadNpmTasks 'grunt-contrib-clean'
    grunt.loadNpmTasks 'grunt-contrib-jasmine'
    grunt.loadNpmTasks 'grunt-browserify'
    grunt.loadNpmTasks 'grunt-contrib-uglify'
    grunt.loadNpmTasks 'grunt-contrib-watch'

    grunt.registerTask 'test', ['clean', 'coffee', 'browserify', 'jasmine']
    grunt.registerTask 'default', ['clean', 'coffee', 'browserify', 'uglify', 'jasmine', 'clean:build']
{'fraction_non_alphanumeric': 0.21530343007915567, 'fraction_numerical': 0.0, 'mean_word_length': 2.3519009725906277, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 60, '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': '3777200', 'n_tokens_mistral': 1493, 'n_tokens_neox': 1380, 'n_words': 253}