<commit_before>/*global module:false*/

module.exports = function(grunt) {
  'use strict';
  grunt.initConfig({
    meta: {
      version: '0.1.0',
      timestamp: Math.floor(new Date().getTime()/1000),
      banner: '/*! */',
      jsfilename: 'boilerplate',
      cssfilename: 'boilerplate'
    },

    exec: {
      clear: {
        command: 'clear',
        stdout: true
      }
    },

    jshint: {
      options: {
        curly: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true
      },
      app: {
        options: {
          browser: true,
          devel: true,
          jquery: true
        },
        files: {
          src: ['src/js/src/main.js']
        }
      },
    },

    less: {
      styles: {
        files: {
          'src/css/<%= meta.cssfilename %>.css': 'src/less/app.less'
        }
      }
    },

    concat: {
      scripts: {
        src: [
          'src/js/src/jquery-1.10.2.min.js',
          'src/js/src/main.js'
        ],
        dest: 'src/js/<%= meta.jsfilename %>.js'
      }
    },

    uglify: {
      scripts: {
        options: {
          banner: '<%= meta.banner %>'
        },
        files: {
          'dist/js/<%= meta.jsfilename %>.js': '<%= concat.scripts.dest %>'
        }
      }
    },

    cssmin: {
      compress: {
        files: {
          'dist/css/<%= meta.cssfilename %>.css': 'src/css/<%= meta.cssfilename %>.css'
        }
      }
    },

    imagemin: {
      png: {
        options: {
          optimizationLevel: 2
        },
        files: [
          {
            expand: true,
            cwd: './src/img/',
            src: ['**/*.png'],
            dest: './dist/img/',
            ext: '.png'
          }
        ]
      },
      jpg: {
        options: {
          progressive: true
        },
        files: [
          {
            expand: true,
            cwd: './src/img/',
            src: ['**/*.jpg'],
            dest: './dist/img/',
            ext: '.jpg'
          }
        ]
      }
    },

    htmlmin: {
      dist: {
        options: {
          removeComments: true,
          collapseWhitespace: true,
          removeEmptyAttributes: true,
          removeCommentsFromCDATA: true,
          removeRedundantAttributes: true,
          collapseBooleanAttributes: true
        },
        files: {
          './dist/index.html': './src/index.html'
        }<commit_msg>update Gruntfiles.js<commit_after>/*global module:false*/

module.exports = function(grunt) {
  'use strict';
  grunt.initConfig({
    meta: {
      version: '0.1.0',
      timestamp: Math.floor(new Date().getTime()/1000),
      banner: '/*! */',
      jsfilename: 'boilerplate',
      cssfilename: 'boilerplate'
    },

    exec: {
      clear: {
        command: 'clear',
        stdout: true
      }
    },

    jshint: {
      options: {
        curly: true,
        strict: true,
        eqeqeq: true,
        immed: true,
        latedef: true,
        newcap: true,
        noarg: true,
        sub: true,
        undef: true,
        boss: true,
        eqnull: true
      },
      app: {
        options: {
          browser: true,
          devel: true,
          jquery: true
        },
        files: {
          src: ['src/js/src/main.js']
        }
      },
    },

    less: {
      styles: {
        files: {
          'src/css/<%= meta.cssfilename %>.css': 'src/less/app.less'
        }
      }
    },

    concat: {
      scripts: {
        src: [
          'src/js/src/jquery-1.10.2.min.js',
          'src/js/src/main.js'
        ],
        dest: 'src/js/<%= meta.jsfilename %>.js'
      }
    },

    uglify: {
      scripts: {
        options: {
          banner: '<%= meta.banner %>'
        },
        files: {
          'dist/js/<%= meta.jsfilename %>.js': '<%= concat.scripts.dest %>'
        }
      }
    },

    cssmin: {
      compress: {
        files: {
          'dist/css/<%= meta.cssfilename %>.css': 'src/css/<%= meta.cssfilename %>.css'
        }
      }
    },

    imagemin: {
      png: {
        options: {
          optimizationLevel: 2
        },
        files: [
          {
            expand: true,
            cwd: './src/img/',
            src: ['**/*.png'],
            dest: './dist/img/',
            ext: '.png'
          }
        ]
      },
      jpg: {
        options: {
          progressive: true
        },
        files: [
          {
            expand: true,
            cwd: './src/img/',
            src: ['**/*.jpg'],
            dest: './dist/img/',
            ext: '.jpg'
          }
        ]
      }
    },

    htmlmin: {
      dist: {
        options: {
          removeComments: true,
          collapseWhitespace: true,
          removeEmptyAttributes: true,
          removeCommentsFromCDATA: true,
          removeRedundantAttributes: true,
          collapseBooleanAttributes: true
        },
        files: [
          {
            expand: true,
            cwd: './src/',
            src: ['**/*.html'],
            dest: './dist/',
            ext: '.html'
          }
        ]
{'fraction_non_alphanumeric': 0.15745749613601237, 'fraction_numerical': 0.00463678516228748, 'mean_word_length': 1.102761982128351, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '4755887', 'n_tokens_mistral': 1696, 'n_tokens_neox': 1633, 'n_words': 293}