<commit_before>"use strict";

var notify = require('gulp-notify');
var settings = require('./settings');

module.exports = function handleErrors() {
    /*jshint validthis:true */
    // Send error to notification center with gulp-notify
    notify.onError({
        title: "Build Error",
        message: "<%= error.message %>"
    }).apply(this, arguments);

    if (settings.exitOnFailure) {
        process.exit(1);
    }

    // Keep gulp from hanging on this task
    //noinspection JSHint
    this.emit('end');
};<commit_msg>Cleanup.<commit_after>"use strict";

var notify = require('gulp-notify');
var settings = require('./settings');

module.exports = function handleErrors() {
    notify.onError({ title: "Build Error", message: "<%= error.message %>"}).apply(this, arguments);

    if (settings.exitOnFailure) {
        process.exit(1);
    }

    // Keep gulp from hanging on this task
    this.emit('end');
};
{'fraction_non_alphanumeric': 0.15926327193932827, 'fraction_numerical': 0.0021668472372697724, 'mean_word_length': 3.219178082191781, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7618652', 'n_tokens_mistral': 275, 'n_tokens_neox': 268, 'n_words': 71}