<commit_before>module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    uglify: {
      options: {
        banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
        report: 'gzip'
      },
      build: {
        src: ['src/leaflet/*.js','src/js/*.js','src/geotrigger-editor.js'],
        dest: 'dist/<%= pkg.name %>.min.js'
      }
    },
    watch: {
      scripts: {
        files: ['src/**/*.js','src/scss/*.scss'],
        tasks: ['compass','jshint','concat','uglify'],
        options: {
          nospawn: true
        }
      }
    },
    compass: {
      // Production
      dist: {
        options: {
          sassDir: 'src/scss',
          cssDir: 'dist/css',
          environment: 'production'
        }
      },
      // Development
      dev: {
        options: {
          sassDir: 'src/scss',
          cssDir: 'dist/css'
        }
      }
    },
    jshint: {
      files: ['src/*.js']
    },
    concat: {
      options: {
        // define a string to put between each file in the concatenated output
        separator: ';'
      },
      dist: {
        // the files to concatenate
        src: ['src/leaflet/*.js','src/js/*.js','src/geotrigger-editor.js'],
        // the location of the resulting JS file
        dest: 'dist/<%= pkg.name %>.js'
      }
    },
    complexity: {
      generic: {
        src: ['src/geotrigger-editor.js', 'tasks/grunt-complexity.js'],<commit_msg>run all js files through complexity<commit_after>module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    uglify: {
      options: {
        banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
        report: 'gzip'
      },
      build: {
        src: ['src/leaflet/*.js','src/js/*.js','src/geotrigger-editor.js'],
        dest: 'dist/<%= pkg.name %>.min.js'
      }
    },
    watch: {
      scripts: {
        files: ['src/**/*.js','src/scss/*.scss'],
        tasks: ['compass','jshint','concat','uglify'],
        options: {
          nospawn: true
        }
      }
    },
    compass: {
      // Production
      dist: {
        options: {
          sassDir: 'src/scss',
          cssDir: 'dist/css',
          environment: 'production'
        }
      },
      // Development
      dev: {
        options: {
          sassDir: 'src/scss',
          cssDir: 'dist/css'
        }
      }
    },
    jshint: {
      files: ['src/*.js']
    },
    concat: {
      options: {
        // define a string to put between each file in the concatenated output
        separator: ';'
      },
      dist: {
        // the files to concatenate
        src: ['src/leaflet/*.js','src/js/*.js','src/geotrigger-editor.js'],
        // the location of the resulting JS file
        dest: 'dist/<%= pkg.name %>.js'
      }
    },
    complexity: {
      generic: {
        src: ['src/**/*.js', 'tasks/grunt-complexity.js'],
{'fraction_non_alphanumeric': 0.1829308633807476, 'fraction_numerical': 0.0, 'mean_word_length': 1.61139896373057, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3335627', 'n_tokens_mistral': 1035, 'n_tokens_neox': 998, 'n_words': 182}