<commit_before>{% load static from staticfiles %}
{% load press_url from press_url %}
{% load svg from press_url %}
{% load i18n %}
{% load roles %}

<!doctype html>
<html class="no-js" lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}{{ request.journal.name }}{% endblock title %}</title>
    {% block head %}{% endblock head %}
    <link href="{% static "OLH/css/app.css" %}" rel="stylesheet">
    <link href="{% static "common/css/common.css" %}" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet">

    {% if request.journal %}
        <link href="{% static "OLH/css/default_override.css" %}" rel="stylesheet">
        <link href="{% static "OLH/css/journal" %}{{ request.journal.id }}_override.css" rel="stylesheet">
    {% elif request.press %}
        <link href="{% static "OLH/css/press_override.css" %}" rel="stylesheet">
    {% endif %}

    <script src="https://use.typekit.net/lff8ikn.js"></script>
    <script>try {
        Typekit.load({async: true});
    } catch (e) {
    }</script>

    {% block css %}{% endblock %}

    {% if request.journal %}
        <link href="{% journal_url 'rss_articles' %}" type="application/atom+xml" rel="alternate" title="Article Feed for Journal">
        <link href="{% journal_url 'rss_news' %}" type="application/atom+xml" rel="alternate" title="News Feed for Journal">
    {% else %}
        <link rel="alternate" type="application/rss+xml" title="Articles RSS Feed" href="{% url 'rss_articles' %}"/>
        <link  type="application/atom+xml" rel="alternate" title="News Feed for Journal" href="{% url 'rss_news' %}">
    {% endif %}

    {% if request.journal and journal.favicon %}
        <link rel="icon" href="{{ journal.favicon.url }}" type="image/vnd.microsoft.icon" />
    {% elif request.press.favicon %}
        <link rel="icon" href="{{ request.press.favicon.url }}" type="image/vnd.microsoft.icon" />
    {% endif %}

</head>
<body>
<div class="wrapper">
    <header class="main-header" role="banner">
        <div class="main top-bar">
            <div class="top-bar-left header-image-bar border-right">
                {% if request.journal %}
                    {% if request.journal.header_image %}
                        <a href="{{ request.journal.site_url }}"><img src="{{ request.journal.header_image.url }}" class="header-image top-bar-image"></a>
                    {% else %}
                        <a href="{{ request.journal.site_url }}"><img src="{% static "common/img/sample/janeway.png" %}"></a>
                    {% endif %}
                {% else %}
                    {% if 'svg' in request.press_cover %}
                        <a href="/">{% svg request.press_cover %}</a>
                    {% else %}
                        <a href="/"><img class="top-bar-image" src="{% url 'press_cover_download' %}" alt="{{ request.press.name }}"></a>
                    {% endif %}
                {% endif %}

                <div class="title-bar toggle">
                    <div data-responsive-toggle="main-menu" data-hide-for="medium">
                        <a href="#" data-responsive-toggle="main-menu" data-hide-for="medium" data-toggle>
                            <span class="menu-icon"></span>
                        </a>
                    </div>
                    <div data-responsive-toggle="search-menu" data-hide-for="medium">
                        <a href="#" class="search-toggle" data-toggle>
                            <i class="fa fa-search"></i>
                        </a>
                    </div>
                </div>
            </div>

            {% if request.journal %}
            <div class="top-bar-left hide-for-medium-only{% if journal_settings.general.switch_language %} border-right{% endif %}" id="search-menu">
                <ul class="menu global-search">
                    <li>
                        <form method="POST" action="{% url 'search' %}">
                            {% csrf_token %}
                            <div class="input-group">
                                <span class="input-group-label"><i class="fa fa-search"></i></span>
                                <input class="input-group-field" type="search" name="article_search">
                                <input type="hidden" name="sort" value="title">

                            </div><input type="submit" style="visibility: hidden;" />
                        </form>
                    </li>
                </ul>
            </div>
            {% endif %}
            {% if journal_settings.general.switch_language %}
                <div class="top-bar-left hide-for-medium-only" id="search-menu">
                <ul class="menu global-search">
                    {% get_current_language as LANGUAGE_CODE %}
                    {% get_available_languages as LANGUAGES %}
                    {% get_language_info_list for LANGUAGES as languages %}

                    {% for language in languages %}
                        <li>
                            <form action="{% url 'set_language' %}" method="post">{% csrf_token %}
                                <input name="next" type="hidden" value="{{ request.PATH }}"/>
                                {% if journal_settings.general.enable_language_text %}
                                    <button name="language" value="{{ language.code }}" class="tiny success button{% if language.code == LANGUAGE_CODE %} flag-active{% endif %}">{{ language.name }}</button>&nbsp;
                                {% else %}
                                <button class="flag-button{% if language.code == LANGUAGE_CODE %} flag-active{% endif %}" name="language" value="{{ language.code }}"
                                        style="background: url(/static/common/img/flags/{{ language.code }}.png) no-repeat;">
                                    &nbsp;
                                </button>
                                {% endif %}
                            </form>
                        </li>
                    {% endfor %}

                </ul>
                </div>
            {% endif %}
            <div class="top-bar-right border-left hide-for-small-only">
                <ul class="dropdown menu" data-dropdown-menu>
                    {% if request.user.is_authenticated %}
                        <li class=".is-dropdown-submenu-parent">
                            <a href="#" data-options="is_hover:true; hover_timeout:5000">{{ request.user.full_name }}</a>
                            {% if request.journal %}
                                {% include "elements/right_hand_menu.html" %}<commit_msg>Use locale_name<commit_after>{% load static from staticfiles %}
{% load press_url from press_url %}
{% load svg from press_url %}
{% load i18n %}
{% load roles %}

