<commit_before>{% macro renderRestrictionsView(scopeEntities, scopes) %}
    {% import _self as self %}
    {% if oro_scope_is_empty(scopeEntities, scopes) %}
        {{ 'N/A'|trans }}
    {% else %}
        {% set gridHtml = self.renderRestrictionsViewGrid(scopeEntities, scopes) %}
        {{ gridHtml }}
    {% endif %}
{% endmacro %}

{% macro renderRestrictionsViewGrid(scopeEntities, scopes) %}
    <div class="grid-container">
        <table class="grid table table-bordered table-condensed">
            <thead>
                <tr>
                    {% for entityClass in scopeEntities %}
                        <th><span>{{ oro_entity_config_value(entityClass, 'label')|trans }}</span></th>
                    {% endfor %}
                </tr>
            </thead>
            <tbody>
            {% for scope in scopes %}
                <tr>
                    {% for fieldName, entityClass in scopeEntities %}
                        <td>
                            {{ attribute(scope, fieldName) ? : 'Any'|trans }}
                        </td>
                    {% endfor %}
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endmacro %}
<commit_msg>BB-14454: Not able to remove restrictions for default content variant in content block (#22342)<commit_after>{% macro renderRestrictionsView(scopeEntities, scopes) %}
    {% import _self as self %}
    {% if scopes is empty or oro_scope_is_empty(scopeEntities, scopes) %}
        {{ 'N/A'|trans }}
    {% else %}
        {% set gridHtml = self.renderRestrictionsViewGrid(scopeEntities, scopes) %}
        {{ gridHtml }}
    {% endif %}
{% endmacro %}

{% macro renderRestrictionsViewGrid(scopeEntities, scopes) %}
    <div class="grid-container">
        <table class="grid table table-bordered table-condensed table-fixed table-hover">
            <thead>
                <tr>
                    {% for entityClass in scopeEntities %}
                        <th><span>{{ oro_entity_config_value(entityClass, 'label')|trans }}</span></th>
                    {% endfor %}
                </tr>
            </thead>
            <tbody>
            {% for scope in scopes %}
                <tr>
                    {% for fieldName, entityClass in scopeEntities %}
                        <td>
                            {{ attribute(scope, fieldName) ? : 'Any'|trans }}
                        </td>
                    {% endfor %}
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endmacro %}

{'fraction_non_alphanumeric': 0.13195796029583495, 'fraction_numerical': 0.003892565200467108, 'mean_word_length': 1.5171400587659158, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '5010031', 'n_tokens_mistral': 765, 'n_tokens_neox': 676, 'n_words': 151}