<commit_before>{# Macro that handles building sub navigation #}
{% macro menu_sub_items(items) %}
    <ul class="Dropdown-menu">
        {% for item in items %}
            {% if item.parent %}
                {% if item.link.href != item.parent.link.href %}
                    {# Duplicate the navigation item for the mobile menu #}
                    {% set item.parent.link.class = "Dropdown-link" %}
                    <li class="Dropdown-item Dropdown-item--smallScreen">{{ item.parent.link.tag }}</li>
                {% endif %}
            {% endif %}
            {# ASSIGN SUB MENU ITEM CLASS #}
            {% set class = "Dropdown-item " ~ item.link.class %}
            <li class="{{ class|trim }}">
                {# ASSIGN SUB MENU LINK CLASS #}
                {% set item.link.class = item.link.class ~ " Dropdown-link" %}
                {% if item.subItems %}
                    {% set item.link.class = item.link.class ~ " Dropdown-link--parent js-dropdown" %}
                {% endif %}
                {{ item.link.tag }}

                {% if item.subItems %}
                    {# Set the item as the first sub item's parent to be used to optionaly duplicate it as the first item in the dropdown #}
                    {% set item.subItems.0.parent = item %}
                    {{ macros.menu_sub_items(item.subItems) }}
                {% endif %}
            </li>
        {% endfor %}
    </ul>
{% endmacro %}<commit_msg>Updated the navigation menu to properly have the import statement for the macro<commit_after>{# Macro that handles building sub navigation #}
{% macro menu_sub_items(items) %}
    <ul class="Dropdown-menu">
        {% for item in items %}
            {% if item.parent %}
                {% if item.link.href != item.parent.link.href %}
                    {# Duplicate the navigation item for the mobile menu #}
                    {% set item.parent.link.class = "Dropdown-link" %}
                    <li class="Dropdown-item Dropdown-item--smallScreen">{{ item.parent.link.tag }}</li>
                {% endif %}
            {% endif %}
            {# ASSIGN SUB MENU ITEM CLASS #}
            {% set class = "Dropdown-item " ~ item.link.class %}
            <li class="{{ class|trim }}">
                {# ASSIGN SUB MENU LINK CLASS #}
                {% set item.link.class = item.link.class ~ " Dropdown-link" %}
                {% if item.subItems %}
                    {% set item.link.class = item.link.class ~ " Dropdown-link--parent js-dropdown" %}
                {% endif %}
                {{ item.link.tag }}

                {% if item.subItems %}
                    {# Set the item as the first sub item's parent to be used to optionaly duplicate it as the first item in the dropdown #}
                    {% set item.subItems.0.parent = item %}
                    {% import _self as macros %}
                    {{ macros.menu_sub_items(item.subItems) }}
                {% endif %}
            </li>
        {% endfor %}
    </ul>
{% endmacro %}
{'fraction_non_alphanumeric': 0.13214403700033037, 'fraction_numerical': 0.0006607201850016518, 'mean_word_length': 1.4921810699588478, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6487748', 'n_tokens_mistral': 912, 'n_tokens_neox': 783, 'n_words': 220}