<commit_before>'use strict';
var gulp = require('gulp'),
    jshint = require('gulp-jshint'),
    jscs = require('gulp-jscs'),
    mocha = require('gulp-mocha'),
    babel = require('gulp-babel'),
    changed = require('gulp-changed'),
    runSequence = require('run-sequence'),
    paths = {
        source: 'src/**/*.js',
        dest: 'lib/',
        main: 'index.js',
        test: 'test/**/*.test.js',
        build: {
            main: 'Gulpfile.js',
            tasks: 'gulp.tasks.js'
        }
    },
    STATIC_CHECK_GLOB = [
        paths.main,
        paths.source,
        paths.test,
        paths.build.main,
        paths.build.tasks
    ];

/**
 * Transpiling Tasks
 */
gulp.task('babel', () => {
    let BABEL_SRC = paths.source,
        BABEL_DEST = paths.dest;
    return gulp.src(BABEL_SRC)
        .pipe(changed(BABEL_DEST))
        .pipe(babel())
        .pipe(gulp.dest(BABEL_DEST));
});

/**
 * Static Analysis Tasks
 */
gulp.task('lint', () => {
    return gulp.src(STATIC_CHECK_GLOB)
        .pipe(jshint({lookup: true}))
        .pipe(jshint.reporter('default'));
});
gulp.task('jscs', () => {
    return gulp.src(STATIC_CHECK_GLOB)
        .pipe(jscs({
            configPath: '.jscrc'
        }));
});
gulp.task('static-analysis', [
    'lint',
    'jscs'
]);

/**
 * Testing Tasks
 */
gulp.task('test', () => {
    return gulp.src(paths.test)
        .pipe(mocha({reporter: 'nyan'}));
});

/**
 * Meta/Control Tasks
 */
gulp.task('build', (cb) => {
    runSequence(
        ['static-analysis', 'babel'],
        'test',
        cb
    );
});
gulp.task('default', ['build']);<commit_msg>#8 - Enabling mountie debugging in the Gulpfile by default.<commit_after>'use strict';
var gulp = require('gulp'),
    jshint = require('gulp-jshint'),
    jscs = require('gulp-jscs'),
    mocha = require('gulp-mocha'),
    babel = require('gulp-babel'),
    changed = require('gulp-changed'),
    runSequence = require('run-sequence'),
    paths = {
        source: 'src/**/*.js',
        dest: 'lib/',
        main: 'index.js',
        test: 'test/**/*.test.js',
        build: {
            main: 'Gulpfile.js',
            tasks: 'gulp.tasks.js'
        }
    },
    STATIC_CHECK_GLOB = [
        paths.main,
        paths.source,
        paths.test,
        paths.build.main,
        paths.build.tasks
    ];

/**
 * Transpiling Tasks
 */
gulp.task('babel', () => {
    let BABEL_SRC = paths.source,
        BABEL_DEST = paths.dest;
    return gulp.src(BABEL_SRC)
        .pipe(changed(BABEL_DEST))
        .pipe(babel())
        .pipe(gulp.dest(BABEL_DEST));
});

/**
 * Static Analysis Tasks
 */
gulp.task('lint', () => {
    return gulp.src(STATIC_CHECK_GLOB)
        .pipe(jshint({lookup: true}))
        .pipe(jshint.reporter('default'));
});
gulp.task('jscs', () => {
    return gulp.src(STATIC_CHECK_GLOB)
        .pipe(jscs({
            configPath: '.jscrc'
        }));
});
gulp.task('static-analysis', [
    'lint',
    'jscs'
]);

/**
 * Testing Tasks
 */
gulp.task('test', () => {
    return gulp.src(paths.test)
        .pipe(mocha({reporter: 'nyan'}));
});

gulp.task('enableDebugging', () => {
    if (!process.env.DEBUG) {
        process.env.DEBUG = 'mountie';
    }
});

/**
 * Meta/Control Tasks
 */
gulp.task('build', (cb) => {
    runSequence(
        'enableDebugging',
        ['static-analysis', 'babel'],
        'test',
        cb
    );
});
gulp.task('default', ['build']);
{'fraction_non_alphanumeric': 0.19871420222092342, 'fraction_numerical': 0.0002922267679719462, 'mean_word_length': 2.2140845070422537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '2793094', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1229, 'n_words': 185}