<commit_before><div
  class="page-header">
  <h2>Results</h2>
</div>

<div
  class="row">
  <div
    class="col-md-3">
    <ul
      class="nav nav-stacked index">
      <% report.queries.each do |query| %>
        <li>
          <a
            href="<%="#Query_#{query.number}"%>"
            title="<%= "Query= #{query.id}" %>">
            <%= "Query= #{query.id}"[0, 30] + (query.id.length > 30 ? ' ...' : '')%>
          </a>
        </li>
      <% end %>
    </ul>
  </div>

  <div
    class="col-md-9">
    <% report.queries.each do |query| %>
      <div
          class="resultn" id="<%="Query_#{query.number}"%>" data-query-len="<%= query.len %>"
          data-graphit="overview">
        <div
          class="page-header">
          <div
            class="row">
            <div
              class="col-md-10">
              <h3>
                Query= <%= query.id %>
                <small>
                  <%= query.meta %>
                </small>
              </h3>
            </div>
            <div
              class="col-md-2 text-right">
              <a
                href="<%= "/get_sequence/?sequence_ids=#{query.hits.map(&:id).join(' ')}&database_ids=#{database_ids.join(' ')}" %>"
                class="link-fasta link-fasta-query">
                [FASTA]
              </a>
            </div>
          </div>
        </div>

        <div
          class="page-content">
          <p
            class="text-monospace">
            Query length: <%= query.len %>, Number of Hit(s): <%= query.hits.count %>
          </p>
          <% if query.hits.empty? %>
            <br>
            <br>
            <p
              class="text-monospace">
              <strong> <%= "****** No hits found ******" %> </strong>
            </p>
          <% else %>
            <table data-table="view"
              class="text-monospace">
              <thead>
                <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 do |hit| %>
                <tr>
                  <td> <%= "#{hit.id}" %> </td>
                  <td class="text-right"> <a href="<%="#Query_#{query.number}_hit_#{hit.number}"%>"> <%= '%.2f' % hit.score %> </a> </td>
                  <td class="text-right"> <%= hit.evalue.to_s.sub(/(\d*\.\d*)e?([+-]\d*)?/) {|l| s = '%.3f' % $1; s << " x 10<sup>#{$2}</sup>" if $2; s} %> </td>
                </tr>
              <% end %>
              </tbody>
            </table>
            <% query.hits.each do |hit| %>
              <div
                class="hitn" id="<%="Query_#{query.number}_hit_#{hit.number}"%>">
                <div
                  class="page-header">
                  <div
                    class="row">
                    <div
                      class="col-md-10">
                      <h4
                        data-toggle="collapse" data-target="#<%= "Query_#{query.number}_hit_#{hit.number}_alignment" %>">
                        <%= hit.id %>
                        <small>
                          <%= hit.def %>
                        </small>
                      </h4>
                    </div>
                    <div
                      class="col-md-2 text-right">
                      <a
                        href="<%= "/get_sequence/?sequence_ids=#{hit.id}&database_ids=#{database_ids.join(' ')}" %>"
                        class="link-fasta link-fasta-hit">
                        [FASTA]
                      </a>
                    </div>
                  </div><commit_msg>Move anchor tags from score to id in tabular view<commit_after><div
  class="page-header">
  <h2>Results</h2>
</div>

<div
  class="row">
  <div
    class="col-md-3">
    <ul
      class="nav nav-stacked index">
      <% report.queries.each do |query| %>
        <li>
          <a
            href="<%="#Query_#{query.number}"%>"
            title="<%= "Query= #{query.id}" %>">
            <%= "Query= #{query.id}"[0, 30] + (query.id.length > 30 ? ' ...' : '')%>
          </a>
        </li>
      <% end %>
    </ul>
  </div>

  <div
    class="col-md-9">
    <% report.queries.each do |query| %>
      <div
          class="resultn" id="<%="Query_#{query.number}"%>" data-query-len="<%= query.len %>"
          data-graphit="overview">
        <div
          class="page-header">
          <div
            class="row">
            <div
              class="col-md-10">
              <h3>
                Query= <%= query.id %>
                <small>
                  <%= query.meta %>
                </small>
              </h3>
            </div>
            <div
              class="col-md-2 text-right">
              <a
                href="<%= "/get_sequence/?sequence_ids=#{query.hits.map(&:id).join(' ')}&database_ids=#{database_ids.join(' ')}" %>"
                class="link-fasta link-fasta-query">
                [FASTA]
              </a>
            </div>
          </div>
        </div>

        <div
          class="page-content">
          <p
            class="text-monospace">
            Query length: <%= query.len %>, Number of Hit(s): <%= query.hits.count %>
          </p>
          <% if query.hits.empty? %>
            <br>
            <br>
            <p
              class="text-monospace">
              <strong> <%= "****** No hits found ******" %> </strong>
            </p>
          <% else %>
            <table data-table="view"
              class="text-monospace">
              <thead>
                <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 do |hit| %>
                <tr>
                    <td> <a href="<%="#Query_#{query.number}_hit_#{hit.number}"%>"> <%= "#{hit.id}" %>  </a> </td>
                  <td class="text-right"> <%= '%.2f' % hit.score %> </td>
                  <td class="text-right"> <%= hit.evalue.to_s.sub(/(\d*\.\d*)e?([+-]\d*)?/) {|l| s = '%.3f' % $1; s << " x 10<sup>#{$2}</sup>" if $2; s} %> </td>
                </tr>
              <% end %>
              </tbody>
            </table>
            <% query.hits.each do |hit| %>
              <div
                class="hitn" id="<%="Query_#{query.number}_hit_#{hit.number}"%>">
                <div
                  class="page-header">
                  <div
                    class="row">
                    <div
                      class="col-md-10">
                      <h4
                        data-toggle="collapse" data-target="#<%= "Query_#{query.number}_hit_#{hit.number}_alignment" %>">
                        <%= hit.id %>
                        <small>
                          <%= hit.def %>
                        </small>
                      </h4>
                    </div>
                    <div
                      class="col-md-2 text-right">
                      <a
                        href="<%= "/get_sequence/?sequence_ids=#{hit.id}&database_ids=#{database_ids.join(' ')}" %>"
                        class="link-fasta link-fasta-hit">
                        [FASTA]
                      </a>
                    </div>
                  </div>
{'fraction_non_alphanumeric': 0.19048902061161255, 'fraction_numerical': 0.0070052539404553416, 'mean_word_length': 1.0801344914541888, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 213, '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': '1728185', 'n_tokens_mistral': 2387, 'n_tokens_neox': 2172, 'n_words': 376}