<commit_before><div id="sfwdt{{ token }}" class="sf-toolbar" style="display: none"></div>
{% include 'WebProfilerBundle:Profiler:base_js.html.twig' %}
<script type="text/javascript">/*<![CDATA[*/
    (function () {
        Sfjs.load(
            'sfwdt{{ token }}',
            '{{ path("_wdt", { "token": token }) }}',
            function(xhr, el) {
                el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
            },
            function(xhr) {
                confirm('An error occurred while loading the web debug toolbar (' + xhr.status + ': ' + xhr.statusText + ').\n\nDo you want to open the profiler?') && (window.location = '{{ path("_profiler", { "token": token }) }}')
            }
        );
    })();
/*]]>*/</script>
<commit_msg>avoid showing the web profiler toolbar loading error if status is 0<commit_after><div id="sfwdt{{ token }}" class="sf-toolbar" style="display: none"></div>
{% include 'WebProfilerBundle:Profiler:base_js.html.twig' %}
<script type="text/javascript">/*<![CDATA[*/
    (function () {
        Sfjs.load(
            'sfwdt{{ token }}',
            '{{ path("_wdt", { "token": token }) }}',
            function(xhr, el) {
                el.style.display = -1 !== xhr.responseText.indexOf('sf-toolbarreset') ? 'block' : 'none';
            },
            function(xhr) {
                if (xhr.status !== 0) {
                    confirm('An error occurred while loading the web debug toolbar (' + xhr.status + ': ' + xhr.statusText + ').\n\nDo you want to open the profiler?') && (window.location = '{{ path("_profiler", { "token": token }) }}');
                }
            }
        );
    })();
/*]]>*/</script>

{'fraction_non_alphanumeric': 0.20140105078809106, 'fraction_numerical': 0.002335084646818447, 'mean_word_length': 2.302504816955684, 'pattern_counts': {'":': 4, '<': 13, '<?xml version=': 0, '>': 13, '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': '924518', 'n_tokens_mistral': 548, 'n_tokens_neox': 527, 'n_words': 110}