<commit_before>require "watir-webdriver"
require "watir-ng/version"

#
# Adds AngularJS `ng` directives as identifiers for `Watir::Webdriver` elements.
#
module WatirNg

  #
  # All the ng directives from the AngularJS documentation.
  #
  # @see `https://docs.angularjs.org/api/ng/directive`
  #
  NG_DIRECTIVES = %i( ng_jq ng_app ng_href ng_src ng_srcset ng_disabled ng_checked ng_readonly ng_selected ng_open ng_form ng_value ng_bind ng_bind_template ng_bind_html ng_change ng_class
                   ng_class_odd ng_class_even ng_cloak ng_controller ng_csp ng_click ng_dblclick ng_mousedown ng_mouseup ng_mouseover ng_mouseenter ng_mouseleave ng_mousemove ng_keydown
                   ng_keyup ng_keypress ng_submit ng_focus ng_blur ng_copy ng_cut ng_paste ng_if ng_include ng_init ng_list ng_model ng_model_options ng_non_bindable ng_options ng_pluralize
                   ng_repeat ng_show ng_hide ng_style ng_switch ng_transclude )

  #
  # Inserts `NG_DIRECTIVES` into `cls.attributes` when included in the class.
  #
  # @param cls [Class]
  # @return [nil]
  #
  def self.included cls
    NG_DIRECTIVES.each { |ng| cls.attributes << ng } if cls.respond_to? :attributes
  end
end

module Watir
  class HTMLElement
    include WatirNg
  end
end<commit_msg>Fix for 1.9.3<commit_after>require "watir-webdriver"
require "watir-ng/version"

#
# Adds AngularJS `ng` directives as identifiers for `Watir::Webdriver` elements.
#
module WatirNg

  #
  # All the ng directives from the AngularJS documentation.
  #
  # @see `https://docs.angularjs.org/api/ng/directive`
  #
  NG_DIRECTIVES = %w(ng_jq ng_app ng_href ng_src ng_srcset ng_disabled ng_checked ng_readonly 
                     ng_selected ng_open ng_form ng_value ng_bind ng_bind_template ng_bind_html 
                     ng_change ng_class ng_class_odd ng_class_even ng_cloak ng_controller ng_csp 
                     ng_click ng_dblclick ng_mousedown ng_mouseup ng_mouseover ng_mouseenter 
                     ng_mouseleave ng_mousemove ng_keydown ng_keyup ng_keypress ng_submit ng_focus
                     ng_blur ng_copy ng_cut ng_paste ng_if ng_include ng_init ng_list ng_model 
                     ng_model_options ng_non_bindable ng_options ng_pluralize ng_repeat ng_show 
                     ng_hide ng_style ng_switch ng_transclude
                    )

  #
  # Inserts `NG_DIRECTIVES` into `cls.attributes` when included in the class.
  #
  # @param cls [Class]
  # @return [nil]
  #
  def self.included cls
    NG_DIRECTIVES.map(&:to_sym).each { |ng| cls.attributes << ng } if cls.respond_to? :attributes
  end
end

module Watir
  class HTMLElement
    include WatirNg
  end
end
{'fraction_non_alphanumeric': 0.05595193390912505, 'fraction_numerical': 0.0011265490048817123, 'mean_word_length': 3.2624, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6461857', 'n_tokens_mistral': 934, 'n_tokens_neox': 887, 'n_words': 230}