<commit_before>{% extends "PumAppBundle::layout.html.twig" %}

{% set menu_active = menu_active|default('homepage') %}
{% set app_active  = 'projectadmin' %}

{% set pum_menu = {
    'homepage': {
        'color': 'nephritis',
        'icon': 'meter3',
        'title': 'common.dashboard.leftnav'|trans({}, 'pum'),
        'path': 'pa_homepage'
    }
} %}

{% for widget in pum_pa_widgets() %}
    {% if is_granted(widget.permission, widget.permissionParameters) %}
        {% set pum_menu = pum_menu|merge({(widget.name ~ loop.index): {
            color: widget.color,
            icon:  widget.icon,
            title: widget.name|trans({}, 'pum')|pum_ucfirst,
            url:   path(widget.route, widget.routeParameters)
        }}) %}
    {% endif %}
{% endfor %}
<commit_msg>remove index<commit_after>{% extends "PumAppBundle::layout.html.twig" %}

{% set menu_active = menu_active|default('homepage') %}
{% set app_active  = 'projectadmin' %}

{% set pum_menu = {
    'homepage': {
        'color': 'nephritis',
        'icon': 'meter3',
        'title': 'common.dashboard.leftnav'|trans({}, 'pum'),
        'path': 'pa_homepage'
    }
} %}

{% for widget in pum_pa_widgets() %}
    {% if is_granted(widget.permission, widget.permissionParameters) %}
        {% set pum_menu = pum_menu|merge({(widget.name): {
            color: widget.color,
            icon:  widget.icon,
            title: widget.name|trans({}, 'pum')|pum_ucfirst,
            url:   path(widget.route, widget.routeParameters)
        }}) %}
    {% endif %}
{% endfor %}

{'fraction_non_alphanumeric': 0.17935483870967742, 'fraction_numerical': 0.0012903225806451613, 'mean_word_length': 2.810810810810811, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '981777', 'n_tokens_mistral': 558, 'n_tokens_neox': 515, 'n_words': 88}