<commit_before><div id="login">
  <h2><%= title "#{render_or_call_method_or_proc_on(self, active_admin_application.site_title)} #{t('active_admin.devise.sign_up.title')}" %></h2>

  <% scope = Devise::Mapping.find_scope!(resource_name) %>
  <%= active_admin_form_for(resource, :as => resource_name, :url => send(:"#{scope}_registration_path"), :html => { :id => "registration_new" }) do |f|
    f.inputs do
      resource.class.authentication_keys.each { |key| 
        f.input key, :label => t('active_admin.devise.'+key.to_s+'.title'), :input_html => {:autofocus => true}
      }
      f.input :password, :label => t('active_admin.devise.password.title')
      f.input :password_confirmation, :lable => t('active_admin.devise.password_confirmation.title')

    end
    f.actions do
      f.action :submit, :label => t('active_admin.devise.login.submit'), :button_html => { :value => t('active_admin.devise.sign_up.submit') }
    end
  end
  %>

  <%= render :partial => "active_admin/devise/shared/links" %>
</div>
<commit_msg>set autofocus only once for many authentication_keys fields in registrations/new view<commit_after><div id="login">
  <h2><%= title "#{render_or_call_method_or_proc_on(self, active_admin_application.site_title)} #{t('active_admin.devise.sign_up.title')}" %></h2>

  <% scope = Devise::Mapping.find_scope!(resource_name) %>
  <%= active_admin_form_for(resource, :as => resource_name, :url => send(:"#{scope}_registration_path"), :html => { :id => "registration_new" }) do |f|
    f.inputs do
      resource.class.authentication_keys.each_with_index { |key, index|
        f.input key, :label => t('active_admin.devise.'+key.to_s+'.title'), :input_html => {:autofocus => index.zero?}
      }
      f.input :password, :label => t('active_admin.devise.password.title')
      f.input :password_confirmation, :lable => t('active_admin.devise.password_confirmation.title')
    end
    f.actions do
      f.action :submit, :label => t('active_admin.devise.login.submit'), :button_html => { :value => t('active_admin.devise.sign_up.submit') }
    end
  end
  %>

  <%= render :partial => "active_admin/devise/shared/links" %>
</div>

{'fraction_non_alphanumeric': 0.17835578262888993, 'fraction_numerical': 0.0018578727357176034, 'mean_word_length': 4.609375, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 45, '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': '6740128', 'n_tokens_mistral': 763, 'n_tokens_neox': 742, 'n_words': 121}