<commit_before>{% load backend_extras %}

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <span class="navbar-brand">
                {{ global_preferences.general__sitename }}
            </span>
        </div>

        <div class="navbar-left">
            <ul class="nav navbar-nav">
                <li class="{% navactive request 'home' %}">
                    <a href="{% url 'home' %}">Home</a></li>

                {% if user.is_authenticated %}
                    <li class="{% navactive request 'chals' %}">
                        <a href="{% url 'chals' %}">Challenges</a></li>
                    <li class="{% navactive request 'submit' %}">
                        <a href="{% url 'submit' %}">Submit a Flag</a></li>
                {% endif %}

                <li class="{% navactive request 'scores' %}">
                    <a href="{% url 'scores' %}">Scoreboard</a></li>
                <li class="{% navactive request 'stats' %}">
                    <a href="{% url 'stats' %}">Statistics</a></li>
            </ul>
        </div>

        <div class="navbar-right">
            {% if not user.is_authenticated %}
                {% include 'backend/loginform.html' %}
            {% else %}
                {% include 'backend/profile.html' %}
            {% endif %}
        </div>
    </div>
</div><commit_msg>templates: chals: add buy_hint to navactive<commit_after>{% load backend_extras %}

<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <span class="navbar-brand">
                {{ global_preferences.general__sitename }}
            </span>
        </div>

        <div class="navbar-left">
            <ul class="nav navbar-nav">
                <li class="{% navactive request 'home' %}">
                    <a href="{% url 'home' %}">Home</a></li>

                {% if user.is_authenticated %}
                    <li class="{% navactive request 'chals buy_hint' %}">
                        <a href="{% url 'chals' %}">Challenges</a></li>
                    <li class="{% navactive request 'submit' %}">
                        <a href="{% url 'submit' %}">Submit a Flag</a></li>
                {% endif %}

                <li class="{% navactive request 'scores' %}">
                    <a href="{% url 'scores' %}">Scoreboard</a></li>
                <li class="{% navactive request 'stats' %}">
                    <a href="{% url 'stats' %}">Statistics</a></li>
            </ul>
        </div>

        <div class="navbar-right">
            {% if not user.is_authenticated %}
                {% include 'backend/loginform.html' %}
            {% else %}
                {% include 'backend/profile.html' %}
            {% endif %}
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.17697300990775539, 'fraction_numerical': 0.0, 'mean_word_length': 1.5616797900262467, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '1078303', 'n_tokens_mistral': 924, 'n_tokens_neox': 785, 'n_words': 191}