<commit_before>var inherits = require('util').inherits,
    Task = require('./Task'),
    RevAll = require('gulp-rev-all'),
    _ = require('lodash'),
    gulp = require('gulp'),
    Promise = require('bluebird');

var RevTask = function (buildHelper) {
    Task.call(this, buildHelper);
};

inherits(RevTask, Task);

RevTask.prototype.command = "rev";
RevTask.prototype.availableToModule = false;
RevTask.prototype.action = function () {
    if (!this._buildHelper.isRelease() || this._buildHelper.options.revisionExclude === "*") return Promise.resolve();
    var excludedFiles = _.union(
        ['favicon.ico', 'index.html'],
        _.map(this._buildHelper.options.revisionExclude, function (rule) {<commit_msg>Fix revision exclude dist generation<commit_after>var inherits = require('util').inherits,
    Task = require('./Task'),
    RevAll = require('gulp-rev-all'),
    _ = require('lodash'),
    gulp = require('gulp'),
    Promise = require('bluebird');

var RevTask = function (buildHelper) {
    Task.call(this, buildHelper);
};

inherits(RevTask, Task);

RevTask.prototype.command = "rev";
RevTask.prototype.availableToModule = false;
RevTask.prototype.action = function () {
    if (!this._buildHelper.isRelease()) return Promise.resolve();
    if (this._buildHelper.options.revisionExclude === "*") {
        return gulp.src(this._buildHelper.getTemporaryDirectory() + '**')
            .pipe(gulp.dest(this._buildHelper.getDistDirectory()));
    }
    var excludedFiles = _.union(
        ['favicon.ico', 'index.html'],
        _.map(this._buildHelper.options.revisionExclude, function (rule) {
{'fraction_non_alphanumeric': 0.1632526381129733, 'fraction_numerical': 0.0, 'mean_word_length': 4.117460317460317, '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': '4292220', 'n_tokens_mistral': 487, 'n_tokens_neox': 482, 'n_words': 86}