<commit_before>"use strict";

/**
 * Creates a new MongoError
 * @class
 * @augments Error
 * @param {string} message The error message
 * @return {MongoError} A cursor instance
 */
function MongoError(message) {
  this.name = 'MongoError';
  this.message = message;
  this.stack = (new Error()).stack;
}

/**
 * Creates a new MongoError object
 * @class
 * @param {object} options The error options<commit_msg>Uses official pathway for capturing stack trace allowing throw errors to behave better.<commit_after>"use strict";

/**
 * Creates a new MongoError
 * @class
 * @augments Error
 * @param {string} message The error message
 * @return {MongoError} A cursor instance
 */
function MongoError(message) {
  this.name = 'MongoError';
  this.message = message;
  Error.captureStackTrace(this, MongoError);
}

/**
 * Creates a new MongoError object
 * @class
 * @param {object} options The error options
{'fraction_non_alphanumeric': 0.11712707182320442, 'fraction_numerical': 0.0, 'mean_word_length': 4.298245614035087, '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': '3041362', 'n_tokens_mistral': 269, 'n_tokens_neox': 259, 'n_words': 92}