<commit_before>/**
 * Run predefined tasks whenever watched file patterns are added, changed or deleted.
 *
 * ---------------------------------------------------------------
 *
 * Watch for changes on files in the `assets` folder,
 * and re-run the appropriate tasks.
 *
 * For usage docs see:
 *        https://github.com/gruntjs/grunt-contrib-watch
 *
 */
module.exports = function(grunt) {
    'use strict';

    grunt.config.set('watch', {
        api: {
            files: ['api/**/*']
        },
        assets: {
            files: [
                '<%= yeoman.app %>/**/*',
                '!<%= yeoman.app %>/**/*.{scss,sass,js,ejs}',
                '!<%= yeoman.app %>/bower_components/**'
            ],
            tasks: ['sync:dev']
        },
        bower: {
            files: ['bower.json'],
            tasks: [/*'bowerInstall',*/ 'sync:dev']
        },
        js: {
            files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
            tasks: ['newer:jshint:all', 'sync:dev'],
            options: {
                livereload: true
            }
        },
        jsTest: {<commit_msg>Wire dependencies when bower.json has changed.<commit_after>/**
 * Run predefined tasks whenever watched file patterns are added, changed or deleted.
 *
 * ---------------------------------------------------------------
 *
 * Watch for changes on files in the `assets` folder,
 * and re-run the appropriate tasks.
 *
 * For usage docs see:
 *        https://github.com/gruntjs/grunt-contrib-watch
 *
 */
module.exports = function(grunt) {
    'use strict';

    grunt.config.set('watch', {
        api: {
            files: ['api/**/*']
        },
        assets: {
            files: [
                '<%= yeoman.app %>/**/*',
                '!<%= yeoman.app %>/**/*.{scss,sass,js,ejs}',
                '!<%= yeoman.app %>/bower_components/**'
            ],
            tasks: ['sync:dev']
        },
        bower: {
            files: ['bower.json'],
            tasks: ['wiredep', 'sync:dev']
        },
        js: {
            files: ['<%= yeoman.app %>/scripts/{,*/}*.js'],
            tasks: ['newer:jshint:all', 'sync:dev'],
            options: {
                livereload: true
            }
        },
        jsTest: {
{'fraction_non_alphanumeric': 0.22577777777777777, 'fraction_numerical': 0.0, 'mean_word_length': 1.3350622406639003, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '1963840', 'n_tokens_mistral': 672, 'n_tokens_neox': 647, 'n_words': 137}