<commit_before>{% set PANEL_DEFAULT = 0 %}
{% set PANEL_PRIMARY = 1 %}
{% set PANEL_SUCCESS = 2 %}
{% set PANEL_INFO = 3 %}
{% set PANEL_WARNING = 4 %}
{% set PANEL_DANGER = 5 %}

{% set aTypePanel = {
(PANEL_DEFAULT): 'panel-default',
(PANEL_PRIMARY): 'panel-primary',
(PANEL_SUCCESS): 'panel-success',
(PANEL_INFO): 'panel-info',
(PANEL_WARNING): 'panel-warning',
(PANEL_DANGER): 'panel-danger'
} %}

<div class="panel {{ aTypePanel[typePanel] }}">
    {% if showHeader %}
        <div class="panel-heading">
            <h3 class="panel-title">{{ title }}</h3>
        </div>
    {% endif %}
    <div class="panel-body">
        {{ contenu | raw }}
    </div>
    {% if showFooter %}
        <div class="panel-footer">
            Panel footer
        </div>
    {% endif %}
</div><commit_msg>Refactoring vers Bootstrap : Modification de la gestion des panels<commit_after>{% set PANEL_DEFAULT = 0 %}
{% set PANEL_PRIMARY = 1 %}
{% set PANEL_SUCCESS = 2 %}
{% set PANEL_INFO = 3 %}
{% set PANEL_WARNING = 4 %}
{% set PANEL_DANGER = 5 %}

{% set aTypePanel = {
(PANEL_DEFAULT): 'panel-default',
(PANEL_PRIMARY): 'panel-primary',
(PANEL_SUCCESS): 'panel-success',
(PANEL_INFO): 'panel-info',
(PANEL_WARNING): 'panel-warning',
(PANEL_DANGER): 'panel-danger'
} %}

{% if showBody is not defined %}
    {% set showBody = true %}
{% endif %}

<div class="panel {{ aTypePanel[typePanel] }}">
    {% if showHeader %}
        <div class="panel-heading">
            <h3 class="panel-title">{{ title }}</h3>
        </div>
    {% endif %}
    {% if showBody %}
        <div class="panel-body">
            {{ contenu | raw }}
        </div>
    {% endif %}
    {% if showFooter %}
        <div class="panel-footer">
            Panel footer
        </div>
    {% endif %}
</div>
{'fraction_non_alphanumeric': 0.1885940146809712, 'fraction_numerical': 0.009034443817052512, 'mean_word_length': 2.8859649122807016, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '225406', 'n_tokens_mistral': 707, 'n_tokens_neox': 615, 'n_words': 139}