<commit_before>export const isTouchPadEvent = (e: WheelEvent) => {
  if (e.deltaX !== 0) {
    return true
  }
  const { wheelDeltaY } = e as any
  return (
    Number.isInteger(e.deltaX) &&
    Number.isInteger(e.deltaY) &&
    (wheelDeltaY % 120 !== 0 || wheelDeltaY < 120)
  )
}<commit_msg>Fix touchpad detection<commit_after>export const isTouchPadEvent = (e: WheelEvent) => {
  if (e.deltaX !== 0) {
    return true
  }
  const { wheelDeltaY } = e as any
  return (
    Number.isInteger(e.deltaX) &&
    Number.isInteger(e.deltaY) &&
    Math.abs(wheelDeltaY) % 120 !== 0
  )
}
{'fraction_non_alphanumeric': 0.15120274914089346, 'fraction_numerical': 0.022336769759450172, 'mean_word_length': 3.1056338028169015, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5910850', 'n_tokens_mistral': 228, 'n_tokens_neox': 211, 'n_words': 46}