<commit_before><% # local: sort [date, name] -%>

<script type='text/javascript'>
  document.observe('dom:loaded', function() {
    remote_get_link_to(<%= "'#{by_date_created_pages_path}'" %>, 'sortDateCreated');
    remote_get_link_to(<%= "'#{by_date_updated_pages_path}'" %>, 'sortDateUpdated');
    remote_get_link_to(<%= "'#{by_name_pages_path}'" %>, 'sortName');
  });
</script>

<h1>Pages</h1>

<div id="pageList">
  <% if sort == 'date' -%>
    <%= render :partial => 'date_separated' %>
  <% else -%>
    <%= render :partial => 'dump' %>
  <% end -%>
</div>

<br />

<%= link_to 'New page', new_page_path %> |
Sort by
<%= link_to 'Date created', by_date_created_pages_path, :id => 'sortDateCreated' %>,
<%= link_to 'Date updated', by_date_updated_pages_path, :id => 'sortDateUpdated' %> or
<%= link_to 'Name', by_name_pages_path, :id => 'sortName' %> |
<%= link_to 'Home', root_path %><commit_msg>Moved page viewing options to the top<commit_after><% # local: sort [date, name] -%>

<script type='text/javascript'>
  document.observe('dom:loaded', function() {
    remote_get_link_to(<%= "'#{by_date_created_pages_path}'" %>, 'sortDateCreated');
    remote_get_link_to(<%= "'#{by_date_updated_pages_path}'" %>, 'sortDateUpdated');
    remote_get_link_to(<%= "'#{by_name_pages_path}'" %>, 'sortName');
  });
</script>

<h1>Pages</h1>

<%= link_to 'New page', new_page_path %> |
Sort by
<%= link_to 'Date created', by_date_created_pages_path, :id => 'sortDateCreated' %>,
<%= link_to 'Date updated', by_date_updated_pages_path, :id => 'sortDateUpdated' %> or
<%= link_to 'Name', by_name_pages_path, :id => 'sortName' %> |
<%= link_to 'Home', root_path %>

<div id="pageList">
  <% if sort == 'date' -%>
    <%= render :partial => 'date_separated' %>
  <% else -%>
    <%= render :partial => 'dump' %>
  <% end -%>
</div>
{'fraction_non_alphanumeric': 0.22179627601314347, 'fraction_numerical': 0.002190580503833516, 'mean_word_length': 5.365853658536586, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 54, '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': '219272', 'n_tokens_mistral': 734, 'n_tokens_neox': 694, 'n_words': 129}