<commit_before>var gulp = require('gulp');
var browserSync = require('browser-sync');
var gulpSequence = require('gulp-sequence');
var clean = require('gulp-clean');
var rename = require('gulp-rename');
var htmlmin = require('gulp-htmlmin');
var imagemin = require('gulp-imagemin');
var jshint = require('gulp-jshint');
var jshintStylish = require('jshint-stylish');
var uglify = require('gulp-uglify');
var csslint = require('gulp-csslint');
var cssmin = require('gulp-cssmin');
var autoprefixer = require('gulp-autoprefixer');

// Default task
gulp.task('default', gulpSequence('build', 'server'));

// Build task
gulp.task('build', gulpSequence('clean-dist', 'copy-app-to-dist', ['minify-img', 'minify-html', 'minify-css', 'minify-js']));

// Clean the "dist" folder contents
gulp.task('clean-dist', function() {
    return gulp.src('dist')
        .pipe(clean());
});

// Copy all files from "app" to "dist" folder
gulp.task('copy-app-to-dist', function() {
    return gulp.src('app/**/*')
        .pipe(gulp.dest('dist'));
});

// Minify the HTML files from "app" folder to "dist" folder
gulp.task('minify-html', function() {
    return gulp.src('app/**/*.+(htm|html)')
        .pipe(htmlmin({
            collapseWhitespace: true,
            removeComments: true
        }))<commit_msg>Added: Support for .hidden files copying<commit_after>var gulp = require('gulp');
var browserSync = require('browser-sync');
var gulpSequence = require('gulp-sequence');
var clean = require('gulp-clean');
var rename = require('gulp-rename');
var htmlmin = require('gulp-htmlmin');
var imagemin = require('gulp-imagemin');
var jshint = require('gulp-jshint');
var jshintStylish = require('jshint-stylish');
var uglify = require('gulp-uglify');
var csslint = require('gulp-csslint');
var cssmin = require('gulp-cssmin');
var autoprefixer = require('gulp-autoprefixer');

// Default task
gulp.task('default', gulpSequence('build', 'server'));

// Build task
gulp.task('build', gulpSequence('clean-dist', 'copy-app-to-dist', ['minify-img', 'minify-html', 'minify-css', 'minify-js']));

// Clean the "dist" folder contents
gulp.task('clean-dist', function() {
    return gulp.src('dist')
        .pipe(clean());
});

// Copy all files from "app" to "dist" folder
gulp.task('copy-app-to-dist', function() {
    return gulp.src(['app/**/*', 'app/**/.*'])
        .pipe(gulp.dest('dist'));
});

// Minify the HTML files from "app" folder to "dist" folder
gulp.task('minify-html', function() {
    return gulp.src('app/**/*.+(htm|html)')
        .pipe(htmlmin({
            collapseWhitespace: true,
            removeComments: true
        }))
{'fraction_non_alphanumeric': 0.19748858447488585, 'fraction_numerical': 0.0, 'mean_word_length': 4.289738430583501, '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': '5467818', 'n_tokens_mistral': 895, 'n_tokens_neox': 887, 'n_words': 196}