<!doctype html>
<html class="no-js" lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}{{ request.journal.name }}{% endblock title %}</title>
    {% block head %}{% endblock head %}
    <link href="{% static "OLH/css/app.css" %}" rel="stylesheet">
    <link href="{% static "common/css/common.css" %}" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet">

    {% if request.journal %}
        <link href="{% static "OLH/css/default_override.css" %}" rel="stylesheet">
        <link href="{% static "OLH/css/journal" %}{{ request.journal.id }}_override.css" rel="stylesheet">
    {% elif request.press %}
        <link href="{% static "OLH/css/press_override.css" %}" rel="stylesheet">
    {% endif %}

    <script src="https://use.typekit.net/lff8ikn.js"></script>
    <script>try {
        Typekit.load({async: true});
    } catch (e) {
    }</script>

    {% block css %}{% endblock %}

    {% if request.journal %}
        <link href="{% journal_url 'rss_articles' %}" type="application/atom+xml" rel="alternate" title="Article Feed for Journal">
        <link href="{% journal_url 'rss_news' %}" type="application/atom+xml" rel="alternate" title="News Feed for Journal">
    {% else %}
        <link rel="alternate" type="application/rss+xml" title="Articles RSS Feed" href="{% url 'rss_articles' %}"/>
        <link  type="application/atom+xml" rel="alternate" title="News Feed for Journal" href="{% url 'rss_news' %}">
    {% endif %}

    {% if request.journal and journal.favicon %}
        <link rel="icon" href="{{ journal.favicon.url }}" type="image/vnd.microsoft.icon" />
    {% elif request.press.favicon %}
        <link rel="icon" href="{{ request.press.favicon.url }}" type="image/vnd.microsoft.icon" />
    {% endif %}

</head>
<body>
<div class="wrapper">
    <header class="main-header" role="banner">
        <div class="main top-bar">
            <div class="top-bar-left header-image-bar border-right">
                {% if request.journal %}
                    {% if request.journal.header_image %}
                        <a href="{{ request.journal.site_url }}"><img src="{{ request.journal.header_image.url }}" class="header-image top-bar-image"></a>
                    {% else %}
                        <a href="{{ request.journal.site_url }}"><img src="{% static "common/img/sample/janeway.png" %}"></a>
                    {% endif %}
                {% else %}
                    {% if 'svg' in request.press_cover %}
                        <a href="/">{% svg request.press_cover %}</a>
                    {% else %}
                        <a href="/"><img class="top-bar-image" src="{% url 'press_cover_download' %}" alt="{{ request.press.name }}"></a>
                    {% endif %}
                {% endif %}

                <div class="title-bar toggle">
                    <div data-responsive-toggle="main-menu" data-hide-for="medium">
                        <a href="#" data-responsive-toggle="main-menu" data-hide-for="medium" data-toggle>
                            <span class="menu-icon"></span>
                        </a>
                    </div>
                    <div data-responsive-toggle="search-menu" data-hide-for="medium">
                        <a href="#" class="search-toggle" data-toggle>
                            <i class="fa fa-search"></i>
                        </a>
                    </div>
                </div>
            </div>

            {% if request.journal %}
            <div class="top-bar-left hide-for-medium-only{% if journal_settings.general.switch_language %} border-right{% endif %}" id="search-menu">
                <ul class="menu global-search">
                    <li>
                        <form method="POST" action="{% url 'search' %}">
                            {% csrf_token %}
                            <div class="input-group">
                                <span class="input-group-label"><i class="fa fa-search"></i></span>
                                <input class="input-group-field" type="search" name="article_search">
                                <input type="hidden" name="sort" value="title">

                            </div><input type="submit" style="visibility: hidden;" />
                        </form>
                    </li>
                </ul>
            </div>
            {% endif %}
            {% if journal_settings.general.switch_language %}
                <div class="top-bar-left hide-for-medium-only" id="search-menu">
                <ul class="menu global-search">
                    {% get_current_language as LANGUAGE_CODE %}
                    {% get_available_languages as LANGUAGES %}
                    {% get_language_info_list for LANGUAGES as languages %}

                    {% for language in languages %}
                        <li>
                            <form action="{% url 'set_language' %}" method="post">{% csrf_token %}
                                <input name="next" type="hidden" value="{{ request.PATH }}"/>
                                {% if journal_settings.general.enable_language_text %}
                                    <button name="language" value="{{ language.code }}" class="tiny success button{% if language.code == LANGUAGE_CODE %} flag-active{% endif %}">{{ language.name_local }}</button>&nbsp;
                                {% else %}
                                <button class="flag-button{% if language.code == LANGUAGE_CODE %} flag-active{% endif %}" name="language" value="{{ language.code }}"
                                        style="background: url(/static/common/img/flags/{{ language.code }}.png) no-repeat;">
                                    &nbsp;
                                </button>
                                {% endif %}
                            </form>
                        </li>
                    {% endfor %}

                </ul>
                </div>
            {% endif %}
            <div class="top-bar-right border-left hide-for-small-only">
                <ul class="dropdown menu" data-dropdown-menu>
                    {% if request.user.is_authenticated %}
                        <li class=".is-dropdown-submenu-parent">
                            <a href="#" data-options="is_hover:true; hover_timeout:5000">{{ request.user.full_name }}</a>
                            {% if request.journal %}
                                {% include "elements/right_hand_menu.html" %}
{'fraction_non_alphanumeric': 0.16272621132516055, 'fraction_numerical': 0.0014594279042615295, 'mean_word_length': 1.669458511881574, 'pattern_counts': {'":': 0, '<': 185, '<?xml version=': 0, '>': 185, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2125324', 'n_tokens_mistral': 4034, 'n_tokens_neox': 3593, 'n_words': 757}