<commit_before>import gulp from 'gulp';
import jshint from 'gulp-jshint';
import jscs from 'gulp-jscs';
import stylish from 'gulp-jscs-stylish';
import uglify from 'gulp-uglify';
import babel from 'gulp-babel';
import gutil from 'gulp-util';


gulp.task('lint', () => {
    return gulp.src(['src/**/*.js', 'tests/**/*.js', 'gulpfile.js'])
        .pipe(jshint())
        .pipe(jscs())
        .on('error', gutil.noop)
        .pipe(stylish.combineWithHintResults())
        .pipe(jshint.reporter('jshint-stylish'))
        .pipe(jshint.reporter('fail'));
});


gulp.task('compile', () => {
    return gulp.src(['src/**/*.js', 'tests/**/*.js'], { base: '.' })
        .pipe(babel())
        .pipe(uglify())
        .pipe(gulp.dest('build'));
});


gulp.task('default', ['compile']);<commit_msg>added watch task to gulpfile<commit_after>import gulp from 'gulp';
import jshint from 'gulp-jshint';
import jscs from 'gulp-jscs';
import stylish from 'gulp-jscs-stylish';
import uglify from 'gulp-uglify';
import babel from 'gulp-babel';
import gutil from 'gulp-util';


gulp.task('lint', () => {
    return gulp.src(['src/**/*.js', 'tests/**/*.js', 'gulpfile.js'])
        .pipe(jshint())
        .pipe(jscs())
        .on('error', gutil.noop)
        .pipe(stylish.combineWithHintResults())
        .pipe(jshint.reporter('jshint-stylish'))
        .pipe(jshint.reporter('fail'));
});


gulp.task('compile', () => {
    return gulp.src(['src/**/*.js', 'tests/**/*.js'], { base: '.' })
        .pipe(babel())
        .pipe(uglify())
        .pipe(gulp.dest('build'));
});


gulp.task('watch', () => {
    return gulp.watch(['src/**/*.js', 'tests/**/*.js'], ['compile']);
});


gulp.task('default', ['compile', 'watch']);
{'fraction_non_alphanumeric': 0.23934617629889082, 'fraction_numerical': 0.0, 'mean_word_length': 3.2531017369727047, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2833948', 'n_tokens_mistral': 653, 'n_tokens_neox': 643, 'n_words': 109}