<commit_before>'use strict';

var gulp   = require('gulp');
var jshint = require('gulp-jshint');
var mocha  = require('gulp-mocha');
var bump = require('gulp-bump');

var summary   = require('./');


// e.g. gulp bump --type minor
gulp.task('bump', function(){
  return gulp.src('./package.json')
  .pipe(bump({ type: gulp.env.type || 'patch' }))
  .pipe(gulp.dest('./'));
});


gulp.task('lint', function () {
  return gulp.src('./lib/*.js')
    .pipe(jshint('.jshintrc'))
    .pipe(jshint.reporter(summary({
      statistics: false,
      unicode: true
    })));
});


gulp.task('mocha', function () {
  return gulp.src('./test/**/*.js')
    .pipe(mocha({
      reporter: 'html-cov'
    }));
});

gulp.task('test', ['lint', 'mocha']);


gulp.task('watch', ['test'], function() {<commit_msg>Changed to spec reporter for Mocha<commit_after>'use strict';

var gulp   = require('gulp');
var jshint = require('gulp-jshint');
var mocha  = require('gulp-mocha');
var bump = require('gulp-bump');

var summary   = require('./');


// e.g. gulp bump --type minor
gulp.task('bump', function(){
  return gulp.src('./package.json')
  .pipe(bump({ type: gulp.env.type || 'patch' }))
  .pipe(gulp.dest('./'));
});


gulp.task('lint', function () {
  return gulp.src('./lib/*.js')
    .pipe(jshint('.jshintrc'))
    .pipe(jshint.reporter(summary({
      statistics: false,
      unicode: true
    })));
});


gulp.task('mocha', function () {
  return gulp.src('./test/**/*.js')
    .pipe(mocha({
      reporter: 'spec'
    }));
});

gulp.task('test', ['lint', 'mocha']);


gulp.task('watch', ['test'], function() {
{'fraction_non_alphanumeric': 0.24547158026233604, 'fraction_numerical': 0.0, 'mean_word_length': 3.4132231404958677, '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': '6087973', 'n_tokens_mistral': 612, 'n_tokens_neox': 598, 'n_words': 113}