<commit_before><% @bots.in_groups_of(3).each do |group| %>
  <div class="row">
    <% group.compact.each do |bot| %>
      <div class="col-md-4">
        <div id="bot-<%= bot.id %>" class="<%= "panel #{bot.bot_instances
        .order(:last_ping).reverse
        .select {|instance| !instance.last_ping.nil?}
        .first&.panel_class || "panel-default"}" %>"
        >
          <div class="panel-heading">
            <h3><%= bot.name %><br/>
              <small>by <%= user_link(User.with_role(:owner, bot).first) %></small>
            </h3>
          </div>
          <div class="panel-body">
            <% if bot.description.present? %><p><%= bot.description %></p><% end %>
            <% if bot.repository.present? %><p class="text-muted">Repository: <%= repo_link(bot) %></p><% end %>
            <p><strong><%= link_to "Instances", url_for(controller: :bot_instances, action: :index, bot_id: bot.id) %></strong></p>
            <ul class="bot-instance-ul">
              <% bot.bot_instances.order(:priority).each do |instance| %>
                <%= render 'bot_instances/list_item', :instance => instance %>
              <% end %>
            </ul>
            <% if User.with_role(:collaborator, bot).any? %>
              <p><strong>Collaborators</strong></p>
              <ul>
                <% User.with_role(:collaborator, bot).each do |user| %>
                    <li><%= user.username %></li>
                <% end %>
              </ul>
            <% end %>
          </div>
          <% if current_user&.is_owner?(bot) || current_user&.is_admin? %>
            <div class="panel-footer">
              <%= link_to "edit", edit_bot_path(bot) %>
            </div>
          <% end %>
        </div>
      </div>
    <% end %>
  </div>
<% end %><commit_msg>Add no-collaborators class to bot-instance-ul when there are no collaborators<commit_after><% @bots.in_groups_of(3).each do |group| %>
  <div class="row">
    <% group.compact.each do |bot| %>
      <div class="col-md-4">
        <div id="bot-<%= bot.id %>" class="<%= "panel #{bot.bot_instances
        .order(:last_ping).reverse
        .select {|instance| !instance.last_ping.nil?}
        .first&.panel_class || "panel-default"}" %>"
        >
          <div class="panel-heading">
            <h3><%= bot.name %><br/>
              <small>by <%= user_link(User.with_role(:owner, bot).first) %></small>
            </h3>
          </div>
          <div class="panel-body">
            <% if bot.description.present? %><p><%= bot.description %></p><% end %>
            <% if bot.repository.present? %><p class="text-muted">Repository: <%= repo_link(bot) %></p><% end %>
            <p><strong><%= link_to "Instances", url_for(controller: :bot_instances, action: :index, bot_id: bot.id) %></strong></p>
            <ul class="bot-instance-ul<%= " no-collaborators" unless User.with_role(:collaborator, bot).any? %>">
              <% bot.bot_instances.order(:priority).each do |instance| %>
                <%= render 'bot_instances/list_item', :instance => instance %>
              <% end %>
            </ul>
            <% if User.with_role(:collaborator, bot).any? %>
              <p><strong>Collaborators</strong></p>
              <ul>
                <% User.with_role(:collaborator, bot).each do |user| %>
                    <li><%= user.username %></li>
                <% end %>
              </ul>
            <% end %>
          </div>
          <% if current_user&.is_owner?(bot) || current_user&.is_admin? %>
            <div class="panel-footer">
              <%= link_to "edit", edit_bot_path(bot) %>
            </div>
          <% end %>
        </div>
      </div>
    <% end %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.19843623618225936, 'fraction_numerical': 0.0021569156106767324, 'mean_word_length': 1.8939157566302651, 'pattern_counts': {'":': 0, '<': 126, '<?xml version=': 0, '>': 128, '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': '6619237', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1164, 'n_words': 215}