<commit_before><thead>
  <tr>
    <th style="width: 5em">Position</th>
    <th>Name</th>
    <th>Type</th>
    <th>Required?</th>
    <th></th>
  </tr>
</thead>
<tbody>
  <% fields.each_with_index do |field, index| %>
    <tr>
      <td>
        <%= index + 1 %>
        <%= field_move_up_link(field) unless index == 0 %>
        <%= field_move_down_link(field) unless index == fields.size - 1 %>
      </td>
      <td>
        <%= field.label %>
        <%= field_primary_badge(field) %>
      </td>
      <td>
        <%= field.type_name %>
        <%= field_i18n_badge(field) %>
      </td>
      <td><%= fa_icon(:check) if field.required? %></td>
      <td style="text-align: right">
        <% if policy(field).edit? %>
          <%= link_to(
                fa_icon("pencil", :text => "Edit"),
                { :action => :edit, :slug => field },
                :class => "btn btn-default btn-xs") %>
        <% end %>
        <% if policy(field).destroy? %>
          <%= link_to(
                fa_icon("trash-o", :text => "Delete"),
                { :action => :destroy, :slug => field },
                :class => "btn btn-xs btn-text",
                :method => :delete,
                :data => {
                  :confirm => "Are you sure you want to delete the "\
                              "“#{field.name}” field?"
                }) %>
        <% end %>
      </td>
    </tr>
  <% end %>
</tbody>
<commit_msg>Display in field overview which fields are in list view<commit_after><thead>
  <tr>
    <th style="width: 5em">Position</th>
    <th>Name</th>
    <th>Type</th>
    <th>Required?</th>
    <th>List view?</th>
    <th></th>
  </tr>
</thead>
<tbody>
  <% fields.each_with_index do |field, index| %>
    <tr>
      <td>
        <%= index + 1 %>
        <%= field_move_up_link(field) unless index == 0 %>
        <%= field_move_down_link(field) unless index == fields.size - 1 %>
      </td>
      <td>
        <%= field.label %>
        <%= field_primary_badge(field) %>
      </td>
      <td>
        <%= field.type_name %>
        <%= field_i18n_badge(field) %>
      </td>
      <td><%= fa_icon(:check) if field.required? %></td>
      <td><%= fa_icon(:check) if field.display_in_list? %></td>
      <td style="text-align: right">
        <% if policy(field).edit? %>
          <%= link_to(
                fa_icon("pencil", :text => "Edit"),
                { :action => :edit, :slug => field },
                :class => "btn btn-default btn-xs") %>
        <% end %>
        <% if policy(field).destroy? %>
          <%= link_to(
                fa_icon("trash-o", :text => "Delete"),
                { :action => :destroy, :slug => field },
                :class => "btn btn-xs btn-text",
                :method => :delete,
                :data => {
                  :confirm => "Are you sure you want to delete the "\
                              "“#{field.name}” field?"
                }) %>
        <% end %>
      </td>
    </tr>
  <% end %>
</tbody>

{'fraction_non_alphanumeric': 0.19379586390927284, 'fraction_numerical': 0.004002668445630421, 'mean_word_length': 1.580895008605852, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 118, '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': '3622750', 'n_tokens_mistral': 1071, 'n_tokens_neox': 979, 'n_words': 204}