<commit_before>{% load i18n %}
{% load socialaccount %}
{% load in_group %}
{% load static %}


<nav id="main-navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">

        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar-collapse">
                <span class="sr-only">{% trans 'Toggle navigation' %}</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" id="site-brand" href="/"><img src="{% static 'img/logo.png' %}" class="img-responsive site-logo"></a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="main-navbar-collapse">
            <ul class="nav navbar-nav" id="site-nav">
                <li><a href="#" data-toggle="modal" data-target="#modal-about">{% trans 'About' %}</a></li>
                <li><a href="#" data-toggle="modal" data-target="#modal-contact">{% trans 'Contact' %}</a></li>
                <li><a href="{% url 'courses' %}">{% trans 'Courses' %}</a></li>
                <li class="navbar-divider"></li>
            </ul>
            <ul class="nav navbar-nav" id="session-nav">
            {% if user.is_authenticated %}
                {% if user.is_superuser %}
                <li>
                    <a class="dropdown-toggle {% if in_admin %}active{% endif %}" data-toggle="dropdown" href="#">
                        {% trans 'Admin' %}
                        <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'administration.home' %}">{% trans 'Home edit' %}</a></li>
                        <li><a href="{% url 'administration.courses' %}" id="admin-link">{% trans 'Courses' %}</a></li>
                        <li><a href="{% url 'administration.users' %}">{% trans 'Users' %}</a></li>
                    </ul>
                </li>
                {% elif user|in_group:'professors' %}
                    <li {% if in_admin %}class="active"{% endif %}><a href="{% url 'administration.courses' %}" id="admin-link">{% trans "Admin" %}</a></li>
                {% endif %}
                <li>
                    <a class="username dropdown-toggle" data-toggle="dropdown" href="#">
                        {{ user }}
                        <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'profile' %}">{% trans "Profile" %}</a></li>
                        <li><a href="{% url 'profile_edit' %}">{% trans "Edit Profile and Account Settings" %}</a></li><commit_msg>remove header links and divisor<commit_after>{% load i18n %}
{% load socialaccount %}
{% load in_group %}
{% load static %}


<nav id="main-navbar" class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">

        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#main-navbar-collapse">
                <span class="sr-only">{% trans 'Toggle navigation' %}</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" id="site-brand" href="/"><img src="{% static 'img/logo.png' %}" class="img-responsive site-logo"></a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="main-navbar-collapse">
            <ul class="nav navbar-nav" id="site-nav">
                <!-- <li><a href="#" data-toggle="modal" data-target="#modal-about">{% trans 'About' %}</a></li>
                <li><a href="#" data-toggle="modal" data-target="#modal-contact">{% trans 'Contact' %}</a></li> -->
                <li><a href="{% url 'courses' %}">{% trans 'Courses' %}</a></li>
            </ul>
            <ul class="nav navbar-nav" id="session-nav">
            {% if user.is_authenticated %}
                {% if user.is_superuser %}
                <li>
                    <a class="dropdown-toggle {% if in_admin %}active{% endif %}" data-toggle="dropdown" href="#">
                        {% trans 'Admin' %}
                        <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'administration.home' %}">{% trans 'Home edit' %}</a></li>
                        <li><a href="{% url 'administration.courses' %}" id="admin-link">{% trans 'Courses' %}</a></li>
                        <li><a href="{% url 'administration.users' %}">{% trans 'Users' %}</a></li>
                    </ul>
                </li>
                {% elif user|in_group:'professors' %}
                    <li {% if in_admin %}class="active"{% endif %}><a href="{% url 'administration.courses' %}" id="admin-link">{% trans "Admin" %}</a></li>
                {% endif %}
                <li>
                    <a class="username dropdown-toggle" data-toggle="dropdown" href="#">
                        {{ user }}
                        <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="{% url 'profile' %}">{% trans "Profile" %}</a></li>
                        <li><a href="{% url 'profile_edit' %}">{% trans "Edit Profile and Account Settings" %}</a></li>
{'fraction_non_alphanumeric': 0.1966768396066463, 'fraction_numerical': 0.0006781959986436081, 'mean_word_length': 1.810385898046689, 'pattern_counts': {'":': 0, '<': 152, '<?xml version=': 0, '>': 152, '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': '1549823', 'n_tokens_mistral': 1800, 'n_tokens_neox': 1596, 'n_words': 391}