<commit_before>{% load i18n %}
{% load active_link %}
{% if request.user %}
    {% url 'profile_detail' request.user as profile_url %}
    {% url 'profile_update' request.user.username as profile_update_url %}
{% endif %}

{% url 'search_list' as search_url %}

<div class="container visible-xs mobile-nav-wrapper">
    <nav class="navbar navbar-default" role="navigation">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex6-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <h1 class="branding-medium inline-block"><a href="{% url 'home' %}">1hora</a></h1>
        </div> <!-- .navbar-header -->
        <div class="collapse navbar-collapse navbar-ex6-collapse">
            <ul class="nav navbar-nav">
                <li><a href="{{ search_url }}">{% trans "Mentores" %}</a></li>
                <li><a href="{{ profile_url }}">{% trans "Tus Horas" %}</a></li>
                <li class="divider"></li>
                <li><a href="{{ profile_update_url }}"><span class="glyphicon glyphicon-cog"></span> {% trans "Configuración" %}</a></li>
                <li><a href="{% url 'account_logout' %}"><span class="glyphicon glyphicon-log-out"></span> {% trans "Logout" %}</a></li>
            </ul>
        </div><!-- .navbar-collapse -->
    </nav> <!-- .navbar-default -->
</div> <!-- .mobile-nav-wrapper -->

<header class="container header hidden-xs">
    <div class="row">
        <div class="col-xs-10 header-branding">
            <h1 class="branding-medium inline-block"><a href="{% url 'home' %}">1hora</a></h1>
            <ul class="list-inline inline-block header-menu-list">
                <li><a href="{{ search_url }}" class="header-menu-link {% active_link request search_url %}">{% trans "Mentores" %}</a></li>
                <li><a href="{{ profile_url }}" class="header-menu-link {% active_link request profile_url%}">{% trans "Tus Horas" %}</a></li>
            </ul>
        </div> <!-- /.header-branding -->

        <div class="col-xs-2 header-user-menu">
            <div class="btn-group pull-right">
              <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                <img src="{{ request.user.gravatar_url }}?s=20" alt="{{ request.user.get_full_name }}" title="{{ request.user.get_full_name }}"> {{ request.user.get_full_name }} <span class="caret"></span>
              </button>
              <ul class="dropdown-menu" role="menu">
                <li><a href="{{ profile_update_url }}"><span class="glyphicon glyphicon-cog"></span> {% trans "Configuración" %}</a></li>
                <li class="divider"></li>
                <li><a href="{% url 'account_logout' %}"><span class="glyphicon glyphicon-log-out"></span> {% trans "Logout" %}</a></li>
              </ul>
            </div>
        </div> <!-- /.header-user-menu -->
    </div>
</header><commit_msg>Show a Login CTA in header when logged out<commit_after>{% load i18n %}
{% load active_link %}
{% if request.user.is_authenticated %}
    {% url 'profile_detail' request.user as profile_url %}
    {% url 'profile_update' request.user.username as profile_update_url %}
{% endif %}

{% url 'search_list' as search_url %}

<div class="container visible-xs mobile-nav-wrapper">
    <nav class="navbar navbar-default" role="navigation">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex6-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <h1 class="branding-medium inline-block"><a href="{% url 'home' %}">1hora</a></h1>
        </div> <!-- .navbar-header -->
        <div class="collapse navbar-collapse navbar-ex6-collapse">
            <ul class="nav navbar-nav">
                <li><a href="{{ search_url }}">{% trans "Mentores" %}</a></li>
                <li><a href="{{ profile_url }}">{% trans "Tus Horas" %}</a></li>
                <li class="divider"></li>
                {% if request.user.is_authenticated %}
                    <li><a href="{{ profile_update_url }}"><span class="glyphicon glyphicon-cog"></span> {% trans "Configuración" %}</a></li>
                    <li><a href="{% url 'account_logout' %}"><span class="glyphicon glyphicon-log-out"></span> {% trans "Logout" %}</a></li>
                {% else %}
                    <li><a href="{% url 'account_login' %}"><span class="glyphicon glyphicon-log-in"></span> {% trans "Login" %}</a></li>
                {% endif %}
            </ul>
        </div><!-- .navbar-collapse -->
    </nav> <!-- .navbar-default -->
</div> <!-- .mobile-nav-wrapper -->

<header class="container header hidden-xs">
    <div class="row">
        <div class="col-xs-10 header-branding">
            <h1 class="branding-medium inline-block"><a href="{% url 'home' %}">1hora</a></h1>
            <ul class="list-inline inline-block header-menu-list">
                <li><a href="{{ search_url }}" class="header-menu-link {% active_link request search_url %}">{% trans "Mentores" %}</a></li>
                <li><a href="{{ profile_url }}" class="header-menu-link {% active_link request profile_url%}">{% trans "Tus Horas" %}</a></li>
            </ul>
        </div> <!-- /.header-branding -->

        <div class="col-xs-2 header-user-menu">
            {% if request.user.is_authenticated %}
                <div class="btn-group pull-right">
                  <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                    <img src="{{ request.user.gravatar_url }}?s=20" alt="{{ request.user.get_full_name }}" title="{{ request.user.get_full_name }}"> {{ request.user.get_full_name }} <span class="caret"></span>
                  </button>
                  <ul class="dropdown-menu" role="menu">
                    <li><a href="{{ profile_update_url }}"><span class="glyphicon glyphicon-cog"></span> {% trans "Configuración" %}</a></li>
                    <li class="divider"></li>
                    <li><a href="{% url 'account_logout' %}"><span class="glyphicon glyphicon-log-out"></span> {% trans "Logout" %}</a></li>
                  </ul>
                </div>
            {% else %}
                <div class="btn-group pull-right">
                    <a href="{% url 'account_login' %}" class="btn btn-default"><span class="glyphicon glyphicon-log-in"></span> {% trans "Login" %}</a>
                </div>
            {% endif %}
        </div> <!-- /.header-user-menu -->
    </div>
</header>
{'fraction_non_alphanumeric': 0.20223447885730447, 'fraction_numerical': 0.004242681374628765, 'mean_word_length': 2.3405762871988665, 'pattern_counts': {'":': 0, '<': 211, '<?xml version=': 0, '>': 211, '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': '1854139', 'n_tokens_mistral': 2244, 'n_tokens_neox': 2064, 'n_words': 462}