<commit_before><%= render partial: 'contour/layouts/per_page', locals: { type: 'posts', per_page: 20, object_count: @posts.total_count } %>

<table class="table table-striped table-bordered" style="width:100%">
  <thead>
    <tr>
      <th style="white-space:nowrap"><%== sort_field_helper(@order, 'posts.name', 'Name', 'posts_search') %></th>
      <th style="white-space:nowrap"><%== sort_field_helper(@order, 'posts.description', 'Description', 'posts_search') %></th>
      <th style="white-space:nowrap"><%== sort_field_helper(@order, 'posts.archived', 'Archived', 'posts_search') %></th>
      <th>Actions</th>
    </tr>
  </thead>

  <% @posts.each do |post| %>
    <tr>
      <td><%= link_to post.name, [post.project, post] %></td>
      <td><%= post.description %></td>
      <td><%= simple_check post.archived %></td>
      <td>
        <%= link_to 'Edit', edit_project_post_path(post.project, post), class: 'btn btn-default btn-xs' %>
        <%= link_to 'Delete', [post.project, post], method: :delete, class: 'btn btn-xs btn-danger-inverse', data: { confirm: "Are you sure you want to delete Post #{post.name}?" } %>
      </td>
    </tr>
  <% end %><commit_msg>Simple markdown for posts index<commit_after><%= render partial: 'contour/layouts/per_page', locals: { type: 'posts', per_page: 20, object_count: @posts.total_count } %>

<table class="table table-striped table-bordered" style="width:100%">
  <thead>
    <tr>
      <th style="white-space:nowrap"><%== sort_field_helper(@order, 'posts.name', 'Name', 'posts_search') %></th>
      <th style="white-space:nowrap"><%== sort_field_helper(@order, 'posts.description', 'Description', 'posts_search') %></th>
      <th style="white-space:nowrap"><%== sort_field_helper(@order, 'posts.archived', 'Archived', 'posts_search') %></th>
      <th>Actions</th>
    </tr>
  </thead>

  <% @posts.each do |post| %>
    <tr>
      <td><%= link_to post.name, [post.project, post] %></td>
      <td><%= simple_markdown post.description %></td>
      <td><%= simple_check post.archived %></td>
      <td>
        <%= link_to 'Edit', edit_project_post_path(post.project, post), class: 'btn btn-default btn-xs' %>
        <%= link_to 'Delete', [post.project, post], method: :delete, class: 'btn btn-xs btn-danger-inverse', data: { confirm: "Are you sure you want to delete Post #{post.name}?" } %>
      </td>
    </tr>
  <% end %>
{'fraction_non_alphanumeric': 0.21140939597315436, 'fraction_numerical': 0.0041946308724832215, 'mean_word_length': 4.010504201680672, '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': '2862550', 'n_tokens_mistral': 867, 'n_tokens_neox': 822, 'n_words': 189}