<commit_before><table style="width:100%">
  <tr style="border-bottom: 2px solid #777">
    <th style="white-space:nowrap"><%== sort_field_helper(@order, 'manuscript_number', 'MS#') %></th><%# Manuscript Number %>
    <th style="white-space:nowrap"><%== sort_field_helper(@order, 'abbreviated_title', 'Abbreviated Title') %></th>
    <th>Lead Author and Writing Committee</th>
    <th><%== sort_field_helper(@order, 'publication_type', 'Paper Type') %></th>
    <th style="white-space:nowrap"><%== sort_field_helper(@order, 'status', 'Status') %></th>
    <th>Dataset Requested Analyst</th>
    <th><%== sort_field_helper(@order, 'targeted_start_date', 'Targeted Start Date') %></th>
    <% if current_user.pp_committee_secretary? or current_user.steering_committee_secretary? %>
      <th></th>
    <% end %>
  </tr>

  <% if @publications.size > 0 %>
    <% @publications.each do |publication| %>
      <% @publication = publication %>
      <tbody id="publication_<%= @publication.id %>_container" class="<%= cycle('odd', 'even') %>">
        <%= render :partial => 'publications/inline_show' %>
      </tbody>
    <% end %>
  <% else %>
    <tr>
      <td colspan="<%= (current_user.pp_committee_secretary? or current_user.steering_committee_secretary?) ? '8' : '7' %>" class="<%= cycle('odd', 'even') %> quiet" style="text-align:center">
        <%= image_tag("icons/search.png", :alt => '', :style => 'vertical-align:text-bottom') %> No Publications Found Matching Your Search Criteria
      </td>
    </tr>
  <% end %>
</table>

<center>
<%= paginate @publications %><commit_msg>Paginated Publications size is not what I expected.  Convert to array first to get the correct count.<commit_after><table style="width:100%">
  <tr style="border-bottom: 2px solid #777">
    <th style="white-space:nowrap"><%== sort_field_helper(@order, 'manuscript_number', 'MS#') %></th><%# Manuscript Number %>
    <th style="white-space:nowrap"><%== sort_field_helper(@order, 'abbreviated_title', 'Abbreviated Title') %></th>
    <th>Lead Author and Writing Committee</th>
    <th><%== sort_field_helper(@order, 'publication_type', 'Paper Type') %></th>
    <th style="white-space:nowrap"><%== sort_field_helper(@order, 'status', 'Status') %></th>
    <th>Dataset Requested Analyst</th>
    <th><%== sort_field_helper(@order, 'targeted_start_date', 'Targeted Start Date') %></th>
    <% if current_user.pp_committee_secretary? or current_user.steering_committee_secretary? %>
      <th></th>
    <% end %>
  </tr>

  <% if @publications.to_a.size > 0 %>
    <% @publications.each do |publication| %>
      <% @publication = publication %>
      <tbody id="publication_<%= @publication.id %>_container" class="<%= cycle('odd', 'even') %>">
        <%= render :partial => 'publications/inline_show' %>
      </tbody>
    <% end %>
  <% else %>
    <tr>
      <td colspan="<%= (current_user.pp_committee_secretary? or current_user.steering_committee_secretary?) ? '8' : '7' %>" class="<%= cycle('odd', 'even') %> quiet" style="text-align:center">
        <%= image_tag("icons/search.png", :alt => '', :style => 'vertical-align:text-bottom') %> No Publications Found Matching Your Search Criteria
      </td>
    </tr>
  <% end %>
</table>

<center>
<%= paginate @publications %>
{'fraction_non_alphanumeric': 0.20318725099601595, 'fraction_numerical': 0.006129328838492185, 'mean_word_length': 4.485714285714286, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 107, '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': '6951066', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1072, 'n_words': 232}