<commit_before>export default ( arr, split ) => {
  if (!Array.isArray(arr)) {
    return undefined
  }
  const newArray = []

    let chunks = [],
      i = 0,
      j = arr.length;

  while (i < j) {
    chunks.push(arr.slice(i, i += split));
  }

  return chunks;
}<commit_msg>updated chunk function<commit_after>export default ( arr, split ) => {
  if (!Array.isArray(arr)) {
    return undefined
  }

let chunks = [],
      i = 0,
      j = arr.length;

  while (i < j) {
    chunks.push(arr.slice(i, i += split));
  }

  return chunks;
}
{'fraction_non_alphanumeric': 0.16390423572744015, 'fraction_numerical': 0.003683241252302026, 'mean_word_length': 2.4213836477987423, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5956905', 'n_tokens_mistral': 197, 'n_tokens_neox': 192, 'n_words': 48}