<commit_before>module.exports = function( grunt ) {
  'use strict';
  //
  // Grunt configuration:
  //
  // https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
  //
  grunt.initConfig({

    // store the path the theme used to make it a bit easier
    wordpress: {
      theme: 'app/wp-content/themes/twentyeleven'
    },

    // Project configuration
    // ---------------------

    // specify an alternate install location for Bower
    bower: {
      dir: 'app/scripts/vendor'
    },

    // Coffee to JS compilation
    coffee: {
      dist: {
        src: 'app/wp-content/themes/**/js/*.coffee',
        dest: 'app/wp-content/themes/**/js'
      }
    },

    // compile .scss/.sass to .css using Compass
    compass: {
      dist: {
        // http://compass-style.org/help/tutorials/configuration-reference/#configuration-properties
        options: {
          css_dir: '<config:wordpress.theme>',
          sass_dir: '<config:wordpress.theme>',
          images_dir: 'app/wp-content/themes/**/images',
          javascripts_dir: 'app/wp-content/themes/**/js',
          force: true
        }
      }
    },

    // generate application cache manifest
    manifest:{
      dest: ''
    },

    // headless testing through PhantomJS
    mocha: {
      all: ['test/**/*.html']
    },

    // default watch configuration
    watch: {
      coffee: {
        files: '<config:coffee.dist.src>',
        tasks: 'coffee reload'
      },
      compass: {
        files: [
          'app/wp-content/themes/**/*.{scss,sass}'
        ],
        tasks: 'compass reload'
      },
      reload: {
        files: [
          'app/wp-content/themes/**/*.php',
          'app/wp-content/themes/**/**/*.css',
          'app/wp-content/themes/**/js/*.js',
          'app/wp-content/themes/**/images/*',
          'app/wp-content/themes/**/images/**/*'
        ],
        tasks: 'reload'
      }
    },

    // default lint configuration, change this to match your setup:
    // https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#lint-built-in-task
    lint: {
      files: [
        'Gruntfile.js',
        'app/wp-content/themes/**/js/*.js'
      ]
    },

    // specifying JSHint options and globals
    // https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#specifying-jshint-options-and-globals
    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true,
        browser: true
      },
      globals: {
        jQuery: true
      }
    },

    // Build configuration
    // -------------------

    // the staging directory used during the process
    staging: 'temp',
    // final build output
    output: 'dist',

    mkdirs: {
      staging: 'app/'
    },

    // Below, all paths are relative to the staging directory, which is a copy
    // of the app/ directory. Any .gitignore, .ignore and .buildignore file
    // that might appear in the app/ tree are used to ignore these values
    // during the copy process.

    // concat css/**/*.css files, inline @import, output a single minified css
    // TODO: find a way to use the config variable to avoid writing the name of the theme
    // to make it work with wordpress we need to keep the name 'style.css'
    css: {
      'wp-content/themes/twentyeleven/style.css': ['wp-content/themes/twentyeleven/*.css']
    },

    //'styles/main.css': ['styles/**/*.css']

    // renames JS/CSS to prepend a hash of their contents for easier
    // versioning
    // disabled to make it work with wordpress
    rev: {
//      js: 'wp-content/themes/**/js/*.js',
//      css: 'wp-content/themes/**/*.css',
      img: 'wp-content/themes/**/images/*.png' // avoid a crash - not sur if this is good https://github.com/yeoman/yeoman/issues/262
    },

    // usemin handler should point to the file containing
    // the usemin blocks to be parsed
    'usemin-handler': {
      html: 'index.html'
    },

    // update references in HTML/CSS to revved files
    usemin: {
      html: ['**/*.html'],
      css: ['**/*.css']
    },

    // HTML minification
    html: {
      files: ['**/*.html']
    },

    // Optimizes JPGs and PNGs (with jpegtran & optipng)
    img: {
      dist: '<config:rev.img>'
    },
<commit_msg>Fixed a bug in build task<commit_after>module.exports = function( grunt ) {
  'use strict';
  //
  // Grunt configuration:
  //
  // https://github.com/cowboy/grunt/blob/master/docs/getting_started.md
  //
  grunt.initConfig({

    // store the path the theme used to make it a bit easier
    wordpress: {
      theme: 'app/wp-content/themes/twentyeleven'
    },

    // Project configuration
    // ---------------------

    // specify an alternate install location for Bower
    bower: {
      dir: 'app/scripts/vendor'
    },

    // Coffee to JS compilation
    coffee: {
      dist: {
        src: 'app/wp-content/themes/**/js/*.coffee',
        dest: 'app/wp-content/themes/**/js'
      }
    },

    // compile .scss/.sass to .css using Compass
    compass: {
      dist: {
        // http://compass-style.org/help/tutorials/configuration-reference/#configuration-properties
        options: {
          css_dir: '<config:wordpress.theme>',
          sass_dir: '<config:wordpress.theme>',
          images_dir: 'app/wp-content/themes/**/images',
          javascripts_dir: 'app/wp-content/themes/**/js',
          force: true
        }
      }
    },

    // generate application cache manifest
    manifest:{
      dest: ''
    },

    // headless testing through PhantomJS
    mocha: {
      all: ['test/**/*.html']
    },

    // default watch configuration
    watch: {
      coffee: {
        files: '<config:coffee.dist.src>',
        tasks: 'coffee reload'
      },
      compass: {
        files: [
          'app/wp-content/themes/**/*.{scss,sass}'
        ],
        tasks: 'compass reload'
      },
      reload: {
        files: [
          'app/wp-content/themes/**/*.php',
          'app/wp-content/themes/**/**/*.css',
          'app/wp-content/themes/**/js/*.js',
          'app/wp-content/themes/**/images/*',
          'app/wp-content/themes/**/images/**/*'
        ],
        tasks: 'reload'
      }
    },

    // default lint configuration, change this to match your setup:
    // https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#lint-built-in-task
    lint: {
      files: [
        'Gruntfile.js',
        'app/wp-content/themes/**/js/*.js'
      ]
    },

    // specifying JSHint options and globals
    // https://github.com/cowboy/grunt/blob/master/docs/task_lint.md#specifying-jshint-options-and-globals
    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true,
        browser: true
      },
      globals: {
        jQuery: true
      }
    },

    // Build configuration
    // -------------------

    // the staging directory used during the process
    staging: 'temp',
    // final build output
    output: 'dist',

    mkdirs: {
      staging: 'app/'
    },

    // Below, all paths are relative to the staging directory, which is a copy
    // of the app/ directory. Any .gitignore, .ignore and .buildignore file
    // that might appear in the app/ tree are used to ignore these values
    // during the copy process.

    // concat css/**/*.css files, inline @import, output a single minified css
    // TODO: find a way to use the config variable to avoid writing the name of the theme
    // to make it work with wordpress we need to keep the name 'style.css'
    css: {
      'wp-content/themes/twentyeleven/style.css': ['wp-content/themes/twentyeleven/*.css']
    },

    //'styles/main.css': ['styles/**/*.css']

    // renames JS/CSS to prepend a hash of their contents for easier
    // versioning
    // disabled to make it work with wordpress
    rev: {
//      js: 'wp-content/themes/**/js/*.js',
//      css: 'wp-content/themes/**/*.css',
      img: 'wp-content/themes/**/images/**'
    },

    // usemin handler should point to the file containing
    // the usemin blocks to be parsed
    'usemin-handler': {
      html: 'index.html'
    },

    // update references in HTML/CSS to revved files
    usemin: {
      html: ['**/*.html'],
      css: ['**/*.css']
    },

    // HTML minification
    html: {
      files: ['**/*.html']
    },

    // Optimizes JPGs and PNGs (with jpegtran & optipng)
    img: {
      dist: '<config:rev.img>'
    },

{'fraction_non_alphanumeric': 0.15760994704121575, 'fraction_numerical': 0.000345383375546857, 'mean_word_length': 1.7887640449438202, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 7, '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': '2228641', 'n_tokens_mistral': 2796, 'n_tokens_neox': 2689, 'n_words': 665}