<commit_before>/*global module:false*/
module.exports = function(grunt) {
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
  // Project configuration.
  grunt.initConfig({
    // Metadata.
    shaSub: function(sha){
      return sha.substring(sha.length - 7);
    },
    jsDir: "public/javascripts",
    stylesDir: "public/stylesheets",
    jshint: {
      options: {
        jshintrc: '.jshintrc'
      },
      all: ['<%= jsDir %>/**/*.js', '!<%= jsDir %>/vendor/*.js']
    },
    compass: {
      options: {
        httpPath: '/',
        cssDir: '<%= stylesDir %>',
        sassDir: '<%= stylesDir %>',
        fontsDir: '<%= stylesDir %>/fonts',
        imagesDir: 'public/images',
        javascriptsDir: '<%= jsDir %>',
        noLineComments: true,
        sassOptions: {
          debugInfo: false,
          sourcemap: true
        },
        relativeAssets: true
      },
      dev: {
        outputStyle: 'nested'
      },
      prod: {
        cssDir: 'public/<%= shaSub(commitSHA) %>/styles',
        environment: 'production',
        outputStyle: 'compressed'
      }
    },
    express: {
      options: {
        script: 'app.js'
      },
      dev: {
        options: {
          debug: true,
          node_env: 'dev'
        }
      }
    },
    watch: {
      options: {
        livereload: true,
        spawn: false //Without this option specified express won't be reloaded
      },
      styles: {
        files: ['public/**/*.sass', 'public/**/*.scss'],
        tasks: ['compass:dev'],
      },
      src: {
        files: ['views/*.jade', '<%= jsDir %>/*.js', '!node_modules/**/*.js'],
      },
      server: {
        files: ['**/*.js', '!<%= jsDir %>/**/*.js', '!node_modules/**/*.js'],
        tasks: ['express:dev']
      }
    },
    imagemin: {
      options: {
        optimizationLevel: 3
      },
      dist: {
        files: [{
          expand: true,
          cwd: 'public/images',
          src: '{,*/}*.{png,jpg,jpeg}',<commit_msg>Live reload will now detect changes to js files in sub-directories<commit_after>/*global module:false*/
module.exports = function(grunt) {
  require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
  // Project configuration.
  grunt.initConfig({
    // Metadata.
    shaSub: function(sha){
      return sha.substring(sha.length - 7);
    },
    jsDir: "public/javascripts",
    stylesDir: "public/stylesheets",
    jshint: {
      options: {
        jshintrc: '.jshintrc'
      },
      all: ['<%= jsDir %>/**/*.js', '!<%= jsDir %>/vendor/*.js']
    },
    compass: {
      options: {
        httpPath: '/',
        cssDir: '<%= stylesDir %>',
        sassDir: '<%= stylesDir %>',
        fontsDir: '<%= stylesDir %>/fonts',
        imagesDir: 'public/images',
        javascriptsDir: '<%= jsDir %>',
        noLineComments: true,
        sassOptions: {
          debugInfo: false,
          sourcemap: true
        },
        relativeAssets: true
      },
      dev: {
        outputStyle: 'nested'
      },
      prod: {
        cssDir: 'public/<%= shaSub(commitSHA) %>/styles',
        environment: 'production',
        outputStyle: 'compressed'
      }
    },
    express: {
      options: {
        script: 'app.js'
      },
      dev: {
        options: {
          debug: true,
          node_env: 'dev'
        }
      }
    },
    watch: {
      options: {
        livereload: true,
        spawn: false //Without this option specified express won't be reloaded
      },
      styles: {
        files: ['public/**/*.sass', 'public/**/*.scss'],
        tasks: ['compass:dev'],
      },
      src: {
        files: ['views/*.jade', '<%= jsDir %>/**/*.js', '!node_modules/**/*.js'],
      },
      server: {
        files: ['**/*.js', '!<%= jsDir %>/**/*.js', '!node_modules/**/*.js'],
        tasks: ['express:dev']
      }
    },
    imagemin: {
      options: {
        optimizationLevel: 3
      },
      dist: {
        files: [{
          expand: true,
          cwd: 'public/images',
          src: '{,*/}*.{png,jpg,jpeg}',
{'fraction_non_alphanumeric': 0.18783984181908056, 'fraction_numerical': 0.0009886307464162135, 'mean_word_length': 1.754935330156569, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '3680588', 'n_tokens_mistral': 1336, 'n_tokens_neox': 1290, 'n_words': 245}