<commit_before><h1>Artists</h1>

<table class='table table-striped'>
  <tr>
    <th>Name</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @artists.each do |artist| %>
  <tr>
    <td><%= link_to artist.name, artist %></td>
    <td><%= link_to 'Edit', edit_artist_path(artist) %></td>
    <td><%= link_to 'Destroy', artist, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Artist', new_artist_path %>
<commit_msg>add performance count for artist list<commit_after><h1>Artists</h1>

<table class='table table-striped'>
  <tr>
    <th>Name</th>
    <th>Performances</th>
  </tr>

<% @artists.each do |artist| %>
  <tr>
    <td>
      <%= link_to artist.name, artist %>
    </td>
    <td>
      <% if artist.performances.count > 0 then %>
        <%= artist.performances.count %>
      <% end %>
    </td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Artist', new_artist_path %>

{'fraction_non_alphanumeric': 0.22594142259414227, 'fraction_numerical': 0.005230125523012552, 'mean_word_length': 2.970954356846473, 'pattern_counts': {'":': 0, '<': 56, '<?xml version=': 0, '>': 57, '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': '499486', 'n_tokens_mistral': 411, 'n_tokens_neox': 386, 'n_words': 82}