<commit_before>var gulp = require('gulp');
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');

gulp.task('default', ['mocha'], function() {
      gulp.watch('**/*.js', '!node_modules/**', '!coverage/**', {interval: 1000, mode: 'poll'}, ['mocha']);
});

gulp.task('mocha', function() {
    return gulp.src(['**/*.spec.js', '!node_modules/**', '!coverage/**'], { read: false })
        .pipe(mocha({ reporter: 'Spec' }));
});

gulp.task('jenkins', ['jenkins-test']);

gulp.task('pre-test', function () {
  return gulp.src(['**/!(*.spec).js', '!node_modules/**', '!coverage/**'])
    .pipe(istanbul())
    .pipe(istanbul.hookRequire());
});

gulp.task('jenkins-test', ['pre-test'], function() {
    return gulp.src(['**/*.spec.js', '!node_modules/**', '!coverage/**'])
       .pipe(mocha())
	   .pipe(istanbul.writeReports());
});
<commit_msg>Fix the mocha report to be in TAP form.<commit_after>var gulp = require('gulp');
var mocha = require('gulp-mocha');
var istanbul = require('gulp-istanbul');

gulp.task('default', ['mocha'], function() {
      gulp.watch('**/*.js', '!node_modules/**', '!coverage/**', {interval: 1000, mode: 'poll'}, ['mocha']);
});

gulp.task('mocha', function() {
    return gulp.src(['**/*.spec.js', '!node_modules/**', '!coverage/**'], { read: false })
        .pipe(mocha({ reporter: 'Spec' }));
});

gulp.task('jenkins', ['jenkins-test']);

gulp.task('pre-test', function () {
  return gulp.src(['**/!(*.spec).js', '!node_modules/**', '!coverage/**'])
    .pipe(istanbul())
    .pipe(istanbul.hookRequire());
});

gulp.task('jenkins-test', ['pre-test'], function() {
    return gulp.src(['**/*.spec.js', '!node_modules/**', '!coverage/**'])
       .pipe(mocha({reporter: 'tap'}))
	   .pipe(istanbul.writeReports());
});

{'fraction_non_alphanumeric': 0.2887760857304005, 'fraction_numerical': 0.0045121263395375075, 'mean_word_length': 4.561128526645768, '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': '5370792', 'n_tokens_mistral': 667, 'n_tokens_neox': 647, 'n_words': 109}