<commit_before><div id="table" class="table-responsive">
  <table class="table table-bordered table-hover">
    <tr>
      <% if @resource_service.batch_action_map.present? %>
        <th></th>
      <% end %>
      <% @resource_service.attrs_for_index.each do |attr| %>
        <th>
          <%= column_header attr %>
        </th>
      <% end %>
      <th></th>
    </tr>
    <% @resources.each do |resource| %>
      <% if flash[:updated_ids] && flash[:updated_ids].include?(resource.id) %>
        <tr class="highlight">
      <% else %>
        <tr>
      <% end %>
        <% if @resource_service.batch_action_map.present? %>
          <td align="center">
            <%= check_box_tag "batch_action[items][#{resource.id}]", nil, nil,
              data: { behavior: "batch-actions-checkbox" } %>
          </td>
        <% end %>
        <% @resource_service.attrs_for_index.each do |attr| %>
          <td>
            <%= column_value(resource, attr) %>
          </td>
        <% end %>
        <td>
          <%= render partial: "columns/actions", locals: { resource: resource } %>
        </td>
      </tr>
    <% end %>
  </table>
</div><commit_msg>Adds thead and tbody to resource table<commit_after><div id="table" class="table-responsive">
  <table class="table table-bordered table-hover">
    <thead>
      <tr>
        <% if @resource_service.batch_action_map.present? %>
          <th></th>
        <% end %>
        <% @resource_service.attrs_for_index.each do |attr| %>
          <th>
            <%= column_header attr %>
          </th>
        <% end %>
        <th></th>
      </tr>
    </thead>
    <tbody>
      <% @resources.each do |resource| %>
        <% if flash[:updated_ids] && flash[:updated_ids].include?(resource.id) %>
          <tr class="highlight">
        <% else %>
          <tr>
        <% end %>
          <% if @resource_service.batch_action_map.present? %>
            <td align="center">
              <%= check_box_tag "batch_action[items][#{resource.id}]", nil, nil,
                data: { behavior: "batch-actions-checkbox" } %>
            </td>
          <% end %>
          <% @resource_service.attrs_for_index.each do |attr| %>
            <td>
              <%= column_value(resource, attr) %>
            </td>
          <% end %>
          <td>
            <%= render partial: "columns/actions", locals: { resource: resource } %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
</div>
{'fraction_non_alphanumeric': 0.1765897124341839, 'fraction_numerical': 0.0, 'mean_word_length': 1.8100113765642776, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '1356058', 'n_tokens_mistral': 822, 'n_tokens_neox': 750, 'n_words': 141}