<commit_before>{% set current_route = app.request.attributes.get('_route') %}

{% for title, route in {
    'login':          'darvin_user_security_login',
    'register':       'darvin_user_security_register',
    'reset_password': '<PASSWORD>',
} %}
    {% if route != current_route %}
        <a href="{{ path(route) }}">{{ ('security.menu.' ~ title)|trans }}</a>
    {% endif %}
{% endfor %}<commit_msg>Replace for..if with |filter.<commit_after>{% set current_route = app.request.attributes.get('_route') %}

{% for title, route in {
    'login':          'darvin_user_security_login',
    'register':       'darvin_user_security_register',
    'reset_password': '<PASSWORD>',
}|filter(route => route != current_route) %}
    <a href="{{ path(route) }}">{{ ('security.menu.' ~ title)|trans }}</a>
{% endfor %}
{'fraction_non_alphanumeric': 0.20270270270270271, 'fraction_numerical': 0.0, 'mean_word_length': 3.8511904761904763, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '1354596', 'n_tokens_mistral': 271, 'n_tokens_neox': 259, 'n_words': 52}