<commit_before>{% if menu|length %}
    <div class="{{ cssClass }}">
        <input type="hidden" value="{{ config|json_encode() }}" />
        <ul class="menu">
            {% for m in menu %}
                <li class="{{ m.class }}{% if m.submenu|length %} hasSubMenu{% endif %}">
                    {% block menuLink %}
                    {{ renderer.componentLink(m.data) }}
                    {% endblock %}
                    {% if m.submenu is defined and m.submenu|length %}
                        <div class="dropdown">
                            <ul>
                                {% for sm in m.submenu %}
                                    <li class="{{ sm.class }}">
                                        {% block subMenuLink %}
                                        {{ renderer.componentLink(sm.data) }}
                                        {% endblock %}
                                    </li>
                                {% endfor %}
                            </ul>
                        </div>
                    {% endif %}
                </li>
            {% endfor %}
        </ul>
    </div>
{% endif %}<commit_msg>Check if submenu is defined before check if exists regarding concern bb868896c4d5a36f05ec83dbdd7373a0c725bf49<commit_after>{% if menu|length %}
    <div class="{{ cssClass }}">
        <input type="hidden" value="{{ config|json_encode() }}" />
        <ul class="menu">
            {% for m in menu %}
                <li class="{{ m.class }}{% if m.submenu is defined and m.submenu|length %} hasSubMenu{% endif %}">
                    {% block menuLink %}
                    {{ renderer.componentLink(m.data) }}
                    {% endblock %}
                    {% if m.submenu is defined and m.submenu|length %}
                        <div class="dropdown">
                            <ul>
                                {% for sm in m.submenu %}
                                    <li class="{{ sm.class }}">
                                        {% block subMenuLink %}
                                        {{ renderer.componentLink(sm.data) }}
                                        {% endblock %}
                                    </li>
                                {% endfor %}
                            </ul>
                        </div>
                    {% endif %}
                </li>
            {% endfor %}
        </ul>
    </div>
{% endif %}
{'fraction_non_alphanumeric': 0.12841418671015084, 'fraction_numerical': 0.00978393803505911, 'mean_word_length': 0.8492840994724944, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4100127', 'n_tokens_mistral': 635, 'n_tokens_neox': 538, 'n_words': 129}