<commit_before>{% block oro_type_text_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.ChoiceFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'choices': {{ formView.children.type.vars.choices|oro_filter_choices|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_number_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.NumberFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'choices': {{ formView.children.type.vars.choices|oro_filter_choices|json_encode|raw }},
        'formatterOptions': {{ formView.vars.formatter_options|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_date_range_filter_js %}
    {% set dateConstantPrefix = 'Oro\\Bundle\\FilterBundle\\Form\\Type\\Filter\\DateRangeFilterType::' %}

    Oro.createInstanceFromConstructor(Oro.Filter.DateFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'choices': {{ formView.children.type.vars.choices|oro_filter_choices|json_encode|raw }},
        'typeValues': {{ formView.vars.type_values|json_encode|raw }},
        'externalWidgetOptions': {{ formView.vars.widget_options|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_datetime_range_filter_js %}
    {% set dateTimeConstantPrefix = 'Oro\\Bundle\\FilterBundle\\Form\\Type\\Filter\\DateTimeRangeFilterType::' %}

    Oro.createInstanceFromConstructor(Oro.Filter.DateTimeFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'choices': {{ formView.children.type.vars.choices|oro_filter_choices|json_encode|raw }},
        'typeValues': {{ formView.vars.type_values|json_encode|raw }},
        'externalWidgetOptions': {{ formView.vars.widget_options|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_choice_filter_js %}
    {% if formView.children.value.vars.multiple %}
        {{ block('oro_type_multiselect_filter_js') }}
    {% else %}
        {{ block('oro_type_select_filter_js') }}
    {% endif %}
{% endblock %}

{% block oro_type_select_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.SelectFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'options': {{ formView.children.value.vars.choices|oro_filter_choices|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_multiselect_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.MultiSelectFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'options': {{ formView.children.value.vars.choices|oro_filter_choices|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_boolean_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.SelectFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'options': {{ formView.children.value.vars.choices|oro_filter_choices|json_encode|raw }},
        'contextSearch': false
    }))
{% endblock %}

{% block oro_type_boolean_collection_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.BooleanCollectionFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'options': {{ formView.children.value.vars.choices|oro_filter_choices|json_encode|raw }},
        'contextSearch': false
    }))
{% endblock %}
<commit_msg>BAP-645: Create external listener to listen to Datagrid cell events  - removed unused block in js template<commit_after>{% block oro_type_text_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.ChoiceFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'choices': {{ formView.children.type.vars.choices|oro_filter_choices|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_number_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.NumberFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'choices': {{ formView.children.type.vars.choices|oro_filter_choices|json_encode|raw }},
        'formatterOptions': {{ formView.vars.formatter_options|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_date_range_filter_js %}
    {% set dateConstantPrefix = 'Oro\\Bundle\\FilterBundle\\Form\\Type\\Filter\\DateRangeFilterType::' %}

    Oro.createInstanceFromConstructor(Oro.Filter.DateFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'choices': {{ formView.children.type.vars.choices|oro_filter_choices|json_encode|raw }},
        'typeValues': {{ formView.vars.type_values|json_encode|raw }},
        'externalWidgetOptions': {{ formView.vars.widget_options|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_datetime_range_filter_js %}
    {% set dateTimeConstantPrefix = 'Oro\\Bundle\\FilterBundle\\Form\\Type\\Filter\\DateTimeRangeFilterType::' %}

    Oro.createInstanceFromConstructor(Oro.Filter.DateTimeFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'choices': {{ formView.children.type.vars.choices|oro_filter_choices|json_encode|raw }},
        'typeValues': {{ formView.vars.type_values|json_encode|raw }},
        'externalWidgetOptions': {{ formView.vars.widget_options|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_choice_filter_js %}
    {% if formView.children.value.vars.multiple %}
        {{ block('oro_type_multiselect_filter_js') }}
    {% else %}
        {{ block('oro_type_select_filter_js') }}
    {% endif %}
{% endblock %}

{% block oro_type_select_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.SelectFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'options': {{ formView.children.value.vars.choices|oro_filter_choices|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_multiselect_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.MultiSelectFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'options': {{ formView.children.value.vars.choices|oro_filter_choices|json_encode|raw }}
    }))
{% endblock %}

{% block oro_type_boolean_filter_js %}
    Oro.createInstanceFromConstructor(Oro.Filter.SelectFilter.extend({
        'name':    {{ formView.vars.name|json_encode|raw }},
        'label':   {{ formView.vars.label|json_encode|raw }},
        'enabled': {{ formView.vars.show_filter|json_encode|raw }},
        'options': {{ formView.children.value.vars.choices|oro_filter_choices|json_encode|raw }},
        'contextSearch': false
    }))
{% endblock %}

{'fraction_non_alphanumeric': 0.15915915915915915, 'fraction_numerical': 0.00036036036036036037, 'mean_word_length': 3.994601079784043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4722970', 'n_tokens_mistral': 2784, 'n_tokens_neox': 2670, 'n_words': 253}