<commit_before><% @title = "Tango Status" %>

<% content_for :stylesheets do %>
  <%= stylesheet_link_tag "eventdrops" %>
  <%= stylesheet_link_tag "metricsgraphics" %>
  <%= stylesheet_link_tag "metricsgraphics_brushing" %>
<% end %>

<% content_for :javascripts do %>
  <%= javascript_include_tag "d3.v3.min" %>
  <%= javascript_include_tag "eventdrops" %>
  <%= javascript_include_tag "metricsgraphics.min" %>
  <%= javascript_include_tag "metricsgraphics_brushing" %>
  <%= javascript_include_tag "tango_status" %>
<% end %>

<h2>Tango Status</h2>
<h3>Currently Running Jobs</h3>
<table class="navigatable prettyBorder">
  <thead>
    <tr>
      <th>Job ID:</th>
      <th>Job Name</th>
      <th>VM Name:</th>
      <th>Submitted At</th>
      <th>Elapsed (s)</th>
    </tr>
  </thead>
  <tbody>
    <% @tango_live_jobs.each do |j| %>
    <%   next unless j["assigned"] %>
    <tr>
      <td><%= j["id"] %></td>
      <td><%= j["name"] %></td>
      <td><%= j["vm"]["name"] %>:<%= j["vm"]["id"] %></td>
      <td><%= j["trace"].first.split("|")[0] %></td>
      <td><%= Time.parse(j["trace"].last.split("|")[0]).to_i - Time.parse(j["trace"].first.split("|")[0]).to_i %></td>
    </tr>
    <% end %>
  </tbody>
</table>
<h3>Jobs Waiting to Run</h3>
<table class="navigatable prettyBorder">
  <thead>
    <tr>
      <th>Job ID:</th>
      <th>Job Name</th>
      <th>VM Name:</th>
      <th>Submitted At</th>
      <th>Elapsed (s)</th>
    </tr>
  </thead>
  <tbody><commit_msg>Changed base time to current time.<commit_after><% @title = "Tango Status" %>

<% content_for :stylesheets do %>
  <%= stylesheet_link_tag "eventdrops" %>
  <%= stylesheet_link_tag "metricsgraphics" %>
  <%= stylesheet_link_tag "metricsgraphics_brushing" %>
<% end %>

<% content_for :javascripts do %>
  <%= javascript_include_tag "d3.v3.min" %>
  <%= javascript_include_tag "eventdrops" %>
  <%= javascript_include_tag "metricsgraphics.min" %>
  <%= javascript_include_tag "metricsgraphics_brushing" %>
  <%= javascript_include_tag "tango_status" %>
<% end %>

<h2>Tango Status</h2>
<h3>Currently Running Jobs</h3>
<table class="navigatable prettyBorder">
  <thead>
    <tr>
      <th>Job ID:</th>
      <th>Job Name</th>
      <th>VM Name:</th>
      <th>Submitted At</th>
      <th>Elapsed (s)</th>
    </tr>
  </thead>
  <tbody>
    <% @tango_live_jobs.each do |j| %>
    <%   next unless j["assigned"] %>
    <tr>
      <td><%= j["id"] %></td>
      <td><%= j["name"] %></td>
      <td><%= j["vm"]["name"] %>:<%= j["vm"]["id"] %></td>
      <td><%= j["trace"].first.split("|")[0] %></td>
      <td><%= Time.now.to_i - ActiveSupport::TimeZone["UTC"].parse(j["trace"].first.split("|")[0]).to_i %></td>
    </tr>
    <% end %>
  </tbody>
</table>
<h3>Jobs Waiting to Run</h3>
<table class="navigatable prettyBorder">
  <thead>
    <tr>
      <th>Job ID:</th>
      <th>Job Name</th>
      <th>VM Name:</th>
      <th>Submitted At</th>
      <th>Elapsed (s)</th>
    </tr>
  </thead>
  <tbody>
{'fraction_non_alphanumeric': 0.23521505376344087, 'fraction_numerical': 0.007056451612903226, 'mean_word_length': 3.4103703703703703, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 151, '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': '4806044', 'n_tokens_mistral': 1266, 'n_tokens_neox': 1175, 'n_words': 206}