<commit_before>{% macro div_data(data, trans_prefix, trans_domain) %}

    {% import _self as that %}

    {% for name, value in data %}
        {{ that.div_property(name, trans_prefix ~ name, value, trans_domain) }}
    {% endfor %}
{% endmacro %}

{% macro plain_data(data, trans_prefix, trans_domain) %}

    {% import _self as that %}

    {% for name, value in data %}

        {{ that.plain_property(name, trans_prefix ~ name, value, trans_domain) }}

    {% endfor %}

{% endmacro %}

{% macro table_data(data, trans_prefix, trans_domain) %}

    {% import _self as that %}

    {% if data is not empty %}
        <table>
            {% for name, value in data %}
                {{ that.table_property(name, trans_prefix ~ name, value, trans_domain) }}
            {% endfor %}
        </table>
    {% endif %}
{% endmacro %}

{% macro div_property(name, title, value, trans_domain) %}
    {% if value is not same as(null) and value is not same as('') and not (value is iterable and value is empty) %}

        {% import _self as that %}

        {% if trans_domain is defined %}

            {% trans_default_domain trans_domain %}

        {% endif %}

        <div class="details-list__property">
            {% if name %}
                <span class="details-list__property-name"
                      style="font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: #7e7e7e;">
                    {% if value is iterable %}
                        {{ (title ~ '.title')|trans }}
                    {% else %}
                        {{ title|trans }}
                    {% endif %}
                </span>
            {% endif %}
            <span class="details-list__property-value"
                  style="font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: #333333;">
                {% if value is iterable %}

                    {% set keys = value|keys %}

                    {% if keys is same as(keys|keys) %}
                        <ol>
                            {% for item_name, item_value in value %}
                                <li>{{ that.div_property(null, title, item_value, trans_domain) }}</li>
                            {% endfor %}
                        </ol>
                    {% else %}
                        <ul>
                            {% for item_name, item_value in value %}
                                <li>{{ that.div_property(item_name, title ~ '.item.' ~ item_name, item_value, trans_domain) }}</li>
                            {% endfor %}
                        </ul>
                    {% endif %}
                {% elseif value is same as(true) or value is same as(false) %}
                    {{ ('boolean.' ~ (value ? 'yes' : 'no'))|trans }}
                {% elseif 'email' in name|lower %}
                    <a href="mailto:{{ value }}"
                       style="font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: #333333;">
                        {{ value }}
                    </a>
                {% elseif 'phone' in name|lower %}
                    <a href="tel:{{ value }}"
                       style="font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: #333333;">
                        {{ value }}
                    </a>
                {% else %}
                    {{ value|trans|raw }}
                {% endif %}
            </span>
        </div>
    {% endif %}
{% endmacro %}

{% macro plain_property(name, title, value, trans_domain) %}

    {% if value is not same as(null) and value is not same as('') and not (value is iterable and value is empty) %}

        {% import _self as that %}

        {% if trans_domain is defined %}

            {% trans_default_domain trans_domain %}

        {% endif %}

        {% if name %}

            {% if value is iterable %}
                {{ (title ~ '.title')|trans }}
            {% else %}
                {{ title|trans }}
            {% endif %}

        {% endif %}

        {% if value is iterable %}

            {% set keys = value|keys %}

            {% if keys is same as(keys|keys) %}

                {% for item_name, item_value in value %}

                    {{ that.div_property(null, title, item_value, trans_domain) }}

                {% endfor %}

            {% else %}

                {% for item_name, item_value in value %}

                    {{ that.div_property(item_name, title ~ '.item.' ~ item_name, item_value, trans_domain) }}

                {% endfor %}

            {% endif %}

        {% elseif value is same as(true) or value is same as(false) %}
            {{ ('boolean.' ~ (value ? 'yes' : 'no'))|trans }}
        {% else %}
            {{ value|trans|raw }}
        {% endif %}

    {% endif %}

{% endmacro %}<commit_msg>Add plain_data() macro.<commit_after>{% macro div_data(data, trans_prefix, trans_domain) %}

    {% import _self as that %}

    {% for name, value in data %}
        {{ that.div_property(name, trans_prefix ~ name, value, trans_domain) }}
    {% endfor %}
{% endmacro %}

