<commit_before>function inserted (el, binding) {
  let cb = binding.value
  let debounce = 200
  let callOnLoad = true

  if (typeof binding.value !== 'function') {
    cb = binding.value.value
    debounce = binding.value.debounce || debounce
    callOnLoad = binding.value.quiet != null ? false : callOnLoad
  }

  let debounceTimeout = null
  const onResize = () => {
    clearTimeout(debounceTimeout)
    debounceTimeout = setTimeout(cb, debounce)
  }

  window.addEventListener('resize', onResize, { passive: true })
  el._onResize = onResize

  callOnLoad && onResize()
}

function unbind (el, binding) {
  window.removeEventListener('resize', el._onResize)
}
<commit_msg>refactor(v-resize): normalized **cb** param to **callback**<commit_after>function inserted (el, binding) {
  let callback = binding.value
  let debounce = 200
  let callOnLoad = true

  if (typeof binding.value !== 'function') {
    callback = binding.value.value
    debounce = binding.value.debounce || debounce
    callOnLoad = binding.value.quiet != null ? false : callOnLoad
  }

  let debounceTimeout = null
  const onResize = () => {
    clearTimeout(debounceTimeout)
    debounceTimeout = setTimeout(callback, debounce)
  }

  window.addEventListener('resize', onResize, { passive: true })
  el._onResize = onResize

  callOnLoad && onResize()
}

function unbind (el, binding) {
  window.removeEventListener('resize', el._onResize)
}

{'fraction_non_alphanumeric': 0.11971830985915492, 'fraction_numerical': 0.004225352112676056, 'mean_word_length': 3.9859649122807017, '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': '4478586', 'n_tokens_mistral': 442, 'n_tokens_neox': 435, 'n_words': 105}