<commit_before>{% block object_actions %}
    {{ echo_block("object_actions") }}
        {% if object_actions|default is not empty %}
            {{ echo_if_granted(builder.ObjectActions|mapBy('credentials')|flatten|join(' or ')|default('denyAll'), builder.ModelClass) }}
                <div class="btn-group">
                {{ echo_block('pre_object_actions') }}{{ echo_endblock() }}
                {% for action in builder.ObjectActions %}
                    {{ echo_block('object_action_' ~ action.twigName) }}
                        {% if action.credentials %}
                            {{ echo_if_granted(action.credentials, builder.ModelClass) }}
                        {% endif -%}
                        {{ block('object_action_block') }}
                        {%- if action.credentials %}
                            {{ echo_endif() }}
                        {% endif %}
                    {{ echo_endblock() }}
                {% endfor %}
                {{ echo_block('post_object_actions') }}{{ echo_endblock() }}
                </div>
            {{ echo_endif() }}
        {% endif -%}
    {{ echo_endblock() }}
{% endblock %}

{% block object_action_block %}
    {% set actionRoute  = action.route ? action.route : (builder.routePrefixWithSubfolder ~ '_' ~ bundle_name ~ (builder.BaseGeneratorName ? "_" ~ builder.BaseGeneratorName : "") ~ '_object') %}
    {% set actionParams = action.params ? echo_twig_assoc(action.params) : "{ 'pk': " ~ builder.ModelClass ~ "." ~ builder.getFieldGuesser().getModelPrimaryKeyName(model) ~ ", action: '" ~ action.name ~ "' }" %}
    {% set translationDomain = action.type is sameas('custom') ? i18n_catalog|default("Admin") : 'Admingenerator' %}

    {% spaceless %}
    {{ echo_spaceless() }}
    <a  class="btn btn-default {% if builder.yamlKey is sameas('list') %}btn-xs {% endif %}{{ action.class|default('') }}"
        href="{{ echo_path(actionRoute, actionParams) }}"
        data-original-title="{{ echo_trans(action.label, {}, translationDomain, 'html_attr') }}"
        {% if builder.yamlKey is sameas('list') %}
            rel="tooltip"
        {% endif %}
        {%- if action.confirm %} data-confirm="{{ echo_trans(action.confirm, {}, translationDomain, 'html_attr') }}" {% endif -%}
        {%- if action.csrfProtected and not action.forceIntermediate %} data-csrf-token="{{ echo_path(actionRoute, actionParams, ['csrf_token']) }}" {% endif -%}>
            <i class="fa fa-fw {{ action.icon|default('fa-square-o') }}"></i>
            {{ echo_trans(action.label, {}, translationDomain) }}
    </a>
    {{ echo_endspaceless() }}
    {% endspaceless %}
{% endblock %}

{% block object_actions_script %}
    {{ echo_block("object_actions_script") }}
    {% if object_actions|default is not empty %}

        <script type="text/javascript">
            jQuery(document).ready(function($) {
                $(".object-actions-{{ builder.ModelClass }}").agen$objectActions({
                    actionsSelector: '.object_actions a'
                });
            });
        </script>
    {% endif %}
    {{ echo_endblock() }}
{% endblock %}<commit_msg>span forgetted<commit_after>{% block object_actions %}
    {{ echo_block("object_actions") }}
        {% if object_actions|default is not empty %}
            {{ echo_if_granted(builder.ObjectActions|mapBy('credentials')|flatten|join(' or ')|default('denyAll'), builder.ModelClass) }}
                <div class="btn-group">
                {{ echo_block('pre_object_actions') }}{{ echo_endblock() }}
                {% for action in builder.ObjectActions %}
                    {{ echo_block('object_action_' ~ action.twigName) }}
                        {% if action.credentials %}
                            {{ echo_if_granted(action.credentials, builder.ModelClass) }}
                        {% endif -%}
                        {{ block('object_action_block') }}
                        {%- if action.credentials %}
                            {{ echo_endif() }}
                        {% endif %}
                    {{ echo_endblock() }}
                {% endfor %}
                {{ echo_block('post_object_actions') }}{{ echo_endblock() }}
                </div>
            {{ echo_endif() }}
        {% endif -%}
    {{ echo_endblock() }}
{% endblock %}

{% block object_action_block %}
    {% set actionRoute  = action.route ? action.route : (builder.routePrefixWithSubfolder ~ '_' ~ bundle_name ~ (builder.BaseGeneratorName ? "_" ~ builder.BaseGeneratorName : "") ~ '_object') %}
    {% set actionParams = action.params ? echo_twig_assoc(action.params) : "{ 'pk': " ~ builder.ModelClass ~ "." ~ builder.getFieldGuesser().getModelPrimaryKeyName(model) ~ ", action: '" ~ action.name ~ "' }" %}
    {% set translationDomain = action.type is sameas('custom') ? i18n_catalog|default("Admin") : 'Admingenerator' %}

    {% spaceless %}
    {{ echo_spaceless() }}
    <a  class="btn btn-default {% if builder.yamlKey is sameas('list') %}btn-xs {% endif %}{{ action.class|default('') }}"
        href="{{ echo_path(actionRoute, actionParams) }}"
        data-original-title="{{ echo_trans(action.label, {}, translationDomain, 'html_attr') }}"
        {% if builder.yamlKey is sameas('list') %}
            rel="tooltip"
        {% endif %}
        {%- if action.confirm %} data-confirm="{{ echo_trans(action.confirm, {}, translationDomain, 'html_attr') }}" {% endif -%}
        {%- if action.csrfProtected and not action.forceIntermediate %} data-csrf-token="{{ echo_path(actionRoute, actionParams, ['csrf_token']) }}" {% endif -%}>
            <i class="fa fa-fw {{ action.icon|default('fa-square-o') }}"></i>
            <span>{{ echo_trans(action.label, {}, translationDomain) }}</span>
    </a>
    {{ echo_endspaceless() }}
    {% endspaceless %}
{% endblock %}

{% block object_actions_script %}
    {{ echo_block("object_actions_script") }}
    {% if object_actions|default is not empty %}

        <script type="text/javascript">
            jQuery(document).ready(function($) {
                $(".object-actions-{{ builder.ModelClass }}").agen$objectActions({
                    actionsSelector: '.object_actions a'
                });
            });
        </script>
    {% endif %}
    {{ echo_endblock() }}
{% endblock %}
{'fraction_non_alphanumeric': 0.17117834394904458, 'fraction_numerical': 0.0006369426751592356, 'mean_word_length': 2.3642206748794856, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '3518049', 'n_tokens_mistral': 1887, 'n_tokens_neox': 1725, 'n_words': 289}