<commit_before>"use strict";
var gulp = require("gulp");
var newer = require("gulp-newer");

// include paths file
var paths = require("../paths");

// 'gulp copy:assets' -- copies assets to /dist/
//   to avoid Jekyll overwriting the whole directory
gulp.task("copy:assets", () => {
  return gulp
    .src([paths.assetFilesTemp + "/**/*", paths.imageFiles + "/*.ico"])
    .pipe(gulp.dest(paths.assetFilesSite));
});

// 'gulp copy:images' -- copies unoptimized images to /dist/
gulp.task("copy:images", () => {
  return gulp
    .src([
      paths.imageFilesGlob,
      "!src/assets/images/{feature,feature/**}"
    ]) // do not process feature images
    .pipe(newer(paths.imageFilesSite))
    .pipe(gulp.dest(paths.imageFilesSite));
});

// 'gulp copy:images:cached' -- copies cached images to /dist/
gulp.task("copy:images:cached", () => {
  return gulp
    .src(paths.imageFilesCachePath + "/**/*")
    .pipe(gulp.dest(paths.imageFilesSite));
});

// 'gulp copy:icons' -- copies .ico assets to /dist/
gulp.task("copy:icons", () => {
  return gulp
    .src(paths.imageFiles + "/*.ico")
    .pipe(newer(paths.imageFilesSite))
    .pipe(gulp.dest(paths.imageFilesSite));
});

// 'gulp copy:manifest' -- copies image json to /dist/
gulp.task("copy:manifest", () => {
  return gulp
    .src(paths.imageFiles + "/*.json")
    .pipe(newer(paths.imageFilesSite))
    .pipe(gulp.dest(paths.imageFilesSite));
});

// 'gulp copy:site' -- copies processed Jekyll site to /dist/<commit_msg>Only copy cached images if they are newer<commit_after>"use strict";
var gulp = require("gulp");
var newer = require("gulp-newer");

// include paths file
var paths = require("../paths");

// 'gulp copy:assets' -- copies assets to /dist/
//   to avoid Jekyll overwriting the whole directory
gulp.task("copy:assets", () => {
  return gulp
    .src([paths.assetFilesTemp + "/**/*", paths.imageFiles + "/*.ico"])
    .pipe(gulp.dest(paths.assetFilesSite));
});

// 'gulp copy:images' -- copies unoptimized images to /dist/
gulp.task("copy:images", () => {
  return gulp
    .src([
      paths.imageFilesGlob,
      "!src/assets/images/{feature,feature/**}"
    ]) // do not process feature images
    .pipe(newer(paths.imageFilesSite))
    .pipe(gulp.dest(paths.imageFilesSite));
});

// 'gulp copy:images:cached' -- copies cached images to /dist/
gulp.task("copy:images:cached", () => {
  return gulp
    .src(paths.imageFilesCachePath + "/**/*")
    .pipe(newer(paths.imageFilesSite))
    .pipe(gulp.dest(paths.imageFilesSite));
});

// 'gulp copy:icons' -- copies .ico assets to /dist/
gulp.task("copy:icons", () => {
  return gulp
    .src(paths.imageFiles + "/*.ico")
    .pipe(newer(paths.imageFilesSite))
    .pipe(gulp.dest(paths.imageFilesSite));
});

// 'gulp copy:manifest' -- copies image json to /dist/
gulp.task("copy:manifest", () => {
  return gulp
    .src(paths.imageFiles + "/*.json")
    .pipe(newer(paths.imageFilesSite))
    .pipe(gulp.dest(paths.imageFilesSite));
});

// 'gulp copy:site' -- copies processed Jekyll site to /dist/
{'fraction_non_alphanumeric': 0.1945268710847346, 'fraction_numerical': 0.0, 'mean_word_length': 3.468335787923417, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5479359', 'n_tokens_mistral': 1044, 'n_tokens_neox': 1039, 'n_words': 211}