<commit_before>'use strict';

var gulp = require('gulp');
var beautify = require('gulp-jsbeautifier');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');

gulp.task('beautify', ['beautify:javascript']);

gulp.task('beautify:javascript', function() {
    gulp.src(['*.js', '*.json']).pipe(beautify({
        indentSize: 4,
        keepFunctionIndentation: true
    })).pipe(gulp.dest('./'));
});

gulp.task('test', ['test:jshint', 'test:mocha']);

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

gulp.task('test:mocha', function() {
    gulp.src('tests/tests.js')
        .pipe(mocha())
        .once('end', function() {
            process.exit();
        });
});<commit_msg>Run Gulp tests synchronously<commit_after>'use strict';

var gulp = require('gulp');
var beautify = require('gulp-jsbeautifier');
var jshint = require('gulp-jshint');
var mocha = require('gulp-mocha');

gulp.task('beautify', ['beautify:javascript']);

gulp.task('beautify:javascript', function() {
    gulp.src(['*.js', '*.json']).pipe(beautify({
        indentSize: 4,
        keepFunctionIndentation: true
    })).pipe(gulp.dest('./'));
});

gulp.task('test', ['test:jshint', 'test:mocha']);

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

// Make the Mocha task depend on the JSHint task. Otherwise, the tasks will be
// run in parallel and will print to console simultaneously.
gulp.task('test:mocha', ['test:jshint'], function() {
    gulp.src('tests/tests.js')
        .pipe(mocha())
        .once('end', function() {
            process.exit();
        });
});
{'fraction_non_alphanumeric': 0.21473805411629246, 'fraction_numerical': 0.0011514104778353484, 'mean_word_length': 3.6595174262734584, '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': '4170247', 'n_tokens_mistral': 618, 'n_tokens_neox': 606, 'n_words': 108}