<commit_before><%= form_for :session, :url => session_path do |form| %>
  <div class="text-field">
    <%= form.label :email %>
    <%= form.text_field :email, :type => 'email' %>
  </div>

  <div class="password-field">
    <%= form.label :password %>
    <%= form.password_field :password %>
  </div>

  <div class="submit-field">
    <%= form.submit %>
  </div>
<% end %><commit_msg>Login form autofocuses the correct fields<commit_after><%= form_for :session, :url => session_path do |form| %>
  <div class="text-field">
    <%= form.label :email %>
    <%= form.text_field :email, type: "email", value: params[:session] && params[:session][:email], autofocus: params[:session].blank? || params[:session][:email].blank? %>
  </div>

  <div class="password-field">
    <%= form.label :password %>
    <%= form.password_field :password, autofocus: params[:session] && params[:session][:email].present? %>
  </div>

  <div class="submit-field">
    <%= form.submit %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.21783181357649442, 'fraction_numerical': 0.0, 'mean_word_length': 4.092783505154639, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 32, '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': '3201726', 'n_tokens_mistral': 360, 'n_tokens_neox': 328, 'n_words': 70}