<commit_before>var gulp   = require('gulp'),
    jshint = require('gulp-jshint'),
    mocha  = require('gulp-mocha'),
    chai   = require('chai'),
    sinon  = require('sinon');

var paths = {
  scripts: ['./lib/**/*.js', './bin/**/*.js'],
  tests: ['./spec/**/*.js']
};

gulp.task('test', function () {
  return gulp.src(paths.tests, { read: false })
    .pipe(mocha({
      reporter: 'nyan',
      globals: {
        should: chai.should(),
        sinon: sinon
      }
    }));
});

gulp.task('lint', function() {
  return gulp.src(paths.scripts)
    .pipe(jshint())
    .pipe(jshint.reporter('default'));
});

gulp.task('default', ['lint', 'test']);<commit_msg>added watch in gulp<commit_after>var gulp   = require('gulp'),
    jshint = require('gulp-jshint'),
    mocha  = require('gulp-mocha'),
    chai   = require('chai'),
    sinon  = require('sinon');

var paths = {
  scripts: ['./lib/**/*.js', './bin/**/*.js'],
  tests: ['./spec/**/*.js']
};

gulp.task('test', function () {
  return gulp.src(paths.tests, { read: false })
    .pipe(mocha({
      reporter: 'nyan',
      globals: {
        should: chai.should(),
        sinon: sinon
      }
    }));
});

gulp.task('lint', function() {
  return gulp.src(paths.scripts)
    .pipe(jshint())
    .pipe(jshint.reporter('default'));
});

gulp.task('watch', function() {
  gulp.watch(paths.scripts, ['test']);
  gulp.watch(paths.tests, ['test']);
});

gulp.task('default', ['lint', 'test']);
{'fraction_non_alphanumeric': 0.2422360248447205, 'fraction_numerical': 0.0, 'mean_word_length': 2.9835164835164836, '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': '4061739', 'n_tokens_mistral': 545, 'n_tokens_neox': 548, 'n_words': 90}