<commit_before><%%= form_for(@<%= singular_table_name %>, html: { class: "ui form" }) do |f| %>
  <%% if @<%= singular_table_name %>.errors.any? %>
    <div class="ui message negative">
      <div class="header">
        <%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:
      </div>

      <ul class="list">
      <%% @<%= singular_table_name %>.errors.full_messages.each do |msg| %>
        <li><%%= msg %></li>
      <%% end %>
      </ul>
    </div>
  <%% end %>

<div class="ui secondary segment">
  <% attributes.each do |attribute| -%>
    <div class="field">
      <%%= f.label :<%= attribute.name %> %>
      <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
    </div>
  <% end -%>
  <%%= f.submit class: "ui submit blue button" %>
  <%% end %>
</div><commit_msg>Better nesting/alignment in form partial<commit_after><%%= form_for(@<%= singular_table_name %>, html: { class: "ui form" }) do |f| %>
  <%% if @<%= singular_table_name %>.errors.any? %>
    <div class="ui message negative">
      <div class="header">
        <%%= pluralize(@<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:
      </div>

      <ul class="list">
      <%% @<%= singular_table_name %>.errors.full_messages.each do |msg| %>
        <li><%%= msg %></li>
      <%% end %>
      </ul>
    </div>
  <%% end %>

  <div class="ui secondary segment">
    <% attributes.each do |attribute| -%>
      <div class="field">
        <%%= f.label :<%= attribute.name %> %>
        <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
      </div>
    <% end -%>
    <%%= f.submit class: "ui submit blue button" %>
  </div>
<%% end %>
{'fraction_non_alphanumeric': 0.23094297007340486, 'fraction_numerical': 0.0, 'mean_word_length': 2.9030837004405288, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '7154683', 'n_tokens_mistral': 654, 'n_tokens_neox': 595, 'n_words': 135}