<commit_before>"use strict";

var gulp = require("gulp");
var mocha = require("gulp-mocha");
var jslint = require("gulp-jslint");

var libSources = ["gulpfile.js", "lib/**/*.js"];
var testSources = ["test/**/*.js"];

gulp.task("lint-lib", function () {
    return gulp.src(libSources)
        .pipe(jslint({
            node: true
        }))
        .pipe(jslint.reporter("stylish"));
});

gulp.task("lint-test", function () {
    return gulp.src(testSources).pipe(jslint({
        options: {
            node: true,
            this: true
        },
        globals: ["describe", "it", "before", "after", "beforeEach", "afterEach"],
        noFail: true
    }));
});

gulp.task("lint", ["lint-lib", "lint-test"]);

gulp.task("lint-watch", ["lint"], function () {
    return gulp.watch(libSources.concat(testSources), ["lint"]);
});

gulp.task("test", function () {
    return gulp.src(["test/*.js"])
        .pipe(mocha());
});

gulp.task("test-watch", ["test"], function () {
    return gulp.watch(libSources.concat(testSources), ["test"]);
});

gulp.task("watch", ["lint-watch", "test-watch"]);<commit_msg>Use testSources variable everywhere in gulpfile.js<commit_after>"use strict";

var gulp = require("gulp");
var mocha = require("gulp-mocha");
var jslint = require("gulp-jslint");

var libSources = ["gulpfile.js", "lib/**/*.js"];
var testSources = ["test/**/*.js"];

gulp.task("lint-lib", function () {
    return gulp.src(libSources)
        .pipe(jslint({
            node: true
        }))
        .pipe(jslint.reporter("stylish"));
});

gulp.task("lint-test", function () {
    return gulp.src(testSources).pipe(jslint({
        options: {
            node: true,
            this: true
        },
        globals: ["describe", "it", "before", "after", "beforeEach", "afterEach"],
        noFail: true
    }));
});

gulp.task("lint", ["lint-lib", "lint-test"]);

gulp.task("lint-watch", ["lint"], function () {
    return gulp.watch(libSources.concat(testSources), ["lint"]);
});

gulp.task("test", function () {
    return gulp.src(testSources)
        .pipe(mocha());
});

gulp.task("test-watch", ["test"], function () {
    return gulp.watch(libSources.concat(testSources), ["test"]);
});

gulp.task("watch", ["lint-watch", "test-watch"]);
{'fraction_non_alphanumeric': 0.22350332594235034, 'fraction_numerical': 0.0, 'mean_word_length': 3.2808349146110056, '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': '166622', 'n_tokens_mistral': 778, 'n_tokens_neox': 773, 'n_words': 138}