<commit_before><% title 'Stats - Libraries' %>
<h1>Stats</h1>

<div class="row">
  <div class="col-md-4">
    <h4>New Projects</h4>

    <table class='table table-striped table-hover'>
      <% @new_projects.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>

  </div>
  <div class="col-md-4">
    <h4>New Versions</h4>
    <table class='table table-striped table-hover'>
      <% @new_versions.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
  <div class="col-md-4">
    <h4>New Repos</h4>
    <table class='table table-striped table-hover'>
      <% @new_repos.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
</div>
<div class="row">
  <div class="col-md-4">
    <h4>New Users</h4>
    <table class='table table-striped table-hover'>
      <% @new_users.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
  <div class="col-md-4">
    <h4>New Contributions</h4>
    <table class='table table-striped table-hover'>
      <% @new_contributions.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
  <div class="col-md-4">
    <h4>New Dependencies</h4>
    <table class='table table-striped table-hover'>
      <% @new_dependencies.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
</div><commit_msg>Show totals on stats page<commit_after><% title 'Stats - Libraries' %>
<h1>Stats</h1>

<div class="row">
  <div class="col-md-4">
    <h4>Projects
      <small><%= number_with_delimiter Project.count %></small>
    </h4>

    <table class='table table-striped table-hover'>
      <% @new_projects.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>

  </div>
  <div class="col-md-4">
    <h4>Versions
      <small><%= number_with_delimiter Version.count %></small>
    </h4>
    <table class='table table-striped table-hover'>
      <% @new_versions.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
  <div class="col-md-4">
    <h4>Repos
      <small><%= number_with_delimiter GithubRepository.count %></small>
    </h4>
    <table class='table table-striped table-hover'>
      <% @new_repos.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
</div>
<div class="row">
  <div class="col-md-4">
    <h4>Users
      <small><%= number_with_delimiter GithubUser.count %></small>
    </h4>
    <table class='table table-striped table-hover'>
      <% @new_users.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
  <div class="col-md-4">
    <h4>Contributions
      <small><%= number_with_delimiter GithubContribution.count %></small>
    </h4>
    <table class='table table-striped table-hover'>
      <% @new_contributions.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
  <div class="col-md-4">
    <h4>Dependencies
      <small><%= number_with_delimiter Dependency.count %></small>
    </h4>
    <table class='table table-striped table-hover'>
      <% @new_dependencies.each do |date,count| %>
        <tr>
          <td>
            <%= date.to_s(:long) %>
          </td>
          <td>
            <%= number_with_delimiter count %>
          </td>
        </tr>
      <% end %>
    </table>
  </div>
</div>
{'fraction_non_alphanumeric': 0.18595371109337588, 'fraction_numerical': 0.007980845969672785, 'mean_word_length': 1.5694515633008714, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 0, '>': 227, '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': '901492', 'n_tokens_mistral': 1863, 'n_tokens_neox': 1741, 'n_words': 325}