<commit_before>{% load i18n pages_tags page_view_tags %}
{% spaceless %}
{% if page_branch_in_navigation %}

{% if branch_level == 0 %}
<ul class="nav pull-right">
    {% for page in page_branch %}
    {% if page.is_primary and forloop.first %}
    <li class="{% if on_home %} active{% endif %}"id="dropdown-menu-{{ page.html_id }}">
        <a href="{% url home %}">{% trans "Home" %}</a>
    </li>
    <li class="divider-vertical"></li>
    {% endif %}
    {% if page.in_navigation and user|can_access_link:page %}
    <li class="dropdown{% if page.is_current_or_ascendant %} active{% endif %}"
        id="dropdown-menu-{{ page.html_id }}">
        <a href="{{ page.get_absolute_url }}">
            {{ page.title }}
            {% if page.has_children %}<span class="caret"></span>{% endif %}
        </a>
        {% if page.has_children %}{% page_menu page %}{% endif %}
    </li>
    <li class="divider-vertical"></li>
    {% endif %}
    {% endfor %}
</ul>
{% endif %}

{% if branch_level == 1 %}
<ul class="dropdown-menu">
    {% for page in page_branch %}
    {% if page.in_navigation and user|can_access_link:page %}
    <li{% if page.is_current_or_ascendant %} class="active"{% endif %}
        id="dropdown-menu-{{ page.html_id }}">
        <a href="{{ page.get_absolute_url }}">{{ page.title }}</a>
    </li><commit_msg>No need to check level 1 in_navigation<commit_after>{% load i18n pages_tags page_view_tags %}
{% spaceless %}
{% if page_branch_in_navigation %}

{% if branch_level == 0 %}
<ul class="nav pull-right">
    {% for page in page_branch %}
    {% if page.is_primary and forloop.first %}
    <li class="{% if on_home %} active{% endif %}"id="dropdown-menu-{{ page.html_id }}">
        <a href="{% url home %}">{% trans "Home" %}</a>
    </li>
    <li class="divider-vertical"></li>
    {% endif %}
    {% if page.in_navigation and user|can_access_link:page %}
    <li class="dropdown{% if page.is_current_or_ascendant %} active{% endif %}"
        id="dropdown-menu-{{ page.html_id }}">
        <a href="{{ page.get_absolute_url }}">
            {{ page.title }}
            {% if page.has_children %}<span class="caret"></span>{% endif %}
        </a>
        {% if page.has_children %}{% page_menu page %}{% endif %}
    </li>
    <li class="divider-vertical"></li>
    {% endif %}
    {% endfor %}
</ul>
{% endif %}

{% if branch_level == 1 %}
<ul class="dropdown-menu">
    {% for page in page_branch %}
    {% if user|can_access_link:page %}
    <li{% if page.is_current_or_ascendant %} class="active"{% endif %}
        id="dropdown-menu-{{ page.html_id }}">
        <a href="{{ page.get_absolute_url }}">{{ page.title }}</a>
    </li>
{'fraction_non_alphanumeric': 0.20052473763118442, 'fraction_numerical': 0.003373313343328336, 'mean_word_length': 3.0317220543806647, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '4551052', 'n_tokens_mistral': 1001, 'n_tokens_neox': 885, 'n_words': 205}