<commit_before>'use strict';

var gulp = require('gulp');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var livereload = require('gulp-livereload');
var mocha = require('gulp-mocha');
var gutil = require('gulp-util');

// run 'gulp jshint' in the console to run jshint on every .js file under the server folder
// and all its sub folders
gulp.task("jshint", function(){
  gulp.src("./server/**/*.js")
    .pipe(jshint())
    .pipe(jshint.reporter("jshint-stylish"));
});

gulp.task('test', function(){
  return gulp.src(['./test/**/*.js'], {read: false})
    .pipe(mocha({reporter: 'nyan'}))
    .on('error',gutil.log);
});

// run 'gulp watch' to watch all .js files and have livereload listen for changes
gulp.task('watch', function(){
  livereload.listen();
  gulp.watch('./server/**/*.js');
});<commit_msg>added comment above test task<commit_after>'use strict';

var gulp = require('gulp');
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var livereload = require('gulp-livereload');
var mocha = require('gulp-mocha');
var gutil = require('gulp-util');

// run 'gulp jshint' in the console to run jshint on every .js file under the server folder
// and all its sub folders
gulp.task("jshint", function(){
  gulp.src("./server/**/*.js")
    .pipe(jshint())
    .pipe(jshint.reporter("jshint-stylish"));
});

// run 'gulp test' to run test suite
gulp.task('test', function(){
  return gulp.src(['./test/**/*.js'], {read: false})
    .pipe(mocha({reporter: 'nyan'}))
    .on('error',gutil.log);
});

// run 'gulp watch' to watch all .js files and have livereload listen for changes
gulp.task('watch', function(){
  livereload.listen();
  gulp.watch('./server/**/*.js');
});
{'fraction_non_alphanumeric': 0.20379965457685664, 'fraction_numerical': 0.0, 'mean_word_length': 4.3476923076923075, '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': '5845955', 'n_tokens_mistral': 621, 'n_tokens_neox': 608, 'n_words': 159}