<commit_before><div class="navbar navbar-fixed-top navbar-inverse">
    <div class="navbar-inner">
        <a class="brand" href="{{ path('gitonomyfrontend_main_homepage') }}">&nbsp;{{ gitonomy.name }}</a>
        <ul class="nav">
            {% set projects = project_list() %}
            {% if projects|length or is_granted('ROLE_PROJECT_CREATE') %}
                <li class="projects dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        Projects
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        {% for project in projects %}
                            <li><a href="{{ path('gitonomyfrontend_project_show', {'slug': project.slug }) }}">{{ project.name }}</a></li>
                        {% endfor %}
                        {% if projects|length and is_granted('ROLE_PROJECT_CREATE') %}
                            <li class="divider"></li>
                        {% endif %}
                        {% if is_granted('ROLE_PROJECT_CREATE') %}
                            <li><a href="#">Create</a></li>
                        {% endif %}
                    </ul>
                </li>
            {% endif %}
            <li class="users dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    Users
                    <b class="caret"></b>
                    </a>
                <ul class="dropdown-menu">
                    {% for user in user_list() %}
                        <li><a href="{{ path('gitonomyfrontend_user_show', {'username': user.username}) }}">{{ user.fullname }}</a></li>
                    {% endfor %}
                    <li class="divider"></li>
                    <li><a href="{{ path('gitonomyfrontend_adminuser_create') }}">Create</a></li>
                </ul>
            </li><commit_msg>fix bugs of User and Project menus<commit_after>{% set projects = project_list() %}
{% set users = user_list() %}

<div class="navbar navbar-fixed-top navbar-inverse">
    <div class="navbar-inner">
        <a class="brand" href="{{ path('gitonomyfrontend_main_homepage') }}">&nbsp;{{ gitonomy.name }}</a>
        <ul class="nav">
            {% if projects|length or is_granted('ROLE_PROJECT_CREATE') %}
                <li class="projects dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        Projects
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu">
                        {% for project in projects %}
                            <li><a href="{{ path('gitonomyfrontend_project_show', {'slug': project.slug }) }}">{{ project.name }}</a></li>
                        {% endfor %}
                        {% if is_granted('ROLE_PROJECT_CREATE') %}
                            {% if projects|length %}
                                <li class="divider"></li>
                            {% endif %}
                            <li><a href="{{ path('gitonomyfrontend_adminproject_create') }}">Create</a></li>
                        {% endif %}
                    </ul>
                </li>
            {% endif %}
            {% if  app.user and (users|length or is_granted('ROLE_USER_CREATE')) %}
                <li class="users dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        Users
                        <b class="caret"></b>
                        </a>
                    <ul class="dropdown-menu">
                        {% for user in user_list() %}
                            <li>
                                <a href="{{ path('gitonomyfrontend_user_show', {'username': user.username}) }}">{{ user.fullname }}</a>
                            </li>
                        {% endfor %}
                        {% if is_granted('ROLE_USER_CREATE') %}
                            {% if users|length %}
                                <li class="divider"></li>
                            {% endif %}
                            <li><a href="{{ path('gitonomyfrontend_adminuser_create') }}">Create</a></li>
                        {% endif %}
                    </ul>
                </li>
            {% endif %}
{'fraction_non_alphanumeric': 0.15365239294710328, 'fraction_numerical': 0.0, 'mean_word_length': 1.2251655629139073, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4825318', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1050, 'n_words': 214}