<commit_before>// Generated on 2013-12-12 using generator-angular 0.6.0-rc.1
'use strict';

// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'

module.exports = function (grunt) {
    require('load-grunt-tasks')(grunt);
    require('time-grunt')(grunt);

    // load all grunt tasks
    require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

    grunt.initConfig({
                         yeoman: {
                             // configurable paths
                             jekyll: 'app',
                             app: '_site',
                             dist: 'dist'
                         },
                         watch: {
                             styles: {
                                 files: ['<%= yeoman.app %>/styles/{,*/}*.less'],
                                 tasks: ['less', 'copy:styles', 'autoprefixer']
                             },
                             jekyllSources: {
                                 files: [
                                     // capture all except css
                                     '<%= yeoman.jekyll %>/{,**/}*.html','!**/bower_components/**',
                                     '<%= yeoman.jekyll %>/{,*/}*.less',
                                     '.tmp/styles/{,*/}*.css',
                                     '{.tmp,<%= yeoman.jekyll %>}/scripts/{,*/}*.js',
                                     '<%= yeoman.jekyll %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
                                 ],
                                 tasks: ['shell:jekyll', 'copy:bower']
                             },
                             livereload: {
                                 options: {
                                     livereload: '<%= connect.options.livereload %>'
                                 },
                                 files: [
                                     '<%= yeoman.app %>/{,**/}*.html','!**/bower_components/**',
                                     '.tmp/styles/{,*/}*.css',
                                     '{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js',
                                     '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
                                 ]
                             }
                         },
                         autoprefixer: {
                             options: ['last 1 version'],
                             dist: {
                                 files: [
                                     {
                                         expand: true,
                                         cwd: '.tmp/styles/',
                                         src: '{,*/}*.css',
                                         dest: '.tmp/styles/'
                                     }
                                 ]
                             }
                         },
                         connect: {
                             options: {
                                 port: 9002,
                                 // Change this to '0.0.0.0' to access the server from outside.
                                 hostname: 'localhost',
                                 livereload: 35729
                             },
                             livereload: {
                                 options: {
                                     open: true,
                                     base: [
                                         '.tmp',
                                         '<%= yeoman.app %>'
                                     ]
                                 }
                             },
                             test: {
                                 options: {
                                     port: 9001,
                                     base: [
                                         '.tmp',
                                         'test',
                                         '<%= yeoman.app %>'
                                     ]
                                 }
                             },
                             dist: {
                                 options: {
                                     base: '<%= yeoman.dist %>'
                                 }
                             }
                         },
                         clean: {
                             dist: {
                                 files: [
                                     {
                                         dot: true,
                                         src: [
                                             '.tmp',
                                             '<%= yeoman.dist %>/*',
                                             '!<%= yeoman.dist %>/.git*'
                                         ]
                                     }
                                 ]
                             },
                             server: '.tmp'
                         },
                         jshint: {
                             options: {
                                 jshintrc: '.jshintrc',
                                 reporter: require('jshint-stylish')
                             },
                             all: [
                                 'Gruntfile.js',
                                 '<%= yeoman.app %>/scripts/{,*/}*.js'
                             ]
                         },
                         // not used since Uglify task does concat,
                         // but still available if needed
                         /*concat: {
                          dist: {}
                          },*/
                         rev: {
                             dist: {
                                 files: {
                                     src: [
                                         '<%= yeoman.dist %>/scripts/{,*/}*.js',
                                         '<%= yeoman.dist %>/styles/{,*/}*.css',
					                    // '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
                                         '<%= yeoman.dist %>/styles/fonts/*'
                                     ]
                                 }
                             }
                         },
                         useminPrepare: {
                             html: ['<%= yeoman.app %>/{,**/}*.html','!**/bower_components/**'],
                             options: {
                                 dest: '<%= yeoman.dist %>'
                             }
                         },
                         usemin: {
                             html: ['<%= yeoman.dist %>/{,**/}*.html','!**/bower_components/**'],
                             css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
                             options: {
                                 assetsDirs: ['<%= yeoman.dist %>'],
                             }
                         },
                         imagemin: {
                             dist: {
                                 files: [
                                     {
                                         expand: true,
                                         cwd: '<%= yeoman.app %>/images',
                                         src: '{,*/}*.{png,jpg,jpeg}',
                                         dest: '<%= yeoman.dist %>/images'
                                     }
                                 ]
                             }
                         },
                         svgmin: {
                             dist: {
                                 files: [
                                     {
                                         expand: true,
                                         cwd: '<%= yeoman.app %>/images',
                                         src: '{,*/}*.svg',
                                         dest: '<%= yeoman.dist %>/images'
                                     }
                                 ]
                             }
                         },
                         cssmin: {
                             // By default, your `index.html` <!-- Usemin Block --> will take care of
                             // minification. This option is pre-configured if you do not wish to use
                             // Usemin blocks.
                             // dist: {
                             //   files: {
                             //     '<%= yeoman.dist %>/styles/main.css': [
                             //       '.tmp/styles/{,*/}*.css',
                             //       '<%= yeoman.app %>/styles/{,*/}*.css'
                             //     ]
                             //   }
                             // }
                         },
                         htmlmin: {
                             dist: {
                                 options: {
                                 },
                                 files: [
                                     {
                                         expand: true,
                                         cwd: '<%= yeoman.app %>',
                                         src: ['{,**/}*.html','!**/bower_components/**'],
                                         dest: '<%= yeoman.dist %>',
                                     }
                                 ]
                             },
                             final:{
                                 options:{
                                     removeCommentsFromCDATA: true,
                                      removeComments: true,
                                      collapseWhitespace: false,
                                      collapseBooleanAttributes: true,
                                      removeAttributeQuotes: true,
                                      removeRedundantAttributes: true,
                                      useShortDoctype: true,
                                      removeEmptyAttributes: true,
                                      removeOptionalTags: true<commit_msg>fix broken rss link<commit_after>// Generated on 2013-12-12 using generator-angular 0.6.0-rc.1
'use strict';

// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'

module.exports = function (grunt) {
    require('load-grunt-tasks')(grunt);
    require('time-grunt')(grunt);

    // load all grunt tasks
    require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

    grunt.initConfig({
                         yeoman: {
                             // configurable paths
                             jekyll: 'app',
                             app: '_site',
                             dist: 'dist'
                         },
                         watch: {
                             styles: {
                                 files: ['<%= yeoman.app %>/styles/{,*/}*.less'],
                                 tasks: ['less', 'copy:styles', 'autoprefixer']
                             },
                             jekyllSources: {
                                 files: [
                                     // capture all except css
                                     '<%= yeoman.jekyll %>/{,**/}*.html','!**/bower_components/**',
                                     '<%= yeoman.jekyll %>/{,*/}*.less',
                                     '.tmp/styles/{,*/}*.css',
                                     '{.tmp,<%= yeoman.jekyll %>}/scripts/{,*/}*.js',
                                     '<%= yeoman.jekyll %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
                                 ],
                                 tasks: ['shell:jekyll', 'copy:bower']
                             },
                             livereload: {
                                 options: {
                                     livereload: '<%= connect.options.livereload %>'
                                 },
                                 files: [
                                     '<%= yeoman.app %>/{,**/}*.html','!**/bower_components/**',
                                     '.tmp/styles/{,*/}*.css',
                                     '{.tmp,<%= yeoman.app %>}/scripts/{,*/}*.js',
                                     '<%= yeoman.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
                                 ]
                             }
                         },
                         autoprefixer: {
                             options: ['last 1 version'],
                             dist: {
                                 files: [
                                     {
                                         expand: true,
                                         cwd: '.tmp/styles/',
                                         src: '{,*/}*.css',
                                         dest: '.tmp/styles/'
                                     }
                                 ]
                             }
                         },
                         connect: {
                             options: {
                                 port: 9002,
                                 // Change this to '0.0.0.0' to access the server from outside.
                                 hostname: 'localhost',
                                 livereload: 35729
                             },
                             livereload: {
                                 options: {
                                     open: true,
                                     base: [
                                         '.tmp',
                                         '<%= yeoman.app %>'
                                     ]
                                 }
                             },
                             test: {
                                 options: {
                                     port: 9001,
                                     base: [
                                         '.tmp',
                                         'test',
                                         '<%= yeoman.app %>'
                                     ]
                                 }
                             },
                             dist: {
                                 options: {
                                     base: '<%= yeoman.dist %>'
                                 }
                             }
                         },
                         clean: {
                             dist: {
                                 files: [
                                     {
                                         dot: true,
                                         src: [
                                             '.tmp',
                                             '<%= yeoman.dist %>/*',
                                             '!<%= yeoman.dist %>/.git*'
                                         ]
                                     }
                                 ]
                             },
                             server: '.tmp'
                         },
                         jshint: {
                             options: {
                                 jshintrc: '.jshintrc',
                                 reporter: require('jshint-stylish')
                             },
                             all: [
                                 'Gruntfile.js',
                                 '<%= yeoman.app %>/scripts/{,*/}*.js'
                             ]
                         },
                         // not used since Uglify task does concat,
                         // but still available if needed
                         /*concat: {
                          dist: {}
                          },*/
                         rev: {
                             dist: {
                                 files: {
                                     src: [
                                         '<%= yeoman.dist %>/scripts/{,*/}*.js',
                                         '<%= yeoman.dist %>/styles/{,*/}*.css',
					                    // '<%= yeoman.dist %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}',
                                         '<%= yeoman.dist %>/styles/fonts/*'
                                     ]
                                 }
                             }
                         },
                         useminPrepare: {
                             html: ['<%= yeoman.app %>/{,**/}*.html','!**/bower_components/**'],
                             options: {
                                 dest: '<%= yeoman.dist %>'
                             }
                         },
                         usemin: {
                             html: ['<%= yeoman.dist %>/{,**/}*.html','!**/bower_components/**'],
                             css: ['<%= yeoman.dist %>/styles/{,*/}*.css'],
                             options: {
                                 assetsDirs: ['<%= yeoman.dist %>'],
                             }
                         },
                         imagemin: {
                             dist: {
                                 files: [
                                     {
                                         expand: true,
                                         cwd: '<%= yeoman.app %>/images',
                                         src: '{,*/}*.{png,jpg,jpeg}',
                                         dest: '<%= yeoman.dist %>/images'
                                     }
                                 ]
                             }
                         },
                         svgmin: {
                             dist: {
                                 files: [
                                     {
                                         expand: true,
                                         cwd: '<%= yeoman.app %>/images',
                                         src: '{,*/}*.svg',
                                         dest: '<%= yeoman.dist %>/images'
                                     }
                                 ]
                             }
                         },
                         cssmin: {
                             // By default, your `index.html` <!-- Usemin Block --> will take care of
                             // minification. This option is pre-configured if you do not wish to use
                             // Usemin blocks.
                             // dist: {
                             //   files: {
                             //     '<%= yeoman.dist %>/styles/main.css': [
                             //       '.tmp/styles/{,*/}*.css',
                             //       '<%= yeoman.app %>/styles/{,*/}*.css'
                             //     ]
                             //   }
                             // }
                         },
                         htmlmin: {
                             dist: {
                                 options: {
                                 },
                                 files: [
                                     {
                                         expand: true,
                                         cwd: '<%= yeoman.app %>',
                                         src: ['{,**/}*.html','{,**/}*.xml','!**/bower_components/**'],
                                         dest: '<%= yeoman.dist %>',
                                     }
                                 ]
                             },
                             final:{
                                 options:{
                                     removeCommentsFromCDATA: true,
                                      removeComments: true,
                                      collapseWhitespace: false,
                                      collapseBooleanAttributes: true,
                                      removeAttributeQuotes: true,
                                      removeRedundantAttributes: true,
                                      useShortDoctype: true,
                                      removeEmptyAttributes: true,
                                      removeOptionalTags: true
{'fraction_non_alphanumeric': 0.10763142466288841, 'fraction_numerical': 0.00293140512018761, 'mean_word_length': 0.430998322147651, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 272, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1815638', 'n_tokens_mistral': 3990, 'n_tokens_neox': 3717, 'n_words': 600}