<commit_before>{% load i18n %}
<header class="site-header">
  <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{% url 'home' %}">{% trans 'What The Library?' %}</a>
      </div>
      <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          <li class="dropdown{% if active_menu == 'libraries' %} active{% endif %}">
            <a class="dropdown-toggle" data-toggle="dropdown" href="{% url 'wtlib_libraries_list' %}">{% trans 'Libraries' %} <b class="caret"></b></a>
            <ul class="dropdown-menu">
            {% for lang in languages %}
              <li{% if active_language == lang.slug %} class="active"{% endif %}>
                <a href="{{ lang.get_absolute_url }}" style="color: {{ lang.color }}">{{ lang.name }}</a>
              </li>
            {% endfor %}
            </ul>
          </li>
          <li class="dropdown{% if active_menu == 'projects' %} active{% endif %}">
            <a class="dropdown-toggle" data-toggle="dropdown" href="{% url 'wtlib_projects_list' %}">{% trans 'Projects' %} <b class="caret"></b></a>
            <ul class="dropdown-menu">
            {% for lang in languages %}
              <li{% if active_language == lang.slug %} class="active"{% endif %}>
                <a href="{% url 'wtlib_projects_list' language_slug=lang.slug %}" style="color: {{ lang.color }}">{{ lang.name }}</a>
              </li>
            {% endfor %}
            </ul>
          </li>
        </ul>
      </div>
    </div>
  </div>
</header>
<commit_msg>Fix highlight in both libraries and projects submenus<commit_after>{% load i18n %}
<header class="site-header">
  <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="{% url 'home' %}">{% trans 'What The Library?' %}</a>
      </div>
      <div class="navbar-collapse collapse">
        <ul class="nav navbar-nav">
          <li class="dropdown{% if active_menu == 'libraries' %} active{% endif %}">
            <a class="dropdown-toggle" data-toggle="dropdown" href="{% url 'wtlib_libraries_list' %}">{% trans 'Libraries' %} <b class="caret"></b></a>
            <ul class="dropdown-menu">
            {% for lang in languages %}
              <li{% if active_menu == 'libraries' and active_language == lang.slug %} class="active"{% endif %}>
                <a href="{{ lang.get_absolute_url }}" style="color: {{ lang.color }}">{{ lang.name }}</a>
              </li>
            {% endfor %}
            </ul>
          </li>
          <li class="dropdown{% if active_menu == 'projects' %} active{% endif %}">
            <a class="dropdown-toggle" data-toggle="dropdown" href="{% url 'wtlib_projects_list' %}">{% trans 'Projects' %} <b class="caret"></b></a>
            <ul class="dropdown-menu">
            {% for lang in languages %}
              <li{% if active_menu == 'projects' and active_language == lang.slug %} class="active"{% endif %}>
                <a href="{% url 'wtlib_projects_list' language_slug=lang.slug %}" style="color: {{ lang.color }}">{{ lang.name }}</a>
              </li>
            {% endfor %}
            </ul>
          </li>
        </ul>
      </div>
    </div>
  </div>
</header>

{'fraction_non_alphanumeric': 0.19828259172521467, 'fraction_numerical': 0.0010408534998698933, 'mean_word_length': 2.3368055555555554, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, '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': '884553', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1136, 'n_words': 271}