<commit_before>"use strict";

var gulp = require("gulp");
var jshint = require("gulp-jshint");
var jscs = require("gulp-jscs");
var istanbul = require("gulp-istanbul");
var mocha = require("gulp-mocha");

var files = [
    "./compile.js",
    "./mixin.js",
];

var configFiles = [
    "./gulpfile.js",
    "./test/**/*.js",
];

function handleError (error) {
    throw error;
}

gulp.task("jscs", function () {
    return gulp.src(files.concat(configFiles))
        .pipe(jscs("./.jscs.json"))
        .on("error", handleError);
});

gulp.task("jshint", function () {
    return gulp.src(files.concat(configFiles))
        .pipe(jshint())
        .pipe(jshint.reporter("default"))
        .pipe(jshint.reporter("fail"))
        .on("error", handleError);
});

gulp.task("mocha", function (callback) {
    gulp.src(files)<commit_msg>Removed manual error handling.<commit_after>"use strict";

var gulp = require("gulp");
var jshint = require("gulp-jshint");
var jscs = require("gulp-jscs");
var istanbul = require("gulp-istanbul");
var mocha = require("gulp-mocha");

var files = [
    "./compile.js",
    "./mixin.js",
];

var configFiles = [
    "./gulpfile.js",
    "./test/**/*.js",
];

gulp.task("jscs", function () {
    return gulp.src(files.concat(configFiles))
        .pipe(jscs("./.jscs.json"));
});

gulp.task("jshint", function () {
    return gulp.src(files.concat(configFiles))
        .pipe(jshint())
        .pipe(jshint.reporter("default"))
        .pipe(jshint.reporter("fail"));
});

gulp.task("mocha", function (callback) {
    gulp.src(files)
{'fraction_non_alphanumeric': 0.2112676056338028, 'fraction_numerical': 0.0, 'mean_word_length': 3.3537604456824512, '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': '5642145', 'n_tokens_mistral': 583, 'n_tokens_neox': 585, 'n_words': 93}