<commit_before>module.exports = function(options) {
	if (options === undefined) { options = {}; }

	var _keyLocator = options.keyLocator || /:([_\w][_\w\d]*(?:\.[_\w][_\w\d]*)*)/g;
	var _keySplitter = options.keySplitter || '.';

	function create(name, type) {
		function ErrorConstructor(message, data, original) {
			if (!this instanceof ErrorConstructor) {
				return new ErrorConstructor(message, data, original);
			}
			// error properties
			this.name = name;
			this.message = _interpolate(message, data);
			// custom properties
			this.type = type;
			this.data = data;
			if (original) { this.original = original; }
		}
		ErrorConstructor.prototype = Object.create(Error.prototype);
		return ErrorConstructor;
	}<commit_msg>Fixed instanceof condition<commit_after>module.exports = function(options) {
	if (options === undefined) { options = {}; }

	var _keyLocator = options.keyLocator || /:([_\w][_\w\d]*(?:\.[_\w][_\w\d]*)*)/g;
	var _keySplitter = options.keySplitter || '.';

	function create(name, type) {
		function ErrorConstructor(message, data, original) {
			if (!(this instanceof ErrorConstructor)) {
				return new ErrorConstructor(message, data, original);
			}
			// error properties
			this.name = name;
			this.message = _interpolate(message, data);
			// custom properties
			this.type = type;
			this.data = data;
			if (original) { this.original = original; }
		}
		ErrorConstructor.prototype = Object.create(Error.prototype);
		return ErrorConstructor;
	}
{'fraction_non_alphanumeric': 0.15622895622895622, 'fraction_numerical': 0.0, 'mean_word_length': 3.9368770764119603, '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': '3979489', 'n_tokens_mistral': 511, 'n_tokens_neox': 455, 'n_words': 102}