<commit_before><div class="row">
    <p>
    <code class="exception">{{ exception.class }} in {{ exception.file }} line {{ exception.object.line }}</code>
    </p>
    <p>
    <code class="exception">{{ exception.object.message|nl2br }}</code>
    </p>
</div>

{%- if debug and exception is defined %}
    <style>
        .exception {
            display:block;
            white-space: pre-wrap;
            word-break: break-all;
        }
    </style>

    {% set i = 0 %}
    <div class="row">
        <h4>Trace</h4>

        <code class="exception">
            {% spaceless %}
                {% for t in exception.trace %}
                    <p>#{{ i }} {{ t.class|default() }}::{{ t.function|default() }}</p>
                    <p>  {{ t.file|default() }} # {{ t.line|default() }}</p>
                    {% set i = i + 1 %}
                {% endfor %}
            {% endspaceless %}
        </code>
    </div>
{% endif -%}<commit_msg>Prevent _trace.twig throwing exceptions in strict mode from missing array keys<commit_after><style>
    .exception {
        display:block;
        white-space: pre-wrap;
        word-break: break-all;
    }
</style>

<div class="row">
    <h4>Details</h4>
    <p>
    <code class="exception">{{ exception.class|default('unknown') }} in {{ exception.file|default('unknown') }} line {{ exception.object.line|default('unknown') }}</code>
    </p>
    <p>
    <code class="exception">{{ exception.object.message|default('unknown')|nl2br }}</code>
    </p>
</div>

{%- if debug %}
    {% set i = 0 %}
    <div class="row">
        <h4>Trace</h4>

        <code class="exception">
            {% spaceless %}
                {% for t in exception.trace %}
                    <p>#{{ i }} {{ t.class|default() }}::{{ t.function|default() }}</p>
                    <p>  {{ t.file|default() }} # {{ t.line|default() }}</p>
                    {% set i = i + 1 %}
                {% endfor %}
            {% endspaceless %}
        </code>
    </div>
{% endif -%}
{'fraction_non_alphanumeric': 0.19990004997501248, 'fraction_numerical': 0.005997001499250375, 'mean_word_length': 1.803921568627451, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7040138', 'n_tokens_mistral': 673, 'n_tokens_neox': 620, 'n_words': 135}