<commit_before><h1>Edit Category</h1>

<%= form_for(@category) do |f| %>
  <%= f.error_messages %>
  <%= render :partial => 'form', :object => f %>
  <p>
    <%= f.submit 'Save' %>
  </p>
<% end %>

<%= link_to 'Back', categories_path %><commit_msg>Don't use form error_messages<commit_after><h1>Edit Category</h1>

<%= form_for(@category) do |f| %>
<% if @category.errors.any? %>
  <div id="error_explanation">
    <h2><%= pluralize(@category.errors.count, "error") %> prohibited this category from being saved:</h2>

    <ul>
    <% @category.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
    </ul>
  </div>
<% end %>
  <%= render :partial => 'form', :object => f %>
  <p>
    <%= f.submit 'Save' %>
  </p>
<% end %>

<%= link_to 'Back', categories_path %>
{'fraction_non_alphanumeric': 0.23924050632911392, 'fraction_numerical': 0.007594936708860759, 'mean_word_length': 3.5722543352601157, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 40, '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': '3932610', 'n_tokens_mistral': 332, 'n_tokens_neox': 295, 'n_words': 64}