<commit_before>'use strict';

class ChartMogulError extends Error {
  constructor (message, httpStatus, response) {
    super(message);
    this.name = this.constructor.name;
    this.message = message;
    this.response = response;
    this.httpStatus = httpStatus;
    Error.captureStackTrace(this, this.constructor.name);
  }
}

module.exports = ChartMogulError;<commit_msg>The response from API should get included by default<commit_after>'use strict';

class ChartMogulError extends Error {
  constructor (message, httpStatus, response) {
    super(message + ' ' + JSON.stringify(response));
    this.name = this.constructor.name;
    this.response = response;
    this.httpStatus = httpStatus;
    Error.captureStackTrace(this, this.constructor.name);
  }
}

module.exports = ChartMogulError;
{'fraction_non_alphanumeric': 0.10776942355889724, 'fraction_numerical': 0.0, 'mean_word_length': 4.3624161073825505, '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': '920442', 'n_tokens_mistral': 230, 'n_tokens_neox': 228, 'n_words': 52}