<commit_before>Packages found: <%= @packages.total_entries -%>

<% pagination_links = capture do %>
  <div class="float-r">
    <%= will_paginate(@packages) %>
  </div>
  <%= clear_div -%>
<% end -%>

<%= pagination_links -%>

<% unless @packages.empty? -%>
<table class="general">
  <tr>
    <th style="width:35%">Package Name</th>
    <th style="width:20%">Version</th>
    <th style="width:30%">Author</th>
    <th style="width:15%">Rating</th>
  </tr>
  <%- for package in @packages -%>
  <tr class="<%=cycle("odd", "even")-%>">
    <td><%= link_to package.name, package %></td>
    <%- latest_package = package.latest -%>
    <%- maintainer = latest_package.try(:maintainer) -%>
    <td><%= latest_package.version unless latest_package.nil? -%></td>
    <td><%= link_to maintainer.name, maintainer unless maintainer.nil? -%></td>
    <td>
      <% if package.rating_count.nonzero? -%>
        <%= package.average_rating %>/5
      <% end -%>
    </td>
  </tr>
  <%- end -%>
</table>
<% else -%>
  <div class="no_search_results">
    No packages found for given search.
  </div>
<% end -%>

<%= pagination_links -%><commit_msg>Added column for number of users in the package list<commit_after>Packages found: <%= @packages.total_entries -%>

<% pagination_links = capture do %>
  <div class="float-r">
    <%= will_paginate(@packages) %>
  </div>
  <%= clear_div -%>
<% end -%>

<%= pagination_links -%>

<% unless @packages.empty? -%>
<table class="general">
  <tr>
    <th style="width:35%">Package Name</th>
    <th style="width:20%">Version</th>
    <th style="width:30%">Author</th>
    <th style="width:8%">Rating</th>
    <th style="width:7%">Users</th>
  </tr>
  <%- for package in @packages -%>
  <tr class="<%=cycle("odd", "even")-%>">
    <td><%= link_to package.name, package %></td>
    <%- latest_package = package.latest -%>
    <%- maintainer = latest_package.try(:maintainer) -%>
    <td><%= latest_package.version unless latest_package.nil? -%></td>
    <td><%= link_to maintainer.name, maintainer unless maintainer.nil? -%></td>
    <td>
      <% if package.rating_count.nonzero? -%>
        <%= package.average_rating %>/5
      <% end -%>
    </td>
    <td><%= package.package_users_count %></td>
  </tr>
  <%- end -%>
</table>
<% else -%>
  <div class="no_search_results">
    No packages found for given search.
  </div>
<% end -%>

<%= pagination_links -%>
{'fraction_non_alphanumeric': 0.2235738255033557, 'fraction_numerical': 0.007550335570469799, 'mean_word_length': 3.368131868131868, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 102, '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': '6698083', 'n_tokens_mistral': 941, 'n_tokens_neox': 878, 'n_words': 170}