<commit_before><h1>Listing pages of <%= @site_name %></h1>

<p id="notice"><%= notice %></p>

<table>
  <tr>
    <th>Name</th>
    <th>Content</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @pages.each do |page| %>
  <tr>
    <td><%= page.name %></td>
    <td><%= page.content %></td>
    <td><%= link_to 'Edit page', edit_page_path(page) %></td>
    <td><%= link_to 'Edit locals', page %></td>
    <td><%= link_to 'Destroy', page, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New page', new_page_path(:site_id => @site_id) %>

<br />

<%= link_to 'Sites', sites_path %><commit_msg>fix: truncate page content in page index<commit_after><h1>Listing pages of <%= @site_name %></h1>

<p id="notice"><%= notice %></p>

<table>
  <tr>
    <th>Name</th>
    <th>Content</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @pages.each do |page| %>
  <tr>
    <td><%= page.name %></td>
    <td><%= truncate(page.content, :length => 50) %></td>
    <td><%= link_to 'Edit page', edit_page_path(page) %></td>
    <td><%= link_to 'Edit locals', page %></td>
    <td><%= link_to 'Destroy', page, confirm: 'Are you sure?', method: :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New page', new_page_path(:site_id => @site_id) %>

<br />

<%= link_to 'Sites', sites_path %>
{'fraction_non_alphanumeric': 0.2692878338278932, 'fraction_numerical': 0.004451038575667656, 'mean_word_length': 3.3798701298701297, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 92, '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': '1758415', 'n_tokens_mistral': 599, 'n_tokens_neox': 565, 'n_words': 134}