<commit_before>{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %}

{% block menu %}
    <span class="label">
        <span class="icon"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABqElEQVRYR8WWQU6FMBCGpwmsTFwZFx5D31H0AC7MCxpgiYlbN27b+DAsvIDexOgxXBh3uiEkHVPzeClIYToIsG6Zb/75+7cCFv7EwvVhFIBSaqW1xjRNX7mNjAKQUhZCCIzjeD07gJRyHwDejQJlWR5lWfbFgWArIKU0XT+Yooi4TtO0mBvAzP14W/QtSZKT2QCM+RDxxS6IiCuOGVkjMOYDgAsbQAhRcMzoDVCbDwD2bACt9TfHjByAnfnaM+eYkQNgm6/N4G3GHYBS6gwRNwBwwHGzx55PIcRlHMdPZk9DgTzPD6uqugeAU48f+ix9DsPwKoqij3pT5wgmUKPRdeP0uPD/UY0/XZMA6kUj1HB27QVgFjPU6O3aG8Bs6Ipf1/h8YpmcA13x6wLwiWUSgCt+XQA+sUwFcMZvzxhIbwQqQFf8/rp8+yDpSlBSLA8COMzXcLnrlFDMOAjQMl/v2W5nBsWMvQAt85HOtq0GxYxDAMZ8t/btRb15ajUQ8abvwdoLoJS6DoLg0b69qABWgp4nSXLnzAyfH06xdtCEUxRl3QVTgSyuwA+XPQYwCdfEiQAAAABJRU5ErkJggg==" alt="Twig constants" width="32" height="32" /></span>
        <strong>Twig Constants</strong>
    </span>
{% endblock %}

{% block panel %}
    <h2>Constants</h2>
    <table>
        {% for accessor in collector.accessors %}
            <thead>
            <tr>
                <th colspan="2">
                    {{ accessor.alias }} (<i>{{ accessor.class }}</i>)
                    {% if accessor.matches %}
                        <br>
                        <span style="font-size: 12px; font-weight: normal;">Matches rule: {{ accessor.matches }}</span>
                    {% endif %}
                </th>
            </tr>
            </thead>

            {% for key, value in accessor.constants %}
                <tr>
                    <th style="width: 25%;">{{ key }}</th>
                    <td>{{ value }}</td>
                </tr>
            {% endfor %}
        {% else %}
            <tr>
                <td colspan="2" style="text-align: center;">No constants declared.</td>
            </tr>
        {% endfor %}
    </table>
{% endblock %}<commit_msg>Fix debugger if constant is an array<commit_after>{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %}

{% block menu %}
    <span class="label">
        <span class="icon"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABqElEQVRYR8WWQU6FMBCGpwmsTFwZFx5D31H0AC7MCxpgiYlbN27b+DAsvIDexOgxXBh3uiEkHVPzeClIYToIsG6Zb/75+7cCFv7EwvVhFIBSaqW1xjRNX7mNjAKQUhZCCIzjeD07gJRyHwDejQJlWR5lWfbFgWArIKU0XT+Yooi4TtO0mBvAzP14W/QtSZKT2QCM+RDxxS6IiCuOGVkjMOYDgAsbQAhRcMzoDVCbDwD2bACt9TfHjByAnfnaM+eYkQNgm6/N4G3GHYBS6gwRNwBwwHGzx55PIcRlHMdPZk9DgTzPD6uqugeAU48f+ix9DsPwKoqij3pT5wgmUKPRdeP0uPD/UY0/XZMA6kUj1HB27QVgFjPU6O3aG8Bs6Ipf1/h8YpmcA13x6wLwiWUSgCt+XQA+sUwFcMZvzxhIbwQqQFf8/rp8+yDpSlBSLA8COMzXcLnrlFDMOAjQMl/v2W5nBsWMvQAt85HOtq0GxYxDAMZ8t/btRb15ajUQ8abvwdoLoJS6DoLg0b69qABWgp4nSXLnzAyfH06xdtCEUxRl3QVTgSyuwA+XPQYwCdfEiQAAAABJRU5ErkJggg==" alt="Twig constants" width="32" height="32" /></span>
        <strong>Twig Constants</strong>
    </span>
{% endblock %}

{% block panel %}
    <h2>Constants</h2>
    <table>
        {% for accessor in collector.accessors %}
            <thead>
            <tr>
                <th colspan="2">
                    {{ accessor.alias }} (<i>{{ accessor.class }}</i>)
                    {% if accessor.matches %}
                        <br>
                        <span style="font-size: 12px; font-weight: normal;">Matches rule: {{ accessor.matches }}</span>
                    {% endif %}
                </th>
            </tr>
            </thead>

            {% for key, value in accessor.constants %}
                {{ _self.print_constant(key, value) }}
            {% endfor %}
        {% else %}
            <tr>
                <td colspan="2" style="text-align: center;">No constants declared.</td>
            </tr>
        {% endfor %}
    </table>
{% endblock %}

{% macro print_constant(key, value) %}
    {% if value is iterable %}
        {% for c_key, c_value in value %}
            {{ _self.print_constant(key~'.'~c_key, c_value) }}
        {% endfor %}
    {% else %}
        <tr>
            <th style="width: 25%;">{{ key }}</th>
            <td>{{ value }}
        </tr>
    {% endif %}
{% endmacro %}
{'fraction_non_alphanumeric': 0.12860635696821515, 'fraction_numerical': 0.045965770171149146, 'mean_word_length': 2.62677304964539, 'pattern_counts': {'":': 0, '<': 66, '<?xml version=': 0, '>': 66, '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': '5706', 'n_tokens_mistral': 1958, 'n_tokens_neox': 1742, 'n_words': 181}