<commit_before><table>
  <tr>
    <td class="label"><%= f.label 'gender' %></td>
    <td class="select"><%= f.select 'gender', options_for_select(@user_genders, @user.gender), {:prompt => t('Please choose')}, :class => 'alchemy_selectbox long', :autofocus => true -%></td>
  </tr>
  <tr>
    <td class="label"><%= f.label 'firstname' %></td>
    <td class="input"><%= f.text_field 'firstname', :class => 'thin_border long' %></td>
  </tr>
  <tr>
    <td class="label"><%= f.label 'lastname' %></td>
    <td class="input"><%= f.text_field 'lastname', :class => 'thin_border long' %></td>
  </tr>
  <tr>
    <td class="label mandatory"><%= f.label 'login' %></td>
    <td class="input"><%= f.text_field 'login', :class => 'thin_border long', :required => true %></td>
  </tr>
  <tr>
    <td class="label mandatory"><%= f.label 'email' %></td>
    <td class="input"><%= f.email_field 'email', :class => 'thin_border long', :required => true %></td>
  </tr>
  <tr>
    <td class="label"><%= f.label 'language' %></td>
    <td class="select"><%= f.select 'language', translations_for_select, {}, {:class => 'alchemy_selectbox long'} %></td>
  </tr>
  <tr>
    <td class="label mandatory"><%= f.label 'password' %></td>
    <td class="input mandatory"><%= f.password_field 'password', :class => 'thin_border long', :autocomplete => "off", :required => action_name == 'signup' %></td>
  </tr>
  <tr>
    <td class="label mandatory"><%= f.label 'password_confirmation' %></td>
    <td class="input"><%= f.password_field 'password_confirmation', :class => 'thin_border long', :autocomplete => "off", :required => action_name == 'signup' %></td>
  </tr>
  <% if action_name == 'signup' %>
  <%= f.hidden_field :role %>
  <% elsif permitted_to? :update_role %>
  <tr>
    <td class="label"><%= f.label 'role' %></td>
    <td class="select"><%= f.select :role, options_for_select(@user_roles, @user.role), {}, {:class => 'alchemy_selectbox long'} %></td>
  </tr>
  <% end %>
  <% unless action_name == 'signup' %>
  <tr>
    <td class="label"><%= f.label :tag_list %></td>
    <td class="input">
      <%= render 'alchemy/admin/partials/autocomplete_tag_list', :f => f, :object => @user %>
    </td>
  </tr>
  <% end %>
  <tr>
    <td>&nbsp;</td>
    <td class="checkbox long">
      <%= check_box_tag('send_credentials', true, @user.new_record?) %>
      <%= label_tag('send_credentials', t('Send email with credentials')) %>
    </td>
  </tr>
  <tr>
    <td class="submit" colspan="2">
      <%= f.button t('save'), :class => 'button' %>
    </td>
  </tr>
</table>
<commit_msg>Autofocus login field in create user table.<commit_after><table>
  <tr>
    <td class="label"><%= f.label 'gender' %></td>
    <td class="select"><%= f.select 'gender', options_for_select(@user_genders, @user.gender), {:prompt => t('Please choose')}, :class => 'alchemy_selectbox long', :autofocus => true -%></td>
  </tr>
  <tr>
    <td class="label"><%= f.label 'firstname' %></td>
    <td class="input"><%= f.text_field 'firstname', :class => 'thin_border long' %></td>
  </tr>
  <tr>
    <td class="label"><%= f.label 'lastname' %></td>
    <td class="input"><%= f.text_field 'lastname', :class => 'thin_border long' %></td>
  </tr>
  <tr>
    <td class="label mandatory"><%= f.label 'login' %></td>
    <td class="input"><%= f.text_field 'login', :class => 'thin_border long', :required => true, :autofocus => true %></td>
  </tr>
  <tr>
    <td class="label mandatory"><%= f.label 'email' %></td>
    <td class="input"><%= f.email_field 'email', :class => 'thin_border long', :required => true %></td>
  </tr>
  <tr>
    <td class="label"><%= f.label 'language' %></td>
    <td class="select"><%= f.select 'language', translations_for_select, {}, {:class => 'alchemy_selectbox long'} %></td>
  </tr>
  <tr>
    <td class="label mandatory"><%= f.label 'password' %></td>
    <td class="input mandatory"><%= f.password_field 'password', :class => 'thin_border long', :autocomplete => "off", :required => action_name == 'signup' %></td>
  </tr>
  <tr>
    <td class="label mandatory"><%= f.label 'password_confirmation' %></td>
    <td class="input"><%= f.password_field '<PASSWORD>', :class => 'thin_border long', :autocomplete => "off", :required => action_name == 'signup' %></td>
  </tr>
  <% if action_name == 'signup' %>
  <%= f.hidden_field :role %>
  <% elsif permitted_to? :update_role %>
  <tr>
    <td class="label"><%= f.label 'role' %></td>
    <td class="select"><%= f.select :role, options_for_select(@user_roles, @user.role), {}, {:class => 'alchemy_selectbox long'} %></td>
  </tr>
  <% end %>
  <% unless action_name == 'signup' %>
  <tr>
    <td class="label"><%= f.label :tag_list %></td>
    <td class="input">
      <%= render 'alchemy/admin/partials/autocomplete_tag_list', :f => f, :object => @user %>
    </td>
  </tr>
  <% end %>
  <tr>
    <td>&nbsp;</td>
    <td class="checkbox long">
      <%= check_box_tag('send_credentials', true, @user.new_record?) %>
      <%= label_tag('send_credentials', t('Send email with credentials')) %>
    </td>
  </tr>
  <tr>
    <td class="submit" colspan="2">
      <%= f.button t('save'), :class => 'button' %>
    </td>
  </tr>
</table>

{'fraction_non_alphanumeric': 0.2464720664991301, 'fraction_numerical': 0.00038662284941040013, 'mean_word_length': 3.941738299904489, 'pattern_counts': {'":': 0, '<': 206, '<?xml version=': 0, '>': 247, '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': '1552142', 'n_tokens_mistral': 1974, 'n_tokens_neox': 1860, 'n_words': 448}