<commit_before>{{ component( "Ceres::ItemList.Components.CategoryImageCarousel") }}
{{ component( "Ceres::ItemList.Components.ItemLazyImg" ) }}

{% set listType = config("Ceres.item.lists.3.list_type") %}
{% set tagIds = config("Ceres.item.lists.tag_ids") | split(",") %}

{% if listType == "last_seen" %}
    {% set itemList = services.itemLoader.loadForTemplate('Ceres::Containers.ItemLists.ItemList3', itemLoaderPresets.lastSeenItemsList, {'items': itemsPerPage}).documents %}
{% elseif listType == "cross_selling" %}
    {% set itemList = item.CrossSellingItems.documents %}
{% elseif listType == "tag_list" %}
	{% set itemList = services.itemLoader.loadForTemplate('Ceres::Containers.ItemLists.ItemList3', itemLoaderPresets.tagList, {'tagIds': tagIds}).documents %}
{% endif %}

{% if itemList is not empty %}
    <hr>

    <h1 class="h3">
        {% if listType == "last_seen" %}
            {{ trans("Ceres::Template.itemListLastSeen") }}
        {% elseif listType == "cross_selling") %}
            {{ trans("Ceres::Template.itemListX" ~ config("Ceres.item.lists.cross_selling_type")) }}
		{% elseif listType == "tag_list" %}
			TAGS TRANSLATION???
        {% endif %}
    </h1>

    <div class="row">
        <div class="col-xs-12 col-lg-12">
            {% if itemList | length > 4 %}
                <div id="list-carousel" class="owl-carousel owl-theme owl-single-item">      
                    {% for item in itemList %}    
                            {% include "Ceres::Category.Item.Partials.CategoryListItem" with { 'item': item, enableCarousel: false } %} 
                    {% endfor %}
                </div>
            {% else %}
                <ul id="list-carousel" class="product-list row grid">
                    {% for item in itemList %}
                        <li class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
                            {% include "Ceres::Category.Item.Partials.CategoryListItem" with { 'item': item, enableCarousel: false } %}
                        </li>
                    {% endfor %}
                </ul>
            {% endif %}
        </div>
    </div>

    {% if itemList | length > 4 %}
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script><commit_msg>fix error in itemList twig markup<commit_after>{{ component( "Ceres::ItemList.Components.CategoryImageCarousel") }}
{{ component( "Ceres::ItemList.Components.ItemLazyImg" ) }}

{% set listType = config("Ceres.item.lists.3.list_type") %}
{% set tagIds = config("Ceres.item.lists.tag_ids") | split(",") %}

{% if listType == "last_seen" %}
    {% set itemList = services.itemLoader.loadForTemplate('Ceres::Containers.ItemLists.ItemList3', itemLoaderPresets.lastSeenItemsList, {'items': itemsPerPage}).documents %}
{% elseif listType == "cross_selling" %}
    {% set itemList = item.CrossSellingItems.documents %}
{% elseif listType == "tag_list" %}
	{% set itemList = services.itemLoader.loadForTemplate('Ceres::Containers.ItemLists.ItemList3', itemLoaderPresets.tagList, {'tagIds': tagIds}).documents %}
{% endif %}

{% if itemList is not empty %}
    <hr>

    <h1 class="h3">
        {% if listType == "last_seen" %}
            {{ trans("Ceres::Template.itemListLastSeen") }}
        {% elseif listType == "cross_selling" %}
            {{ trans("Ceres::Template.itemListX" ~ config("Ceres.item.lists.cross_selling_type")) }}
		{% elseif listType == "tag_list" %}
			TAGS TRANSLATION???
        {% endif %}
    </h1>

    <div class="row">
        <div class="col-xs-12 col-lg-12">
            {% if itemList | length > 4 %}
                <div id="list-carousel" class="owl-carousel owl-theme owl-single-item">      
                    {% for item in itemList %}    
                            {% include "Ceres::Category.Item.Partials.CategoryListItem" with { 'item': item, enableCarousel: false } %} 
                    {% endfor %}
                </div>
            {% else %}
                <ul id="list-carousel" class="product-list row grid">
                    {% for item in itemList %}
                        <li class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
                            {% include "Ceres::Category.Item.Partials.CategoryListItem" with { 'item': item, enableCarousel: false } %}
                        </li>
                    {% endfor %}
                </ul>
            {% endif %}
        </div>
    </div>

    {% if itemList | length > 4 %}
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
{'fraction_non_alphanumeric': 0.16523652365236524, 'fraction_numerical': 0.0088008800880088, 'mean_word_length': 2.3085880640465795, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, 'https://': 2, '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': '670985', 'n_tokens_mistral': 1506, 'n_tokens_neox': 1346, 'n_words': 248}