<commit_before>{% from "shoop/front/macros.jinja" import render_field with context %}
<div class="top-nav">
    <div class="container">
        <ul class="pull-left">
            {% if shoop.simple_search %}
                <li>
                    {% block searchform %}
                        {{ shoop.simple_search.get_search_form() }}
                    {% endblock %}
                </li>
            {% endif %}
            {% if user.is_authenticated() %}
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="menu-icon fa fa-user"></i>
                        <span class="hidden-xs">
                        {% if user.first_name or user.last_name %}
                            {{ user.get_full_name() }}
                        {% else %}
                            {{ user }}
                        {% endif %}
                        </span>
                        <i class="dropdown-icon fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                        <li>
                            <a href="{{ url("shoop:customer_edit") }}">
                                <i class="fa fa-user fa-fw"></i> {% trans %}Edit account details{% endtrans %}
                            </a>
                        </li>
                        {% if shoop.urls.has_url("shoop:personal-orders") %}
                        <li>
                            <a href="{{ url("shoop:personal-orders") }}">
                                <i class="fa fa-list-alt fa-fw"></i>
                                {% trans %}My orders{% endtrans %}
                            </a>
                        </li>
                        {% endif %}
                        {% if user.is_superuser %}
                            <li><a href="{{ url("shoop_admin:dashboard") }}"><i class="fa fa-dashboard fa-fw"></i> {% trans %}Admin panel{% endtrans %}</a></li>
                        {% endif %}
                        {% if shoop.urls.has_url("shoop:logout") %}
                        <li role="separator" class="divider"></li>
                        <li>
                            <a href="{{ url("shoop:logout") }}">
                                <i class="fa fa-sign-out fa-fw"></i> {% trans %}Log out{% endtrans %}
                            </a>
                        </li>
                        {% endif %}
                    </ul>
                </li>
            {% else %}
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="menu-icon fa fa-user"></i> <span class="hidden-xs">{% trans %}Log in{% endtrans %}</span>
                        <i class="dropdown-icon fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu login" role="dropdown-menu">
                        <li>
                            <form role="form" method="post" action="{{ url("shoop:login") }}">
                                {% csrf_token %}
                                {% if request.resolver_match.url_name == "logout" %}{% set next="/" %}{% endif %}
                                <input type="hidden" name="next" value="{{ next or request.path }}">
                                <div class="form-group">
                                    <label for="username">{% trans %}Username{% endtrans %}</label>
                                    <input type="text" name="username" class="form-control">
                                </div>
                                <div class="form-group">
                                    <label for="password">{% trans %}Password{% endtrans %}</label>
                                    <input type="password" name="password" class="form-control">
                                </div>
                                <button type="submit" class="btn btn-primary btn-block">
                                    {% trans %}Log in{% endtrans %}
                                </button>
                            </form>
                        </li>
                        <li class="divider"></li>
                        {% if shoop.urls.has_url("shoop:recover_password") %}
                        <li>
                            <a href="{{ url("shoop:recover_password") }}">
                                <i class="fa fa-question fa-fw"></i> {% trans %}Forgot your password?{% endtrans %}
                            </a>
                        </li>
                        {% endif %}
                        {% if shoop.urls.has_url("shoop:registration_register") %}
                        <li>
                            <a href="{{ url("shoop:registration_register") }}">
                                <i class="fa fa-edit fa-fw"></i> {% trans %}New user? Register here!{% endtrans %}
                            </a>
                        </li>
                        {% endif %}
                    </ul>
                </li>
            {% endif %}
        </ul>
        <ul class="pull-right" id="navigation-basket-partial">
            {% include "classic_gray/navigation_basket_partial.jinja" with context %}
        </ul>
    </div>
</div>
<div class="bottom-nav">
    <div class="container">
        {% set cropped_logo = request.shop.logo|thumbnail(size=(500,500)) %}
        <div class="logo {% if not cropped_logo %}no-image{% endif %}">
            {% if cropped_logo %}
                <a href="/" class="image" style="background-image:url('{{ cropped_logo }}')"></a>
            {% else %}
                <a href="/" class="text"><h4>{{ request.shop.public_name }}</h4></a>
            {% endif %}
        </div>
        <button class="toggle-mobile-nav">
            <span class="sr-only">Menu</span>
            <span class="hamburger"></span>
        </button>
        <div class="pages">
            <ul class="nav-collapse">
                <li{% if request.path == "/" %} class="current"{% endif %}><a href="/">{% trans %}Home{% endtrans %}</a></li>
                {% set products_url = url('shoop:xtheme_extra_view', view='products') %}
                <li{% if request.path == products_url %} class="current"{% endif %}><a href="{{ products_url }}">{% trans %}Products{% endtrans %}</a></li>
                {% if shoop.simple_cms %}
                    {% set cms_pages = shoop.simple_cms.get_visible_pages() %}
                    {% if cms_pages %}
                        {% for page in cms_pages %}
                            {% set page_url = url("shoop:cms_page", url=page.url) %}
                            <li{% if request.path == page_url %} class="current"{% endif %}><a href="{{ page_url }}">{{ page }}</a></li>
                        {% endfor %}
                    {% endif %}
                {% endif %}
            </ul>
        </div>
    </div>
