<commit_before>'use strict';

var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
var js = '*.js';
var tests = 'test/**/*.js';

gulp.task('default', ['test'], function(cb){
  gulp.watch([js, tests], ['test']);
});

gulp.task('test', function(cb){
  runSequence('jshint', 'mocha', cb);
});

gulp.task('jshint', function () {
  return gulp.src([js, tests])
    .pipe($.jshint())
    .pipe($.jshint.reporter('jshint-stylish'));
});

gulp.task('mocha', function () {
  return gulp.src(tests, {read: false})
        .pipe($.mocha({reporter: 'spec'}));
});
<commit_msg>fail tests when jshint doesn't pass<commit_after>'use strict';

var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
var js = '*.js';
var tests = 'test/**/*.js';

gulp.task('default', ['test'], function(cb){
  gulp.watch([js, tests], ['test']);
});

gulp.task('test', function(cb){
  runSequence('jshint', 'mocha', cb);
});

gulp.task('jshint', function () {
  return gulp.src([js, tests])
    .pipe($.jshint())
    .pipe($.jshint.reporter('jshint-stylish'))
    .pipe($.jshint.reporter('fail'));
});

gulp.task('mocha', function () {
  return gulp.src(tests, {read: false})
        .pipe($.mocha({reporter: 'spec'}));
});

{'fraction_non_alphanumeric': 0.2555640828856485, 'fraction_numerical': 0.0, 'mean_word_length': 4.719298245614035, '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': '7406339', 'n_tokens_mistral': 497, 'n_tokens_neox': 493, 'n_words': 90}