<commit_before>{% import '@pulsar/pulsar/v2/helpers/html.html.twig' as html %}
{% import '@pulsar/pulsar/v2/helpers/form.html.twig' as form %}
{% import '@pulsar/pulsar/v2/helpers/util.html.twig' as util %}
{% import '@pulsar/pulsar/v2/helpers/elem.html.twig' as elem %}
{% import '@pulsar/pulsar/v2/helpers/flash.html.twig' as flash %}
{% import '@pulsar/pulsar/v2/helpers/datagrid.html.twig' as datagrid %}

{% set _hasSettings = false %}
{% set _hasSidebar = false %}

{% if block('tab_settings') is defined %}
    {% set _settings = block('tab_settings') %}
    {% if _settings is not empty %}
        {% set _hasSettings = true %}
    {% endif %}
{% endif %}


{% if block('tab_sidebar') is defined %}
    {% set _sidebar = block('tab_sidebar') %}
    {% if _sidebar is not empty %}
        {% set _hasSidebar = true %}
    {% endif %}
{% endif %}


{% if block('tab_js') is defined %}
    {% set _tab_javascript = block('tab_js') %}
    {% if _tab_javascript is not empty %}
        {% block tab_javascript %}
            {{ _tab_javascript }}
        {% endblock %}
    {% endif %}
{% endif %}

{% set _actions_left = null %}
{% set _actions_right = null %}
{% if block('actions_left') is defined %}
    {% set _actions_left = block('actions_left') %}
{% endif %}
{% if block('actions_right') is defined %}
    {% set _actions_right = block('actions_right') %}
{% endif %}
<div class="tab__container{% if _hasSettings == true %} has-settings{% endif %}{% if _hasSidebar == true %} has-sidebar{% endif %}">

    {% if _actions_left is not empty or _actions_right is not empty %}
    <section class="actionsbar" aria-label="page actions">
        {% if _actions_left is not empty %}
        <div class="float--left">
            {{ _actions_left|raw }}
        </div>
        {% endif %}
        {% if _actions_right is not empty %}
        <div class="float--right">
            {{ _actions_right|raw }}
        </div>
        {% endif %}
    </section>
    {% endif %}

    <div class="tab__inner">
        {% if _hasSidebar == true %}
        <aside class="tab__sidebar" aria-label="additional information">
            {{ _sidebar|raw }}
        </aside>
        {% endif %}
        {% if _hasSettings == true %}
        <section class="tab__settings" aria-label="settings">
            {{ _settings|raw }}
        </section>
        {% endif %}
        <main class="tab__content" id="skip-target">
            {% block tab_content %}{% endblock %}
        </main>
    </div>
</div><commit_msg>Move sidebar after main to fix focus management<commit_after>{% import '@pulsar/pulsar/v2/helpers/html.html.twig' as html %}
{% import '@pulsar/pulsar/v2/helpers/form.html.twig' as form %}
{% import '@pulsar/pulsar/v2/helpers/util.html.twig' as util %}
{% import '@pulsar/pulsar/v2/helpers/elem.html.twig' as elem %}
{% import '@pulsar/pulsar/v2/helpers/flash.html.twig' as flash %}
{% import '@pulsar/pulsar/v2/helpers/datagrid.html.twig' as datagrid %}

{% set _hasSettings = false %}
{% set _hasSidebar = false %}

{% if block('tab_settings') is defined %}
    {% set _settings = block('tab_settings') %}
    {% if _settings is not empty %}
        {% set _hasSettings = true %}
    {% endif %}
{% endif %}


{% if block('tab_sidebar') is defined %}
    {% set _sidebar = block('tab_sidebar') %}
    {% if _sidebar is not empty %}
        {% set _hasSidebar = true %}
    {% endif %}
{% endif %}


{% if block('tab_js') is defined %}
    {% set _tab_javascript = block('tab_js') %}
    {% if _tab_javascript is not empty %}
        {% block tab_javascript %}
            {{ _tab_javascript }}
        {% endblock %}
    {% endif %}
{% endif %}

{% set _actions_left = null %}
{% set _actions_right = null %}
{% if block('actions_left') is defined %}
    {% set _actions_left = block('actions_left') %}
{% endif %}
{% if block('actions_right') is defined %}
    {% set _actions_right = block('actions_right') %}
{% endif %}
<div class="tab__container{% if _hasSettings == true %} has-settings{% endif %}{% if _hasSidebar == true %} has-sidebar{% endif %}">

    {% if _actions_left is not empty or _actions_right is not empty %}
    <section class="actionsbar" aria-label="page actions">
        {% if _actions_left is not empty %}
        <div class="float--left">
            {{ _actions_left|raw }}
        </div>
        {% endif %}
        {% if _actions_right is not empty %}
        <div class="float--right">
            {{ _actions_right|raw }}
        </div>
        {% endif %}
    </section>
    {% endif %}

    <div class="tab__inner">
        {% if _hasSettings == true %}
        <section class="tab__settings" aria-label="settings">
            {{ _settings|raw }}
        </section>
        {% endif %}
        <main class="tab__content" id="skip-target">
            {% block tab_content %}{% endblock %}
        </main>
        {% if _hasSidebar == true %}
        <aside class="tab__sidebar" aria-label="additional information">
            {{ _sidebar|raw }}
        </aside>
        {% endif %}
    </div>
</div>
{'fraction_non_alphanumeric': 0.17063492063492064, 'fraction_numerical': 0.002380952380952381, 'mean_word_length': 2.674198250728863, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '2633519', 'n_tokens_mistral': 1796, 'n_tokens_neox': 1568, 'n_words': 372}