<commit_before>module Selenium
  module WebDriver

    #
    # The main class through which you control the browser.
    #
    # @see Find
    # @see Navigation
    # @see TargetLocator
    # @see Options
    #

    class Driver
      include Find

      attr_reader :bridge

      class << self

        #
        # Create a new Driver instance with the correct bridge for the given browser
        #
        # @param browser [Symbol]
        #   the driver type to use
        # @param *rest
        #   arguments passed to the Bridge.new
        #
        # @return [Driver]
        #

        def for(browser, *args)
          bridge = case browser
                   when :ie, :internet_explorer
                     WebDriver::IE::Bridge.new(*args)
                   when :remote
                     WebDriver::Remote::Bridge.new(*args)
                   when :chrome
                     WebDriver::Chrome::Bridge.new(*args)
                   when :firefox, :ff
                     WebDriver::Firefox::Bridge.new(*args)
                   else
                     raise ArgumentError, "unknown driver: #{driver.inspect}"
                   end

           driver = new(bridge)<commit_msg>JariBakken: Fix typo on Driver.for<commit_after>module Selenium
  module WebDriver

    #
    # The main class through which you control the browser.
    #
    # @see Find
    # @see Navigation
    # @see TargetLocator
    # @see Options
    #

    class Driver
      include Find

      attr_reader :bridge

      class << self

        #
        # Create a new Driver instance with the correct bridge for the given browser
        #
        # @param browser [Symbol]
        #   the driver type to use
        # @param *rest
        #   arguments passed to the Bridge.new
        #
        # @return [Driver]
        #

        def for(browser, *args)
          bridge = case browser
                   when :ie, :internet_explorer
                     WebDriver::IE::Bridge.new(*args)
                   when :remote
                     WebDriver::Remote::Bridge.new(*args)
                   when :chrome
                     WebDriver::Chrome::Bridge.new(*args)
                   when :firefox, :ff
                     WebDriver::Firefox::Bridge.new(*args)
                   else
                     raise ArgumentError, "unknown driver: #{browser.inspect}"
                   end

           driver = new(bridge)
{'fraction_non_alphanumeric': 0.07838283828382839, 'fraction_numerical': 0.0, 'mean_word_length': 1.3635477582846003, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3945940', 'n_tokens_mistral': 635, 'n_tokens_neox': 585, 'n_words': 179}