<commit_before>import raf from 'raf'

class RAFManager {
  constructor () {
    this.datas = []
    this.binded = false
  }

  bind () {
    if (this.binded) return

    this.binded = true
    this.update = this.update.bind(this)

    // If gsap is loaded user tweenmax ticker for better performance
    if (typeof TweenMax === 'undefined') {
      this.raf = raf(this.update)
    } else {
      TweenMax.ticker.addEventListener('tick', this.update)
    }
  }

  unbind () {
    this.binded = false

    if (typeof TweenMax !== 'undefined') {
      TweenMax.ticker.removeEventListener('tick', this.update)
    }
    if (typeof this.raf !== 'undefined') {
      raf.cancel(this.raf)
    }

    for (let i = 0, l = this.datas.length; i < l; i++) {
      this.remove(this.datas[i].callback)
    }

    this.datas = []
  }

  add (callback, fps = 60, delay = 0, once = false) {
    if (typeof callback !== 'function') {
      return false
    }

    const date = new Date()

    const data = {<commit_msg>RafManager - Remove gsap fallback<commit_after>import raf from 'raf'

class RAFManager {
  constructor () {
    this.datas = []
    this.binded = false
  }

  bind () {
    if (this.binded) return

    this.binded = true
    this.update = this.update.bind(this)

    this.raf = raf(this.update)
  }

  unbind () {
    this.binded = false

    raf.cancel(this.raf)

    for (let i = 0, l = this.datas.length; i < l; i++) {
      this.remove(this.datas[i].callback)
    }

    this.datas = []
  }

  add (callback, fps = 60, delay = 0, once = false) {
    if (typeof callback !== 'function') {
      return false
    }

    const date = new Date()

    const data = {
{'fraction_non_alphanumeric': 0.14225690276110445, 'fraction_numerical': 0.004801920768307323, 'mean_word_length': 2.281496062992126, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '782595', 'n_tokens_mistral': 602, 'n_tokens_neox': 563, 'n_words': 140}