<commit_before>var scrub = require('./scrub')

function times (arr) {
  return scrub(arr)
    .reduce(function (prod, item, key) {
      if (key === 0) return item
      return prod * item
    })
}

module.exports = times<commit_msg>update math/multiply<commit_after>var scrub = require('./scrub')
var slice = require('../array/slice')
var reduce = require('../array/reduce')

function times (arr) {
  return reduce(scrub(arr), function (prod, item, key) {
    if (key === 0) return item
    return prod * item
  })

}

module.exports = times
{'fraction_non_alphanumeric': 0.15682656826568267, 'fraction_numerical': 0.0036900369003690036, 'mean_word_length': 3.4146341463414633, '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': '2090112', 'n_tokens_mistral': 174, 'n_tokens_neox': 171, 'n_words': 50}