</div><commit_msg>Classic Gray: Fix CMS page navigation visibility<commit_after>{% from "shoop/front/macros.jinja" import render_field with context %}
<div class="top-nav">
    <div class="container">
        <ul class="pull-left">
            {% if shoop.simple_search %}
                <li>
                    {% block searchform %}
                        {{ shoop.simple_search.get_search_form() }}
                    {% endblock %}
                </li>
            {% endif %}
            {% if user.is_authenticated() %}
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="menu-icon fa fa-user"></i>
                        <span class="hidden-xs">
                        {% if user.first_name or user.last_name %}
                            {{ user.get_full_name() }}
                        {% else %}
                            {{ user }}
                        {% endif %}
                        </span>
                        <i class="dropdown-icon fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu" role="menu">
                        <li>
                            <a href="{{ url("shoop:customer_edit") }}">
                                <i class="fa fa-user fa-fw"></i> {% trans %}Edit account details{% endtrans %}
                            </a>
                        </li>
                        {% if shoop.urls.has_url("shoop:personal-orders") %}
                        <li>
                            <a href="{{ url("shoop:personal-orders") }}">
                                <i class="fa fa-list-alt fa-fw"></i>
                                {% trans %}My orders{% endtrans %}
                            </a>
                        </li>
                        {% endif %}
                        {% if user.is_superuser %}
                            <li><a href="{{ url("shoop_admin:dashboard") }}"><i class="fa fa-dashboard fa-fw"></i> {% trans %}Admin panel{% endtrans %}</a></li>
                        {% endif %}
                        {% if shoop.urls.has_url("shoop:logout") %}
                        <li role="separator" class="divider"></li>
                        <li>
                            <a href="{{ url("shoop:logout") }}">
                                <i class="fa fa-sign-out fa-fw"></i> {% trans %}Log out{% endtrans %}
                            </a>
                        </li>
                        {% endif %}
                    </ul>
                </li>
            {% else %}
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="menu-icon fa fa-user"></i> <span class="hidden-xs">{% trans %}Log in{% endtrans %}</span>
                        <i class="dropdown-icon fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu login" role="dropdown-menu">
                        <li>
                            <form role="form" method="post" action="{{ url("shoop:login") }}">
                                {% csrf_token %}
                                {% if request.resolver_match.url_name == "logout" %}{% set next="/" %}{% endif %}
                                <input type="hidden" name="next" value="{{ next or request.path }}">
                                <div class="form-group">
                                    <label for="username">{% trans %}Username{% endtrans %}</label>
                                    <input type="text" name="username" class="form-control">
                                </div>
                                <div class="form-group">
                                    <label for="password">{% trans %}Password{% endtrans %}</label>
                                    <input type="password" name="password" class="form-control">
                                </div>
                                <button type="submit" class="btn btn-primary btn-block">
                                    {% trans %}Log in{% endtrans %}
                                </button>
                            </form>
                        </li>
                        <li class="divider"></li>
                        {% if shoop.urls.has_url("shoop:recover_password") %}
                        <li>
                            <a href="{{ url("shoop:recover_password") }}">
                                <i class="fa fa-question fa-fw"></i> {% trans %}Forgot your password?{% endtrans %}
                            </a>
                        </li>
                        {% endif %}
                        {% if shoop.urls.has_url("shoop:registration_register") %}
                        <li>
                            <a href="{{ url("shoop:registration_register") }}">
                                <i class="fa fa-edit fa-fw"></i> {% trans %}New user? Register here!{% endtrans %}
                            </a>
                        </li>
                        {% endif %}
                    </ul>
                </li>
            {% endif %}
        </ul>
        <ul class="pull-right" id="navigation-basket-partial">
            {% include "classic_gray/navigation_basket_partial.jinja" with context %}
        </ul>
    </div>
</div>
<div class="bottom-nav">
    <div class="container">
        {% set cropped_logo = request.shop.logo|thumbnail(size=(500,500)) %}
        <div class="logo {% if not cropped_logo %}no-image{% endif %}">
            {% if cropped_logo %}
                <a href="/" class="image" style="background-image:url('{{ cropped_logo }}')"></a>
            {% else %}
                <a href="/" class="text"><h4>{{ request.shop.public_name }}</h4></a>
            {% endif %}
        </div>
        <button class="toggle-mobile-nav">
            <span class="sr-only">Menu</span>
            <span class="hamburger"></span>
        </button>
        <div class="pages">
            <ul class="nav-collapse">
                <li{% if request.path == "/" %} class="current"{% endif %}><a href="/">{% trans %}Home{% endtrans %}</a></li>
                {% set products_url = url('shoop:xtheme_extra_view', view='products') %}
                <li{% if request.path == products_url %} class="current"{% endif %}><a href="{{ products_url }}">{% trans %}Products{% endtrans %}</a></li>
                {% if shoop.simple_cms %}
                    {% for link in xtheme.get_cms_links() %}
                        <li{% if request.path == "%s/" % link.url %} class="current"{% endif %}><a href="{{ link.url }}">{{ link.text }}</a></li>
                    {% endfor %}
                {% endif %}
            </ul>
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.15824622531939606, 'fraction_numerical': 0.0011614401858304297, 'mean_word_length': 1.083950990772954, 'pattern_counts': {'":': 0, '<': 253, '<?xml version=': 0, '>': 253, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 27, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5741809', 'n_tokens_mistral': 3804, 'n_tokens_neox': 3339, 'n_words': 720}