<commit_before>'use strict';
/*
 * gulp-html-minifier
 * https://github.com/origin1tech/gulp-html-minifier
 *
 * Copyright (c) 2014 <NAME>
 * Licensed under the MIT license.
 */
var es = require('event-stream'),
	htmlmin = require('html-minifier'),
	gutil = require('gulp-util');
module.exports = function (options) {
	options = options || {
		showStack: false,
	};	
	// snipets stripPath, toArray & unixify based on gulp-inject
	// https://github.com/klei/gulp-inject/blob/master/index.js
	function ignorePath (basedir, filepath) {
		return toArray(basedir).reduce(function (path, remove) {
			var regex = remove;
			if(!(remove instanceof RegExp)){
				remove = remove.replace(/\//g, '\\/');
				regex = new RegExp(remove, 'g');
			}
			path = path.replace(regex, '');<commit_msg>Fixed test for lint option; it must be set to HTMLLint object to make it work<commit_after>'use strict';
/*
 * gulp-html-minifier
 * https://github.com/origin1tech/gulp-html-minifier
 *
 * Copyright (c) 2014 <NAME>
 * Licensed under the MIT license.
 */
var es = require('event-stream'),
	htmlmin = require('html-minifier'),
	HTMLLint = require('html-minifier/src/htmllint').HTMLLint,
	gutil = require('gulp-util');
module.exports = function (options) {
	options = options || {
		showStack: false,
	};	

	if (options.lint) {
		options.lint = new HTMLLint();
	}
	// snipets stripPath, toArray & unixify based on gulp-inject
	// https://github.com/klei/gulp-inject/blob/master/index.js
	function ignorePath (basedir, filepath) {
		return toArray(basedir).reduce(function (path, remove) {
			var regex = remove;
			if(!(remove instanceof RegExp)){
				remove = remove.replace(/\//g, '\\/');
				regex = new RegExp(remove, 'g');
			}
			path = path.replace(regex, '');
{'fraction_non_alphanumeric': 0.16437571592210767, 'fraction_numerical': 0.0057273768613974796, 'mean_word_length': 3.786301369863014, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '3642067', 'n_tokens_mistral': 633, 'n_tokens_neox': 593, 'n_words': 136}