<commit_before>{% load i18n %}

<nav class="nav-second navbar-collapse collapse">
    <ul class="menu">
        <li class="menu-item">
            <a href="{% url 'realtime:shake_index' %}">{% trans "Earthquake" %}</a>
        </li>
        <li class="menu-item">
            <a href="{% url 'realtime:flood_index' %}">{% trans "Flood" %}</a>
        </li>
        {% if ASH_SHOW_PAGE %}
        <li class="menu-item">
            <a href="{% url 'realtime:ash_index' %}">{% trans "Volcanic Ash" %}</a>
        </li>
        {% endif %}

        {% if perms.realtime.add_reporttemplate %}
        <li class="menu-item">
            <a href="{% url "realtime:template_upload_form" %}">{% trans "Upload Report Template" %}</a>
        </li>
        {% endif %}

        <li class="menu-item">
            <a href="{% url 'realtime:api_root' %}">{% trans "API Browser" %}</a>
        </li>
        <li class="menu-item">
            <a href="{% url 'realtime:indicator' %}">{% trans "Indicator" %}</a>
        </li>
        {% for flatpages in additional_nav_menus %}
            {% for g in flatpages.groups %}
                {% with pages=g.pages %}
                    {% if pages %}
                    <li class="menu-item dropdown">
                        <a href="#" class="dropdown-toggle" title="{{ g.title|capfirst }}" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true" aria-expanded="true">
                            {{ g.title|capfirst }}
                            <span class="caret"></span>
                        </a>
                        <ul role="menu" class="dropdown-menu">
                            {% for p in pages %}
                                <li class="menu-item">
                                    <div>
                                        {% if perms.realtime.change_coreflatpage %}
                                        <a href="{% url "admin:realtime_coreflatpage_change" p.id %}"
                                           class="btn" title="{% trans "Edit Content" %}">
                                            <div class="glyphicon glyphicon-edit"></div>
                                        </a>
                                        {% endif %}
                                        <a title="{{ p.title }}"
                                           href="{% url 'django.contrib.flatpages.views.flatpage' url=p.url %}">
                                            {{ p.title|capfirst }}
                                        </a>
                                    </div>
                                </li>
                            {% endfor %}
                        </ul>
                    </li>
                    {% endif %}
                {% endwith %}
            {% endfor %}
        {% endfor %}
    </ul>
</nav><commit_msg>Fix spacing problem in about page<commit_after>{% load i18n %}

<nav class="nav-second navbar-collapse collapse">
    <ul class="menu">
        <li class="menu-item">
            <a href="{% url 'realtime:shake_index' %}">{% trans "Earthquake" %}</a>
        </li>
        <li class="menu-item">
            <a href="{% url 'realtime:flood_index' %}">{% trans "Flood" %}</a>
        </li>
        {% if ASH_SHOW_PAGE %}
        <li class="menu-item">
            <a href="{% url 'realtime:ash_index' %}">{% trans "Volcanic Ash" %}</a>
        </li>
        {% endif %}

        {% if perms.realtime.add_reporttemplate %}
        <li class="menu-item">
            <a href="{% url "realtime:template_upload_form" %}">{% trans "Upload Report Template" %}</a>
        </li>
        {% endif %}

        <li class="menu-item">
            <a href="{% url 'realtime:api_root' %}">{% trans "API Browser" %}</a>
        </li>
        <li class="menu-item">
            <a href="{% url 'realtime:indicator' %}">{% trans "Indicator" %}</a>
        </li>
        {% for flatpages in additional_nav_menus %}
            {% for g in flatpages.groups %}
                {% with pages=g.pages %}
                    {% if pages %}
                    <li class="menu-item dropdown">
                        <a href="#" class="dropdown-toggle" title="{{ g.title|capfirst }}" data-toggle="dropdown" class="dropdown-toggle" aria-haspopup="true" aria-expanded="true">
                            {{ g.title|capfirst }}
                            <span class="caret"></span>
                        </a>
                        <ul role="menu" class="dropdown-menu">
                            {% for p in pages %}
                                <li class="menu-item">
                                    {% if perms.realtime.change_coreflatpage %}
                                    <div>
                                        <a href="{% url "admin:realtime_coreflatpage_change" p.id %}"
                                           class="btn" title="{% trans "Edit Content" %}">
                                            <div class="glyphicon glyphicon-edit"></div>
                                        </a>
                                    {% endif %}

                                        <a title="{{ p.title }}"
                                           href="{% url 'django.contrib.flatpages.views.flatpage' url=p.url %}">
                                            {{ p.title|capfirst }}
                                        </a>

                                    {% if perms.realtime.change_coreflatpage %}
                                    </div>
                                    {% endif %}
                                </li>
                            {% endfor %}
                        </ul>
                    </li>
                    {% endif %}
                {% endwith %}
            {% endfor %}
        {% endfor %}
    </ul>
</nav>
{'fraction_non_alphanumeric': 0.15132712857635297, 'fraction_numerical': 0.0006894174422612892, 'mean_word_length': 1.0454705675008813, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 44, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5009488', 'n_tokens_mistral': 1594, 'n_tokens_neox': 1417, 'n_words': 315}