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


var paths = {
  sources: 'lib/**.js'
};

gulp.task('lint', function () {
  return gulp.src(paths.sources)
    .pipe(eslint())
    .pipe(eslint.format());

});

gulp.task('default', ['lint']);<commit_msg># run unit tests via gulp<commit_after>var gulp = require('gulp');
var mocha = require('gulp-mocha');
var eslint = require('gulp-eslint');
var del = require('del');

var paths = {
  sourceFiles: 'lib/*.js',
  testFiles: 'test/spec/*_spec.js'
};

gulp.task('clean', function (done) {
  del('test/out/*', function (err) {
    done(err);
  });
});

gulp.task('lint', function () {
  return gulp.src(paths.sourceFiles)
    .pipe(eslint())
    .pipe(eslint.format());
});

gulp.task('test', ['clean'], function () {
  return gulp.src(paths.testFiles, {read: false})
    .pipe(mocha({reporter: 'spec'}));
});


gulp.task('default', ['lint', 'test']);
{'fraction_non_alphanumeric': 0.232508073196986, 'fraction_numerical': 0.0, 'mean_word_length': 4.406976744186046, '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': '3890319', 'n_tokens_mistral': 350, 'n_tokens_neox': 346, 'n_words': 65}