<commit_before>/**
 * @param {Object} response
 * @constructor
 */
function PluginResponse(response) {
  this._response = response;
}

/**
 * @returns {*}
 */
PluginResponse.prototype.getError = function() {
  return this.get('error') || this.getData()['error'];
};

/**
 * @returns {Object}
 */
PluginResponse.prototype.getData = function() {
  return this.get('plugindata', 'data');
};

/**
 * @param {..String} name
 * @returns {*}
 */
PluginResponse.prototype.get = function(name) {
  var names = Array.prototype.slice.call(arguments, 1);
  var result = this._response[name];

  for (var i = 0; i < names.length; i++) {<commit_msg>Higher priority to plugin error over general error<commit_after>/**
 * @param {Object} response
 * @constructor
 */
function PluginResponse(response) {
  this._response = response;
}

/**
 * @returns {*}
 */
PluginResponse.prototype.getError = function() {
  return this.getData()['error'] || this.get('error');
};

/**
 * @returns {Object}
 */
PluginResponse.prototype.getData = function() {
  return this.get('plugindata', 'data');
};

/**
 * @param {..String} name
 * @returns {*}
 */
PluginResponse.prototype.get = function(name) {
  var names = Array.prototype.slice.call(arguments, 1);
  var result = this._response[name];

  for (var i = 0; i < names.length; i++) {
{'fraction_non_alphanumeric': 0.19127773527161437, 'fraction_numerical': 0.00306044376434583, 'mean_word_length': 4.109375, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5288171', 'n_tokens_mistral': 420, 'n_tokens_neox': 414, 'n_words': 91}