<commit_before>import {spawn} from "child_process";
import autoprefixer from "autoprefixer";
import brotli from "gulp-brotli";
import BrowserSync from "browser-sync";
import cssnano from "cssnano";
import csso from "postcss-csso";
import del from "del";
import gulp from "gulp";
import gzip from "gulp-gzip";
import htmlmin from "gulp-htmlmin";
import hugoBin from "hugo-bin";
import imagemin from "gulp-imagemin";
import log from "fancy-log";
import PluginError from "plugin-error";
import postcss from "gulp-postcss";
import runSequence from "run-sequence";
import sass from "gulp-sass";
import sourcemaps from "gulp-sourcemaps";
import watch from "gulp-watch";
import webpack from "webpack";
import webpackConfig from "./webpack.config";

// Browser Sync
const browserSync = BrowserSync.create();

// Hugo arguments
const hugoArgsDefault = ["-d", "../dist", "-s", "site", "-v"];

// Development tasks
gulp.task("hugo", (cb) => buildSite(cb));

// Build/production tasks
gulp.task("build", ["clean", "hugo", "sass", "css", "js", "img", "static"], (callback) => {
  runSequence("minify", callback);
});

// Minify HTML
gulp.task("minify", () =>
  gulp
    .src("./dist/**/*.html")
    .pipe(
      htmlmin({
        collapseWhitespace: true,
        minifyCSS: true,
        minifyJS: true,
        removeComments: true,
        useShortDoctype: true
      })
    )
    .pipe(
      brotli.compress({
        skipLarger: true,
        mode: 0,
        quality: 11,
        lgblock: 0
      })
    )
    .pipe(
      gzip({
        skipGrowingFiles: true
      })
    )<commit_msg>Whoops<commit_after>import {spawn} from "child_process";
import autoprefixer from "autoprefixer";
import brotli from "gulp-brotli";
import BrowserSync from "browser-sync";
import cssnano from "cssnano";
import csso from "postcss-csso";
import del from "del";
import gulp from "gulp";
import gzip from "gulp-gzip";
import htmlmin from "gulp-htmlmin";
import hugoBin from "hugo-bin";
import imagemin from "gulp-imagemin";
import log from "fancy-log";
import PluginError from "plugin-error";
import postcss from "gulp-postcss";
import runSequence from "run-sequence";
import sass from "gulp-sass";
import sourcemaps from "gulp-sourcemaps";
import watch from "gulp-watch";
import webpack from "webpack";
import webpackConfig from "./webpack.config";

// Browser Sync
const browserSync = BrowserSync.create();

// Hugo arguments
const hugoArgsDefault = ["-d", "../dist", "-s", "site", "-v"];

// Development tasks
gulp.task("hugo", (cb) => buildSite(cb));

// Build/production tasks
gulp.task("build", ["clean", "hugo", "sass", "js", "img", "static"], (callback) => {
  runSequence("minify", callback);
});

// Minify HTML
gulp.task("minify", () =>
  gulp
    .src("./dist/**/*.html")
    .pipe(
      htmlmin({
        collapseWhitespace: true,
        minifyCSS: true,
        minifyJS: true,
        removeComments: true,
        useShortDoctype: true
      })
    )
    .pipe(
      brotli.compress({
        skipLarger: true,
        mode: 0,
        quality: 11,
        lgblock: 0
      })
    )
    .pipe(
      gzip({
        skipGrowingFiles: true
      })
    )
{'fraction_non_alphanumeric': 0.15216010165184243, 'fraction_numerical': 0.0025412960609911056, 'mean_word_length': 3.301912568306011, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3990268', 'n_tokens_mistral': 1071, 'n_tokens_neox': 1043, 'n_words': 293}