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

    meta:
      banner: '
/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n
 * <%= pkg.homepage %>\n
 *\n
 * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> <<%= pkg.author.email %>>;\n
 * Licensed under the <%= _.pluck(pkg.licenses, "type").join(", ") %> license */\n\n'

    concat:
      options:
        separator: '\n\n'
      build:
        options:
          banner: '<%= meta.banner %>'
        src: [
          'src/hammer.prefix'
          'src/setup.js'
          'src/utils.js'
          'src/instance.js'
          'src/event.js'
          'src/pointerevent.js'
          'src/detection.js'
          'src/gestures/*.js'
          'src/export.js'
          'src/hammer.suffix']
        dest: 'hammer.js'

    uglify:
      options:
        report: 'gzip'
        sourceMap: 'hammer.min.map'
        banner: '<%= meta.banner %>'
      build:
        files:
          'hammer.min.js': ['hammer.js']

    'string-replace':
      version:
        files:
          'hammer.js': 'hammer.js'
        options:
          replacements: [
              pattern: '{{PKG_VERSION}}'
              replacement: '<%= pkg.version %>'
            ]

    jshint:
      options:
        jshintrc: true
      build:
        src: ['hammer.js']

    watch:
      scripts:
        files: ['src/**/*.js']
        tasks: ['concat','string-replace','uglify']
        options:
          interrupt: true

    connect:
      server:
        options:
          hostname: "0.0.0.0"
          port: 8000

    qunit:
      all: ['tests/unit/**/*.html']

    yuidoc:
      build:
        name: '<%= pkg.title %>'
        description: '<%= pkg.description %>'
        version: '<%= pkg.version %>'
        url: '<%= pkg.homepage %>'
        options:
          linkNatives: true<commit_msg>show jshint errors while in dev<commit_after>module.exports = (grunt) ->
  grunt.initConfig
    pkg: grunt.file.readJSON 'package.json'

    meta:
      banner: '
/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n
 * <%= pkg.homepage %>\n
 *\n
 * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %> <<%= pkg.author.email %>>;\n
 * Licensed under the <%= _.pluck(pkg.licenses, "type").join(", ") %> license */\n\n'

    concat:
      options:
        separator: '\n\n'
      build:
        options:
          banner: '<%= meta.banner %>'
        src: [
          'src/hammer.prefix'
          'src/setup.js'
          'src/utils.js'
          'src/instance.js'
          'src/event.js'
          'src/pointerevent.js'
          'src/detection.js'
          'src/gestures/*.js'
          'src/export.js'
          'src/hammer.suffix']
        dest: 'hammer.js'

    uglify:
      options:
        report: 'gzip'
        sourceMap: 'hammer.min.map'
        banner: '<%= meta.banner %>'
      build:
        files:
          'hammer.min.js': ['hammer.js']

    'string-replace':
      version:
        files:
          'hammer.js': 'hammer.js'
        options:
          replacements: [
              pattern: '{{PKG_VERSION}}'
              replacement: '<%= pkg.version %>'
            ]

    jshint:
      options:
        jshintrc: true
      build:
        src: ['hammer.js']

    watch:
      scripts:
        files: ['src/**/*.js']
        tasks: ['concat','string-replace','uglify','jshint']
        options:
          interrupt: true

    connect:
      server:
        options:
          hostname: "0.0.0.0"
          port: 8000

    qunit:
      all: ['tests/unit/**/*.html']

    yuidoc:
      build:
        name: '<%= pkg.title %>'
        description: '<%= pkg.description %>'
        version: '<%= pkg.version %>'
        url: '<%= pkg.homepage %>'
        options:
          linkNatives: true
{'fraction_non_alphanumeric': 0.17910828025477707, 'fraction_numerical': 0.004076433121019108, 'mean_word_length': 1.603448275862069, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 37, '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': '3574431', 'n_tokens_mistral': 1402, 'n_tokens_neox': 1273, 'n_words': 230}