<commit_before>/**
 * Iterates across key/value pairs in an object
 *
 *  @param {Object} o The iteration target
 *  @param {Function} iterator The iteration function
 *  @param {Object} context Te context for invocation of iteration function
 */
function iterate(o, iterator, context) {
  for (var k in o) {
    if (o.hasOwnProperty(k)) {
      iterator.call(context, o[k], k);
    }
  }
}

/**
 * Recursively iterates across deep key/values in an object.
 *
 *  @param {Object} o The iteration target
 *  @param {integer} depth The iteration depth
 *  @param {Function} iterator The iteration function
 *  @param {Object} context The context for invocation of the iteration function
 *
 *  @example
 *
 *    x = { foo: { a: 1, b: 2 }, bar: { a: 3, b: 4 } };
 *
 *    iterators.niterate(x, 2, function (v1, k1, v2, k2) {
 *
 *      // This iterator function will be invoked with:
 *      //   ({ a: 1, b: 2 }, 'foo', 1, 'a')
 *      //   ({ a: 1, b: 2 }, 'foo', 2, 'b')
 *      //   ({ a: 3, b: 4 }, 'bar', 3, 'a')
 *      //   ({ a: 3, b: 4 }, 'bar', 4, 'b')
 *
 *    }, this);
 */
function niterate(o, depth, iterator, context) {<commit_msg>Cleans up iterator jsdocs<commit_after>/**
 * Iterates across key/value pairs in an object
 *
 *  @param {Object}   o        Iteration target
 *  @param {Function} iterator Iteration function
 *  @param {Object}   context  Iteration function context
 */
function iterate(o, iterator, context) {
  for (var k in o) {
    if (o.hasOwnProperty(k)) {
      iterator.call(context, o[k], k);
    }
  }
}

/**
 * Recursively iterates across deep key/values in an object.
 *
 *  @param {Object}   o         Iteration target
 *  @param {integer}  depth     Iteration depth
 *  @param {Function} iterator  Iteration function
 *  @param {Object}   context   Iteration function context
 *
 *  @example
 *
 *    x = { foo: { a: 1, b: 2 }, bar: { a: 3, b: 4 } };
 *
 *    iterators.niterate(x, 2, function (v1, k1, v2, k2) {
 *
 *      // This iterator function will be invoked with:
 *      //   ({ a: 1, b: 2 }, 'foo', 1, 'a')
 *      //   ({ a: 1, b: 2 }, 'foo', 2, 'b')
 *      //   ({ a: 3, b: 4 }, 'bar', 3, 'a')
 *      //   ({ a: 3, b: 4 }, 'bar', 4, 'b')
 *
 *    }, this);
 */
function niterate(o, depth, iterator, context) {
{'fraction_non_alphanumeric': 0.1695364238410596, 'fraction_numerical': 0.018543046357615896, 'mean_word_length': 2.496913580246914, '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': '2798914', 'n_tokens_mistral': 828, 'n_tokens_neox': 787, 'n_words': 271}