<commit_before>var _ = exports
var toStr = Object.prototype.toString
var slice = Array.prototype.slice
var hasOwn = Object.prototype.hasOwnProperty
var isArrayNative = Array.isArray

_.now = function () {
  return new Date().getTime()
}

_.isFn = function (obj) {
  return typeof obj === 'function'
}

_.isObj = function (o) {
  return (o && toStr.call(o) === '[object Object]') || false
}

_.isArr = function (o) {
  return (o && isArrayNative ? isArrayNative(o) : toStr.call(o) === '[object Array]') || false
}

_.toArr = function (args) {
  return slice.call(args)
}

_.defer = function (fn) {
  setTimeout(fn, 1)
}

_.each = function (obj, fn) {
  var i, l
  if (_.isArr(obj))
    for (i = 0, l = obj.length; i < l; i += 1) fn(obj[i], i)
  else if (_.isObj(obj))
    for (i in obj) if (hasOwn.call(obj, i)) fn(obj[i], i)
}

_.extend = function (target) {
  var args = _.toArr(arguments).slice(1)
  _.each(args, function (obj) {
    if (_.isObj(obj)) {
      _.each(obj, function (value, key) {
        target[key] = value
      })
    }
  })
  return target
}<commit_msg>refactor(utils)<commit_after>var _ = exports
var toStr = Object.prototype.toString
var slice = Array.prototype.slice
var hasOwn = Object.prototype.hasOwnProperty
var isArrayNative = Array.isArray

_.now = function () {
  return new Date().getTime()
}

_.isFn = function (obj) {
  return typeof obj === 'function'
}

_.isObj = function (o) {
  return (o && toStr.call(o) === '[object Object]') || false
}

_.isArr = function (o) {
  return o && (isArrayNative ? isArrayNative(o) : toStr.call(o) === '[object Array]') || false
}

_.toArr = function (args) {
  return slice.call(args)
}

_.defer = function (fn) {
  setTimeout(fn, 1)
}

_.each = function (obj, fn) {
  var i, l
  if (_.isArr(obj))
    for (i = 0, l = obj.length; i < l; i += 1) fn(obj[i], i)
  else if (_.isObj(obj))
    for (i in obj) if (hasOwn.call(obj, i)) fn(obj[i], i)
}

_.extend = function (target) {
  var args = _.toArr(arguments).slice(1)
  _.each(args, function (obj) {
    if (_.isObj(obj)) {
      _.each(obj, function (value, key) {
        target[key] = value
      })
    }
  })
  return target
}
{'fraction_non_alphanumeric': 0.1775092936802974, 'fraction_numerical': 0.0037174721189591076, 'mean_word_length': 3.1968810916179335, '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': '3337699', 'n_tokens_mistral': 804, 'n_tokens_neox': 802, 'n_words': 214}