<commit_before>// Tests whether all elements in the array pass the test
// implemented by the provided function

function every (arr, fn) {
  var i = -1
  var len = arr.length

  while (++i < len) {
    if (!fn(arr[i], i, arr)) return false
  }

  return true
}

module.exports = every
<commit_msg>update array/every -- handle null/undefined<commit_after>// Tests whether all elements in the array pass the test
// implemented by the provided function

function every (arr, fn) {
  var res = true
  if (arr == null) return res

  var i = -1
  var len = arr.length

  while (++i < len) {
    if (!fn(arr[i], i, arr)) {
      res = false
      break
    }
  }

  return res
}

module.exports = every

{'fraction_non_alphanumeric': 0.11461318051575932, 'fraction_numerical': 0.0028653295128939827, 'mean_word_length': 2.6789473684210527, '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': '5242949', 'n_tokens_mistral': 228, 'n_tokens_neox': 222, 'n_words': 90}