<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<%= " no-collaborators" unless bot.collaborators.any? %>">
              <% bot.bot_instances.order(:priority).where("last_ping > ?", 1.hour.ago).each do |instance| %>
                <%= render 'bot_instances/list_item', :instance => instance %>
              <% end %>
            </ul>
            <% if bot.collaborators.any? %><commit_msg>Show warning when there are no active instances<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 bot.collaborators.any? %>">
              <% if bot.bot_instances.order(:priority).where("last_ping > ?", 1.hour.ago).each do |instance| %>
                <%= render 'bot_instances/list_item', :instance => instance %>
              <% end.length == 0 %>
                <li><em class="bot-status-dead">No active instances. <%= link_to "see all", url_for(controller: :bot_instances, action: :index, bot_id: bot.id) %></em></li>
              <% end %>
            </ul>
            <% if bot.collaborators.any? %>
{'fraction_non_alphanumeric': 0.20452961672473868, 'fraction_numerical': 0.003832752613240418, 'mean_word_length': 2.4016587677725116, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 91, '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': '943521', 'n_tokens_mistral': 986, 'n_tokens_neox': 922, 'n_words': 176}