<commit_before>// Underscore-contrib (underscore.function.arity.js 0.3.0)
// (c) 2013 <NAME>, DocumentCloud and Investigative Reporters & Editors
// Underscore-contrib may be freely distributed under the MIT license.

(function(root) {

  // Baseline setup
  // --------------

  // Establish the root object, `window` in the browser, or `global` on the server.
  var _ = root._ || require('underscore');

  // Setup for variadic operators
  // ----------------------------

  // Turn a binary math operator into a variadic operator
  function variadicMath(operator) {
    return function() {
      var numbersToOperateOn = _(arguments).flatten();
      return _.reduce(numbersToOperateOn, operator);
    };
  }

  // Turn a binary comparator into a variadic comparator
  function variadicComparator(comparator) {
    return function() {
      var result;
      var numbersToCompare = _(arguments).flatten();

      for (var i = 0; i < numbersToCompare.length - 1; i++) {
        result = comparator(numbersToCompare[i], numbersToCompare[i + 1]);<commit_msg>util.operators: don't do deep flatten on arguments ...<commit_after>// Underscore-contrib (underscore.function.arity.js 0.3.0)
// (c) 2013 <NAME>, DocumentCloud and Investigative Reporters & Editors
// Underscore-contrib may be freely distributed under the MIT license.

(function(root) {

  // Baseline setup
  // --------------

  // Establish the root object, `window` in the browser, or `global` on the server.
  var _ = root._ || require('underscore');

  // Setup for variadic operators
  // ----------------------------

  // Turn a binary math operator into a variadic operator
  function variadicMath(operator) {
    return function() {
      var numbersToOperateOn = _.flatten(arguments, true);
      return _.reduce(numbersToOperateOn, operator);
    };
  }

  // Turn a binary comparator into a variadic comparator
  function variadicComparator(comparator) {
    return function() {
      var result;
      var numbersToCompare = _.flatten(arguments, true);

      for (var i = 0; i < numbersToCompare.length - 1; i++) {
        result = comparator(numbersToCompare[i], numbersToCompare[i + 1]);
{'fraction_non_alphanumeric': 0.1468822170900693, 'fraction_numerical': 0.009237875288683603, 'mean_word_length': 2.813380281690141, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '5910906', 'n_tokens_mistral': 641, 'n_tokens_neox': 587, 'n_words': 192}