<commit_before>{% set tagkey = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_TAGS') %}
{% set nid    = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_NID') %}
{% set gid    = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_GID') %}
{% set path     = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_PATH') %}
{% set label    = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_LABEL') %}
{% set type     = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_TYPE') %}
{% set domain   = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_DOMAIN') %}
{% set auth     = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_AUTHORITY') %}
{% set lid      = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_LID') %}
{% set namespace= constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_NAMESPACE') %}
{% set version  = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_VERSION') %}

{% for key,value in data  %}
    {% if key != '_id' and key != tagkey %}
        {% set term= tags[key][path][0]|base_term %}
        <div class="{{ tags[key][type][0]|replace({':':'type_'}) }} node_detail pull-left">
            <div class="node_detail_label">
                {% for base in term %}
                    {{ terms[base][label]['en'] }}</strong>
                {% endfor %}
            </div>
            <div class="node_detail_text">
                {% if value|is_array %}
                    {% for subvalue in value%}
                        {% if tags[key][type][0] == ':ENUM' %}
                            {{ terms[subvalue][label]['en'] }}
                        {% else %}
                            {{ subvalue }}
                        {% endif %}
                    {% endfor %}
                {% else %}
                    {% if tags[key][type][0] == ':ENUM' %}
                        <!--TODO: manage exception-->
                        {% if terms[value][label]['en'] is defined %}
                            {{ terms[value][label]['en'] }}
                        {% else %}
                            no-data-found ( {{ key }} - {{ value }} )
                        {% endif%}
                    {% elseif tags[key][type][0] == ':URL' %}
                        <a href="{{ value }}" target="_blank">{{ value }}</a>
                    {% elseif tags[key][type][0] == ':STRUCT' %}<commit_msg>Update more_detail.html.twig<commit_after>{% set tagkey = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_TAGS') %}
{% set nid    = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_NID') %}
{% set gid    = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_GID') %}
{% set path     = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_PATH') %}
{% set label    = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_LABEL') %}
{% set type     = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_TYPE') %}
{% set domain   = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_DOMAIN') %}
{% set auth     = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_AUTHORITY') %}
{% set lid      = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_LID') %}
{% set namespace= constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_NAMESPACE') %}
{% set version  = constant('Bioversity\\ServerConnectionBundle\\Repository\\Tags::kTAG_VERSION') %}

{% for key,value in data  %}
    {% if key != '_id' and key != tagkey %}
        {% set term= tags[key][path][0]|base_term %}
        <div class="{{ tags[key][type][0]|replace({':':'type_'}) }} node_detail pull-left">
            <div class="node_detail_label">
                {% for base in term %}
                    {{ terms[base][label]['en'] }}</strong>
                {% endfor %}
            </div>
            <div class="node_detail_text">
                {% if value|is_array %}
                    {% for subvalue in value%}
                        {% if tags[key][type][0] == ':ENUM' %}
                            {{ terms[subvalue][label]['en'] }}
                        {% else %}
                            {{ subvalue }}
                        {% endif %}
                    {% endfor %}
                {% else %}
                    {% if tags[key][type][0] == ':ENUM' %}
                        <!--TODO: manage exception-->
                        {% if terms[value][label]['en'] is defined %}
                            {{ terms[value][label]['en'] }}
                        {% else %}
                            no-data-found ( {{ key }} - {{ value }} )
                        {% endif%}
                    {% elseif tags[key][type][0] == ':URL' %}
                        <a href="{{ value }}" target="_blank">{{ value }}</a>
                    {% elseif tags[key][type][0] == ':STRUCT' %}
                        <!-- check on type. If contain array nothing change else explod the value -->
{'fraction_non_alphanumeric': 0.17707326502996326, 'fraction_numerical': 0.002319737096462401, 'mean_word_length': 1.978698906160046, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '7060730', 'n_tokens_mistral': 1510, 'n_tokens_neox': 1342, 'n_words': 227}