<commit_before>{% import "_helpers/_card.html" as card_helpers %}
{% import "_helpers/_table.html" as table_helpers %}

{% macro render_active_plugins(plugins) %}
    <div class="card mb-4">
        {{ card_helpers.render_title("Active Plugins", "These are the plugins currently running on the system", search_table="#plugins-table") }}
        <div class="table-responsive">
            <table id="plugins-table" class="table table-hover table-striped mb-0">
                {{ table_helpers.render_head(['Name', 'Description', 'Version']) }}
                <tbody>
                    {% for p in plugins.values() %}
                    {% if p.website %}
                    {{ table_helpers.render_cell(p.name, url=p.website) }}
                    {% else %}
                    {{ table_helpers.render_cell(p.name) }}
                    {% endif %}
                    {{ table_helpers.render_cell(p.description) }}
                    {{ table_helpers.render_cell(p.version) }}
                    {% endfor %}
                    {{ table_helpers.render_no_data_row(3) }}
                </tbody>
            </table>
        </div>
    </div>
{% endmacro %}<commit_msg>Center version column<commit_after>{% import "_helpers/_card.html" as card_helpers %}
{% import "_helpers/_table.html" as table_helpers %}

{% macro render_active_plugins(plugins) %}
    <div class="card mb-4">
        {{ card_helpers.render_title("Active Plugins", "These are the plugins currently running on the system", search_table="#plugins-table") }}
        <div class="table-responsive">
            <table id="plugins-table" class="table table-hover table-striped mb-0">
                {{ table_helpers.render_head(['Name', 'Description', 'Version'], center_indexes=[3]) }}
                <tbody>
                    {% for p in plugins.values() %}
                    {% if p.website %}
                    {{ table_helpers.render_cell(p.name, url=p.website) }}
                    {% else %}
                    {{ table_helpers.render_cell(p.name) }}
                    {% endif %}
                    {{ table_helpers.render_cell(p.description) }}
                    {{ table_helpers.render_cell(p.version, center=True) }}
                    {% endfor %}
                    {{ table_helpers.render_no_data_row(3) }}
                </tbody>
            </table>
        </div>
    </div>
{% endmacro %}
{'fraction_non_alphanumeric': 0.14244064972927947, 'fraction_numerical': 0.0029154518950437317, 'mean_word_length': 1.829210836277974, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2740155', 'n_tokens_mistral': 690, 'n_tokens_neox': 641, 'n_words': 120}