<commit_before><table class="simpleTable" id="endpoint_statuses"> 
  <% if @endpoints.size %>
  <tr>
    <th>Name</th>
    <th>Status</th>
    <th>Jobs running</th>
    <th>Jobs queued</th>
    <th>Average runtime (s)</th>
    <th>&nbsp;</th>
  </tr>
  <% end %>
  <% @endpoints.each do |endpoint| %>
  <% 
    if @endpoint_server_statuses[endpoint.id]['backend_status'] == 'good'
      status_class = 'good_status'
    else
      status_class = 'fail_status'
    end
  %>
  <tr>
    <td><%= link_to endpoint.name, endpoint_path(endpoint.id) %></td>
    <td class="<%= status_class %>"><%= @endpoint_server_statuses[endpoint.id]['backend_status'] %></td>
    <td><%= @endpoint_server_statuses[endpoint.id]['running'] %></td>
    <td><%= @endpoint_server_statuses[endpoint.id]['queued'].to_i %></td>
    <td><%= "%0.2f" % @endpoint_server_statuses[endpoint.id]['avg_runtime'] %></td>
    <td><%= button_to 'Delete', endpoint, confirm: 'Are you sure you wish to delete this endpoint?', method: :delete, title:"Delete" if current_user.admin?  %></td>
  </tr>
  <% end %>
</table><commit_msg>Fix (hopefully) a continuous integration error that doesn't show up locally when running the tests<commit_after><table class="simpleTable" id="endpoint_statuses"> 
  <% if @endpoints.size %>
  <tr>
    <th>Name</th>
    <th>Status</th>
    <th>Jobs running</th>
    <th>Jobs queued</th>
    <th>Average runtime (s)</th>
    <th>&nbsp;</th>
  </tr>
  <% end %>
  <% @endpoints.each do |endpoint| %>
  <% 
    if @endpoint_server_statuses[endpoint.id]['backend_status'] == 'good'
      status_class = 'good_status'
    else
      status_class = 'fail_status'
    end
  %>
  <tr>
    <td><%= link_to endpoint.name, endpoint_path(endpoint.id) %></td>
    <td class="<%= status_class %>"><%= @endpoint_server_statuses[endpoint.id]['backend_status'] %></td>
    <td><%= @endpoint_server_statuses[endpoint.id]['running'] %></td>
    <td><%= @endpoint_server_statuses[endpoint.id]['queued'].to_i %></td>
    <% avg_runtime = @endpoint_server_statuses[endpoint.id]['avg_runtime'] %>
    <% avg_runtime = "%0.2f" % avg_runtime if avg_runtime.class==Float  %>
    <td><%= avg_runtime %></td>
    <td><%= button_to 'Delete', endpoint, confirm: 'Are you sure you wish to delete this endpoint?', method: :delete, title:"Delete" if current_user.admin?  %></td>
  </tr>
  <% end %>
</table>
{'fraction_non_alphanumeric': 0.20152413209144793, 'fraction_numerical': 0.001693480101608806, 'mean_word_length': 4.170678336980306, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, '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': '1077310', 'n_tokens_mistral': 882, 'n_tokens_neox': 836, 'n_words': 167}