<commit_before>{% macro navbar(localize, data=None) %}
    <nav class="navbar navbar-default navbar-static-top">
        <div class="container">
            <ul class="nav navbar-nav">
                <li class="active"><a class="navbar-brand" href="{{ url_for('index') }}">{{ localize.project }}</a></li>
                <li><a href="{{ url_for('index') }}">{{ localize.home }}</a></li>
                <li><a href="{{ url_for('about') }}">{{ localize.about }}</a></li>
                <li><a href="{{ url_for('contacts') }}">{{ localize.contacts }}</a></li>
                {% if data %}
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ localize.filters }} <span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="{{ url_for('spectras', sfilter='all', user=data.ufilter or None) }}">all</a></li>
                            <li><a href="{{ url_for('spectras', sfilter='new', user=data.ufilter or None) }}">new</a></li>
                            <li><a href="{{ url_for('spectras', sfilter='cmp', user=data.ufilter or None) }}">completed</a></li>
                            <li class="divider"></li>
                            <li><a href="{{ url_for('spectras', sfilter=data.sfilter) }}">{{ localize.fclear }}</a></li>
                            <li class="dropdown-header">{{ localize.sub }}</li>
                            {% for id, ava, user in data.child %}
                                <li><a href="{{ url_for('spectras', sfilter=data.sfilter, user=user) }}">{{ ava }} ({{ id }})</a></li>
                            {% endfor %}
                        </ul>
                    </li>
                {% endif %}
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {% if data %}
                    <li><a href="{{ url_for('user', name=data.name) }}">{{ data.name }}</a></li>
                    <li><a href="{{ url_for('logout') }}">{{ localize.logout }}</a></li>
                {% else %}
                    <li><a href="{{ url_for('login') }}">{{ localize.anon }}</a></li>
                    <li><a href="{{ url_for('login') }}">{{ localize.login }}</a></li>
                {% endif %}
            </ul>
        </div><commit_msg>navbar: добавил скрытие антифильтра.<commit_after>{% macro navbar(localize, data=None) %}
    <nav class="navbar navbar-default navbar-static-top">
        <div class="container">
            <ul class="nav navbar-nav">
                <li class="active"><a class="navbar-brand" href="{{ url_for('index') }}">{{ localize.project }}</a></li>
                <li><a href="{{ url_for('index') }}">{{ localize.home }}</a></li>
                <li><a href="{{ url_for('about') }}">{{ localize.about }}</a></li>
                <li><a href="{{ url_for('contacts') }}">{{ localize.contacts }}</a></li>
                {% if data %}
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">{{ localize.filters }} <span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="{{ url_for('spectras', sfilter='all', user=data.ufilter or None) }}">all</a></li>
                            <li><a href="{{ url_for('spectras', sfilter='new', user=data.ufilter or None) }}">new</a></li>
                            <li><a href="{{ url_for('spectras', sfilter='cmp', user=data.ufilter or None) }}">completed</a></li>
                            <li class="divider"></li>
                            {% if data.ufilter %}
                                <li><a href="{{ url_for('spectras', sfilter=data.sfilter) }}">{{ localize.fclear }}</a></li>
                            {% endif %}
                            <li class="dropdown-header">{{ localize.sub }}</li>
                            {% for id, ava, user in data.child %}
                                <li><a href="{{ url_for('spectras', sfilter=data.sfilter, user=user) }}">{{ ava }} ({{ id }})</a></li>
                            {% endfor %}
                        </ul>
                    </li>
                {% endif %}
            </ul>
            <ul class="nav navbar-nav navbar-right">
                {% if data %}
                    <li><a href="{{ url_for('user', name=data.name) }}">{{ data.name }}</a></li>
                    <li><a href="{{ url_for('logout') }}">{{ localize.logout }}</a></li>
                {% else %}
                    <li><a href="{{ url_for('login') }}">{{ localize.anon }}</a></li>
                    <li><a href="{{ url_for('login') }}">{{ localize.login }}</a></li>
                {% endif %}
            </ul>
        </div>
{'fraction_non_alphanumeric': 0.21637666325486182, 'fraction_numerical': 0.0, 'mean_word_length': 1.6396542409508374, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 145, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5416325', 'n_tokens_mistral': 1483, 'n_tokens_neox': 1401, 'n_words': 279}