<commit_before><div class="v-collapse" id="widget-{{ id }}-tab-pane" data-flag="v-collapse" data-group="tab-widget-quantum" {% if forms.active is defined and forms.active == true %}data-state="visible"{% endif %}>
    {% if widget.id and widget.widgetMap.view != view %}
        {% embed "VictoireUIBundle:Bricks:alert.html.twig" with { theme: "warning" } %}
            {% block body %}
                {{ 'victoire.widget.inherited.notice'|trans({'%templateName%': widget.widgetMap.view.name, '%templateEditLink%': path('victoire_core_widget_edit', {'id': widget.id, 'viewReference': widget.widgetMap.view.reference.id })}, 'victoire')|raw }}
            {% endblock body %}
        {% endembed %}
    {% endif %}

    {% if classes|length %}
        <div class="v-tabs-nav v-tabs-nav--widget-modal">
            <div class="v-tabs-nav__item">
                <a class="v-tabs-nav__anchor {% if constant('MODE_STATIC', widget) == widget.mode %}v-tabs-nav__anchor--active{% endif %}" data-collapse="show" data-href="#picker-static-{{ quantum }}" data-activeclass="v-tabs-nav__anchor--active">
                    {{ ('form.widget.tab.manual.label')|trans({}, 'victoire') }}
                </a>
            </div>

            <div class="v-tabs-nav__item">
                <a class="v-tabs-nav__anchor" data-flag="v-drop" data-position="bottomout center" data-droptarget="#picker-entities-{{ quantum }}">
                    {{ ('form.widget.tab.entities.label')|trans({}, 'victoire') }}

                    <svg style="margin-left: 0.4em;" xmlns="http://www.w3.org/2000/svg" width="8" height="6" viewBox="65 6 8 6">
                        <path fill="currentColor" fill-rule="evenodd" d="M65.94 7L69 10.0904 72.06 7l.94.9514L69 12l-4-4.0486"/>
                    </svg>
                </a>

                {% if classes|length %}
                    <div class="v-drop" id="picker-entities-{{ quantum }}">
                        <nav class="v-drop__menu">
                            {% for businessEntity in classes %}
                                {% set label = businessEntity.type == constant('TYPE', businessEntity) ? businessEntity.name : ('form.widget.tab.' ~ businessEntity.name|lower ~ '.label')|trans({}, 'victoire') %}
                                {% if businessEntity.disable %}
                                    <span class="v-drop__anchor v-drop__anchor--disabled" title="{{ ('form.widget.tab.entity.disable.label')|trans({}, 'victoire') }}">
                                        {{ label }}
                                    </span>
                                {% else %}
                                    <a class="v-drop__anchor {% if widget.entityProxy.businessEntity is defined and businessEntity.name == widget.entityProxy.businessEntity.name|lower %} v-drop__anchor--active{% endif %}" data-href="#picker-{{ businessEntity.name|lower }}-{{ quantum }}" data-collapse="show" data-activeclass="v-drop__anchor--active">
                                        {{ label }}
                                    </a>
                                {% endif %}
                            {% endfor %}
                        </nav>
                    </div>
                {% endif %}
            </div>
        </div>
    {% endif %}

    {% for class, form in forms %}
        {% set isActive = (class == widget.mode) or (widget.entityProxy.businessEntity is defined and widget.entityProxy.businessEntity.name == class|lower) or (widget.mode == constant('MODE_STATIC', widget) and class == constant('MODE_ENTITY', widget)) %}

        <div class="v-collapse" id="picker-{{ class|lower }}-{{ quantum }}" data-group="picker-{{ quantum }}" data-flag="v-collapse"{% if isActive %} data-state="visible"{% endif %}>
            <div class="v-widget-form">
                {% if class != constant('MODE_STATIC', widget) and is_granted('ROLE_VICTOIRE_DEVELOPER') %}
                    <a class="v-btn v-btn--info / v-mode-trigger / v-widget-form__mode-btn"
                       data-flag="v-drop v-mode-drop"
                       data-droptarget="#picker-modes-{{ class|lower }}-{{ quantum }}"
                    >
                        <span class="v-mode-trigger__placeholder-label">
                            {{ ('form.widget.tab.mode.label')|trans({}, 'victoire') }}
                        </span>

                        <span class="v-mode-trigger__entity-label">
                            {{ ('form.widget.tab.mode_picker.label')|trans({}, 'victoire') }}
                        </span>

                        <span class="v-mode-trigger__query-label">
                            {{ ('form.widget.tab.mode_query.label')|trans({}, 'victoire') }}
                        </span>

                        {% if is_business_entity_allowed(class|lower, view) %}
                            <span class="v-mode-trigger__businessEntity-label">
                                {{ ('form.widget.tab.mode_entity_instance.label')|trans({}, 'victoire') }}
                            </span>
                        {% endif %}<commit_msg>do not lowercase BE name<commit_after><div class="v-collapse" id="widget-{{ id }}-tab-pane" data-flag="v-collapse" data-group="tab-widget-quantum" {% if forms.active is defined and forms.active == true %}data-state="visible"{% endif %}>
    {% if widget.id and widget.widgetMap.view != view %}
        {% embed "VictoireUIBundle:Bricks:alert.html.twig" with { theme: "warning" } %}
            {% block body %}
                {{ 'victoire.widget.inherited.notice'|trans({'%templateName%': widget.widgetMap.view.name, '%templateEditLink%': path('victoire_core_widget_edit', {'id': widget.id, 'viewReference': widget.widgetMap.view.reference.id })}, 'victoire')|raw }}
            {% endblock body %}
        {% endembed %}
    {% endif %}

    {% if classes|length %}
        <div class="v-tabs-nav v-tabs-nav--widget-modal">
            <div class="v-tabs-nav__item">
                <a class="v-tabs-nav__anchor {% if constant('MODE_STATIC', widget) == widget.mode %}v-tabs-nav__anchor--active{% endif %}" data-collapse="show" data-href="#picker-static-{{ quantum }}" data-activeclass="v-tabs-nav__anchor--active">
                    {{ ('form.widget.tab.manual.label')|trans({}, 'victoire') }}
                </a>
            </div>

            <div class="v-tabs-nav__item">
                <a class="v-tabs-nav__anchor" data-flag="v-drop" data-position="bottomout center" data-droptarget="#picker-entities-{{ quantum }}">
                    {{ ('form.widget.tab.entities.label')|trans({}, 'victoire') }}

                    <svg style="margin-left: 0.4em;" xmlns="http://www.w3.org/2000/svg" width="8" height="6" viewBox="65 6 8 6">
                        <path fill="currentColor" fill-rule="evenodd" d="M65.94 7L69 10.0904 72.06 7l.94.9514L69 12l-4-4.0486"/>
                    </svg>
                </a>

                {% if classes|length %}
                    <div class="v-drop" id="picker-entities-{{ quantum }}">
                        <nav class="v-drop__menu">
                            {% for businessEntity in classes %}
                                {% set label = businessEntity.type == constant('Victoire\\Bundle\\APIBusinessEntityBundle\\Entity\\APIBusinessEntity::TYPE') ? businessEntity.name : ('form.widget.tab.' ~ businessEntity.name|lower ~ '.label')|trans({}, 'victoire') %}
                                {% if businessEntity.disable %}
                                    <span class="v-drop__anchor v-drop__anchor--disabled" title="{{ ('form.widget.tab.entity.disable.label')|trans({}, 'victoire') }}">
                                        {{ label }}
                                    </span>
                                {% else %}
                                    <a class="v-drop__anchor {% if widget.entityProxy.businessEntity is defined and businessEntity.name == widget.entityProxy.businessEntity.name|lower %} v-drop__anchor--active{% endif %}" data-href="#picker-{{ businessEntity.name|lower }}-{{ quantum }}" data-collapse="show" data-activeclass="v-drop__anchor--active">
                                        {{ label }}
                                    </a>
                                {% endif %}
                            {% endfor %}
                        </nav>
                    </div>
                {% endif %}
            </div>
        </div>
    {% endif %}

    {% for class, form in forms %}
        {% set isActive = (class == widget.mode) or (widget.entityProxy.businessEntity is defined and widget.entityProxy.businessEntity.name == class) or (widget.mode == constant('MODE_STATIC', widget) and class == constant('MODE_ENTITY', widget)) %}

        <div class="v-collapse" id="picker-{{ class|lower }}-{{ quantum }}" data-group="picker-{{ quantum }}" data-flag="v-collapse"{% if isActive %} data-state="visible"{% endif %}>
            <div class="v-widget-form">
                {% if class != constant('MODE_STATIC', widget) and is_granted('ROLE_VICTOIRE_DEVELOPER') %}
                    <a class="v-btn v-btn--info / v-mode-trigger / v-widget-form__mode-btn"
                       data-flag="v-drop v-mode-drop"
                       data-droptarget="#picker-modes-{{ class|lower }}-{{ quantum }}"
                    >
                        <span class="v-mode-trigger__placeholder-label">
                            {{ ('form.widget.tab.mode.label')|trans({}, 'victoire') }}
                        </span>

                        <span class="v-mode-trigger__entity-label">
                            {{ ('form.widget.tab.mode_picker.label')|trans({}, 'victoire') }}
                        </span>

                        <span class="v-mode-trigger__query-label">
                            {{ ('form.widget.tab.mode_query.label')|trans({}, 'victoire') }}
                        </span>

                        {% if is_business_entity_allowed(class|lower, view) %}
                            <span class="v-mode-trigger__businessEntity-label">
                                {{ ('form.widget.tab.mode_entity_instance.label')|trans({}, 'victoire') }}
                            </span>
                        {% endif %}
{'fraction_non_alphanumeric': 0.16453346360527601, 'fraction_numerical': 0.009379579872984855, 'mean_word_length': 1.7136797454931072, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4264506', 'n_tokens_mistral': 3016, 'n_tokens_neox': 2705, 'n_words': 469}