<commit_before><div
  class="row">
  <div
    class="<%= (report.queries.length == 1 && report.queries.first.hits.empty?) ? 'col-md-12' : 'col-md-9 main' %>">
    <% report.queries.each_with_index do |query, q| %>
      <div
        class="resultn" id="<%="Query_#{query.number}"%>"
        data-query-len="<%= query.length %>" data-graphit-target="hsps"
        data-graphit="overview" data-hit-count="<%= query.hits.count %>">
        <div
          class="page-header">
          <h3>
            Query= <%= query.id %>
            <small>
              <%= query.title %>
            </small>
          </h3>
          <span
            class="label label-reset pos-label"
            title="<%= "Query #{query.number}." %>"
            data-toggle="tooltip">
            <%= "#{query.number} / #{report.queries.length}"%>
          </span>
        </div>

        <div
          class="page-content">
          <% if query.hits.empty? %>
            <p>
              Query length: <%= query.length %>
            </p>
            <br>
            <br>
            <p>
              <strong> <%= "****** No hits found ******" %> </strong>
            </p>
          <% else %>
            <table
              class="table table-hover table-condensed tabular-view">
              <thead>
                <th class="text-left"> Number </th>
                <th>Sequences producing significant alignments</th>
                <th class="text-right"> Total score </th>
                <th class="text-right"> E value </th>
              </thead>
              <tbody>
              <% query.hits.each_with_index do |hit, h| %>
                <tr>
                  <td class="text-left"><%= h + 1 %>.</td>
                  <td> <a href="<%="#Query_#{query.number}_hit_#{hit.number}"%>"><%= "#{hit.id}" %></a> </td>
                  <td class="text-right"><%= prettify hit.score  %></td>
                  <td class="text-right"><%= prettify hit.evalue %></td>
                </tr>
              <% end %>
              </tbody>
            </table>
            <% query.hits.each do |hit| %>
              <div
                class="hitn" id="<%="Query_#{query.number}_hit_#{hit.number}"%>"
                data-hit-def="<%= hit.id %>" data-hit-evalue="<%= hit.evalue %>"
                data-hit-len="<%= hit.length %>">
                <div
                  class="page-header">
                  <h4
                    data-toggle="collapse" data-target="#<%= "Query_#{query.number}_hit_#{hit.number}_alignment" %>">
                    <i class="fa fa-chevron-down"> </i>
                    <span>
                      <%= hit.id %>
                      <small>
                        <%= hit.title %>
                      </small>
                    </span>
                  </h4>
                  <span
                    class="label label-reset pos-label"
                    title="<%= "Query #{query.number}. Hit #{hit.number} of #{query.hits.length}." %>"<commit_msg>Show length in tabular summary.<commit_after><div
  class="row">
  <div
    class="<%= (report.queries.length == 1 && report.queries.first.hits.empty?) ? 'col-md-12' : 'col-md-9 main' %>">
    <% report.queries.each_with_index do |query, q| %>
      <div
        class="resultn" id="<%="Query_#{query.number}"%>"
        data-query-len="<%= query.length %>" data-graphit-target="hsps"
        data-graphit="overview" data-hit-count="<%= query.hits.count %>">
        <div
          class="page-header">
          <h3>
            Query= <%= query.id %>
            <small>
              <%= query.title %>
            </small>
          </h3>
          <span
            class="label label-reset pos-label"
            title="<%= "Query #{query.number}." %>"
            data-toggle="tooltip">
            <%= "#{query.number} / #{report.queries.length}"%>
          </span>
        </div>

        <div
          class="page-content">
          <% if query.hits.empty? %>
            <p>
              Query length: <%= query.length %>
            </p>
            <br>
            <br>
            <p>
              <strong> <%= "****** No hits found ******" %> </strong>
            </p>
          <% else %>
            <table
              class="table table-hover table-condensed tabular-view">
              <thead>
                <th class="text-left"> Number </th>
                <th>Sequences producing significant alignments</th>
                <th class="text-right"> Length </th>
                <th class="text-right"> Total score </th>
                <th class="text-right"> E value </th>
              </thead>
              <tbody>
              <% query.hits.each_with_index do |hit, h| %>
                <tr>
                  <td class="text-left"><%= h + 1 %>.</td>
                  <td> <a href="<%="#Query_#{query.number}_hit_#{hit.number}"%>"><%= "#{hit.id}" %></a> </td>
                  <td class="text-right"><%= prettify hit.score  %></td>
                  <td class="text-right"><%= prettify hit.evalue %></td>
                  <td class="text-right"><%= prettify hit.length %></td>
                </tr>
              <% end %>
              </tbody>
            </table>
            <% query.hits.each do |hit| %>
              <div
                class="hitn" id="<%="Query_#{query.number}_hit_#{hit.number}"%>"
                data-hit-def="<%= hit.id %>" data-hit-evalue="<%= hit.evalue %>"
                data-hit-len="<%= hit.length %>">
                <div
                  class="page-header">
                  <h4
                    data-toggle="collapse" data-target="#<%= "Query_#{query.number}_hit_#{hit.number}_alignment" %>">
                    <i class="fa fa-chevron-down"> </i>
                    <span>
                      <%= hit.id %>
                      <small>
                        <%= hit.title %>
                      </small>
                    </span>
                  </h4>
                  <span
                    class="label label-reset pos-label"
                    title="<%= "Query #{query.number}. Hit #{hit.number} of #{query.hits.length}." %>"
{'fraction_non_alphanumeric': 0.18660365058670145, 'fraction_numerical': 0.0029335071707953064, 'mean_word_length': 1.2814126394052046, 'pattern_counts': {'":': 0, '<': 180, '<?xml version=': 0, '>': 178, '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': '2080987', 'n_tokens_mistral': 1932, 'n_tokens_neox': 1768, 'n_words': 331}