<commit_before>// gulpfile.js

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

gulp.task('jshint', function () {
    return gulp.src('{./,src/,bin/,test/}*.js')
        .pipe(jshint())
        .pipe(jshint.reporter('default'));
});

gulp.task('default', ['jshint']);<commit_msg>Add mocha task to gulpfile<commit_after>// gulpfile.js

var gulp = require('gulp');
var jshint = require('gulp-jshint');
var exec = require('child_process').exec;


gulp.task('jshint', function () {

    return gulp.src('{./,src/,bin/,test/}*.js')
        .pipe(jshint())
        .pipe(jshint.reporter('default'));

});

gulp.task('mocha', ['jshint'], function (cb) {

    exec('mocha -R spec test/', function (err, stdout, stderr) {

        if (stdout) console.log(stdout);
        if (stderr) console.log(stderr);

        cb(err);
    });

});

gulp.task('default', ['mocha']);
{'fraction_non_alphanumeric': 0.2234891676168757, 'fraction_numerical': 0.0, 'mean_word_length': 3.479591836734694, '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': '5057505', 'n_tokens_mistral': 335, 'n_tokens_neox': 326, 'n_words': 57}