<commit_before>var env         = require('minimist')(process.argv.slice(2)),
    gulp        = require('gulp'),
    plumber     = require('gulp-plumber'),
    stylus      = require('gulp-stylus'),
    jeet        = require('jeet'),
    rupture     = require('rupture'),
    koutoSwiss  = require('kouto-swiss'),
    prefixer    = require('autoprefixer-stylus'),
    imagemin    = require('gulp-imagemin'),
    newer       = require('gulp-newer'),
    rename      = require('gulp-rename'),
    htmlmin     = require('gulp-htmlmin')
    purify      = require('gulp-purifycss');

/**
 * Stylus task
 */
gulp.task('stylus', function(){
    gulp.src('src/styl/main.styl')
    .pipe(plumber())
    .pipe(stylus({
      use:[koutoSwiss(), prefixer(), jeet(), rupture()],
      compress: true
    }))
    //.pipe(purify(['_site/**/*.js', '_site/**/*.html'], options = {info:true, rejected:true, minify:true}))
    .pipe(rename('stylesheet.css'))
    .pipe(gulp.dest('layouts/partials/'));
});

/**
 * HTML minify
 */
gulp.task('minify-html', () => {
    return gulp.src('public/**/*.html')
        .pipe(htmlmin({
            collapseWhitespace: true,
            minifyCSS: true,
            minifyJS: true,
            removeComments: true,
            useShortDoctype: true,
            ignorePath: '/js/mj',
            processScripts: ['application/ld+json','application/json']
        }))
        .pipe(gulp.dest('./public'))
})

/**
 * Imagemin Task
 */
gulp.task('imagemin', function() {
  return gulp.src('static/img/**/*.{jpg,png,gif}')
    //.pipe(newer('static/img/'))
    .pipe(plumber())
    .pipe(imagemin({ optimizationLevel: 7, progressive: true, interlaced: true }))
    .pipe(gulp.dest('static/img/'));
});
<commit_msg>Modifying gulp-imagemin<commit_after>var env         = require('minimist')(process.argv.slice(2)),
    gulp        = require('gulp'),
    plumber     = require('gulp-plumber'),
    stylus      = require('gulp-stylus'),
    jeet        = require('jeet'),
    rupture     = require('rupture'),
    koutoSwiss  = require('kouto-swiss'),
    prefixer    = require('autoprefixer-stylus'),
    imagemin    = require('gulp-imagemin'),
    newer       = require('gulp-newer'),
    rename      = require('gulp-rename'),
    htmlmin     = require('gulp-htmlmin')
    purify      = require('gulp-purifycss');

/**
 * Stylus task
 */
gulp.task('stylus', function(){
    gulp.src('src/styl/main.styl')
    .pipe(plumber())
    .pipe(stylus({
      use:[koutoSwiss(), prefixer(), jeet(), rupture()],
      compress: true
    }))
    //.pipe(purify(['_site/**/*.js', '_site/**/*.html'], options = {info:true, rejected:true, minify:true}))
    .pipe(rename('stylesheet.css'))
    .pipe(gulp.dest('layouts/partials/'));
});

/**
 * HTML minify
 */
gulp.task('minify-html', () => {
    return gulp.src('public/**/*.html')
        .pipe(htmlmin({
            collapseWhitespace: true,
            minifyCSS: true,
            minifyJS: true,
            removeComments: true,
            useShortDoctype: true,
            ignorePath: '/js/mj',
            processScripts: ['application/ld+json','application/json']
        }))
        .pipe(gulp.dest('./public'))
})

/**
 * Imagemin Task
 */
gulp.task('imagemin', function() {
  return gulp.src('src/img/**/*.{jpg,png,gif}')
    .pipe(newer('static/img/'))
    .pipe(plumber())
    .pipe(imagemin({ optimizationLevel: 7, progressive: true, interlaced: true, verbose:true}))
    .pipe(gulp.dest('static/img/'));
});

{'fraction_non_alphanumeric': 0.20040253018976423, 'fraction_numerical': 0.0011500862564692352, 'mean_word_length': 2.6353187042842214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4504561', 'n_tokens_mistral': 1213, 'n_tokens_neox': 1190, 'n_words': 172}