You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: application_helper.rb
    path of file: ./repos/danbooru/app/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ApplicationHelper
  USER_DATA_ATTRIBUTES = %i[
    id name level level_string theme comment_threshold default_image_size time_zone per_page
  ] + User::ACTIVE_BOOLEAN_ATTRIBUTES + User::Roles.map { |role| :"is_#{role}?" }

  COOKIE_DATA_ATTRIBUTES = %i[
    news-ticker hide_upgrade_account_notice hide_verify_account_notice
    hide_dmail_notice dab show-relationship-previews post_preview_size
    post_previ
    
  def quick_search_form_for(attribute, url, name, autocomplete: nil, redirect: false, &block)
    tag.li do
      search_form_for(url, classes: "quick-search-form one-line-form") do |f|
        out  = f.input attribute, label: false, placeholder: "Search #{name}", input_html: { id: nil, "data-autocomplete": autocomplete }
        out += tag.input type: :hidden, name: :redirect, value: redirect
        out += capture { yield f } if block_given?
        out
      end
    end
  end