<commit_before><h1>Listing cores</h1>

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
      <th>Creator</th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @cores.each do |core| %>
      <tr>
        <td><%= core.name %></td>
        <td><%= core.description %></td>
        <td><%= core.creator_id %></td>
        <td><%= link_to 'Show', core %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

<%= link_to 'New Core', new_core_path %><commit_msg>Displaying a message when @cores is empty<commit_after><h1>Listing cores</h1>

<% if @cores.empty? %>
<p>There are no cores to display.</p>
<% else %>
<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Description</th>
      <th>Creator</th>
      <th></th>
    </tr>
  </thead>

  <tbody>
    <% @cores.each do |core| %>
      <tr>
        <td><%= core.name %></td>
        <td><%= core.description %></td>
        <td><%= core.creator_id %></td>
        <td><%= link_to 'Show', core %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>
<% end %>

<%= link_to 'New Core', new_core_path %>
{'fraction_non_alphanumeric': 0.2413162705667276, 'fraction_numerical': 0.003656307129798903, 'mean_word_length': 2.2017543859649122, 'pattern_counts': {'":': 0, '<': 80, '<?xml version=': 0, '>': 80, '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': '2988392', 'n_tokens_mistral': 477, 'n_tokens_neox': 438, 'n_words': 94}