<commit_before><% @page_title = @page.title %>

<% if @project and @project.has_nav_content? and !@project.nav_content.body.blank? %>
  <div id="project_page_nav">
    <%= render_filtered_text(@project, :nav_content) %>
  </div>
<% end %>

<% unless @page.title == 'index' %>
  <h1>
    <%= h(@page.title) %>

    <% if current_user.can_edit_pages?(@project) %>
      <%= link_to_page_editor(@page) %>
    <% end %>
    <%= link_to_page_printer(@page) %>
    <%= link_to_page_pdf(@page) %>
  </h1>
<% end %>

<%= render_page(@page) %>

<p class="attribution">
  Updated <%= h(format_time_from(@page.filtered_text.updated_on, current_user)) %>
  by <%= link_to_person(@page.filtered_text.updated_by) %>

  <br/>
  <% if current_user.can_edit_pages?(@project) %>
    <%= link_to_page_editor(@page) %>
  <% end %>
  <%= link_to_page_printer(@page) %>
  <%= link_to_page_pdf(@page) %>
</p>

<h1>Tags: <%= render_tag_editor(@page) %></h1>
<%= tag_cloud_for(@page) %>

<%= comment_section_for(@page) %><commit_msg>Disabled print/pdf buttons on system pages because they do not work<commit_after><% @page_title = @page.title %>

<% if @project and @project.has_nav_content? and !@project.nav_content.body.blank? %>
  <div id="project_page_nav">
    <%= render_filtered_text(@project, :nav_content) %>
  </div>
<% end %>

<% unless @page.title == 'index' %>
  <h1>
    <%= h(@page.title) %>

    <% if current_user.can_edit_pages?(@project) %>
      <%= link_to_page_editor(@page) %>
    <% end %>
    <% unless @project.to_s.empty? %>
      <%= link_to_page_printer(@page) %>
      <%= link_to_page_pdf(@page) %>
    <% end %>
  </h1>
<% end %>

<%= render_page(@page) %>

<p class="attribution">
  Updated <%= h(format_time_from(@page.filtered_text.updated_on, current_user)) %>
  by <%= link_to_person(@page.filtered_text.updated_by) %>

  <br/>
  <% if current_user.can_edit_pages?(@project) %>
    <%= link_to_page_editor(@page) %>
  <% end %>
  <% unless @project.to_s.empty? %>
    <%= link_to_page_printer(@page) %>
    <%= link_to_page_pdf(@page) %>
  <% end %>
</p>

<h1>Tags: <%= render_tag_editor(@page) %></h1>
<%= tag_cloud_for(@page) %>

<%= comment_section_for(@page) %>
{'fraction_non_alphanumeric': 0.21441689623507806, 'fraction_numerical': 0.0036730945821854912, 'mean_word_length': 4.420398009950249, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '7557654', 'n_tokens_mistral': 944, 'n_tokens_neox': 830, 'n_words': 114}