<commit_before>{% import 'xia2_macros.html' as xia2_macros %}
{% extends "report_base.html" %}
{% block content %}
<div class="page-header">
    <h1>{{ page_title }}</h1>
</div>

<div>
    <h2>Merging statistics</h2>

    <p>
        <b>Filename:</b> {{ filename }}
        <br>
        <b>Space group:</b> {{ space_group }}
        <br>
        <b>Unit cell:</b> {{ unit_cell }}
    </p>

    <div class="panel-group">

        <div class="panel panel-default">
            <div class="panel-heading" data-toggle="collapse" href="#collapse_history">
                <h4 class="panel-title">
                    <a>MTZ history</a>
                </h4>
            </div>
            <div id="collapse_history" class="panel-collapse collapse">
                <div class="panel-body">
                    <ul class="list-group">
                    {% for item in mtz_history %}
                        <li class="list-group-item">{{ item }}</li>
                    {% endfor %}
                    </ul>
                </div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading" data-toggle="collapse" href="#collapse_expt">
                <h4 class="panel-title">
                    <a>Overall</a>
                </h4>
            </div>
            <div id="collapse_expt" class="panel-collapse collapse in">
                <div class="panel-body">
                    <div style="width: 800px">
                        {{ macros.table(overall_stats_table,
                                        has_column_header=true,
                                        has_row_header=true) }}
                    </div>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading" data-toggle="collapse" href="#collapse_geom">
                <h4 class="panel-title">
                    <a>Resolution shells</a>
                </h4>
            </div>
            <div id="collapse_geom" class="panel-collapse collapse">
                <div class="panel-body">
                    {{ macros.table(merging_stats_table, has_row_header=true) }}
                  *significant at p={{ cc_half_significance_level }}
                </div>
            </div>
        </div>
        {% if xtriage_success or xtriage_warnings or xtriage_danger %}
            {{ xia2_macros.xtriage_results(xtriage_success, xtriage_warnings, xtriage_danger) }}
        {% endif %}
    </div>
</div>

<div>
    <h2>Analysis plots</h2>

    <div class="panel-group">
        {{ macros.panel('Analysis by resolution', 'resolution', resolution_graphs) }}
        {{ macros.panel('Analysis by batch', 'batch', batch_graphs) }}
        {{ macros.panel('Miscellaneous', 'misc', misc_graphs, styles=styles) }}
    </div><commit_msg>jinja macros template: switch meaning of has_column_header and has_row_header<commit_after>{% import 'xia2_macros.html' as xia2_macros %}
{% extends "report_base.html" %}
{% block content %}
<div class="page-header">
    <h1>{{ page_title }}</h1>
</div>

<div>
    <h2>Merging statistics</h2>

    <p>
        <b>Filename:</b> {{ filename }}
        <br>
        <b>Space group:</b> {{ space_group }}
        <br>
        <b>Unit cell:</b> {{ unit_cell }}
    </p>

    <div class="panel-group">

        <div class="panel panel-default">
            <div class="panel-heading" data-toggle="collapse" href="#collapse_history">
                <h4 class="panel-title">
                    <a>MTZ history</a>
                </h4>
            </div>
            <div id="collapse_history" class="panel-collapse collapse">
                <div class="panel-body">
                    <ul class="list-group">
                    {% for item in mtz_history %}
                        <li class="list-group-item">{{ item }}</li>
                    {% endfor %}
                    </ul>
                </div>
            </div>
        </div>

        <div class="panel panel-default">
            <div class="panel-heading" data-toggle="collapse" href="#collapse_expt">
                <h4 class="panel-title">
                    <a>Overall</a>
                </h4>
            </div>
            <div id="collapse_expt" class="panel-collapse collapse in">
                <div class="panel-body">
                    <div style="width: 800px">
                        {{ macros.table(overall_stats_table,
                                        has_column_header=true,
                                        has_row_header=true) }}
                    </div>
                </div>
            </div>
        </div>
        <div class="panel panel-default">
            <div class="panel-heading" data-toggle="collapse" href="#collapse_geom">
                <h4 class="panel-title">
                    <a>Resolution shells</a>
                </h4>
            </div>
            <div id="collapse_geom" class="panel-collapse collapse">
                <div class="panel-body">
                    {{ macros.table(merging_stats_table, has_column_header=true) }}
                  *significant at p={{ cc_half_significance_level }}
                </div>
            </div>
        </div>
        {% if xtriage_success or xtriage_warnings or xtriage_danger %}
            {{ xia2_macros.xtriage_results(xtriage_success, xtriage_warnings, xtriage_danger) }}
        {% endif %}
    </div>
</div>

<div>
    <h2>Analysis plots</h2>

    <div class="panel-group">
        {{ macros.panel('Analysis by resolution', 'resolution', resolution_graphs) }}
        {{ macros.panel('Analysis by batch', 'batch', batch_graphs) }}
        {{ macros.panel('Miscellaneous', 'misc', misc_graphs, styles=styles) }}
    </div>
{'fraction_non_alphanumeric': 0.14618459933947506, 'fraction_numerical': 0.0062576047279680165, 'mean_word_length': 1.5698972755694507, 'pattern_counts': {'":': 0, '<': 137, '<?xml version=': 0, '>': 137, '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': '77499', 'n_tokens_mistral': 1736, 'n_tokens_neox': 1599, 'n_words': 317}