<commit_before>function filter (obj, fn) {
  var hasOwn = Object.prototype.hasOwnProperty
  var result = {}
  var key

  for (key in obj) {
    if (hasOwn.call(obj,key)) {
      if (fn(obj[key], key, obj)) result[key] = obj[key]
    }
  }
  return result
}

module.exports = filter<commit_msg>lint object/filter<commit_after>function filter (obj, fn) {
  var hasOwn = Object.prototype.hasOwnProperty
  var result = {}
  var key

  for (key in obj) {
    if (hasOwn.call(obj, key)) {
      if (fn(obj[key], key, obj)) result[key] = obj[key]
    }
  }
  return result
}

module.exports = filter
{'fraction_non_alphanumeric': 0.14020270270270271, 'fraction_numerical': 0.0, 'mean_word_length': 3.176056338028169, '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': '3266126', 'n_tokens_mistral': 212, 'n_tokens_neox': 211, 'n_words': 55}