<commit_before>{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %}

{% block field %}
{% spaceless %}
{% if field_description.options.editable is defined and field_description.options.editable and admin.isGranted('EDIT', object) %}
    {% if value %}
        <a href="{{ url('sonata_admin_set_object_field_value', { 'context': 'list', 'field': field_description.name, 'objectId': admin.id(object), 'value': 0, 'code': admin.code(object) }) }}" class="sonata-ba-action sonata-ba-edit-inline">
            <i class="icon-ok-circle"></i>&nbsp;
            {%- trans from 'SonataAdminBundle' %}label_type_yes{% endtrans -%}
        </a>
    {% else %}
        <a href="{{ url('sonata_admin_set_object_field_value', { 'context': 'list', 'field': field_description.name, 'objectId': admin.id(object), 'value': 1, 'code': admin.code(object) }) }}" class="sonata-ba-action sonata-ba-edit-inline">
            <i class="icon-ban-circle"></i>&nbsp;
            {%- trans from 'SonataAdminBundle' %}label_type_no{% endtrans -%}
        </a>
    {% endif %}
{% else %}
    {% if value %}
        <i class="icon-ok-circle"></i>
        {%- trans from 'SonataAdminBundle' %}label_type_yes{% endtrans -%}
    {% else %}
        <i class="icon-ban-circle"></i>
        {%- trans from 'SonataAdminBundle' %}label_type_no{% endtrans -%}
    {% endif %}
{% endif %}
{% endspaceless %}
{% endblock %}<commit_msg>Added missing space after icon in list for boolean type.<commit_after>{#

This file is part of the Sonata package.

(c) <NAME> <<EMAIL>>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}

{% extends 'SonataAdminBundle:CRUD:base_list_field.html.twig' %}

{% block field %}
{% spaceless %}
{% if field_description.options.editable is defined and field_description.options.editable and admin.isGranted('EDIT', object) %}
    {% if value %}
        <a href="{{ url('sonata_admin_set_object_field_value', { 'context': 'list', 'field': field_description.name, 'objectId': admin.id(object), 'value': 0, 'code': admin.code(object) }) }}" class="sonata-ba-action sonata-ba-edit-inline">
            <i class="icon-ok-circle"></i>&nbsp;
            {%- trans from 'SonataAdminBundle' %}label_type_yes{% endtrans -%}
        </a>
    {% else %}
        <a href="{{ url('sonata_admin_set_object_field_value', { 'context': 'list', 'field': field_description.name, 'objectId': admin.id(object), 'value': 1, 'code': admin.code(object) }) }}" class="sonata-ba-action sonata-ba-edit-inline">
            <i class="icon-ban-circle"></i>&nbsp;
            {%- trans from 'SonataAdminBundle' %}label_type_no{% endtrans -%}
        </a>
    {% endif %}
{% else %}
    {% if value %}
        <i class="icon-ok-circle">&nbsp;
        {%- trans from 'SonataAdminBundle' %}label_type_yes{% endtrans -%}
    {% else %}
        <i class="icon-ban-circle"></i>&nbsp;
        {%- trans from 'SonataAdminBundle' %}label_type_no{% endtrans -%}
    {% endif %}
{% endif %}
{% endspaceless %}
{% endblock %}
{'fraction_non_alphanumeric': 0.18036318867343798, 'fraction_numerical': 0.0012311480455524776, 'mean_word_length': 3.603399433427762, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 32, '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': '6635694', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1033, 'n_words': 243}