<commit_before>// # Animation
// rAF loop toggle

const createLoop = (callback) => {
  if (callback === undefined || typeof callback !== "function") {
    throw TypeError("Missing callback")
  }

  // Minifies better on account of being used more than once
  const scheduleRequest = fn => window.requestAnimationFrame(fn)

  // Track last entry in callback list, idle if `undefined`
  let requestId

  // Schedule work on each frame
  const loop = (elapsed) => {
    callback(elapsed, requestId)

    // Skip if idle
    if (requestId) {
      requestId = scheduleRequest(loop)<commit_msg>main: clean up<commit_after>// # Animation
// rAF loop toggle

const createLoop = (callback) => {
  if (callback === undefined || typeof callback !== "function") {
    throw new TypeError("Missing callback")
  }

  // Minifies better on account of being used more than once
  const scheduleRequest = fn => window.requestAnimationFrame(fn)

  // Track last entry in callback list, idle if `undefined`
  let requestId

  // Schedule work on each frame
  const loop = (elapsed) => {
    callback(elapsed, requestId)

    // Skip if idle
    if (requestId) {
      requestId = scheduleRequest(loop)
{'fraction_non_alphanumeric': 0.10904480135249366, 'fraction_numerical': 0.0, 'mean_word_length': 3.321167883211679, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6353005', 'n_tokens_mistral': 331, 'n_tokens_neox': 319, 'n_words': 120}