<commit_before>module.exports = function (grunt) {

    'use strict';

    if (grunt.option('help')) {
        // Load all tasks so they can be viewed in the help: grunt -h or --help.
        require('load-grunt-tasks')(grunt);
    } else {
        // Use jit-grunt to only load necessary tasks for each invocation of grunt.
        require('jit-grunt')(grunt, {
            'swig': 'grunt-swig-templates'
        });
    }

    grunt.config.merge({
        watch: {
            sass: {
                files: [
                    '**/*.sass'
                ],
                tasks: [
                    'sass'
                ]
            },
            swig: {
                files: [
                    'templates/**/*.html'
                ],
                tasks: [
                    'swig'
                ]
            }
        },
        sass: {
            options: {
                sourceMap: true,
                sourceMapContents: true,
                includePaths: [
                    require('node-bourbon').includePaths,
                    'bower_components/incuna-sass',
                    'bower_components/incuna-transitions',
                    'sass'
                ]
            },
            dev: {
                files: {
                    'styles/main.css': 'sass/main.sass'
                }
            }
        },

        swig: {
            options: {
                data: {
                    colors: {
                        // Just some example colors for show
                        color1: '#206ba4',
                        color2: '#bbd9ee',
                        color3: '#ebf4fa',
                        color4: '#f8ddb3',
                        color5: '#e7e4d3',
                        color6: '#f1efe2',
                        color7: '#9c9f83',
                        color8: '#ab7e5b',
                        color9: '#5b755d'
                    },
                    icons: {
                        alert: 'alert',
                        flag: 'flag',
                        blah: 'blah'
                    }
                }
            },
            dev: {
                expand: true,
                cwd: 'templates',
                src: ['index.html'],
                dest: './'
            }
        },

        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                'scripts/*.js'
            ]
        },

        jscs: {
            options: {
                config: '.jscsrc',
                fix: true
            },
            src: 'scripts/*.js'
        }

    });

    // - - - T A S K S - - -

    grunt.registerTask('default', 'dev');

    grunt.registerTask('dev', [
        'sass',
        'swig',
        'watch'
    ]);

    grunt.registerTask('build', [
        'swig',
        'sass'
    ]);

    grunt.registerTask('lint', 'Run the JS linters.', [
        'jshint',
        'jscs'
    ]);

    grunt.registerTask('test', 'Run the tests.', function (env) {
         'lint'
    });

    grunt.registerTask('travis', 'Run the tests in Travis', [
        'test:travis'
    ]);

}<commit_msg>removed travis task from Gruntfile<commit_after>module.exports = function (grunt) {

    'use strict';

    if (grunt.option('help')) {
        // Load all tasks so they can be viewed in the help: grunt -h or --help.
        require('load-grunt-tasks')(grunt);
    } else {
        // Use jit-grunt to only load necessary tasks for each invocation of grunt.
        require('jit-grunt')(grunt, {
            'swig': 'grunt-swig-templates'
        });
    }

    grunt.config.merge({
        watch: {
            sass: {
                files: [
                    '**/*.sass'
                ],
                tasks: [
                    'sass'
                ]
            },
            swig: {
                files: [
                    'templates/**/*.html'
                ],
                tasks: [
                    'swig'
                ]
            }
        },
        sass: {
            options: {
                sourceMap: true,
                sourceMapContents: true,
                includePaths: [
                    require('node-bourbon').includePaths,
                    'bower_components/incuna-sass',
                    'bower_components/incuna-transitions',
                    'sass'
                ]
            },
            dev: {
                files: {
                    'styles/main.css': 'sass/main.sass'
                }
            }
        },

        swig: {
            options: {
                data: {
                    colors: {
                        // Just some example colors for show
                        color1: '#206ba4',
                        color2: '#bbd9ee',
                        color3: '#ebf4fa',
                        color4: '#f8ddb3',
                        color5: '#e7e4d3',
                        color6: '#f1efe2',
                        color7: '#9c9f83',
                        color8: '#ab7e5b',
                        color9: '#5b755d'
                    },
                    icons: {
                        alert: 'alert',
                        flag: 'flag',
                        blah: 'blah'
                    }
                }
            },
            dev: {
                expand: true,
                cwd: 'templates',
                src: ['index.html'],
                dest: './'
            }
        },

        jshint: {
            options: {
                jshintrc: '.jshintrc'
            },
            all: [
                'scripts/*.js'
            ]
        },

        jscs: {
            options: {
                config: '.jscsrc',
                fix: true
            },
            src: 'scripts/*.js'
        }

    });

    // - - - T A S K S - - -

    grunt.registerTask('default', 'dev');

    grunt.registerTask('dev', [
        'sass',
        'swig',
        'watch'
    ]);

    grunt.registerTask('build', [
        'swig',
        'sass'
    ]);

    grunt.registerTask('lint', 'Run the JS linters.', [
        'jshint',
        'jscs'
    ]);

    grunt.registerTask('test', 'Run the tests.', function (env) {
         'lint'
    });

}
{'fraction_non_alphanumeric': 0.12332482450542438, 'fraction_numerical': 0.01021059349074665, 'mean_word_length': 0.7809659090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5468882', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1649, 'n_words': 313}