<commit_before><%= 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 |message| %>
                <li><%= message %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <div class="row">
      <div class="form-group col-md-6">
        <%= f.label :name, class: "form-control" %><br>
        <%= f.text_field :name %>
      </div>
    </div>
    <div class="actions">
      <%= f.submit class: "btn" %>
    </div>
<% end %><commit_msg>näkymässä virhe korjattu<commit_after><%= 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 |message| %>
                <li><%= message %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <div class="row">
      <div class="form-group col-md-6">
        <%= f.label :name %><br>
        <%= f.text_field :name, class: "form-control" %>
      </div>
    </div>
    <div class="actions">
      <%= f.submit class: "btn" %>
    </div>
<% end %>
{'fraction_non_alphanumeric': 0.2032927702219041, 'fraction_numerical': 0.004294917680744453, 'mean_word_length': 1.993576017130621, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, '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': '5918475', 'n_tokens_mistral': 508, 'n_tokens_neox': 457, 'n_words': 100}