<commit_before>{% load i18n %}
<div class="module">
    <div class="page-header">
        <h2>{% trans "Exception" %}</h2>
    </div>
    <div class="module-content">
        <table class="table table-bordered table-striped">
            <colgroup>
                <col style="width:100px;">
            </colgroup>
            {% if exception_type %}
            <tr>
                <th>{% trans "Types:" %}</th>
                <td class="code"><pre>{{ exception_type|escape }}</pre></td>
            </tr>
            {% endif %}
            <tr>
                <th>{% trans "Value:" %}</th>
                <td class="code"><pre>{{ exception_value|escape }}</pre></td>
            </tr>
            {% if last_frame %}
                <tr>
                    <th>{% trans "Location:" %}</th>
                    <td>{{ last_frame.filename|escape }}{% if last_frame.function %} in {{ last_frame.function|escape }} {% endif %}{% if last_frame.lineno %}, line {{ last_frame.lineno }}{% endif %}{% if last_frame.colno %} (col {{ last_frame.colno }}{% endif %}</td>
                </tr>
            {% endif %}
        </table>
    </div>
</div><commit_msg>Only show exception value when present<commit_after>{% load i18n %}
<div class="module">
    <div class="page-header">
        <h2>{% trans "Exception" %}</h2>
    </div>
    <div class="module-content">
        <table class="table table-bordered table-striped">
            <colgroup>
                <col style="width:100px;">
            </colgroup>
            {% if exception_type %}
            <tr>
                <th>{% trans "Types:" %}</th>
                <td class="code"><pre>{{ exception_type|escape }}</pre></td>
            </tr>
            {% endif %}
            {% if exception_value %}
            <tr>
                <th>{% trans "Value:" %}</th>
                <td class="code"><pre>{{ exception_value|escape }}</pre></td>
            </tr>
            {% endif %}
            {% if last_frame %}
                <tr>
                    <th>{% trans "Location:" %}</th>
                    <td>{{ last_frame.filename|escape }}{% if last_frame.function %} in {{ last_frame.function|escape }} {% endif %}{% if last_frame.lineno %}, line {{ last_frame.lineno }}{% endif %}{% if last_frame.colno %} (col {{ last_frame.colno }}{% endif %}</td>
                </tr>
            {% endif %}
        </table>
    </div>
</div>
{'fraction_non_alphanumeric': 0.19035743973399832, 'fraction_numerical': 0.005818786367414797, 'mean_word_length': 1.647964796479648, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '5450263', 'n_tokens_mistral': 771, 'n_tokens_neox': 699, 'n_words': 157}