<commit_before>require 'opal-jquery/constants'

# Wraps native jQuery event objects.
class Event
  `var $ = #{JQUERY_SELECTOR.to_n}` # cache $ for SPEED

  def initialize(native)
    @native = native
  end

  def [](name)
    `#@native[name]`
  end

  def type
    `#@native.type`
  end

  ##
  # Element

  def current_target
    `$(#@native.currentTarget)`
  end

  def target
    `$(#@native.target)`
  end

  ##
  # Propagation

  def prevented?
    `#@native.isDefaultPrevented()`
  end

  def prevent
    `#@native.preventDefault()`
  end

  def stopped?
    `#@native.propagationStopped()`
  end

  def stop
    `#@native.stopPropagation()`
  end
<commit_msg>Use correct JQuery call in Event#stopped?<commit_after>require 'opal-jquery/constants'

# Wraps native jQuery event objects.
class Event
  `var $ = #{JQUERY_SELECTOR.to_n}` # cache $ for SPEED

  def initialize(native)
    @native = native
  end

  def [](name)
    `#@native[name]`
  end

  def type
    `#@native.type`
  end

  ##
  # Element

  def current_target
    `$(#@native.currentTarget)`
  end

  def target
    `$(#@native.target)`
  end

  ##
  # Propagation

  def prevented?
    `#@native.isDefaultPrevented()`
  end

  def prevent
    `#@native.preventDefault()`
  end

  def stopped?
    `#@native.isPropagationStopped()`
  end

  def stop
    `#@native.stopPropagation()`
  end

{'fraction_non_alphanumeric': 0.13362701908957417, 'fraction_numerical': 0.0, 'mean_word_length': 2.9853801169590644, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4791304', 'n_tokens_mistral': 516, 'n_tokens_neox': 494, 'n_words': 111}