<commit_before>{#
/**
 * @file
 * Theme override to display a menu.
 *
 * Available variables:
 * - menu_name: The machine name of the menu.
 * - items: A nested list of menu items. Each menu item contains:
 *   - attributes: HTML attributes for the menu item.
 *   - below: The menu item child items.
 *   - title: The menu link title.
 *   - url: The menu link url, instance of \Drupal\Core\Url
 *   - localized_options: Menu link localized options.
 */
#}
{% import _self as menus %}

{#
  We call a macro which calls itself to render the full tree.
  @see http://twig.sensiolabs.org/doc/tags/macro.html
#}
{{ menus.menu_links(items, attributes, 0) }}

{% macro menu_links(items, attributes, menu_level) %}
  {% import _self as menus %}
<div id="main-navbar-collapse" class="collapse navbar-collapse">

  {% if items %}
    {% if menu_level == 0 %}
      <ul class="menu nav navbar-nav">
    {% else %}
      <ul class="menu">
    {% endif %}
      {% for item in items %}
        <li{{ item.attributes }}>
          {% if item.url.options['fragment'] %} 
            {% if item.url.options['fragment']|striptags == 'join' %}
                <a href="{{ item.url }}" data-target="#{{ item.url.options['fragment'] }}" class="call-to-action">{{ item.title }} </a>
            {% else %}
                <a href="{{ item.url }}" data-target="#{{ item.url.options['fragment'] }}">{{ item.title }} </a>
            {% endif %}
          
          {% else %}<commit_msg>More fixes for navbar<commit_after>{#
/**
 * @file
 * Theme override to display a menu.
 *
 * Available variables:
 * - menu_name: The machine name of the menu.
 * - items: A nested list of menu items. Each menu item contains:
 *   - attributes: HTML attributes for the menu item.
 *   - below: The menu item child items.
 *   - title: The menu link title.
 *   - url: The menu link url, instance of \Drupal\Core\Url
 *   - localized_options: Menu link localized options.
 */
#}
{% import _self as menus %}

{#
  We call a macro which calls itself to render the full tree.
  @see http://twig.sensiolabs.org/doc/tags/macro.html
#}
{{ menus.menu_links(items, attributes, 0) }}

{% macro menu_links(items, attributes, menu_level) %}
  {% import _self as menus %}
<div id="main-navbar-collapse" class="collapse navbar-collapse">

  {% if items %}
    {% if menu_level == 0 %}
      <ul class="menu nav navbar-nav">
    {% else %}
      <ul class="menu">
    {% endif %}
      {% for item in items %}
        <li{{ item.attributes }}>
          {% if item.url.options['fragment'] %} 
            {% if item.url.options['fragment']|striptags == 'joinourteam' %}
                <a href="{{ item.url }}" data-target="#{{ item.url.options['fragment'] }}" class="call-to-action">{{ item.title }} </a>
            {% else %}
                <a href="{{ item.url }}" data-target="#{{ item.url.options['fragment'] }}">{{ item.title }} </a>
            {% endif %}
          
          {% else %}
{'fraction_non_alphanumeric': 0.16943409013893596, 'fraction_numerical': 0.0013554727211114877, 'mean_word_length': 2.5311004784688995, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4115857', 'n_tokens_mistral': 974, 'n_tokens_neox': 886, 'n_words': 271}