<commit_before>{# FuzAppBundle:Fiddle:result.html.twig #}
{# Rendered by: FuzAppBundle:Fiddle:run #}

{#
 # This file is part of twigfiddle.com project.
 #
 # (c) <NAME> <<EMAIL>>
 #
 # For the full copyright and license information, please view the LICENSE
 # file that was distributed with this source code.
 #}

{% import "FuzAppBundle::macros.html.twig" as macros %}

{% if data.result == null %}

    {# Technical error #}
    {{ macros.box('black', 'A fatal error occured', 'The response do not contain anything to display, even errors.') }}

{% else %}

    {# Functional errors #}
    {% if data.result.errors %}
        {{ include("FuzAppBundle:Fiddle:result-error.html.twig") }}
    {% endif %}

    {# Result #}
    {% if data.result.rendered %}
        {{ include("FuzAppBundle:Fiddle:result-rendered.html.twig") }}
    {% endif %}

    {# Deprecation notices #}
    {% if data.result.deprecations %}
        {{ include("FuzAppBundle:Fiddle:result-deprecation.html.twig") }}
    {% endif %}

    {# Compiled files #}
    {% if data.result.compiled %}
        {{ include("FuzAppBundle:Fiddle:result-compiled.html.twig") }}
    {% endif %}

    {# Debug Mode enabled #}
    {% if fiddle.debug %}
        {{ include("FuzAppBundle:Fiddle:result-debug.html.twig") }}
    {% endif %}

    {# Duration #}
    {% if data.duration %}
        {{ include("FuzAppBundle:Fiddle:result-duration.html.twig") }}
    {% endif %}

{% endif %}
<commit_msg>fix result evaluating to false, fix #60<commit_after>{# FuzAppBundle:Fiddle:result.html.twig #}
{# Rendered by: FuzAppBundle:Fiddle:run #}

{#
 # This file is part of twigfiddle.com project.
 #
 # (c) <NAME> <<EMAIL>>
 #
 # For the full copyright and license information, please view the LICENSE
 # file that was distributed with this source code.
 #}

{% import "FuzAppBundle::macros.html.twig" as macros %}

{% if data.result == null %}

    {# Technical error #}
    {{ macros.box('black', 'A fatal error occured', 'The response do not contain anything to display, even errors.') }}

{% else %}

    {# Functional errors #}
    {% if data.result.errors %}
        {{ include("FuzAppBundle:Fiddle:result-error.html.twig") }}
    {% endif %}

    {# Result #}
    {% if data.result.rendered|length %}
        {{ include("FuzAppBundle:Fiddle:result-rendered.html.twig") }}
    {% endif %}

    {# Deprecation notices #}
    {% if data.result.deprecations %}
        {{ include("FuzAppBundle:Fiddle:result-deprecation.html.twig") }}
    {% endif %}

    {# Compiled files #}
    {% if data.result.compiled %}
        {{ include("FuzAppBundle:Fiddle:result-compiled.html.twig") }}
    {% endif %}

    {# Debug Mode enabled #}
    {% if fiddle.debug %}
        {{ include("FuzAppBundle:Fiddle:result-debug.html.twig") }}
    {% endif %}

    {# Duration #}
    {% if data.duration %}
        {{ include("FuzAppBundle:Fiddle:result-duration.html.twig") }}
    {% endif %}

{% endif %}

{'fraction_non_alphanumeric': 0.16888433981576254, 'fraction_numerical': 0.000682360968952576, 'mean_word_length': 3.1237693389592125, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4152547', 'n_tokens_mistral': 1057, 'n_tokens_neox': 938, 'n_words': 196}