<commit_before>


/**
 * @interface
 */
IQueryResponse = function() {};


/**
 * @return {void}
 */
IQueryResponse.prototype.sortByField = function() {};


/**
 * @return {ITorrent}
 */
IQueryResponse.prototype.getItem = function() {};


/**
 * @return {number}
 */
IQueryResponse.prototype.getItemsCount = function() {};


/**
 * @return {IQueryResponse}
 */
IQueryResponse.prototype.getItemsQuery = function() {};
<commit_msg>Rewrote on ES6 syntax and add several methods<commit_after>/**
 * Common QueryResponse interface
 * @interface
 */
class IQueryResponse {
  /**
   * Sort items by field
   * @param {string} field
   * @return {void}
   */
  sortByField() {}

  /**
   * Do search query between items from this response
   * @param {QueryParams} [optParams]
   * @return {IQueryResponse}
   */
  doQuery() {}

  /**
   * Get array of torrent items in response
   * @param {number} [optCount] items
   * @return {Array<ITorrent>}
   */
  get items(optCount) {}

  /**
   * Get count of items in response
   * @return {number}
   */
  get itemsCount() {}
}
{'fraction_non_alphanumeric': 0.16071428571428573, 'fraction_numerical': 0.0009398496240601503, 'mean_word_length': 3.243027888446215, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2629063', 'n_tokens_mistral': 345, 'n_tokens_neox': 335, 'n_words': 83}