<commit_before>{% extends sitebase.html %}
{% block content %}

<div class="content">
    <div class="red">
        Note: Where there are blanks in the table below, the taxonomy could not be resolved in finer detail.
        <br>
        Note: The percentages listed represent the relative abundance of each taxon. This summary is based off of normalized data. Because of limitations in the way the samples are processed, we cannot reliably obtain species level resolution. As such, the data shown are collapsed at the genus level.
    </div>
    <a href="taxa_summaries/<%=barcode%>.txt" download>Download the table</a>
    <center>
    <table cellspacing="15">
        {% for header in headers %}
            <th><b><u>{{header}}</u></b></th>
        {% end %}

        {% for i in range(len(data))  %}
            <tr>
            {% for j in range(len(data[i])) %}
                <td>
                {% if j == len(data[i])-1 %}
                    <center>{{data[i][j]}}</center>
                {% elif j == len(data[i])-2 %}
                    <i>{{data[i][j]}}</i>
                {% else %}
                    {{data[i][j]}}
                {% end %}
                </td>
            {% end %}
            </tr>
        {% end %}
    </table>
    </center>
</div>

{% end %}
<commit_msg>BUG: Make the taxa_summary template render info<commit_after>{% extends sitebase.html %}
{% block content %}

<div class="red">
    Note: Where there are blanks in the table below, the taxonomy could not be resolved in finer detail.
    <br>
    Note: The percentages listed represent the relative abundance of each taxon. This summary is based off of normalized data. Because of limitations in the way the samples are processed, we cannot reliably obtain species level resolution. As such, the data shown are collapsed at the genus level.
</div>
<a href="{{file_path}}" download>Download the table</a>
<center>
<table cellspacing="15">
    {% for header in headers %}
        <th><b><u>{{header}}</u></b></th>
    {% end %}

    {% for i in range(len(data))  %}
        <tr>
        {% for j in range(len(data[i])) %}
            <td>
            {% if j == len(data[i])-1 %}
                <center>{{data[i][j]}}</center>
            {% elif j == len(data[i])-2 %}
                <i>{{data[i][j]}}</i>
            {% else %}
                {{data[i][j]}}
            {% end %}
            </td>
        {% end %}
        </tr>
    {% end %}
</table>
</center>

{% end %}

{'fraction_non_alphanumeric': 0.1566410981025434, 'fraction_numerical': 0.003229713362939039, 'mean_word_length': 1.9747899159663866, 'pattern_counts': {'":': 0, '<': 52, '<?xml version=': 0, '>': 52, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6938738', 'n_tokens_mistral': 786, 'n_tokens_neox': 699, 'n_words': 243}