<commit_before><%= render :partial => 'admin/shared/configuration_menu' %>

<div class='toolbar' data-hook="toolbar">
  <ul class='actions'>
    <li>
      <%= button_link_to "New Content Chunk", new_object_url, :icon => 'add', :id => 'admin_new_content_chunk_link'  %>
    </li>
  </ul>
  <br class='clear' />
</div>

<h1>Content Chunks</h1>

<table class="index" id="content_chunks_listing">
  <thead data-hook="admin_content_chunks_index_headers">
    <th>Title</th>
    <th>Kind</th>
    <th>Visible On</th>
    <th><%= t("action") %></th>
  </thead>
  <tbody>
    <% @content_chunks.each do |content_chunk|%>
      <tr id="<%= dom_id content_chunk %>" data-hook="admin_content_chunks_index_rows">
        <td><%= content_chunk.title %></td>
        <td><%= content_chunk.kind %></td>
        <td><%= (content_chunk.stores.collect &:name).join(', ') %></td>
        <td>
          <%= link_to_edit content_chunk, :class => 'edit' %> &nbsp;
          <%= link_to_delete content_chunk %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table><commit_msg>ContentChunks don't have stores here.<commit_after><%= render :partial => 'admin/shared/configuration_menu' %>

<div class='toolbar' data-hook="toolbar">
  <ul class='actions'>
    <li>
      <%= button_link_to "New Content Chunk", new_object_url, :icon => 'add', :id => 'admin_new_content_chunk_link'  %>
    </li>
  </ul>
  <br class='clear' />
</div>

<h1>Content Chunks</h1>

<table class="index" id="content_chunks_listing">
  <thead data-hook="admin_content_chunks_index_headers">
    <th>Title</th>
    <th>Kind</th>
    <th><%= t("action") %></th>
  </thead>
  <tbody>
    <% @content_chunks.each do |content_chunk|%>
      <tr id="<%= dom_id content_chunk %>" data-hook="admin_content_chunks_index_rows">
        <td><%= content_chunk.title %></td>
        <td><%= content_chunk.kind %></td>
        <td>
          <%= link_to_edit content_chunk, :class => 'edit' %> &nbsp;
          <%= link_to_delete content_chunk %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.20351390922401172, 'fraction_numerical': 0.0019521717911176184, 'mean_word_length': 3.3803418803418803, 'pattern_counts': {'":': 0, '<': 86, '<?xml version=': 0, '>': 94, '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': '4220240', 'n_tokens_mistral': 786, 'n_tokens_neox': 747, 'n_words': 139}