<commit_before><% content_for :page_id do %>session_mgmt<% end %>
<% content_for :page_title do %><%= site.title %> | Edit <%= resource_name.to_s.humanize %><% end %>

<h1>Edit Your Account</h1>

<%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html => { :method => :put, :class => "session_mgmt" }) do |f| %>
  <%= devise_error_messages! %>

  <p><%= f.label :name %>
  <%= f.text_field :name %></p>

  <p><%= f.label :email %>
  <%= f.text_field :email %></p>

  <p><%= f.label :password %>
    <%= f.password_field :password %>
    <em>(leave blank if you don't want to change it)</em></p>

  <p><%= f.label :time_zone %>
  <%= f.time_zone_select :time_zone %></p>

  <p><%= f.label :password_confirmation %>
  <%= f.password_field :password_confirmation %></p>

  <p><%= f.label :current_password %>
    <%= f.password_field :current_password %>
    <em>(we need your current password to confirm your changes)</em></p>

  <p><%= f.label :post_filter %> 
    <%= f.select :post_filter, Post::Filters, {}, :tabindex => 4 %></p>

  <p><%= f.submit "Update" %></p>
<% end %>

<h2>Cancel my account</h2>

<p>Unhappy? <%= link_to "Cancel my account", registration_path(resource_name), :confirm => "Are you sure?", :method => :delete %>.</p>

<%= link_to "Back", :back %><commit_msg>Clean-up in registrations/edit<commit_after><% content_for :page_id do %>session_mgmt<% end %>
<% content_for :page_title do %><%= site.title %> | Edit <%= resource_name.to_s.humanize %><% end %>

<h1>Edit Your Account</h1>

<%= form_for(resource, as: resource_name, url: registration_path(resource_name),
  html: { method: :put, class: 'session_mgmt' }) do |f| %>
  <%= devise_error_messages! %>

  <p>
    <%= f.label :name %>
    <%= f.text_field :name %>
  </p>

  <p>
    <%= f.label :email %>
    <%= f.text_field :email %>
  </p>

  <p>
    <%= f.label :password %>
    <%= f.password_field :password %>
    <em>(leave blank if you don't want to change it)</em>
  </p>

  <p>
    <%= f.label :time_zone %>
    <%= f.time_zone_select :time_zone %>
  </p>

  <p>
    <%= f.label :password_confirmation %>
    <%= f.password_field :password_confirmation %>
  </p>

  <p>
    <%= f.label :current_password %>
    <%= f.password_field :current_password %>
    <em>(we need your current password to confirm your changes)</em>
  </p>

  <p>
    <%= f.label :post_filter %>
    <%= f.select :post_filter, Post::Filters, {} %>
  </p>

  <p><%= f.submit 'Update' %></p>
<% end %>

<h2>Cancel my account</h2>

<p>
  Unhappy? <%= link_to 'Cancel my account', registration_path(resource_name),
  confirm: 'Are you sure?', method: :delete %>.
</p>

<%= link_to 'Back', :back %>
{'fraction_non_alphanumeric': 0.21643733730011155, 'fraction_numerical': 0.00334696913350688, 'mean_word_length': 3.769503546099291, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 115, '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': '7579300', 'n_tokens_mistral': 1110, 'n_tokens_neox': 995, 'n_words': 231}