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

{% set type = definition.getType(field) %}
{% if type == 'date' %}
    {{ app.crud.formatDate(entity.get(field)) }}
{% elseif type == 'reference' and entity.get(field) %}
    {% set reference = entity.get(field) %}
    <a href="{{ app.url_generator.generate('crudShow', {'entity': definition.getReferenceEntity(field), 'id': reference['id']}) }}" type="button" class="btn btn-default btn-xs btn-success">{{ reference['id'] }}: {{ reference['name'] }}</a>
{% elseif type == 'multiline' %}<commit_msg>proper formatting date times when rendering<commit_after>{#
 # This file is part of the CRUDlex package.
 #
 # (c) <NAME> <<EMAIL>>
 #
 # For the full copyright and license information, please view the LICENSE
 # file that was distributed with this source code.
 #}

{% set type = definition.getType(field) %}
{% if type == 'date' %}
    {{ app.crud.formatDate(entity.get(field)) }}
{% elseif type == 'datetime' and entity.get(field) %}
    {{ app.crud.formatDateTime(entity.get(field)) }}
{% elseif type == 'reference' and entity.get(field) %}
    {% set reference = entity.get(field) %}
    <a href="{{ app.url_generator.generate('crudShow', {'entity': definition.getReferenceEntity(field), 'id': reference['id']}) }}" type="button" class="btn btn-default btn-xs btn-success">{{ reference['id'] }}: {{ reference['name'] }}</a>
{% elseif type == 'multiline' %}
{'fraction_non_alphanumeric': 0.1892744479495268, 'fraction_numerical': 0.0, 'mean_word_length': 4.7672727272727276, 'pattern_counts': {'":': 0, '<': 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': '2198310', 'n_tokens_mistral': 500, 'n_tokens_neox': 480, 'n_words': 139}