<commit_before>var browserSync = require('browser-sync');


module.exports = function (gulp, $, config) {

  var dirs  = config.dirs;
  var globs = config.globs;

  // Forget any cached data
  // Reference: https://github.com/gulpjs/gulp/blob/master/docs/recipes/incremental-builds-with-concatenate.md
  function forget (cacheName) {
    return function (e) {
      if (e.type === 'deleted') {
        $.remember.forget(cacheName, e.path);
        delete $.cached.caches[cacheName][e.path];
      }
    };
  }

  gulp.task('dev:server', [ 'build' ], function () {
    browserSync({
      server: {
        baseDir: [
          dirs['static'],
          dirs['build']
        ]
      },
      ghostMode: false,
      notify: false
    });
  });

  gulp.task('dev:watch', function () {
    gulp.watch(dirs['scripts'], [ 'build:js' ])
      .on('changed', forget('scripts'));

    gulp.watch(dirs['less'],      [       'build:css' ]);
    gulp.watch(dirs['templates'], [ 'build:templates' ]);
  });

  gulp.task('dev', [
    'dev:server',
    'dev:watch'
  ]);

};<commit_msg>Oops! Tasks watching the wrong paths<commit_after>var browserSync = require('browser-sync');


module.exports = function (gulp, $, config) {

  var dirs  = config.dirs;
  var globs = config.globs;

  // Forget any cached data
  // Reference: https://github.com/gulpjs/gulp/blob/master/docs/recipes/incremental-builds-with-concatenate.md
  function forget (cacheName) {
    return function (e) {
      if (e.type === 'deleted') {
        $.remember.forget(cacheName, e.path);
        delete $.cached.caches[cacheName][e.path];
      }
    };
  }

  gulp.task('dev:server', [ 'build' ], function () {
    browserSync({
      server: {
        baseDir: [
          dirs['static'],
          dirs['build']
        ]
      },
      ghostMode: false,
      notify: false
    });
  });

  gulp.task('dev:watch', function () {
    gulp.watch(globs['scripts'], [ 'build:js' ])
      .on('changed', forget('scripts'));

    gulp.watch(globs['less'],      [       'build:css' ]);
    gulp.watch(globs['templates'], [ 'build:templates' ]);
  });

  gulp.task('dev', [
    'dev:server',
    'dev:watch'
  ]);

};
{'fraction_non_alphanumeric': 0.18738489871086556, 'fraction_numerical': 0.0, 'mean_word_length': 2.539087947882736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6465012', 'n_tokens_mistral': 759, 'n_tokens_neox': 744, 'n_words': 119}