<commit_before>{% block navbar %}
{% load i18n %}

<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="brand" href="{{ ROOT_URL }}">{{ SITE_NAME }}</a>
      <div class="nav-collapse collapse">
        <ul class="nav">
          <li {% if view == "question_list" %} class="active" {% endif %} ><a href="{% url qanda_app.views.index %}">{% trans "Home" %}</a></li>
          <li {% if view == "last_question_page" %} class="active" {% endif %} ><a href="{% url qanda_app.views.most_recent_question %}">{% blocktrans %}Last Question{% endblocktrans %}</a></li>
          <li {% if view == "tag_list" %} class="active" {% endif %} ><a href="{% url qanda_app.views.tag_list page="0" %}">{% trans "Tags" %}</a></li>
          <li {% if view == "category_list" %} class="active" {% endif %} ><a href="{% url qanda_app.views.category_list page="0" %}">{% trans "Categories" %}</a></li>
          <li {% if view == "new_question_page" %} class="active" {% endif %} ><a href="{% url qanda_app.views.new_question_page %}">{% trans "New Question" %}</a></li>
          {% if request.user.is_authenticated %}
          <li {% if view == "profile" %} class="active" {% endif %} ><a href="{% url qanda_app.views.profile_page user_id=request.user.QandaUser.pk %}">{% trans "Profile" %}</a></li>
          {% else %}
          <li {% if view == "login" %} class="active" {% endif %} ><a href="{{ LOGIN_URL }}">{% trans "Login" %}</a></li>
          {% endif %}
        </ul>

        <!-- Search Form -->
        <form class="navbar-search pull-right" action="/search/" method="GET">
          <div class="controls">
          <div class="input-prepend">
          <span class="add-on">
            <i class="icon-search"></i>
            
            <input type="text" name="{{ search_form.q.name }}" id="id_q" class="search-query" placeholder="{% trans 'Search' %}"></input>
          </span>
        </div>
      </div>
        </form>
      </div><!--/.nav-collapse --><commit_msg>add logout link to navbar<commit_after>{% block navbar %}
{% load i18n %}

<div class="navbar navbar-fixed-top">
  <div class="navbar-inner">
    <div class="container">
      <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="brand" href="{{ ROOT_URL }}">{{ SITE_NAME }}</a>
      <div class="nav-collapse collapse">
        <ul class="nav">
          <li {% if view == "question_list" %} class="active" {% endif %} ><a href="{% url qanda_app.views.index %}">{% trans "Home" %}</a></li>
          <li {% if view == "last_question_page" %} class="active" {% endif %} ><a href="{% url qanda_app.views.most_recent_question %}">{% blocktrans %}Last Question{% endblocktrans %}</a></li>
          <li {% if view == "tag_list" %} class="active" {% endif %} ><a href="{% url qanda_app.views.tag_list page="0" %}">{% trans "Tags" %}</a></li>
          <li {% if view == "category_list" %} class="active" {% endif %} ><a href="{% url qanda_app.views.category_list page="0" %}">{% trans "Categories" %}</a></li>
          <li {% if view == "new_question_page" %} class="active" {% endif %} ><a href="{% url qanda_app.views.new_question_page %}">{% trans "New Question" %}</a></li>
          {% if request.user.is_authenticated %}
          <li {% if view == "profile" %} class="active" {% endif %} ><a href="{% url qanda_app.views.profile_page user_id=request.user.QandaUser.pk %}">{% trans "Profile" %}</a></li>
          <li {% if view == "logout" %} class="active" {% endif %} ><a href="{{ LOGOUT_URL }}">{% trans "Logout" %}</a></li>
          {% else %}
          <li {% if view == "login" %} class="active" {% endif %} ><a href="{{ LOGIN_URL }}">{% trans "Login" %}</a></li>
          {% endif %}
        </ul>

        <!-- Search Form -->
        <form class="navbar-search pull-right" action="/search/" method="GET">
          <div class="controls">
          <div class="input-prepend">
          <span class="add-on">
            <i class="icon-search"></i>
            
            <input type="text" name="{{ search_form.q.name }}" id="id_q" class="search-query" placeholder="{% trans 'Search' %}"></input>
          </span>
        </div>
      </div>
        </form>
      </div><!--/.nav-collapse -->
{'fraction_non_alphanumeric': 0.23141204199700022, 'fraction_numerical': 0.0017141632740518534, 'mean_word_length': 2.829368334700574, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, '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': '5703953', 'n_tokens_mistral': 1642, 'n_tokens_neox': 1479, 'n_words': 350}