<commit_before><commit_msg>adds code from my codepen<commit_after>'use strict';

(function (root, factory) {
  // optional AMD https://github.com/umdjs/umd/blob/master/amdWeb.js
  if (typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(factory);
  } else {
    // Browser globals
    root.raf = factory();
  }
}(this, function () {
  var rafID, callbacks,
      loop, startLoop;

  callbacks = [];

  loop = function(id){
    var self = this;
    if( !callbacks.length ) return;
    callbacks.forEach(function(callback){
      callback.call(self,id);
    });
    window.requestAnimationFrame(loop);
  };

  startLoop = function(){
    if( callbacks.length === 1){
        window.requestAnimationFrame(loop);
    }
  };

  return {
    on: function(callback){
      callbacks.push(callback);
      startLoop();
    },
    off: function(callback){
      var i = callbacks.indexOf(callback);
      if (i > -1) {
        callbacks.splice(i, 1);
      }
      if( !callbacks.length ) {
        window.cancelAnimationFrame(rafID);
      }
    }
  };
}));
{'fraction_non_alphanumeric': 0.15209471766848817, 'fraction_numerical': 0.00273224043715847, 'mean_word_length': 2.5915032679738563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '1143111', 'n_tokens_mistral': 359, 'n_tokens_neox': 352, 'n_words': 72}