<commit_before>// Generated on 2013-03-06 using generator-webapp 0.1.5
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
    return connect.static(require('path').resolve(dir));
};

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

module.exports = function (grunt) {
    // load all grunt tasks
    require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

    // load local tasks from /tasks/grunt folder
    grunt.loadNpmTasks('grunt-bless', 'grunt-devtools', 'grunt-contrib-concat');

    grunt.initConfig({
        watch: {
            compass: {
                files: ['sass/**/*.scss'],
                tasks: ['compass', 'bless:debug', 'concat:dist']
            },
            livereload: {
                files: [
                    'inc/**/*.html',
                    '*.html',
                    'css/*.css',
                    'js/**/*.js',
                    'img/**/*.{png,jpg,jpeg,webp}'
                ]
            }
        },
        concat: {
            options: {
                stripBanners: false,
                separator: ';',
                banner: '/*' + '<%= grunt.template.today("yyyy-mm-dd") %> */'
            },
            dist: {
                src: [
                    'js/lib/jquery.min.js',
                    'js/foundation/app.js',
                    'js/lib/respond.min.js',
                    'js/lib/response.min.js',
                    'js/lib/jquery.flexslider.min.js',
                    'js/lib/jquery.tinyscrollbar.min.js',
                    'js/lib/jquery.uniform.min.js',
                    'js/lib/jquery.validate.js',
                    'js/lib/typeahead.min.js',
                    'js/lib/select.js',
                    'js/scripts.js',
                    'js/content-grid.js',
                    'js/content-filter.js',
                    'js/category-landing.js',
                    'js/home.js',
                    'js/modules/article.js',
                    'js/modules/modal.js',
                    'js/modules/mini-cart.js',
                    'js/lifestyle.js',
                    'js/product-detail.js',
                    'js/search-results.js',
                    'js/special-offers.js',
                    'js/cart.js',
                    'js/mls-ajax.js',
                    'js/404.js',
                    'js/util.js',
                    'js/ui.js'
                ],
                dest: 'js/all.js'
            }
        },
        connect: {
            options: {
                port: 8888,
                // change this to '0.0.0.0' to access the server from outside
                hostname: 'localhost',
                base: ''
            },
            livereload: {
                options: {
                    middleware: function (connect) {
                        return [
                            mountFolder(connect, '')
                        ];
                    }
                }
            },
            qa: {
                options: {
                    middleware: function (connect) {
                        return [
                            mountFolder(connect, '.tmp'),
                            mountFolder(connect, '')
                        ];
                    }
                }
            },
            dist: {
                options: {
                    middleware: function (connect) {
                        return [
                            mountFolder(connect, '')
                        ];
                    }
                }
            }
        },
        open: {
            local: {
                path: 'http://localhost:<%= connect.options.port %>'
            },
            wiki: {
                path: 'https://bitbucket.org/wdavidow/sapient-vzw-mobile-lifestyle-store'
            }
        },
        clean: {
            all: ['.tmp', 'dist/*', 'dist/.*']
        },
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                'Gruntfile.js',
                'js/{,*/}*.js'
            ]
        },
        bless: {
            options: {
                compress: true,
                cleanup: true,
                force: true,
                imports: true,
                cacheBuster: false
            },
            debug: {
                files: {
                    'css/styles.css': [
                        'css/styles.css'
                    ]
                }
            }
        },
        compass: {
            options: {
                sassDir: 'sass',
                cssDir: 'css',
                imagesDir: 'img',
                javascriptsDir: 'js',
                fontsDir: 'fonts',
                relativeAssets: true
            },
            debug: {
                options: {
                    debugInfo: false
                }
            }
        },
        imagemin: {
            all: {
                files: [{
                    expand: true,
                    cwd: 'img',
                    src: '{,*/}*.{png,jpg,jpeg}',
                    dest: 'images'<commit_msg>Adding cache buster for bless<commit_after>// Generated on 2013-03-06 using generator-webapp 0.1.5
'use strict';
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
    return connect.static(require('path').resolve(dir));
};

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

module.exports = function (grunt) {
    // load all grunt tasks
    require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

    // load local tasks from /tasks/grunt folder
    grunt.loadNpmTasks('grunt-bless', 'grunt-devtools', 'grunt-contrib-concat');

    grunt.initConfig({
        watch: {
            compass: {
                files: ['sass/**/*.scss'],
                tasks: ['compass', 'bless:debug', 'concat:dist']
            },
            livereload: {
                files: [
                    'inc/**/*.html',
                    '*.html',
                    'css/*.css',
                    'js/**/*.js',
                    'img/**/*.{png,jpg,jpeg,webp}'
                ]
            }
        },
        concat: {
            options: {
                stripBanners: false,
                separator: ';',
                banner: '/*' + '<%= grunt.template.today("yyyy-mm-dd") %> */'
            },
            dist: {
                src: [
                    'js/lib/jquery.min.js',
                    'js/foundation/app.js',
                    'js/lib/respond.min.js',
                    'js/lib/response.min.js',
                    'js/lib/jquery.flexslider.min.js',
                    'js/lib/jquery.tinyscrollbar.min.js',
                    'js/lib/jquery.uniform.min.js',
                    'js/lib/jquery.validate.js',
                    'js/lib/typeahead.min.js',
                    'js/lib/select.js',
                    'js/scripts.js',
                    'js/content-grid.js',
                    'js/content-filter.js',
                    'js/category-landing.js',
                    'js/home.js',
                    'js/modules/article.js',
                    'js/modules/modal.js',
                    'js/modules/mini-cart.js',
                    'js/lifestyle.js',
                    'js/product-detail.js',
                    'js/search-results.js',
                    'js/special-offers.js',
                    'js/cart.js',
                    'js/mls-ajax.js',
                    'js/404.js',
                    'js/util.js',
                    'js/ui.js'
                ],
                dest: 'js/all.js'
            }
        },
        connect: {
            options: {
                port: 8888,
                // change this to '0.0.0.0' to access the server from outside
                hostname: 'localhost',
                base: ''
            },
            livereload: {
                options: {
                    middleware: function (connect) {
                        return [
                            mountFolder(connect, '')
                        ];
                    }
                }
            },
            qa: {
                options: {
                    middleware: function (connect) {
                        return [
                            mountFolder(connect, '.tmp'),
                            mountFolder(connect, '')
                        ];
                    }
                }
            },
            dist: {
                options: {
                    middleware: function (connect) {
                        return [
                            mountFolder(connect, '')
                        ];
                    }
                }
            }
        },
        open: {
            local: {
                path: 'http://localhost:<%= connect.options.port %>'
            },
            wiki: {
                path: 'https://bitbucket.org/wdavidow/sapient-vzw-mobile-lifestyle-store'
            }
        },
        clean: {
            all: ['.tmp', 'dist/*', 'dist/.*']
        },
        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                'Gruntfile.js',
                'js/{,*/}*.js'
            ]
        },
        bless: {
            options: {
                compress: true,
                cleanup: true,
                force: true,
                imports: true,
                cacheBuster: true
            },
            debug: {
                files: {
                    'css/styles.css': [
                        'css/styles.css'
                    ]
                }
            }
        },
        compass: {
            options: {
                sassDir: 'sass',
                cssDir: 'css',
                imagesDir: 'img',
                javascriptsDir: 'js',
                fontsDir: 'fonts',
                relativeAssets: true
            },
            debug: {
                options: {
                    debugInfo: false
                }
            }
        },
        imagemin: {
            all: {
                files: [{
                    expand: true,
                    cwd: 'img',
                    src: '{,*/}*.{png,jpg,jpeg}',
                    dest: 'images'
{'fraction_non_alphanumeric': 0.1309200037512895, 'fraction_numerical': 0.004126418456344368, 'mean_word_length': 0.8244653550042772, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2518508', 'n_tokens_mistral': 2953, 'n_tokens_neox': 2697, 'n_words': 435}