<commit_before><% if @cached_pages.size > 0 -%>
<!-- begin cached pages list -->
<div class="pages">
<% if @cached_page_pages.page_count > 1 %>
Pages: <strong><%= pagination_remote_links @cached_page_pages, :params => { :action => 'index' } %></strong>
<% end %>
</div>
<h2>Cached Pages</h2><br/>
<table id="cached-pages" cellspacing="0" cellpadding="0">
  <thead>
    <tr>
      <th scope="col" class="small-col">&nbsp;</th>
      <th scope="col">URL</th>
      <th scope="col">Date</th>
      <th scope="col">Actions</th>
    </tr>
  </thead>

  <tbody id="pages">
    <%= render :partial => 'page', :collection => @cached_pages %>
  </tbody>
</table>
<!-- /end cached pages list -->
<% else -%>
  <div class="empty">There currently aren't any pages being cached by Mephisto.</div>
<% end -%>

<!-- begin pagination -->
<div id="pagination">
<% if @cached_page_pages.page_count > 1 %>
Pages: <strong><%= pagination_links @cached_page_pages, :params => { :action => 'index' } %></strong>
<% end %>
</div>
<!-- /end pagination --><commit_msg>convert cached_pages to will_paginate<commit_after><% unless @cached_pages.empty? -%>
  <%= will_paginate @cached_pages, :class => 'pages' if @cached_pages.page_count > 1 %>
  <!-- begin cached pages list -->
  <h2>Cached Pages</h2><br/>
  <table id="cached-pages" cellspacing="0" cellpadding="0">
    <thead>
      <tr>
        <th scope="col" class="small-col">&nbsp;</th>
        <th scope="col">URL</th>
        <th scope="col">Date</th>
        <th scope="col">Actions</th>
      </tr>
    </thead>

    <tbody id="pages">
      <%= render :partial => 'page', :collection => @cached_pages %>
    </tbody>
  </table>
  <!-- /end cached pages list -->
  <%= will_paginate @cached_pages, :id => 'pagination' if @cached_pages.page_count > 1 %>
<% else -%>
  <div class="empty">There currently aren't any pages being cached by Mephisto.</div>
<% end -%>
{'fraction_non_alphanumeric': 0.2158311345646438, 'fraction_numerical': 0.006860158311345646, 'mean_word_length': 3.6019417475728157, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 90, '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': '2352661', 'n_tokens_mistral': 690, 'n_tokens_neox': 648, 'n_words': 154}