<commit_before>'use strict'

# Constants
MODULES_DIR      = 'modules'
BUILD_DIR        = 'build'
DIST_DIR         = 'dist'
GRUNTFILE        = 'Gruntfile.coffee'
TMP_DIR          = 'tmp'
PLATFORMS        = ['android', 'ios', 'ios7']

module.exports = (grunt) ->

  grunt.initConfig
    bower:
      install:
        cleanup: yes
        copy: no

    clean:
      build: [BUILD_DIR]
      dist: [DIST_DIR]
      tmp: TMP_DIR
      lib: 'lib'

    coffee:
      dist:
        options:
          sourceMap: yes
          join: yes
        src: [
          "#{MODULES_DIR}/bradypodion.coffee"
          '<%= coffeelint.directives.files.src %>'
        ]
        dest: "#{DIST_DIR}/bradypodion.js"
      tests:
        options: join: yes
        src: ["#{MODULES_DIR}/*/*/test/*.coffee"]
        dest: "#{BUILD_DIR}/tests.js"

    coffeelint:
      options:
        newlines_after_classes:
          level: 'error'
        no_empty_param_list:
          level: 'error'
        no_stand_alone_at:
          level: 'error'
      directives:
        files: src: ["#{MODULES_DIR}/*/*/*.coffee"]
        max_line_length:
          value: 79
          level: 'error'
      tests:
        files: src: "<%= coffee.tests.src %>"
      gruntfile:
        files: src: [GRUNTFILE]

    groc:
      options:
        out: 'docs/'
        index: "#{MODULES_DIR}/index.md"
      modules: [
        "#{MODULES_DIR}/index.md"
        "#{MODULES_DIR}/**/*.{coffee,less,md}"
        "!#{MODULES_DIR}/**/test.coffee"
        "!#{MODULES_DIR}/_less/*.less"
        "!#{MODULES_DIR}/bradypodion.*"]

    karma:
      options:
        configFile: 'karma.conf.js'
      continuous:
        singleRun: true
        browsers: ['PhantomJS']
      unit:
        background: true
        browsers: ['Chrome']

    shell:
      options:<commit_msg>chore(docs): strip modules from path<commit_after>'use strict'

# Constants
MODULES_DIR      = 'modules'
BUILD_DIR        = 'build'
DIST_DIR         = 'dist'
GRUNTFILE        = 'Gruntfile.coffee'
TMP_DIR          = 'tmp'
PLATFORMS        = ['android', 'ios', 'ios7']

module.exports = (grunt) ->

  grunt.initConfig
    bower:
      install:
        cleanup: yes
        copy: no

    clean:
      build: [BUILD_DIR]
      dist: [DIST_DIR]
      tmp: TMP_DIR
      lib: 'lib'

    coffee:
      dist:
        options:
          sourceMap: yes
          join: yes
        src: [
          "#{MODULES_DIR}/bradypodion.coffee"
          '<%= coffeelint.directives.files.src %>'
        ]
        dest: "#{DIST_DIR}/bradypodion.js"
      tests:
        options: join: yes
        src: ["#{MODULES_DIR}/*/*/test/*.coffee"]
        dest: "#{BUILD_DIR}/tests.js"

    coffeelint:
      options:
        newlines_after_classes:
          level: 'error'
        no_empty_param_list:
          level: 'error'
        no_stand_alone_at:
          level: 'error'
      directives:
        files: src: ["#{MODULES_DIR}/*/*/*.coffee"]
        max_line_length:
          value: 79
          level: 'error'
      tests:
        files: src: "<%= coffee.tests.src %>"
      gruntfile:
        files: src: [GRUNTFILE]

    groc:
      options:
        out: 'docs/'
        index: "#{MODULES_DIR}/index.md"
        strip: "#{MODULES_DIR}"
      modules: [
        "#{MODULES_DIR}/index.md"
        "#{MODULES_DIR}/**/*.{coffee,less,md}"
        "!#{MODULES_DIR}/**/test.coffee"
        "!#{MODULES_DIR}/_less/*.less"
        "!#{MODULES_DIR}/bradypodion.*"]

    karma:
      options:
        configFile: 'karma.conf.js'
      continuous:
        singleRun: true
        browsers: ['PhantomJS']
      unit:
        background: true
        browsers: ['Chrome']

    shell:
      options:
{'fraction_non_alphanumeric': 0.14378907311769504, 'fraction_numerical': 0.0016308779559662953, 'mean_word_length': 1.7319970304380103, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '1252922', 'n_tokens_mistral': 1290, 'n_tokens_neox': 1300, 'n_words': 227}