<commit_before>'use strict';

module.exports = function each(fn) {
  let stop = false;

  if (Array.isArray(this.items)) {
    const { length } = this.items;

    for (let i = 0; i < length && !stop; i++) {
      stop = fn(this.items[i], i, this.items) === false;
    }
  } else {
    const keys = Object.keys(this.items);
    const { length } = keys;

    for (let i = 0; i < length && !stop; i++) {
      const key = keys[i];

      stop = fn(this.items[key], key, this.items) === false;
    }
  }

  return this;
};<commit_msg>Fixed eslint<commit_after>'use strict';

module.exports = function each(fn) {
  let stop = false;

  if (Array.isArray(this.items)) {
    const { length } = this.items;

    for (let index = 0; index < length && !stop; index += 1) {
      stop = fn(this.items[index], index, this.items) === false;
    }
  } else {
    const keys = Object.keys(this.items);
    const { length } = keys;

    for (let index = 0; index < length && !stop; index += 1) {
      const key = keys[index];

      stop = fn(this.items[key], key, this.items) === false;
    }
  }

  return this;
};
{'fraction_non_alphanumeric': 0.17620345140781107, 'fraction_numerical': 0.005449591280653951, 'mean_word_length': 2.554838709677419, 'pattern_counts': {'":': 0, '<': 7, '<?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': '191727', 'n_tokens_mistral': 395, 'n_tokens_neox': 380, 'n_words': 105}