<commit_before>var path = require("path");
var Logger = require("./logger");
var ee = require("event-emitter");
var ThumbnailGenerator = require("./thumbnail-generator");
var utils = require("./utils");
var nullLogger = require("./null-logger");

/**
 * Starts generating the thumbnails using the configuration in `generatorOptions`.
 * Removes thumbnails when they their segments are removed from the playlist after `expireTime` seconds.
 * @constructor
 * @param {String} options.manifestFileName The name for the manifest file.
 * @param {Object} options The time in seconds to keep thumbnails for before deleting them, once their segments have left the playlist. Defaults to 0.
 * @param {Number} [options.expireTime] The time in seconds to keep thumbnails for before deleting them, once their segments have left the playlist. Defaults to 0.
 * @param {Number} [options.logger] An object with `debug`, `info`, `warn` and `error` functions, or null, to disable logging.
 * @param {Object} [generatorOptions] Configuraton for `ThumbnailGenerator`.
 */
function SimpleThumbnailGenerator(options, generatorOptions) {
	options = options || {};
	generatorOptions = generatorOptions || {};

	if (!options.manifestFileName) {
		throw new Error("manifestFileName required.");
	}<commit_msg>fix doc block<commit_after>var path = require("path");
var Logger = require("./logger");
var ee = require("event-emitter");
var ThumbnailGenerator = require("./thumbnail-generator");
var utils = require("./utils");
var nullLogger = require("./null-logger");

/**
 * Starts generating the thumbnails using the configuration in `generatorOptions`.
 * Removes thumbnails when they their segments are removed from the playlist after `expireTime` seconds.
 * @constructor
 * @param {Object} options
 * @param {String} options.manifestFileName The name for the manifest file.
 * @param {Number} [options.expireTime] The time in seconds to keep thumbnails for before deleting them, once their segments have left the playlist. Defaults to 0.
 * @param {Number} [options.logger] An object with `debug`, `info`, `warn` and `error` functions, or null, to disable logging.
 * @param {Object} [generatorOptions] Configuraton for `ThumbnailGenerator`.
 */
function SimpleThumbnailGenerator(options, generatorOptions) {
	options = options || {};
	generatorOptions = generatorOptions || {};

	if (!options.manifestFileName) {
		throw new Error("manifestFileName required.");
	}
{'fraction_non_alphanumeric': 0.11733442354865085, 'fraction_numerical': 0.0012264922322158627, 'mean_word_length': 5.339378238341969, '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': '6794947', 'n_tokens_mistral': 651, 'n_tokens_neox': 633, 'n_words': 251}