<commit_before>var toString = Object.prototype.toString;

var seenObjects = [];

// Internal: Used by `detectRecursion` to check to see if the given pair of objects has been
// encountered yet on a previous recursive call.
//
// o1 - The first object to check for recursion.
// o2 - The paired object to check for recursion.
//
// Returns `true` if the pair has been seen previously and `false` otherwise.
function seen(o1, o2) {
  var i, len;

  for (i = 0, len = seenObjects.length; i < len; i++) {
    if (seenObjects[i][0] === o1 && seenObjects[i][1] === o2) {
      return true;
    }
  }

  return false;
}

// Internal: Used by `detectRecursion` to mark the given pair of objects as seen before recursing.
//
// o1 - The first object to mark.
// o2 - The paired object to mark.
//
// Returns nothing.
function mark(o1, o2) { seenObjects.push([o1, o2]); }

// Internal: Used by `detectRecursion` to unmark the given pair of objects after a recursive call
// has completed.
//
// o1 - The first object to unmark.
// o2 - The paired object to unmark.
//
// Returns nothing.
function unmark(o1, o2) {
  var i, n;

  for (i = 0, n = seenObjects.length; i < n; i++) {
    if (seenObjects[i][0] === o1 && seenObjects[i][1] === o2) {
      seenObjects.splice(i, 1);
      return;
    }
  }
}

// Internal: Used by `getPath` to resolve a path into a value.
//
// o    - The object to resolve the path from.
// path - An array of strings representing segments of the path to resolve.
//
// Returns the resolved value or `undefined` if some segment of the path does not exist.
function _getPath(o, pathSegments) {
  var head = pathSegments[0], tail = pathSegments.slice(1);
  o = o[head];
<commit_msg>Fix docs to have proper argument naming<commit_after>var toString = Object.prototype.toString;

var seenObjects = [];

// Internal: Used by `detectRecursion` to check to see if the given pair of objects has been
// encountered yet on a previous recursive call.
//
// o1 - The first object to check for recursion.
// o2 - The paired object to check for recursion.
//
// Returns `true` if the pair has been seen previously and `false` otherwise.
function seen(o1, o2) {
  var i, len;

  for (i = 0, len = seenObjects.length; i < len; i++) {
    if (seenObjects[i][0] === o1 && seenObjects[i][1] === o2) {
      return true;
    }
  }

  return false;
}

// Internal: Used by `detectRecursion` to mark the given pair of objects as seen before recursing.
//
// o1 - The first object to mark.
// o2 - The paired object to mark.
//
// Returns nothing.
function mark(o1, o2) { seenObjects.push([o1, o2]); }

// Internal: Used by `detectRecursion` to unmark the given pair of objects after a recursive call
// has completed.
//
// o1 - The first object to unmark.
// o2 - The paired object to unmark.
//
// Returns nothing.
function unmark(o1, o2) {
  var i, n;

  for (i = 0, n = seenObjects.length; i < n; i++) {
    if (seenObjects[i][0] === o1 && seenObjects[i][1] === o2) {
      seenObjects.splice(i, 1);
      return;
    }
  }
}

// Internal: Used by `getPath` to resolve a path into a value.
//
// o            - The object to resolve the path from.
// pathSegments - An array of strings representing segments of the path to resolve.
//
// Returns the resolved value or `undefined` if some segment of the path does not exist.
function _getPath(o, pathSegments) {
  var head = pathSegments[0], tail = pathSegments.slice(1);
  o = o[head];

{'fraction_non_alphanumeric': 0.12922002328288706, 'fraction_numerical': 0.01571594877764843, 'mean_word_length': 2.8836158192090395, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5468329', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1096, 'n_words': 450}