<commit_before><div class="tab-pane" id="images">
    <div id="sylius-assortment-product-images" class="collection-container" data-prototype="{{ form_widget(form.masterVariant.images.vars.prototype)|e }}">
        {% set images = product.images %}

        {% for image in product.images %}
        <div class="sylius-assortment-variant-images-image">
            <div class="control-group">
                <div class="controls">
                    <a href="{{ image.path|imagine_filter('sylius_90x60') }}" target="_blank"><img class="img-polaroid" src="{{ image.path|imagine_filter('sylius_90x60') }}" alt="" /></a>
                    &nbsp;
                    {{ form_widget(form.masterVariant.images[loop.index0].file) }}
                    &nbsp;
                    <a href="#" class="btn btn-danger" data-collection-button="delete" data-prototype="sylius-assortment-product-images" data-collection="sylius-assortment-product-images"><i class="icon-trash"></i>&nbsp;{{ 'sylius.variant.delete_image'|trans }}</a>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>

    <div class="control-group">
        <div class="controls">
            <a href="#" class="btn btn-success" data-collection-button="add" data-prototype="sylius-assortment-product-images" data-collection="sylius-assortment-product-images">{{ 'sylius.variant.add_image'|trans }}</a>
        </div>
    </div>
</div><commit_msg>add gallery to product form<commit_after><div class="tab-pane" id="images">
    <div id="sylius-assortment-product-images" data-toggle="modal-gallery" data-target="#modal-gallery" class="collection-container" data-prototype="{{ form_widget(form.masterVariant.images.vars.prototype)|e }}">
        {% set images = product.images %}

        {% for image in product.images %}
        <div class="sylius-assortment-variant-images-image">
            <div class="control-group">
                <div class="controls">
                    <a href="{{ image.path|imagine_filter('sylius_gallery') }}"  data-gallery="gallery">
                        <img class="img-polaroid" src="{{ image.path|imagine_filter('sylius_90x60') }}" alt="" />
                    </a>
                    &nbsp;
                    {{ form_widget(form.masterVariant.images[loop.index0].file) }}
                    &nbsp;
                    <a href="#" class="btn btn-danger" data-collection-button="delete" data-prototype="sylius-assortment-product-images" data-collection="sylius-assortment-product-images"><i class="icon-trash"></i>&nbsp;{{ 'sylius.variant.delete_image'|trans }}</a>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>

    <div class="control-group">
        <div class="controls">
            <a href="#" class="btn btn-success" data-collection-button="add" data-prototype="sylius-assortment-product-images" data-collection="sylius-assortment-product-images">{{ 'sylius.variant.add_image'|trans }}</a>
        </div>
    </div>
</div>
{'fraction_non_alphanumeric': 0.17625540405719986, 'fraction_numerical': 0.004655803126039242, 'mean_word_length': 2.663824604141291, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '683159', 'n_tokens_mistral': 941, 'n_tokens_neox': 892, 'n_words': 134}