<commit_before>'use strict';

if (!config.tasks.images) {
	return false;
}

let paths = {
	src: path.join(config.root.base, config.root.src, config.tasks.images.src, '/**',  getExtensions(config.tasks.images.extensions)),
	dest: path.join(config.root.base, config.root.dest, config.tasks.images.dest)
};

function images() {
	return gulp.src(paths.src, {since: cache.lastMtime('images')})
		.pipe(plumber(handleErrors))
		.pipe(cache('images'))
		.pipe(changed(paths.dest)) // Ignore unchanged files
		.pipe(config.root.optimizeImages ? imagemin() : util.noop())  // Optimize
		.pipe(flatten())
		.pipe(chmod(config.chmod))
		.pipe(gulp.dest(paths.dest))
		.pipe(size({<commit_msg>Remove optimizeImages task in image task<commit_after>'use strict';

if (!config.tasks.images) {
	return false;
}

let paths = {
	src: path.join(config.root.base, config.root.src, config.tasks.images.src, '/**',  getExtensions(config.tasks.images.extensions)),
	dest: path.join(config.root.base, config.root.dest, config.tasks.images.dest)
};

function images() {
	return gulp.src(paths.src, {since: cache.lastMtime('images')})
		.pipe(plumber(handleErrors))
		.pipe(cache('images'))
		.pipe(changed(paths.dest)) // Ignore unchanged files
		.pipe(flatten())
		.pipe(chmod(config.chmod))
		.pipe(gulp.dest(paths.dest))
		.pipe(size({
{'fraction_non_alphanumeric': 0.18583396801218582, 'fraction_numerical': 0.0, 'mean_word_length': 4.918918918918919, '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': '5080154', 'n_tokens_mistral': 484, 'n_tokens_neox': 463, 'n_words': 74}