<commit_before>function gulp4(gulp, paths) {
  Object.keys(gulp._registry._tasks).forEach(function(taskName){
    var glob = paths[taskName];
    if (!glob) return;
    gulp.watch(glob, gulp.series(taskName));
  });
}

function gulp3(gulp, paths) {
  Object.keys(gulp.tasks).forEach(function(taskName){
    var glob = paths[taskName];
    if (!glob) return;
    gulp.watch(glob, [taskName]);
  });
}

module.exports = function(gulp, paths) {
  var isGulp4 = !!gulp._registry;
  if (isGulp4) {
    return gulp4(gulp, paths);
  }
  return gulp3(gulp, paths);
};<commit_msg>fix extra logging in gulp 4<commit_after>function gulp4(gulp, paths) {
  Object.keys(gulp._registry._tasks).forEach(function(taskName){
    var glob = paths[taskName];
    if (!glob) return;
    gulp.watch(glob, taskName);
  });
}

function gulp3(gulp, paths) {
  Object.keys(gulp.tasks).forEach(function(taskName){
    var glob = paths[taskName];
    if (!glob) return;
    gulp.watch(glob, [taskName]);
  });
}

module.exports = function(gulp, paths) {
  var isGulp4 = !!gulp._registry;
  if (isGulp4) {
    return gulp4(gulp, paths);
  }
  return gulp3(gulp, paths);
};
{'fraction_non_alphanumeric': 0.16185476815398075, 'fraction_numerical': 0.011373578302712161, 'mean_word_length': 4.130044843049327, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1098824', 'n_tokens_mistral': 429, 'n_tokens_neox': 427, 'n_words': 81}