<commit_before>var gulp = require('gulp');
var gulpif = require('gulp-if');
var minifyHtml = require('gulp-minify-html');
var replace = require('gulp-replace');

gulp.task('html:watch', function() {
  gulp.watch(GLOBAL.config.src + '/**/*.html', ['vulcanize', 'html']);
});

// copies all html files into the dist directory
// ignoring webcomponent elements as these are included in elements.html during vulcanization
gulp.task('html', function() {
  return gulp.src([
    GLOBAL.config.src + '/**/*.html', '!/**/elements/**/*.html'
  ])
    .pipe(gulpif(GLOBAL.config.env === 'prod', minifyHtml()))
    .pipe(replace(/@VERSION@/g, GLOBAL.config.version))
    .pipe(gulp.dest(GLOBAL.config.dest));
});<commit_msg>fixing @version@ replacement in sidenav<commit_after>var gulp = require('gulp');
var gulpif = require('gulp-if');
var minifyHtml = require('gulp-minify-html');
var replace = require('gulp-replace');

gulp.task('html:watch', function() {
  gulp.watch(GLOBAL.config.src + '/**/*.html', ['vulcanize', 'html']);
});

gulp.task('html', ['vulcanize', 'html:copyToDest', 'html:replaceVersionNo']);

// copies all html files into the dist directory
// ignoring webcomponent elements as these are included in elements.html during vulcanization
gulp.task('html:copyToDest', function() {
  return gulp.src([
    GLOBAL.config.src + '/**/*.html', '!/**/elements/**/*.html'
  ])
    .pipe(gulpif(GLOBAL.config.env === 'prod', minifyHtml()))
    .pipe(gulp.dest(GLOBAL.config.dest));
});

gulp.task('html:replaceVersionNo', ['vulcanize', 'html:copyToDest'], function() {
  return gulp.src([GLOBAL.config.dest + '/**/*.html'])
    .pipe(replace(/@VERSION@/g, GLOBAL.config.version))
    .pipe(gulp.dest(GLOBAL.config.dest));
});

{'fraction_non_alphanumeric': 0.21077012159814706, 'fraction_numerical': 0.0, 'mean_word_length': 4.857627118644068, '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': '305783', 'n_tokens_mistral': 585, 'n_tokens_neox': 594, 'n_words': 116}