<commit_before>/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author <NAME> @sokra
*/
function ChunkRenderError(chunk, file, error) {
	Error.call(this);
	Error.captureStackTrace(this, ChunkRenderError);
	this.name = "ChunkRenderError";
	this.error = error;
	this.message = error.message;
	this.details = error.stack;
	this.file = file;
	this.chunk = chunk;
}
module.exports = ChunkRenderError;

ChunkRenderError.prototype = Object.create(Error.prototype);
ChunkRenderError.prototype.constructor = ChunkRenderError;<commit_msg>refactor(ChunkRenderError): upgrade to ES6<commit_after>/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author <NAME> @sokra
*/
"use strict";

class ChunkRenderError extends Error {

	constructor(chunk, file, error) {
		super();

		if(Error.hasOwnProperty("captureStackTrace")) {
			Error.captureStackTrace(this, this.constructor);
		}

		this.name = "ChunkRenderError";
		this.error = error;
		this.message = error.message;
		this.details = error.stack;
		this.file = file;
		this.chunk = chunk;
	}
}

module.exports = ChunkRenderError;
{'fraction_non_alphanumeric': 0.1322463768115942, 'fraction_numerical': 0.0009057971014492754, 'mean_word_length': 5.038251366120218, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7521988', 'n_tokens_mistral': 370, 'n_tokens_neox': 355, 'n_words': 68}