<commit_before>{% extends 'knp_menu.html.twig' %}
{% block label %}
    {% if item.getExtra('icon') is defined %}<i class="{{ item.getExtra('icon') }}"></i>{% endif %}
    {% set labelText = item.label|trans(item.getExtra('translation_params', {}), item.getExtra('translation_domain', 'messages')) %}
    {% if options.allow_safe_labels and item.getExtra('safe_label', false) %}{{ labelText|raw }}{% else %}{{ labelText }}{% endif %}
    {% if item.getExtra('caret') %}<b class="caret"></b>{% endif %}
{% endblock %}
<commit_msg>Do not translate labels on menu entries if it's an empty string.<commit_after>{% extends 'knp_menu.html.twig' %}
{% block label %}
    {% if item.getExtra('icon') is defined %}<i class="{{ item.getExtra('icon') }}"></i>{% endif %}
    {% set labelText = item.label != '' ? item.label|trans(item.getExtra('translation_params', {}), item.getExtra('translation_domain', 'messages')) %}
    {% if options.allow_safe_labels and item.getExtra('safe_label', false) %}{{ labelText|raw }}{% else %}{{ labelText }}{% endif %}
    {% if item.getExtra('caret') %}<b class="caret"></b>{% endif %}
{% endblock %}

{'fraction_non_alphanumeric': 0.22416812609457093, 'fraction_numerical': 0.0, 'mean_word_length': 4.891752577319588, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '4732570', 'n_tokens_mistral': 398, 'n_tokens_neox': 365, 'n_words': 80}