<commit_before><div id='bolt-nipple'></div>

<div id='bolt-debugbar'>
    <ul>
        <li id='pd-bolt'><strong><a href="{{ path('dashboard') }}">Bolt {{bolt_version}}</a></strong><small>{% if bolt_name is defined %} - {{bolt_name}}{% endif %}</small></li>
        <li id='pd-variables'><a href="#" data-for="bolt-varpanel">{{timetaken}} s<span class='narrow'>ec / {{ maxmemtaken }}</span></a></li>
        {% if frontend is defined and editlink!="" %}
{#        <li id='pd-edit'><a href="#" data-for="bolt-editpanel">Edit</a></li> #}
        <li id='pd-edit'><a href="{{ editlink }}" data-for="bolt-editpanel">Edit</a></li>
        {% endif %}

        <li id='pd-log'><a href="#" data-for="bolt-logpanel">Log<span class='narrow'> entries</span></a>
            <small>({{ log|length }})</small></li>
        <li id='pd-server'><a href="#" data-for="bolt-serverpanel"><span class='narrow'>bolt.localhost</span><span class='narrowonly'>srv</span></a> <small>({{ servervars.statuscode }})</small></li>
        <li id='pd-queries'>
            {% if querycount==0 %}
                No Q<span class='narrow'>ueries</span>
                {% elseif querycount==1 %}
                <a href="#" data-for="bolt-queriespanel">1 Q<span class='narrow'>uery</span></a> <small>({{querytime}} sec)</small>
            {% else %}
                <a href="#" data-for="bolt-queriespanel">{{querycount}} Q<span class='narrow'>ueries</span></a> <small>({{querytime}} sec)</small>
            {% endif %}</li>
    </ul>
</div>

{# TODO: make editable from frontend..
<div id='bolt-editpanel' class='bolt-debugpanel'>
    <p>Click one of the highlighted fields, or <a href="{{editlink}}">Edit in the bolt backend</a>.
</div>
#}

<div id='bolt-varpanel' class='bolt-debugpanel'>
<pre>
<strong>Time taken:</strong> {{timetaken}} sec. / <strong>Memory:</strong> {{ maxmemtaken }} (peak) / {{ memtaken }} (current).

{% if frontend is defined and logvalues.templatechosen is defined %}<commit_msg>Minor tweak in debugbar.<commit_after><div id='bolt-nipple'></div>

<div id='bolt-debugbar'>
    <ul>
        <li id='pd-bolt'><strong><a href="{{ path('dashboard') }}">Bolt {{bolt_version}}</a></strong><small>{% if bolt_name is defined and bolt_name != "" %} - {{bolt_name}}{% endif %}</small></li>
        <li id='pd-variables'><a href="#" data-for="bolt-varpanel">{{timetaken}} s<span class='narrow'>ec / {{ maxmemtaken }}</span></a></li>
        {% if frontend is defined and editlink!="" %}
{#        <li id='pd-edit'><a href="#" data-for="bolt-editpanel">Edit</a></li> #}
        <li id='pd-edit'><a href="{{ editlink }}" data-for="bolt-editpanel">Edit</a></li>
        {% endif %}

        <li id='pd-log'><a href="#" data-for="bolt-logpanel">Log<span class='narrow'> entries</span></a>
            <small>({{ log|length }})</small></li>
        <li id='pd-server'><a href="#" data-for="bolt-serverpanel"><span class='narrow'>bolt.localhost</span><span class='narrowonly'>srv</span></a> <small>({{ servervars.statuscode }})</small></li>
        <li id='pd-queries'>
            {% if querycount==0 %}
                No Q<span class='narrow'>ueries</span>
                {% elseif querycount==1 %}
                <a href="#" data-for="bolt-queriespanel">1 Q<span class='narrow'>uery</span></a> <small>({{querytime}} sec)</small>
            {% else %}
                <a href="#" data-for="bolt-queriespanel">{{querycount}} Q<span class='narrow'>ueries</span></a> <small>({{querytime}} sec)</small>
            {% endif %}</li>
    </ul>
</div>

{# TODO: make editable from frontend..
<div id='bolt-editpanel' class='bolt-debugpanel'>
    <p>Click one of the highlighted fields, or <a href="{{editlink}}">Edit in the bolt backend</a>.
</div>
#}

<div id='bolt-varpanel' class='bolt-debugpanel'>
<pre>
<strong>Time taken:</strong> {{timetaken}} sec. / <strong>Memory:</strong> {{ maxmemtaken }} (peak) / {{ memtaken }} (current).

{% if frontend is defined and logvalues.templatechosen is defined %}
{'fraction_non_alphanumeric': 0.23725834797891038, 'fraction_numerical': 0.001506402209389907, 'mean_word_length': 3.5635738831615122, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 149, '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': '7464422', 'n_tokens_mistral': 1417, 'n_tokens_neox': 1325, 'n_words': 267}