<commit_before>var gulp = require('gulp'),
    istanbul = require('gulp-istanbul'),
    jasmine = require('gulp-jasmine'),
    jshint = require('gulp-jshint'),
    plumber = require('gulp-plumber');

var paths = {
  src: ['index.js'],
  test: ['spec/**/*.spec.js'],
  coverage: './coverage'
};

gulp.task('lint', function() {
  return gulp.src([__filename].concat(paths.src).concat(paths.test))
    .pipe(plumber())
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'));
});

gulp.task('test', function() {
  return gulp.src(paths.test)
    .pipe(plumber())
    .pipe(jasmine({
      verbose: true,
      includeStackTrace: true
    }));
});

gulp.task('coverage', function(cb) {
  return gulp.src(paths.src)
    .pipe(plumber())
    .pipe(istanbul())
    .on('finish', function() {
      gulp.src(paths.test)
        .pipe(jasmine())
        .pipe(istanbul.writeReports({
          dir: paths.coverage,
          reporters: ['lcov', 'text-summary']
        }))
        .on('end', cb);
    });
});

gulp.task('watch', function() {
  gulp.watch(paths.src, [
    'lint',
    'test',
  ]);
});

gulp.task('default', [
  'lint',
  'coverage',<commit_msg>Remove task completion callback from the `coverage` task<commit_after>var gulp = require('gulp'),
    istanbul = require('gulp-istanbul'),
    jasmine = require('gulp-jasmine'),
    jshint = require('gulp-jshint'),
    plumber = require('gulp-plumber');

var paths = {
  src: ['index.js'],
  test: ['spec/**/*.spec.js'],
  coverage: './coverage'
};

gulp.task('lint', function() {
  return gulp.src([__filename].concat(paths.src).concat(paths.test))
    .pipe(plumber())
    .pipe(jshint())
    .pipe(jshint.reporter('jshint-stylish'));
});

gulp.task('test', function() {
  return gulp.src(paths.test)
    .pipe(plumber())
    .pipe(jasmine({
      verbose: true,
      includeStackTrace: true
    }));
});

gulp.task('coverage', function() {
  return gulp.src(paths.src)
    .pipe(plumber())
    .pipe(istanbul())
    .on('finish', function() {
      gulp.src(paths.test)
        .pipe(jasmine())
        .pipe(istanbul.writeReports({
          dir: paths.coverage,
          reporters: ['lcov', 'text-summary']
        }));
    });
});

gulp.task('watch', function() {
  gulp.watch(paths.src, [
    'lint',
    'test',
  ]);
});

gulp.task('default', [
  'lint',
  'coverage',
{'fraction_non_alphanumeric': 0.21196581196581196, 'fraction_numerical': 0.0, 'mean_word_length': 3.071304347826087, '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': '1293555', 'n_tokens_mistral': 857, 'n_tokens_neox': 852, 'n_words': 128}