<commit_before><% content_for :sidebar do %>
  <%= partial "misc/personal_sidebar" %>
<% end %>

<h1><%= I18n.t("settings.profile_settings") %></h1>

<% unless @user.errors.empty? %>
<div class="flash alert">
  <p><%= I18n.t("general.errors_occured") %></p>
  <ul>
    <% @user.errors.messages.each do |key, msg| %>
      <li><%= key %>: <%= msg %></li>
    <% end %>
  </ul>
</div>
<% end %>

<% form_for @user, url(:users, :update, @user.nickname), :method => :patch, :class => "settings-form" do |f| %>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :homepage %>
    </div>

    <div class="settings-content">
      <%= f.text_field :homepage %>
    </div>
  </div>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :real_name %>
    </div>

    <div class="settings-content">
      <%= f.text_field :real_name %>
    </div>
  </div>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :location %>
    </div>

    <div class="settings-content">
      <%= f.text_field :location %>
    </div>
  </div>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :profession %>
    </div>

    <div class="settings-content">
      <%= f.text_field :profession %>
    </div>
  </div>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :jabber_id %>
    </div><commit_msg>Fix inconsistent use of underscores for “real name” setting. Fixes #8.<commit_after><% content_for :sidebar do %>
  <%= partial "misc/personal_sidebar" %>
<% end %>

<h1><%= I18n.t("settings.profile_settings") %></h1>

<% unless @user.errors.empty? %>
<div class="flash alert">
  <p><%= I18n.t("general.errors_occured") %></p>
  <ul>
    <% @user.errors.messages.each do |key, msg| %>
      <li><%= key %>: <%= msg %></li>
    <% end %>
  </ul>
</div>
<% end %>

<% form_for @user, url(:users, :update, @user.nickname), :method => :patch, :class => "settings-form" do |f| %>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :homepage %>
    </div>

    <div class="settings-content">
      <%= f.text_field :homepage %>
    </div>
  </div>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :realname %>
    </div>

    <div class="settings-content">
      <%= f.text_field :realname %>
    </div>
  </div>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :location %>
    </div>

    <div class="settings-content">
      <%= f.text_field :location %>
    </div>
  </div>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :profession %>
    </div>

    <div class="settings-content">
      <%= f.text_field :profession %>
    </div>
  </div>

  <div class="setting">
    <div class="header settings-header">
      <%= f.label :jabber_id %>
    </div>
{'fraction_non_alphanumeric': 0.21891058581706063, 'fraction_numerical': 0.004453579993148339, 'mean_word_length': 2.8985313751668893, 'pattern_counts': {'":': 0, '<': 119, '<?xml version=': 0, '>': 123, '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': '3480680', 'n_tokens_mistral': 1130, 'n_tokens_neox': 1025, 'n_words': 221}