<commit_before>export default function(val) {
  if (Array.isArray(val))
    return val
  if (typeof val == 'number')
    return Array.apply(null, Array(val))
      .map((_, i) => i + 1)
}<commit_msg>checks for invalid values in repeat<commit_after>export default function(val) {
  if (Array.isArray(val))
    return val
  if (typeof val == 'number')
    return Array.apply(null, Array(val))
      .map((_, i) => i + 1)
  else
    throw "Must pass an Array or Number to a repeat, you passed " + (typeof val)
}
{'fraction_non_alphanumeric': 0.14173228346456693, 'fraction_numerical': 0.003937007874015748, 'mean_word_length': 3.4260869565217393, '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': '1061154', 'n_tokens_mistral': 168, 'n_tokens_neox': 165, 'n_words': 56}