<commit_before>'use strict';

var path = require('path');

var jade = require('jade'),
    uglify = require('uglify-js');

module.exports = [

    'build html',

    function() {

        jade.filters.uglify = function(data) {
            return uglify.minify(data, {fromString: true}).code;
        };

        this.gulp
            .src(path.join(this.paths.src, '**/*.jade'))
            .pipe(this.plugins.jade({
            }))
                jade: jade
            .pipe(this.gulp.dest(this.paths.dest));
<commit_msg>add error handler to jade parser<commit_after>'use strict';

var path = require('path');

var jade = require('jade'),
    uglify = require('uglify-js');

module.exports = [

    'build html',

    function() {

        jade.filters.uglify = function(data) {
            return uglify.minify(data, {fromString: true}).code;
        };

        this.gulp
            .src(path.join(this.paths.src, '**/*.jade'))
            .pipe(this.plugins.jade({
                jade: jade
            }).on('error', this.log.error))
            .pipe(this.gulp.dest(this.paths.dest));

{'fraction_non_alphanumeric': 0.1680365296803653, 'fraction_numerical': 0.0, 'mean_word_length': 2.010989010989011, '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': '7287072', 'n_tokens_mistral': 370, 'n_tokens_neox': 358, 'n_words': 61}