<commit_before>require 'rest-client'
require 'howitzer/exceptions'

# There is an issue with supporting Ruby 3 by Selenium Webdriver 3.x version
# https://github.com/SeleniumHQ/selenium/issues/9001
# Migration to Selenium Webdriver 4 is planned when it will be released without alfa, beta stages.
if Gem::Requirement.new('>=3').satisfied_by?(Gem::Version.new(RUBY_VERSION)) ||
  Gem::Requirement.new(['>=3', '<4']).satisfied_by?(Gem::Version.new(Selenium::WebDriver::VERSION))
  module Selenium
    module WebDriver
      module Remote
        class Bridge
          class << self
            alias_method :original_handshake, :handshake

            def handshake(opts = {})
              original_handshake(**opts)
            end
          end
        end
      end
    end
  end
end

module Howitzer
  # This module holds capybara helpers methods
  module CapybaraHelpers
    CHECK_YOUR_SETTINGS_MSG = 'Please check your settings'.freeze # :nodoc:
    HOWITZER_KNOWN_BROWSERS = [ # :nodoc:
      CLOUD_BROWSERS = [
        SAUCE = :sauce,
        TESTINGBOT = :testingbot,
        BROWSERSTACK = :browserstack,
        CROSSBROWSERTESTING = :crossbrowsertesting
      ].freeze,<commit_msg>rubocop<commit_after>require 'rest-client'
require 'howitzer/exceptions'

# There is an issue with supporting Ruby 3 by Selenium Webdriver 3.x version
# https://github.com/SeleniumHQ/selenium/issues/9001
# Migration to Selenium Webdriver 4 is planned when it will be released without alfa, beta stages.
if Gem::Requirement.new('>=3').satisfied_by?(Gem::Version.new(RUBY_VERSION)) ||
   Gem::Requirement.new(['>=3', '<4']).satisfied_by?(Gem::Version.new(Selenium::WebDriver::VERSION))
  module Selenium
    module WebDriver
      module Remote
        class Bridge # rubocop:disable Style/Documentation
          class << self
            alias original_handshake handshake

            def handshake(opts = {})
              original_handshake(**opts)
            end
          end
        end
      end
    end
  end
end

module Howitzer
  # This module holds capybara helpers methods
  module CapybaraHelpers
    CHECK_YOUR_SETTINGS_MSG = 'Please check your settings'.freeze # :nodoc:
    HOWITZER_KNOWN_BROWSERS = [ # :nodoc:
      CLOUD_BROWSERS = [
        SAUCE = :sauce,
        TESTINGBOT = :testingbot,
        BROWSERSTACK = :browserstack,
        CROSSBROWSERTESTING = :crossbrowsertesting
      ].freeze,
{'fraction_non_alphanumeric': 0.09464508094645081, 'fraction_numerical': 0.008302200083022002, 'mean_word_length': 3.0166666666666666, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '5878164', 'n_tokens_mistral': 784, 'n_tokens_neox': 745, 'n_words': 179}