<commit_before>{% spaceless %}
    {% for flash in app.session.flashbag.get(flashName) %}
        {# flash type mapping for deprecated types #}
        {%- set type = (flash.type == "error") ? "danger" : flash.type %}
        <div class="alert {{ "alert-#{type}" }}{% if flash.message|length > 50 %} alert-block{% endif %}">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            {% if flash.title is not empty %}
                {% if flash.message|length > 50 %}
                    <h4>{{ flash.title }}</h4>
                {% else %}
                    <strong>{{ flash.title }}</strong>
                {% endif %}
            {% endif %}

            {{ flash.message }}
        </div>
    {% endfor %}
{% endspaceless %}<commit_msg>Adapt flash messages for direct usage in the flash messages<commit_after>{%- for type, messages in app.session.flashbag.all -%}
    {%- set type = ("error" == type) ? "danger" : type -%}
    {%- for message in messages -%}
        <div class="alert {{ "alert-#{type}" }}">
            <button type="button" class="close" data-dismiss="alert">&times;</button>
            {{- message -}}
        </div>
    {%- endfor -%}
{%- endfor -%}
{'fraction_non_alphanumeric': 0.18949958982772763, 'fraction_numerical': 0.004922067268252666, 'mean_word_length': 2.0272952853598016, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '6977517', 'n_tokens_mistral': 395, 'n_tokens_neox': 349, 'n_words': 87}