<commit_before>'use strict'

/*!
 * imports.
 */

var test = require('tape-catch')

/*!
 * imports (local).
 */

var appendUntil = require('./')

/*!
 * helper functions.
 */

function len (length) {
  return (list) => list.length === length
}

function incrementBy (val) {
  return (list) => list.pop() + val
}

/*!<commit_msg>fix(testhelpers): Fix test helpers such that they do not use arrow functions.<commit_after>'use strict'

/*!
 * imports.
 */

var test = require('tape-catch')

/*!
 * imports (local).
 */

var appendUntil = require('./')

/*!
 * helper functions.
 */

function len (length) {
  return function (list) {
    return list.length === length
  }
}

function incrementBy (val) {
  return function (list) {
    return list.pop() + val
  }
}

/*!
{'fraction_non_alphanumeric': 0.18276762402088773, 'fraction_numerical': 0.0, 'mean_word_length': 3.058201058201058, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1899009', 'n_tokens_mistral': 253, 'n_tokens_neox': 253, 'n_words': 69}