<commit_before>// Generated on 2014-12-17 using
// generator-webapp 0.5.1
'use strict';

// # Globbing
// to only match one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'

module.exports = function(grunt) {

    // Time how long tasks take. Can help when optimizing build times
    require('time-grunt')(grunt);

    // Load grunt tasks automatically
    require('load-grunt-tasks')(grunt);

    // Configurable paths
    var config = {
        webApp: 'webapp',
        app: '..',
        dist: 'webapp/dist'
    };

    // Define the configuration for all the tasks
    grunt.initConfig({

        // Project settings
        config: config,

        // Make sure code styles are up to par and there are no obvious mistakes
        jshint: {
            options: {
                jshintrc: '.jshintrc',
                reporter: require('jshint-stylish')
            },
            all: [
                '*.js',
                '*.json',
                '<%= config.webApp %>/**/*.js',
                '<%= config.webApp %>/**/*.json'
            ]
        },

        watch: {
            js: {
                files: ['<%= jshint.all %>'],
                tasks: ['jshint'],
                options: {
                    livereload: true
                }
            },
            sass: {
            	files: ['<%= config.webApp %>/styles/**/*.scss', '<%= config.webApp %>/components/**/*.scss'],
                tasks: ['sass:dev']
            }
        },
        // The actual grunt server settings
        connect: {
            options: {
                port: 9000,
                open: true,
                livereload: 35729,
                // Change this to '0.0.0.0' to access the server from outside
                hostname: 'localhost'
            },
            livereload: {
                options: {
                    middleware: function(connect) {
                        return [
                            connect.static('.tmp'),
                            connect().use('/bower_components', connect.static('./bower_components')),
                            connect.static(config.webApp)
                        ];
                    }
                }
            },
            test: {
                options: {
                    open: false,
                    port: 9001,
                    middleware: function(connect) {
                        return [
                            connect.static('.tmp'),
                            connect.static('test'),
                            connect().use('/bower_components', connect.static('./bower_components')),
                            connect.static(config.webApp)
                        ];
                    }
                }
            },
            dist: {
                options: {
                    base: '<%= config.dist %>',
                    livereload: false
                }
            }
        },

        // Empties folders to start fresh
        clean: {
            dist: {
                files: [{
                    dot: true,
                    src: [
                        '<%= config.dist %>/*',
                        '!<%= config.dist %>/.git*'
                    ]
                }]
            },
            dev: {
                files: [{
                    dot: true,
                    src: [
                        '<%= config.dist %>/*',
                        '!<%= config.dist %>/.git*'
                    ]
                }]
            }
        },

        // Mocha testing framework configuration options
        mocha: {
            all: {
                options: {
                    run: true,
                    urls: ['http://<%= connect.test.options.hostname %>:<%= connect.test.options.port %>/']
                }
            }
        },

        // Compiles Sass to CSS and generates necessary files if requested
        sass: {
            options: {
                style: 'compressed',
                loadPath: 'bower_components/bootstrap-sass-official/assets/stylesheets/',
                trace: true
            },
            dist: {
                files: [{
                    '<%= config.webApp %>/dist/css/main.css': '<%= config.webApp %>/styles/dist.scss',
                },
                {
                	expand: true,
                	src: ["<%= config.webApp %>/components/**/*.scss"],
                	dest: "./styles",
                	ext: ".css"
                }]
            },
            dev: {
                options: {

                },
                files: [{
                    '<%= config.webApp %>/dev/css/main.css': '<%= config.webApp %>/styles/main.scss',
                    '<%= config.webApp %>/dev/css/bootstrap.css': '<%= config.webApp %>/styles/bootstrap-custom.scss'
                },
                {
                	expand: true,
                	src: ["<%= config.webApp %>/components/**/*.scss"],
                	dest: "./styles",
                	ext: ".css"
                }]
            }
        },

        nodemon: {
            dev: {
                script: './bin/www',
                options: {
                    args: ['NODE_ENV=development']
                }
            }
        },
<commit_msg>fixing sass<commit_after>// Generated on 2014-12-17 using
// generator-webapp 0.5.1
'use strict';

// # Globbing
// to only match one level down:
// 'test/spec/{,*/}*.js'
// If you want to recursively match all subfolders, use:
// 'test/spec/**/*.js'

module.exports = function(grunt) {

    // Time how long tasks take. Can help when optimizing build times
    require('time-grunt')(grunt);

    // Load grunt tasks automatically
    require('load-grunt-tasks')(grunt);

    // Configurable paths
    var config = {
        webApp: 'webapp',
        app: '..',
        dist: 'webapp/dist'
    };

    // Define the configuration for all the tasks
    grunt.initConfig({

        // Project settings
        config: config,

        // Make sure code styles are up to par and there are no obvious mistakes
        jshint: {
            options: {
                jshintrc: '.jshintrc',
                reporter: require('jshint-stylish')
            },
            all: [
                '*.js',
                '*.json',
                '<%= config.webApp %>/**/*.js',
                '<%= config.webApp %>/**/*.json'
            ]
        },

        watch: {
            js: {
                files: ['<%= jshint.all %>'],
                tasks: ['jshint'],
                options: {
                    livereload: true
                }
            },
            sass: {
            	files: ['<%= config.webApp %>/styles/**/*.scss', '<%= config.webApp %>/components/**/*.scss'],
                tasks: ['sass:dev']
            }
        },
        // The actual grunt server settings
        connect: {
            options: {
                port: 9000,
                open: true,
                livereload: 35729,
                // Change this to '0.0.0.0' to access the server from outside
                hostname: 'localhost'
            },
            livereload: {
                options: {
                    middleware: function(connect) {
                        return [
                            connect.static('.tmp'),
                            connect().use('/bower_components', connect.static('./bower_components')),
                            connect.static(config.webApp)
                        ];
                    }
                }
            },
            test: {
                options: {
                    open: false,
                    port: 9001,
                    middleware: function(connect) {
                        return [
                            connect.static('.tmp'),
                            connect.static('test'),
                            connect().use('/bower_components', connect.static('./bower_components')),
                            connect.static(config.webApp)
                        ];
                    }
                }
            },
            dist: {
                options: {
                    base: '<%= config.dist %>',
                    livereload: false
                }
            }
        },

        // Empties folders to start fresh
        clean: {
            dist: {
                files: [{
                    dot: true,
                    src: [
                        '<%= config.dist %>/*',
                        '!<%= config.dist %>/.git*'
                    ]
                }]
            },
            dev: {
                files: [{
                    dot: true,
                    src: [
                        '<%= config.dist %>/*',
                        '!<%= config.dist %>/.git*'
                    ]
                }]
            }
        },

        // Mocha testing framework configuration options
        mocha: {
            all: {
                options: {
                    run: true,
                    urls: ['http://<%= connect.test.options.hostname %>:<%= connect.test.options.port %>/']
                }
            }
        },

        // Compiles Sass to CSS and generates necessary files if requested
        sass: {
            options: {
                style: 'compressed',
                loadPath: 'bower_components/bootstrap-sass-official/assets/stylesheets/',
                trace: true
            },
            dist: {
                files: [{
                    '<%= config.webApp %>/dist/css/main.css': '<%= config.webApp %>/styles/dist.scss',
                },
                {
                	expand: true,
                	src: ["<%= config.webApp %>/components/**/*.scss"],
                	dest: "./",
                	ext: ".css"
                }]
            },
            dev: {
                options: {

                },
                files: [{
                    '<%= config.webApp %>/dev/css/main.css': '<%= config.webApp %>/styles/main.scss',
                    '<%= config.webApp %>/dev/css/bootstrap.css': '<%= config.webApp %>/styles/bootstrap-custom.scss'
                },
                {
                	expand: true,
                	src: ["<%= config.webApp %>/components/**/*.scss"],
                	dest: "./",
                	ext: ".css"
                }]
            }
        },

        nodemon: {
            dev: {
                script: './bin/www',
                options: {
                    args: ['NODE_ENV=development']
                }
            }
        },

{'fraction_non_alphanumeric': 0.13393528969149737, 'fraction_numerical': 0.005267118133935289, 'mean_word_length': 0.8779583186153302, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3542493', 'n_tokens_mistral': 2852, 'n_tokens_neox': 2583, 'n_words': 521}