<commit_before><% if @drafts && @drafts.count %>
  <h2>Draft Blog Posts</h2>

  <table class="list posts drafts" summary="List of all draft blog posts">
    <%= render_template('../util/table_sortheader') %>
    <tfoot></tfoot>
    <tbody>
      <% row = 'even' %>
      <% @drafts.all do |draft| %>
        <tr class="<%= row == 'even' ? row = 'odd' : row = 'even' %>">
          <td class="id"><%= draft.id %></td>
          <td class="title">
            <a href="<%== R(Thoth::PostController, :edit, draft.id) %>#post-form"><%== draft.title %></a>
          </td>
          <td class="created">
            <%= draft.created_at(Thoth::Config.timestamp.short) %>
          </td>
          <td class="updated">
            <%= draft.updated_at(Thoth::Config.timestamp.short) %>
          </td><commit_msg>Don't display drafts table when there are no drafts to display.<commit_after><% if @drafts && @drafts.count > 0 %>
  <h2>Draft Blog Posts</h2>

  <table class="list posts drafts" summary="List of all draft blog posts">
    <%= render_template('../util/table_sortheader') %>
    <tfoot></tfoot>
    <tbody>
      <% row = 'even' %>
      <% @drafts.all do |draft| %>
        <tr class="<%= row == 'even' ? row = 'odd' : row = 'even' %>">
          <td class="id"><%= draft.id %></td>
          <td class="title">
            <a href="<%== R(Thoth::PostController, :edit, draft.id) %>#post-form"><%== draft.title %></a>
          </td>
          <td class="created">
            <%= draft.created_at(Thoth::Config.timestamp.short) %>
          </td>
          <td class="updated">
            <%= draft.updated_at(Thoth::Config.timestamp.short) %>
          </td>
{'fraction_non_alphanumeric': 0.21163069544364507, 'fraction_numerical': 0.002997601918465228, 'mean_word_length': 2.3785425101214575, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 58, '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': '2737691', 'n_tokens_mistral': 587, 'n_tokens_neox': 544, 'n_words': 122}