<commit_before><div class="tr-container">
  <div class="header-row">
    <h1>View Tanks</h1>
    <%= link_to 'New Tank', new_tank_path, class:"button primary" %>
  </div>
  <div class="panel panel-default">
    <div class="panel-body">
      <% @tanks.each do |tank| %>
        <div class="row list-item" data-no-turbolink>
          <div class="tank-color" style="background-color:<%= tank.color.html_safe %>"></div>
          <div class="tank-data">
            <h3><%= tank.name %></h3>
            <p>
              <%= link_to 'Info', tank, class:"button" %>
              <% if user_owns_tank tank %>
                <%= link_to 'Code', edit_tank_path(tank), class:"button primary" %>
                <%= link_to 'Destroy', tank, method: :delete, data: { confirm: 'Are you sure?' }, class:"button" %>
              <% end %>
            </p>
          </div>
          <div class="rank">
            #42
          </div>
        </div>
      <% end %>
    </div>
  </div>
  <%= paginate @tanks %>
</div>
<commit_msg>Show average score in tank listing<commit_after><div class="tr-container">
  <div class="header-row">
    <h1>View Tanks</h1>
    <%= link_to 'New Tank', new_tank_path, class:"button primary" %>
  </div>
  <div class="panel panel-default">
    <div class="panel-body">
      <% @tanks.each do |tank| %>
        <div class="row list-item" data-no-turbolink>
          <div class="tank-color" style="background-color:<%= tank.color.html_safe %>"></div>
          <div class="tank-data">
            <h3><%= tank.name %></h3>
            <p>
              <%= link_to 'Info', tank, class:"button" %>
              <% if user_owns_tank tank %>
                <%= link_to 'Code', edit_tank_path(tank), class:"button primary" %>
                <%= link_to 'Destroy', tank, method: :delete, data: { confirm: 'Are you sure?' }, class:"button" %>
              <% end %>
            </p>
          </div>
          <div class="rank">
              <%= tank.average_score || "<span class='unranked'>Unranked</span>".html_safe %>
          </div>
        </div>
      <% end %>
    </div>
  </div>
  <%= paginate @tanks %>
</div>

{'fraction_non_alphanumeric': 0.19225384974335044, 'fraction_numerical': 0.004666355576294913, 'mean_word_length': 2.0454545454545454, 'pattern_counts': {'":': 0, '<': 72, '<?xml version=': 0, '>': 72, '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': '6862441', 'n_tokens_mistral': 760, 'n_tokens_neox': 708, 'n_words': 153}