<commit_before><div class="nav-collapse">
    <ul class="nav pull-right">
        {% if app.session.get('user') is not null %}

            {# Link to Dashboard  #}
            <li class="{% if active in ['', 'dashboard'] %}active {% endif %}"><a href="{{ path('dashboard') }}">
                <i class="icon-home"></i> {{ __('Dashboard') }}</a></li>

            {# Menu with all Contenttypes #}
            <li class="{% if active=='content' %}active {% endif %}dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="icon-sitemap"></i> {{ __('Content') }} <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    {% for slug, contenttype in app.config.get('contenttypes') %}
                        {% if isallowed('contenttype:' ~ slug) %}
                            <li><a href="{{ path('overview', { 'contenttypeslug': slug }) }}">
                                <i class="icon-tasks"></i> {{ __('View %contenttypes%', {'%contenttypes%': contenttype.name}) }}</a></li>
                            {% if loop.length < 5 %}
                                {% if isallowed('contenttype:' ~ slug ~ ':create') %}
                                <li><a href="{{ path('editcontent', { 'contenttypeslug': slug, 'id': '' }) }}">
                                    <i class="icon-plus"></i> {{ __('New %contenttype%',{'%contenttype%': contenttype.singular_name}) }}</a></li>
                                {% endif %}
                                {% if not loop.last %}<li class="divider"></li>{% endif %}
                            {% endif %}
                        {% endif %}
                    {% endfor %}

                </ul>
            </li>

            {# Menu with all settings #}
            {% set checkpermissions = [
                        'settings',
                        'files:config',
                        'extensions',
                        'dbupdate',
                        'clearcache',
                        'users',
                        'activitylog',
                        'files:theme',
                        'files:uploads',
                        'translation' ] %}
            {% set granted = false %}
            {% for checkpermission in checkpermissions %}
                {% if isallowed(checkpermission) %}
                    {% set granted = true %}
                {% endif %}
            {% endfor %}
            {% if granted %}
            <li class="{% if active=='settings' %}active {% endif %}dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cogs"></i> {{ __('Settings') }}
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    {% if isallowed('users') or isallowed('files:config') %}
                        <li class="nav-header">{{ __('Configuration') }}</li>
                        {% if isallowed('users') %}
                            <li><a href="{{ path('users') }}"><i class="icon-group"></i> {{ __('Users') }}</a></li>
                        {% endif %}
                        {% if isallowed('files:config') %}
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/config.yml'}) }}">
                                <i class="icon-cog"></i> {{ __('Configuration') }}</a></li>
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/contenttypes.yml'}) }}">
                                <i class="icon-hdd"></i> {{ __('Contenttypes') }}</a></li>
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/taxonomy.yml'}) }}">
                                <i class="icon-tags"></i> {{ __('Taxonomy') }}</a></li>
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/menu.yml'}) }}">
                                <i class="icon-list"></i> {{ __('Menu setup') }}</a></li>
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/routing.yml'}) }}">
                                <i class="icon-random"></i> {{ __('Routing setup') }}</a></li>
                        {% endif %}
                        <li class="divider"></li>
                    {% endif %}

                    {% if app.extensions.hasMenuoptions %}
                        <li class="nav-header">{{ __('Extensions') }}</li>
                        {% for extension in app.extensions.getMenuoptions %}
                            <li>
                                <a href="{{ extension.path }}">
                                    <i class="{{ extension.icon|default('icon-expand') }}"></i>
                                    {{ extension.label }}
                                </a>
                            </li>
                        {% endfor %}
                        <li class="divider"></li>
                    {% endif %}
                    <li class="nav-header">{{ __('Maintenance') }}</li>
                    {% if isallowed('extensions') %}
                        <li><a href="{{ path('extensions') }}"><i class="icon-briefcase"></i> {{ __('Extensions') }}</a></li>
                    {% endif %}
                    {% if isallowed('dbupdate') %}
                        <li><a href="{{ path('dbcheck') }}"><i class="icon-wrench"></i> {{ __('Check database') }}</a></li>
                    {% endif %}
                    {% if isallowed('clearcache') %}
                        <li><a href="{{ path('clearcache') }}"><i class="icon-magic"></i> {{ __('Clear the cache') }}</a></li>
                    {% endif %}
                    {% if isallowed('activitylog') %}
                        <li><a href="{{ path('activitylog') }}"><i class="icon-file"></i> {{ __('Activity log') }}</a></li>
                    {% endif %}
                    <li class="divider"></li>
                    <li class="nav-header">{{ __('File Management') }}</li>
                    {% if isallowed('files:theme') %}
                        <li><a href="{{ path('files', { 'path': 'theme' }) }}"><i class="icon-hdd"></i> {{ __('View / edit Templates') }}</a></li>
                    {% endif %}
                    {% if isallowed('files:uploads') %}
                        <li><a href="{{ path('files', { 'path': 'files'}) }}"><i class="icon-hdd"></i> {{ __('Uploaded files') }}</a></li>
                    {% endif %}
                    {% if isallowed('translation') %}
                    <li class="divider"></li>
                    <li class="nav-header">{{ __('Translations') }}</li>
                        <li><a href="{{ path('translation', { 'domain': 'messages' }) }}"><i class="icon-flag"></i> {{ __('Messages') }}</a></li>
                        <li><a href="{{ path('translation', { 'domain': 'infos'}) }}"><i class="icon-flag"></i> {{ __('Long messages') }}</a></li>
                        <li><a href="{{ path('translation', { 'domain': 'contenttypes'}) }}"><i class="icon-flag"></i> {{ __('Contenttypes') }}</a></li>
                    {% endif %}

                </ul>
            </li>
            {% endif %}

            <li class="divider-vertical"></li>

            {# View site #}
            <li>
                <a href="{{ paths.root }}" target="_blank"><i class="icon-external-link"></i> {{ __('View site') }}</a>
            </li>

            <li class="divider-vertical"></li>

            {# Logout #}
            <li>
                <form action="{{ path('logout') }}" method="POST">
                    <button class="btn btn-link" type="submit">
                        <i class="icon-signout"></i> {{ __('Logout %name%', {'%name%': user.displayname|trimtext(16)}) }}
                    </button>
                </form><commit_msg>fix to url within the main nav<commit_after><div class="nav-collapse">
    <ul class="nav pull-right">
        {% if app.session.get('user') is not null %}

            {# Link to Dashboard  #}
            <li class="{% if active in ['', 'dashboard'] %}active {% endif %}"><a href="{{ path('dashboard') }}">
                <i class="icon-home"></i> {{ __('Dashboard') }}</a></li>

            {# Menu with all Contenttypes #}
            <li class="{% if active=='content' %}active {% endif %}dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <i class="icon-sitemap"></i> {{ __('Content') }} <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    {% for slug, contenttype in app.config.get('contenttypes') %}
                        {% if isallowed('contenttype:' ~ slug) %}
                            <li><a href="{{ path('overview', { 'contenttypeslug': slug }) }}">
                                <i class="icon-tasks"></i> {{ __('View %contenttypes%', {'%contenttypes%': contenttype.name}) }}</a></li>
                            {% if loop.length < 5 %}
                                {% if isallowed('contenttype:' ~ slug ~ ':create') %}
                                <li><a href="{{ path('editcontent', { 'contenttypeslug': slug, 'id': '' }) }}">
                                    <i class="icon-plus"></i> {{ __('New %contenttype%',{'%contenttype%': contenttype.singular_name}) }}</a></li>
                                {% endif %}
                                {% if not loop.last %}<li class="divider"></li>{% endif %}
                            {% endif %}
                        {% endif %}
                    {% endfor %}

                </ul>
            </li>

            {# Menu with all settings #}
            {% set checkpermissions = [
                        'settings',
                        'files:config',
                        'extensions',
                        'dbupdate',
                        'clearcache',
                        'users',
                        'activitylog',
                        'files:theme',
                        'files:uploads',
                        'translation' ] %}
            {% set granted = false %}
            {% for checkpermission in checkpermissions %}
                {% if isallowed(checkpermission) %}
                    {% set granted = true %}
                {% endif %}
            {% endfor %}
            {% if granted %}
            <li class="{% if active=='settings' %}active {% endif %}dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cogs"></i> {{ __('Settings') }}
                    <b class="caret"></b>
                </a>
                <ul class="dropdown-menu">
                    {% if isallowed('users') or isallowed('files:config') %}
                        <li class="nav-header">{{ __('Configuration') }}</li>
                        {% if isallowed('users') %}
                            <li><a href="{{ path('users') }}"><i class="icon-group"></i> {{ __('Users') }}</a></li>
                        {% endif %}
                        {% if isallowed('files:config') %}
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/config.yml'}) }}">
                                <i class="icon-cog"></i> {{ __('Configuration') }}</a></li>
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/contenttypes.yml'}) }}">
                                <i class="icon-hdd"></i> {{ __('Contenttypes') }}</a></li>
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/taxonomy.yml'}) }}">
                                <i class="icon-tags"></i> {{ __('Taxonomy') }}</a></li>
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/menu.yml'}) }}">
                                <i class="icon-list"></i> {{ __('Menu setup') }}</a></li>
                            <li><a href="{{ path('fileedit', { 'file': 'app/config/routing.yml'}) }}">
                                <i class="icon-random"></i> {{ __('Routing setup') }}</a></li>
                        {% endif %}
                        <li class="divider"></li>
                    {% endif %}

                    {% if app.extensions.hasMenuoptions %}
                        <li class="nav-header">{{ __('Extensions') }}</li>
                        {% for extension in app.extensions.getMenuoptions %}
                            <li>
                                <a href="{{ extension.path }}">
                                    <i class="{{ extension.icon|default('icon-expand') }}"></i>
                                    {{ extension.label }}
                                </a>
                            </li>
                        {% endfor %}
                        <li class="divider"></li>
                    {% endif %}
                    <li class="nav-header">{{ __('Maintenance') }}</li>
                    {% if isallowed('extensions') %}
                        <li><a href="{{ path('extensions') }}"><i class="icon-briefcase"></i> {{ __('Extensions') }}</a></li>
                    {% endif %}
                    {% if isallowed('dbupdate') %}
                        <li><a href="{{ path('dbcheck') }}"><i class="icon-wrench"></i> {{ __('Check database') }}</a></li>
                    {% endif %}
                    {% if isallowed('clearcache') %}
                        <li><a href="{{ path('clearcache') }}"><i class="icon-magic"></i> {{ __('Clear the cache') }}</a></li>
                    {% endif %}
                    {% if isallowed('activitylog') %}
                        <li><a href="{{ path('activitylog') }}"><i class="icon-file"></i> {{ __('Activity log') }}</a></li>
                    {% endif %}
                    <li class="divider"></li>
                    <li class="nav-header">{{ __('File Management') }}</li>
                    {% if isallowed('files:theme') %}
                        <li><a href="{{ path('files', { 'path': 'theme' }) }}"><i class="icon-hdd"></i> {{ __('View / edit Templates') }}</a></li>
                    {% endif %}
                    {% if isallowed('files:uploads') %}
                        <li><a href="{{ url('files', { 'namespace': 'files'}) }}"><i class="icon-hdd"></i> {{ __('Uploaded files') }}</a></li>
                    {% endif %}
                    {% if isallowed('translation') %}
                    <li class="divider"></li>
                    <li class="nav-header">{{ __('Translations') }}</li>
                        <li><a href="{{ path('translation', { 'domain': 'messages' }) }}"><i class="icon-flag"></i> {{ __('Messages') }}</a></li>
                        <li><a href="{{ path('translation', { 'domain': 'infos'}) }}"><i class="icon-flag"></i> {{ __('Long messages') }}</a></li>
                        <li><a href="{{ path('translation', { 'domain': 'contenttypes'}) }}"><i class="icon-flag"></i> {{ __('Contenttypes') }}</a></li>
                    {% endif %}

                </ul>
            </li>
            {% endif %}

            <li class="divider-vertical"></li>

            {# View site #}
            <li>
                <a href="{{ paths.root }}" target="_blank"><i class="icon-external-link"></i> {{ __('View site') }}</a>
            </li>

            <li class="divider-vertical"></li>

            {# Logout #}
            <li>
                <form action="{{ path('logout') }}" method="POST">
                    <button class="btn btn-link" type="submit">
                        <i class="icon-signout"></i> {{ __('Logout %name%', {'%name%': user.displayname|trimtext(16)}) }}
                    </button>
                </form>
{'fraction_non_alphanumeric': 0.204323703845418, 'fraction_numerical': 0.0003826286588865506, 'mean_word_length': 1.3085529221257177, 'pattern_counts': {'":': 0, '<': 351, '<?xml version=': 0, '>': 349, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4482533', 'n_tokens_mistral': 4362, 'n_tokens_neox': 3903, 'n_words': 813}