<commit_before>module Html5Helpers
  module FormTagHelper

    def self.install
      ActionView::Helpers::TagHelper::BOOLEAN_ATTRIBUTES.merge(['required', :required])
    end

    # Creates a text field of type "search".
    #
    # ==== Options
    # * Accepts the same options as text_field_tag.
    def search_field_tag(name, value = nil, options = {})
      text_field_tag(name, value, options.stringify_keys.update("type" => "search"))
    end

    # Creates a text field of type "tel".
    #
    # ==== Options
    # * Accepts the same options as text_field_tag.<commit_msg>added autofocus to list of boolean tag attributes<commit_after>module Html5Helpers
  module FormTagHelper

    def self.install
      ActionView::Helpers::TagHelper::BOOLEAN_ATTRIBUTES.merge(['required', :required, 'autofocus', :autofocus])
    end

    # Creates a text field of type "search".
    #
    # ==== Options
    # * Accepts the same options as text_field_tag.
    def search_field_tag(name, value = nil, options = {})
      text_field_tag(name, value, options.stringify_keys.update("type" => "search"))
    end

    # Creates a text field of type "tel".
    #
    # ==== Options
    # * Accepts the same options as text_field_tag.
{'fraction_non_alphanumeric': 0.11365494685200327, 'fraction_numerical': 0.001635322976287817, 'mean_word_length': 3.3714285714285714, 'pattern_counts': {'":': 0, '<': 3, '<?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': '804402', 'n_tokens_mistral': 371, 'n_tokens_neox': 374, 'n_words': 102}