<commit_before>module.exports = (grunt) ->

  grunt.initConfig

    clean: ['dist']

    copy:
      bower:
        files: [
          expand: true
          src: 'bower_components/**'
          dest: 'dist/'
        ]

    coffee:
      test:
        files:
          'test/test.js': 'test/*.coffee'
      lib:
        files: [
          expand: true
          src: '**/*.coffee'
          dest: 'dist/lib'
          cwd: 'lib'
          ext: '.js'
        ]
      app:
        files:
          'dist/app.js': 'app/app.coffee'
          'dist/wallet.js': 'app/scripts/**/*.coffee'

    jade:
      app:
        files: [
          expand: true
          src: '**/*.jade'
          dest: 'dist'
          cwd: 'app/views'
          ext: '.html'
        ]

    mochaTest:
      test:
        options:
          reporter: 'spec'
        src: ['test/**/*.js']

    watch:
      app:
        files: [
          '**/*.coffee'
          '**/*.jade'
        ]
        tasks: ['build']
      test:
        files: ['**/*.coffee']
        tasks: ['test']
        options:
          atBegin: true

    peg:
      wallet:
        src: 'lib/syntax/grammar.peg'
        dest: 'dist/lib/syntax/parser.js'
        options:
          exportVar: 'parser'
          trackLineAndColumn: 'true'

    file_append:
      default_options:
        files:
          'dist/lib/syntax/parser.js':
            append: 'define(function() { return parser; });'
            input: 'dist/lib/syntax/parser.js'

    connect:
      options:
        port: 9000
        hostname: '0.0.0.0'
        livereload: 35729
      dist:
        options:
          base: 'dist'

  grunt.loadNpmTasks 'grunt-contrib-coffee'
  grunt.loadNpmTasks 'grunt-contrib-jade'
  grunt.loadNpmTasks 'grunt-mocha-test'
  grunt.loadNpmTasks 'grunt-contrib-watch'
  grunt.loadNpmTasks 'grunt-peg'
  grunt.loadNpmTasks 'grunt-file-append'
  grunt.loadNpmTasks 'grunt-contrib-clean'
  grunt.loadNpmTasks 'grunt-contrib-connect'
  grunt.loadNpmTasks 'grunt-contrib-copy'

  grunt.registerTask 'test', ['coffee:test', 'coffee:lib', 'mochaTest']
  grunt.registerTask 'build', ['clean', 'copy:bower', 'coffee:lib', 'coffee:app', 'jade:app', 'peg', 'file_append']
  grunt.registerTask 'serve', ['build', 'connect', 'watch:app']
<commit_msg>Remove trackLineAndColumns option from peg parser<commit_after>module.exports = (grunt) ->

  grunt.initConfig

    clean: ['dist']

    copy:
      bower:
        files: [
          expand: true
          src: 'bower_components/**'
          dest: 'dist/'
        ]

    coffee:
      test:
        files:
          'test/test.js': 'test/*.coffee'
      lib:
        files: [
          expand: true
          src: '**/*.coffee'
          dest: 'dist/lib'
          cwd: 'lib'
          ext: '.js'
        ]
      app:
        files:
          'dist/app.js': 'app/app.coffee'
          'dist/wallet.js': 'app/scripts/**/*.coffee'

    jade:
      app:
        files: [
          expand: true
          src: '**/*.jade'
          dest: 'dist'
          cwd: 'app/views'
          ext: '.html'
        ]

    mochaTest:
      test:
        options:
          reporter: 'spec'
        src: ['test/**/*.js']

    watch:
      app:
        files: [
          '**/*.coffee'
          '**/*.jade'
        ]
        tasks: ['build']
      test:
        files: ['**/*.coffee']
        tasks: ['test']
        options:
          atBegin: true

    peg:
      wallet:
        src: 'lib/syntax/grammar.peg'
        dest: 'dist/lib/syntax/parser.js'
        options:
          exportVar: 'parser'

    file_append:
      default_options:
        files:
          'dist/lib/syntax/parser.js':
            append: 'define(function() { return parser; });'
            input: 'dist/lib/syntax/parser.js'

    connect:
      options:
        port: 9000
        hostname: '0.0.0.0'
        livereload: 35729
      dist:
        options:
          base: 'dist'

  grunt.loadNpmTasks 'grunt-contrib-coffee'
  grunt.loadNpmTasks 'grunt-contrib-jade'
  grunt.loadNpmTasks 'grunt-mocha-test'
  grunt.loadNpmTasks 'grunt-contrib-watch'
  grunt.loadNpmTasks 'grunt-peg'
  grunt.loadNpmTasks 'grunt-file-append'
  grunt.loadNpmTasks 'grunt-contrib-clean'
  grunt.loadNpmTasks 'grunt-contrib-connect'
  grunt.loadNpmTasks 'grunt-contrib-copy'

  grunt.registerTask 'test', ['coffee:test', 'coffee:lib', 'mochaTest']
  grunt.registerTask 'build', ['clean', 'copy:bower', 'coffee:lib', 'coffee:app', 'jade:app', 'peg', 'file_append']
  grunt.registerTask 'serve', ['build', 'connect', 'watch:app']

{'fraction_non_alphanumeric': 0.1523032841084417, 'fraction_numerical': 0.0057306590257879654, 'mean_word_length': 1.7141148325358853, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2707018', 'n_tokens_mistral': 1619, 'n_tokens_neox': 1552, 'n_words': 287}