<commit_before><% page_title "Competitions" %>

<table>
  <thead>
    <tr>
      <th>Handle</th>
      <th>Name</th>
      <th>Country</th>
      <th>Registration</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @competitions.each do |competition| %>
      <tr>
        <td><%= competition.handle %></td>
        <td><%= competition.name %></td>
        <td><%= competition.country.name %></td>
        <td><%= competition.registration_open ? 'open' : 'closed' %></td>
        <td><%= link_to 'Show', [:admin, competition] %></td>
        <td><%= link_to 'Edit', edit_admin_competition_path(competition) %></td>
        <td><%= link_to 'Destroy', [:admin, competition], method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>
<commit_msg>add competitors to competitions index<commit_after><% page_title "Competitions" %>

<table>
  <thead>
    <tr>
      <th>Handle</th>
      <th>Name</th>
      <th>Country</th>
      <th>Registration</th>
      <th>Competitors</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @competitions.each do |competition| %>
      <tr>
        <td><%= competition.handle %></td>
        <td><%= competition.name %></td>
        <td><%= competition.country.name %></td>
        <td><%= competition.registration_open ? 'open' : 'closed' %></td>
        <td><%= competition.competitors.count %></td>
        <td><%= link_to 'Show', [:admin, competition] %></td>
        <td><%= link_to 'Edit', edit_admin_competition_path(competition) %></td>
        <td><%= link_to 'Destroy', [:admin, competition], method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

{'fraction_non_alphanumeric': 0.22484186313973548, 'fraction_numerical': 0.0011500862564692352, 'mean_word_length': 2.7419354838709675, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 98, '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': '2547446', 'n_tokens_mistral': 648, 'n_tokens_neox': 614, 'n_words': 132}