<commit_before>'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('package.json'),
    banner: '/*! <%= pkg.name %> - v<%= pkg.version %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
      ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',

    clean: {
      files: [
        'dist/*.js',
        'dist/*.css',
        'dist/*.html'
      ]
    },
    concat: {
      options: {
        banner: '<%= banner %>',
        stripBanners: true
      },
      dist: {
        src: ['src/scripts/spritespin.js', 'src/scripts/spritespin.api.js', 'src/scripts/spritespin.*-*.js'],
        dest: 'dist/spritespin.js'
      }
    },
    uglify: {
      options: {
        banner: '<%= banner %>'
      },
      dist: {
        src: '<%= concat.dist.dest %>',
        dest: 'dist/spritespin.min.js'
      }
    },
    docco: {
      dist: {
        options: {
          output: 'dist/docs/'
        },
        src: '<%= concat.dist.src %>'
      }
    },
    slim: {
      page:{
        options: {
          pretty: true
        },
        files: [{
          expand: true,
          cwd: 'src',
          src: ['index.slim', 'example-*.slim'],
          dest: 'dist',
          ext: '.html'
        }]
      }
    },
    compass: {
      page: {
        options: {
          sassDir: 'src/style',
          cssDir: 'dist'
        }
      }
    },
    watch: {
      all: {
        options: {
          livereload: true
        },
        files: ['src/**/*'],
        tasks: ['clean', 'compass:page', 'slim:page', 'concat']
      }
    }
  });

  // These plugins provide necessary tasks.
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-qunit');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-compass');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-docco');
  grunt.loadNpmTasks('grunt-slim');

  // Default task.
  grunt.registerTask('default', ['clean', 'concat', 'uglify', 'slim', 'compass']);
};<commit_msg>rebuild everything on grunt watch<commit_after>'use strict';

module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    // Metadata.
    pkg: grunt.file.readJSON('package.json'),
    banner: '/*! <%= pkg.name %> - v<%= pkg.version %>\n' +
      '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
      '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
      ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',

    clean: {
      files: [
        'dist/*.js',
        'dist/*.css',
        'dist/*.html'
      ]
    },
    concat: {
      options: {
        banner: '<%= banner %>',
        stripBanners: true
      },
      dist: {
        src: ['src/scripts/spritespin.js', 'src/scripts/spritespin.api.js', 'src/scripts/spritespin.*-*.js'],
        dest: 'dist/spritespin.js'
      }
    },
    uglify: {
      options: {
        banner: '<%= banner %>'
      },
      dist: {
        src: '<%= concat.dist.dest %>',
        dest: 'dist/spritespin.min.js'
      }
    },
    docco: {
      dist: {
        options: {
          output: 'dist/docs/'
        },
        src: '<%= concat.dist.src %>'
      }
    },
    slim: {
      page:{
        options: {
          pretty: true
        },
        files: [{
          expand: true,
          cwd: 'src',
          src: ['index.slim', 'example-*.slim'],
          dest: 'dist',
          ext: '.html'
        }]
      }
    },
    compass: {
      page: {
        options: {
          sassDir: 'src/style',
          cssDir: 'dist'
        }
      }
    },
    watch: {
      all: {
        options: {
          livereload: true
        },
        files: ['src/**/*'],
        tasks: ['clean', 'concat', 'uglify', 'slim', 'compass']
      }
    }
  });

  // These plugins provide necessary tasks.
  grunt.loadNpmTasks('grunt-contrib-clean');
  grunt.loadNpmTasks('grunt-contrib-concat');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-qunit');
  grunt.loadNpmTasks('grunt-contrib-jshint');
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-contrib-compass');
  grunt.loadNpmTasks('grunt-contrib-copy');
  grunt.loadNpmTasks('grunt-docco');
  grunt.loadNpmTasks('grunt-slim');

  // Default task.
  grunt.registerTask('default', ['clean', 'concat', 'uglify', 'slim', 'compass']);
};
{'fraction_non_alphanumeric': 0.1998730964467005, 'fraction_numerical': 0.0, 'mean_word_length': 1.8905867970660146, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '1617810', 'n_tokens_mistral': 1706, 'n_tokens_neox': 1641, 'n_words': 243}