{% macro plain_data(data, trans_prefix, trans_domain) %}

    {% import _self as that %}

    {% for name, value in data %}

        {{ that.plain_property(name, trans_prefix ~ name, value, trans_domain) }}

    {% endfor %}

{% endmacro %}

{% macro table_data(data, trans_prefix, trans_domain) %}

    {% import _self as that %}

    {% if data is not empty %}
        <table>
            {% for name, value in data %}
                {{ that.table_property(name, trans_prefix ~ name, value, trans_domain) }}
            {% endfor %}
        </table>
    {% endif %}
{% endmacro %}

{% macro div_property(name, title, value, trans_domain) %}
    {% if value is not same as(null) and value is not same as('') and not (value is iterable and value is empty) %}

        {% import _self as that %}

        {% if trans_domain is defined %}

            {% trans_default_domain trans_domain %}

        {% endif %}

        <div class="details-list__property">
            {% if name %}
                <span class="details-list__property-name"
                      style="font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: #7e7e7e;">
                    {% if value is iterable %}
                        {{ (title ~ '.title')|trans }}
                    {% else %}
                        {{ title|trans }}
                    {% endif %}
                </span>
            {% endif %}
            <span class="details-list__property-value"
                  style="font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: #333333;">
                {% if value is iterable %}

                    {% set keys = value|keys %}

                    {% if keys is same as(keys|keys) %}
                        <ol>
                            {% for item_name, item_value in value %}
                                <li>{{ that.div_property(null, title, item_value, trans_domain) }}</li>
                            {% endfor %}
                        </ol>
                    {% else %}
                        <ul>
                            {% for item_name, item_value in value %}
                                <li>{{ that.div_property(item_name, title ~ '.item.' ~ item_name, item_value, trans_domain) }}</li>
                            {% endfor %}
                        </ul>
                    {% endif %}
                {% elseif value is same as(true) or value is same as(false) %}
                    {{ ('boolean.' ~ (value ? 'yes' : 'no'))|trans }}
                {% elseif 'email' in name|lower %}
                    <a href="mailto:{{ value }}"
                       style="font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: #333333;">
                        {{ value }}
                    </a>
                {% elseif 'phone' in name|lower %}
                    <a href="tel:{{ value }}"
                       style="font-family: Arial, sans-serif; font-size: 15px; line-height: 23px; color: #333333;">
                        {{ value }}
                    </a>
                {% else %}
                    {{ value|trans|raw }}
                {% endif %}
            </span>
        </div>
    {% endif %}
{% endmacro %}

{% macro plain_property(name, title, value, trans_domain) %}

    {%- if value is not same as(null) and value is not same as('') and not (value is iterable and value is empty) -%}

        {%- import _self as that -%}

        {%- if trans_domain is defined -%}

            {%- trans_default_domain trans_domain -%}

        {%- endif -%}

        {%- if name -%}

            {%- if value is iterable -%}
                {{- (title ~ '.title')|trans -}}
            {%- else -%}
                {{- title|trans -}}
            {%- endif -%}

        {%- endif -%}

        {%- if value is iterable -%}

            {%- set keys = value|keys -%}

            {%- if keys is same as(keys|keys) -%}

                {%- for item_name, item_value in value -%}

                    {{- that.div_property(null, title, item_value, trans_domain) -}}

                {%- endfor -%}

            {%- else -%}

                {%- for item_name, item_value in value -%}

                    {{- that.div_property(item_name, title ~ '.item.' ~ item_name, item_value, trans_domain) -}}

                {%- endfor -%}

            {%- endif -%}

        {%- elseif value is same as(true) or value is same as(false) -%}
            {{- ('boolean.' ~ (value ? 'yes' : 'no'))|trans -}}
        {%- else -%}
            {{- value|trans|raw -}}
        {%- endif -%}

    {%- endif -%}

{% endmacro %}
{'fraction_non_alphanumeric': 0.1445795548227535, 'fraction_numerical': 0.007625721352019786, 'mean_word_length': 1.3717008797653958, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5754624', 'n_tokens_mistral': 3094, 'n_tokens_neox': 2576, 'n_words': 698}