<commit_before><h1>Confirm a change to your account email</h1>
<%= form_for resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :put, class: 'well'} do |f| %>
  <%= hidden_field_tag :confirmation_token, params[:confirmation_token] %>
  <p>
    <%= f.label :email, "Current email" %>
    <%= f.text_field :email, disabled: "disabled", readonly: "readonly", class: "span6" %>
  </p>
  <p>
    <%= f.label :unconfirmed_email, "New email" %>
    <%= f.text_field :unconfirmed_email, disabled: "disabled", readonly: "readonly", class: "span6" %>
  </p>
  <label> 
    <%= f.label :password, "<PASSWORD>" %>
    <%= f.password_field :password, class: "span6", required: "required" %>
  </label>
  <%= f.submit "Confirm email change" %>
<% end %><commit_msg>Usability tweaks to email change confirmation form<commit_after><h1>Confirm a change to your account email</h1>

<%= form_for resource, as: resource_name, url: confirmation_path(resource_name), html: { method: :put, class: 'well'} do |f| %>
  <%= hidden_field_tag :confirmation_token, params[:confirmation_token] %>

  <div class="alert alert-info">
    For security, we need you to enter your passphrase before your account email can be changed.
  </div>

  <p>
    <%= f.label :email, "Current email" %>
    <%= f.text_field :email, disabled: "disabled", readonly: "readonly", class: "span6" %>
  </p>
  <p>
    <%= f.label :unconfirmed_email, "New email" %>
    <%= f.text_field :unconfirmed_email, disabled: "disabled", readonly: "readonly", class: "span6" %>
  </p>
  <label> 
    <%= f.label :password, "<PASSWORD>" %>
    <%= f.password_field :password, class: "span6", required: "required" %>
  </label>
  
  <hr>

  <%= f.submit "Confirm email change", class: "btn btn-primary" %>
<% end %>
{'fraction_non_alphanumeric': 0.18181818181818182, 'fraction_numerical': 0.005611672278338945, 'mean_word_length': 4.403030303030303, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, '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': '3738383', 'n_tokens_mistral': 648, 'n_tokens_neox': 595, 'n_words': 164}