<commit_before>/*global module:false*/

module.exports = function(grunt) {

  "use strict";

  var itsbeen = "   "
    , st = new Date(1378438867382)
    , ct = new Date()
    , diff = {
      y: ct.getFullYear() - st.getFullYear(),
      m: ct.getMonth() - st.getMonth(),
      d: ct.getDate() - st.getDate()
    };

  itsbeen += "Project started before ";
  itsbeen += (diff.y === 0) ? "" : diff.y === 1 ? 1 + " year, " : ((diff.y < 0 ? 30 - Math.abs(diff.y) : diff.y) + " years") + " and "; 
  itsbeen += (diff.m === 0) ? "" : diff.m === 1 ? 1 + " month and " : ((diff.m < 0 ? 30 - Math.abs(diff.m) : diff.m) + " months") + " and "; 
  itsbeen += (diff.d === 0) ? "" : diff.d === 1 ? 1 + " day " : ((diff.d < 0 ? 30 - Math.abs(diff.d) : diff.d) + " days"); 
  itsbeen += "\n";

  // Project configuration.
  grunt.initConfig({

    pkg: grunt.file.readJSON("package.json"),

    banner: "/* ========================= \n" +
      "   <%= pkg.title %> - v<%= pkg.version %>\n" +
      "   ========================= \n" + 
      "   <%= grunt.template.today(\"yyyy-mm-dd\") %>\n" +
      itsbeen +
      "   http://erikroyall.github.com/<%= pkg.name %>/\n" +
      "   Copyright (c) 2013 <NAME>\n" +
      "   Licensed under <%= pkg.license %> (see LICENSE-MIT) \n*/\n\n",

    concat: {
      options: {
        banner: "<%= banner %>",
        stripBanners: true
      },
      dist: {
        src: [
          "src/base.css"
        ],
        dest: "dist/<%= pkg.name %>.css"
      }
    },

    csslint: {
      options: {
        csslintrc: ".csslintrc"
      },
      strict: {
        options: {
          import: 2
        },
        src: ["<%= concat.dist.dest %>"]
      },
      lax: {
        options: {
          import: false
        },
        src: ["<%= concat.dist.dest %>"]
      }
    },

    cssmin: {
      add_banner: {
        options: {
          banner: "<%= banner %>"
        },
        files: {
          "<%= pkg.name %>.min.css": ["<%= concat.dist.dest %>"]
        }
      }
    },

    watch: {
      csslintrc: {
        files: [".csslintrc"],
        tasks: ["concat", "csslint", "cssmin"]
      },<commit_msg>Modify Gruntfile for CSSLint<commit_after>/*global module:false*/

module.exports = function(grunt) {

  "use strict";

  var itsbeen = " * "
    , st = new Date(1378438867382)
    , ct = new Date()
    , diff = {
      y: ct.getFullYear() - st.getFullYear(),
      m: ct.getMonth() - st.getMonth(),
      d: ct.getDate() - st.getDate()
    };

  itsbeen += "Project started before ";
  itsbeen += (diff.y === 0) ? "" : diff.y === 1 ? 1 + " year, " : ((diff.y < 0 ? 30 - Math.abs(diff.y) : diff.y) + " years") + " and "; 
  itsbeen += (diff.m === 0) ? "" : diff.m === 1 ? 1 + " month and " : ((diff.m < 0 ? 30 - Math.abs(diff.m) : diff.m) + " months") + " and "; 
  itsbeen += (diff.d === 0) ? "" : diff.d === 1 ? 1 + " day " : ((diff.d < 0 ? 30 - Math.abs(diff.d) : diff.d) + " days"); 
  itsbeen += "\n";

  // Project configuration.
  grunt.initConfig({

    pkg: grunt.file.readJSON("package.json"),

    banner: "/*! \n * ========================= \n" +
      " * <%= pkg.title %> - v<%= pkg.version %>\n" +
      " * ========================= \n" + 
      " * <%= grunt.template.today(\"yyyy-mm-dd\") %>\n" +
      itsbeen +
      " * http://erikroyall.github.com/<%= pkg.name %>/\n" +
      " * Copyright (c) 2013 <NAME>\n" +
      " * Licensed under <%= pkg.license %> (see LICENSE-MIT) \n */\n\n\r",

    concat: {
      options: {
        banner: "<%= banner %>",
        stripBanners: true
      },
      dist: {
        src: [
          "src/base.css",
          "src/grid.css"
        ],
        dest: "dist/<%= pkg.name %>.css"
      }
    },

    csslint: {
      options: {
        csslintrc: ".csslintrc"
      },
      strict: {
        options: {
          import: 2
        },
        src: ["<%= concat.dist.dest %>"]
      },
      lax: {
        options: {
          import: false
        },
        src: ["<%= concat.dist.dest %>"]
      }
    },

    cssmin: {
      add_banner: {
        files: {
          "dist/<%= pkg.name %>.min.css": ["<%= concat.dist.dest %>"]
        }
      }
    },

    watch: {
      csslintrc: {
        files: [".csslintrc"],
        tasks: ["concat", "csslint", "cssmin"]
      },
{'fraction_non_alphanumeric': 0.23896285914505958, 'fraction_numerical': 0.016818500350385426, 'mean_word_length': 1.674578388507183, 'pattern_counts': {'":': 2, '<': 34, '<?xml version=': 0, '>': 28, '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': '3160518', 'n_tokens_mistral': 1718, 'n_tokens_neox': 1530, 'n_words': 296}