<commit_before><h1>Listing articles</h1>

<ul class="choices">
  <li><%= link_to 'New article', new_admin_article_path %></li>
</ul>

<table>
  <thead>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <th>Status</th>
      <th>Author</th>
      <%= sortable_table_header :name => "Updated",  :sort => "updated_at" %>
      <%= sortable_table_header :name => "Published At",  :sort => "published_at" %>
      <%= sortable_table_header :name => "Published To",  :sort => "published_to" %>
      <th colspan="3">Actions</th>
    </tr>
  </thead>
  <tbody>
<% @articles.each do |article| %>
    <tr id="article-<%= article.id %>">
      <td><%=h article.title %></td>
      <td><%= content_status(article) %></td>
      <td><%= article.author %></td>
      <td><%= article.updated_at.strftime('%d %b') %></td>
      <td><%= article.published_at.strftime('%d %b') unless article.published_at.nil? %></td>
      <td><%= article.published_to.strftime('%d %b') unless article.published_to.nil? %></td>
      <td><%= link_to 'Show', article_permalink(article), :class => 'show' %></td>
      <td><%= link_to 'Edit', admin_article_path(article), :class => 'edit' %></td>
      <td><%= link_to 'Destroy', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td><commit_msg>Fixing permalink if not published<commit_after><h1>Listing articles</h1>

<ul class="choices">
  <li><%= link_to 'New article', new_admin_article_path %></li>
</ul>

<table>
  <thead>
    <tr>
      <%= sortable_table_header :name => "Title",  :sort => "title" %>
      <th>Status</th>
      <th>Author</th>
      <%= sortable_table_header :name => "Updated",  :sort => "updated_at" %>
      <%= sortable_table_header :name => "Published At",  :sort => "published_at" %>
      <%= sortable_table_header :name => "Published To",  :sort => "published_to" %>
      <th colspan="3">Actions</th>
    </tr>
  </thead>
  <tbody>
<% @articles.each do |article| %>
    <tr id="article-<%= article.id %>">
      <td><%=h article.title %></td>
      <td><%= content_status(article) %></td>
      <td><%= article.author %></td>
      <td><%= article.updated_at.strftime('%d %b') %></td>
      <td><%= article.published_at.strftime('%d %b') unless article.published_at.nil? %></td>
      <td><%= article.published_to.strftime('%d %b') unless article.published_to.nil? %></td>
      <td><%= link_to 'Show', article_permalink(article), :class => 'show' if article.published? %></td>
      <td><%= link_to 'Edit', admin_article_path(article), :class => 'edit' %></td>
      <td><%= link_to 'Destroy', admin_article_path(article), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td>
{'fraction_non_alphanumeric': 0.23026315789473684, 'fraction_numerical': 0.0021929824561403508, 'mean_word_length': 3.852836879432624, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 135, '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': '4809379', 'n_tokens_mistral': 1040, 'n_tokens_neox': 977, 'n_words': 207}