<commit_before>function keys (obj) {
  var result = []
  var key

  for (key in obj) {
    if (obj.hasOwnProperty(key)) {
      result.push(key)
    }
  }
  return result<commit_msg>update object/keys use Object.prototype.hasOwnProperty. this is more safe despite the minor  speed hit with fn.call<commit_after>function keys (obj) {
  var hasOwn = Object.prototype.hasOwnProperty
  var result = []
  var key

  for (key in obj) {
    if (hasOwn.call(obj, key)) {
      result.push(key)
    }
  }
  return result
{'fraction_non_alphanumeric': 0.10763209393346379, 'fraction_numerical': 0.0, 'mean_word_length': 3.0, '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': '3173795', 'n_tokens_mistral': 168, 'n_tokens_neox': 168, 'n_words': 49}