<commit_before>{% set subject = metadata.name|replace({'_attribute': ''}) %}
{% for code, localeCodes in forms %}
    {% for localeCode, form in localeCodes %}
        <div class="attribute" data-id="{{ code }}">
            {% set id = form.vars.label|replace(' ', '_')|lower %}
            {% if 'type_checkbox' in form.vars.cache_key %}
                {{ _self.checkboxField(form, count, id, subject, metadata.applicationName) }}
            {% else %}
                {{ _self.textField(form, count, id, subject, metadata.applicationName) }}
            {% endif %}
            <input type="hidden"
                   name="sylius_product[attributes][{{ count }}][attribute]"
                   id="sylius_product_attributes_{{ count }}_attribute"
                   value="{{ code }}"/>
            <input type="hidden"
                   name="sylius_product[attributes][{{ count }}][localeCode]"
                   id="sylius_product_attributes_{{ count }}_localeCode"<commit_msg>Improved attributes extensibility<commit_after>{% set subject = metadata.name|replace({'_attribute': ''}) %}
{% for code, localeCodes in forms %}
    {% for localeCode, form in localeCodes %}
        <div class="attribute" data-id="{{ code }}">
            {% set id = form.vars.label|replace(' ', '_')|lower %}
            {% if 'type_checkbox' in form.vars.cache_key %}
                {{ _self.checkboxField(form, count, id, subject, metadata.applicationName) }}
            {% else %}
                {{ _self.textField(form, count, id, subject, metadata.applicationName) }}
            {% endif %}
            <input type="hidden"
                   name="sylius_{{ subject }}[attributes][{{ count }}][attribute]"
                   id="sylius_{{ subject }}_attributes_{{ count }}_attribute"
                   value="{{ code }}"/>
            <input type="hidden"
                   name="sylius_{{ subject }}[attributes][{{ count }}][localeCode]"
                   id="sylius_{{ subject }}_attributes_{{ count }}_localeCode"
{'fraction_non_alphanumeric': 0.1613861386138614, 'fraction_numerical': 0.0, 'mean_word_length': 2.3076923076923075, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '3877444', 'n_tokens_mistral': 564, 'n_tokens_neox': 513, 'n_words': 121}