<commit_before><li id="project-<%= project.id %>" class="project-box">
  <span class="label label-primary pull-left code"
    style="background:<%= project.code_color %>;"><%= project.code %></span>
  <span class="path">
    <% if project.daemon_active? %>
      <i class="glyphicon glyphicon-ok-sign text-light-success" rel="tooltip"
        title="active <%=
          time_ago_in_words(project.daemon_last_alive)%> ago"> </i>
    <% else %>
      <i class="glyphicon glyphicon-remove-sign text-light-warning" rel="tooltip"
        title="inactive"> </i>
    <% end %>
    <%= link_to project.path_name, project,
      rel:"tooltip", title:project.miga.metadata[:description] %>
    <% if File.exist? project.readme_file %>
      <%= info_msg project.path_name, dialog_class: "modal-lg" do %>
        <% markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
                autolink: true, tables: true) %>
        <%= markdown.render(File.read(project.readme_file)).html_safe %>
      <% end %>
    <% end %>
  </span>
  <span class="datasets">
    <b>Datasets:</b>
    <%= pluralize(project.ref_datasets.size, "reference") %>
    <% if logged_in? && current_user.admin? %>
      | <%= pluralize(project.dataset_counts(current_user)[:qry], "query") %>
    <% end %>
  </span>
  <span class="timestamp">
    <% unless project.last_db_update.nil? %>
      Last updated <%= time_ago_in_words(project.last_db_update) %> ago
    <% end %>
  </span>
</li><commit_msg>Incomplete projects handled gracefully<commit_after><li id="project-<%= project.id %>" class="project-box">
  <span class="label label-primary pull-left code"
    style="background:<%= project.code_color %>;"><%= project.code %></span>
  <span class="path">
    <% if project.daemon_active? %>
      <i class="glyphicon glyphicon-ok-sign text-light-success" rel="tooltip"
        title="active <%=
          time_ago_in_words(project.daemon_last_alive)%> ago"> </i>
    <% else %>
      <i class="glyphicon glyphicon-remove-sign text-light-warning" rel="tooltip"
        title="inactive"> </i>
    <% end %>
    <%= link_to project.path_name, project,
      rel:"tooltip", title:project.miga.metadata[:description] %>
    <% if File.exist? project.readme_file %>
      <%= info_msg project.path_name, dialog_class: "modal-lg" do %>
        <% markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML,
                autolink: true, tables: true) %>
        <%= markdown.render(File.read(project.readme_file)).html_safe %>
      <% end %>
    <% end %>
  </span>
  <span class="datasets">
    <b>Datasets:</b>
    <%= pluralize(project.ref_datasets.size, "reference") %>
    <% if logged_in? && current_user.admin? %>
      | <%= pluralize(project.dataset_counts(current_user)[:qry], "query") %>
    <% end %>
  </span>
  <span class="timestamp">
    <% if project.last_db_update.nil? %>
      Index unavailable
    <% else %>
      Last updated <%= time_ago_in_words(project.last_db_update) %> ago
    <% end %>
  </span>
</li>
{'fraction_non_alphanumeric': 0.18333333333333332, 'fraction_numerical': 0.0, 'mean_word_length': 3.4197349042709866, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 78, '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': '1670330', 'n_tokens_mistral': 1081, 'n_tokens_neox': 981, 'n_words': 167}