<commit_before>/**
 * Created by hunter.novak on 3/3/16.
 */
var _       = require('lodash'),
    ustring = require('underscore.string'),
    sprintf = require('sprintf-js').sprintf;


/******** Custom Additional Methods ********/

function mergeAll() {
  var argsArray = _.toArray(arguments);
  argsArray.push(function(a, b) {
    return _.isArray(a) ? _.union(a, b) : undefined;
  });

  return _.merge.apply(null, argsArray);
}


/******** Decorate Lodash ********/

_.mergeAll      = mergeAll;
_.sprintf       = sprintf;
_.strRight      = ustring.strRight;
_.strRightBack  = ustring.strRightBack;


module.exports = _;<commit_msg>Updating to lodash mergeWith that actually takes the 3rd customizer argument.<commit_after>/**
 * Created by hunter.novak on 3/3/16.
 */
var _       = require('lodash'),
    ustring = require('underscore.string'),
    sprintf = require('sprintf-js').sprintf;


/******** Custom Additional Methods ********/

function mergeAll() {
  var argsArray = _.toArray(arguments);
  argsArray.push(function(a, b) {
    return _.isArray(a) ? _.union(a, b) : undefined;
  });

  return _.mergeWith.apply(null, argsArray);
}


/******** Decorate Lodash ********/

_.mergeAll      = mergeAll;
_.sprintf       = sprintf;
_.strRight      = ustring.strRight;
_.strRightBack  = ustring.strRightBack;


module.exports = _;
{'fraction_non_alphanumeric': 0.18188622754491018, 'fraction_numerical': 0.006736526946107785, 'mean_word_length': 3.4865771812080535, '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': '6618257', 'n_tokens_mistral': 446, 'n_tokens_neox': 437, 'n_words': 92}