<commit_before><h2>Collections</h2>

<table class="table table-striped">
  <thead>
  <tr>
    <th>Name</th>
    <th>Size</th>
  </tr>
  </thead>
  <tbody>
  <tr>
    <% @collections.each do |collection| %>
    <tr>
      <td><a href="/databases/<%= params[:db_name] %>/collections/<%= collection.name %>"><%= collection.name %></a></td>
      <td><%= collection.size %></td>
    </tr>
  <% end %>
  </tbody>
</table>

<h2>Database stats</h2>

<table class="table table-striped">
  <thead>
  <tr>
    <th>Property</th>
    <th>Value</th>
  </tr>
  </thead>
  <tbody>
  <tr>
    <% @stats.each do |property, value| %>
    <tr>
      <td><%= property %></td>
      <td><%= value %></td>
    </tr>
  <% end %>
  </tbody>
</table><commit_msg>Better layout for collections list.<commit_after><ul class="nav nav-tabs">
  <li class="active">
    <a href="#collections" data-toggle="tab">Collections</a>
  </li>
  <li><a href="#stats" data-toggle="tab">Stats</a></li>
</ul>

<div class="tab-content">
  <div class="tab-pane active" id="collections">
    <table class="table table-striped">
      <thead>
      <tr>
        <th>Name</th>
        <th>Size</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <% @collections.each do |collection| %>
        <tr>
          <td><a href="/databases/<%= params[:db_name] %>/collections/<%= collection.name %>"><%= collection.name %></a></td>
          <td><%= collection.size %></td>
        </tr>
      <% end %>
      </tbody>
    </table>
  </div>

  <div class="tab-pane" id="stats">
    <table class="table table-striped">
      <thead>
      <tr>
        <th>Property</th>
        <th>Value</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <% @stats.each do |property, value| %>
        <tr>
          <td><%= property %></td>
          <td><%= value %></td>
        </tr>
      <% end %>
      </tbody>
    </table>
  </div>
</div>
{'fraction_non_alphanumeric': 0.23566543924250394, 'fraction_numerical': 0.0021041557075223566, 'mean_word_length': 2.2402044293015333, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '4123364', 'n_tokens_mistral': 746, 'n_tokens_neox': 705, 'n_words': 141}