<commit_before><table class="table">
    <thead>
        <tr>
            <th>
                {{ 'admin.product.field.image.title'|trans }}
            </th>
            <th>
                {{ 'admin.product.field.name_details.title'|trans }}
            </th>
            <th>
                {{ 'admin.product.field.main_category.title'|trans }}
            </th>
            <th>
                {{ 'admin.product.field.price.title'|trans }}
            </th>
            <th>
                {{ 'admin.product.field.stock.title'|trans }}
            </th>
        </tr>
    </thead>
    <tbody>
        {% for item in product %}
            <td>
                {% if item.images|length > 0 %}
                    <a href="{{ url('admin_product_edit', { id: item.id }) }}" class="thumbnail">
                        <img src="{{ item.getSortedImages.first|resize({ height: 100, width: 100, type: 5 }) }}" />
                    </a>
                {% endif %}
            </td>
            <td>
                <a href="{{ url('admin_product_edit', { id: item.id }) }}">
                    <strong>{{ item.name }}</strong>
                </a>
                {% set path = url('store_product_view', { id: item.id, slug: item.slug }) %}
                {% set relativePath = path('store_product_view', { id: item.id, slug: item.slug }) %}
                <p class="fz-s">
                    <a target="_blank" href="{{ path }}">{{ relativePath }}</a>
                </p>
                {% if item.enabled %}
                    <span class="label-ok fz-xs">{{ 'admin.product.field.enabled.options.active'|trans }}</span>
                {% else %}
                    <span class="label fz-xs">{{ 'admin.product.field.enabled.options.inactive'|trans }}</span>
                {% endif %}
                {% if item.showInHome %}
                    <span class="label-info fz-xs">
                {{'admin.product.tag.in_home'|trans}}
                    </span>
                {% endif %}

                {% if item.hasVariants %}
                    <span class="label bg-secondary fz-xs c-background">
                        {{'admin.product.tag.has_variants'|trans}}
                    </span>
                {% endif %}

                {% if item.principalCategory is null %}
                    <span class="label label-ko fz-xs">
                    <i class="icon-warning mr-s"></i>
                        {{'admin.product.tag.no_category'|trans}}
                    </span>
                {% endif %}

                {% if item.manufacturer is null %}
                    <span class="label label-ko fz-xs">
                        <i class="icon-warning mr-s"></i>
                        {{'admin.product.tag.no_manufacturer'|trans}}
                    </span>
                {% endif %}
            </td>
            <td>
                {% if item.principalCategory %}
                    <a href="{{ url('admin_category_edit', { id: item.principalCategory.id }) }}">
                        {{ item.principalCategory.name }}
                    </a>
                {% endif %}
            </td>
            <td class="ta-r">
                {{ item.price|print_money }}
            </td>
            <td class="ta-r {% if not store.useStock %}d-n{% endif %}">
                {% if entity.stock >= 5 %}
                    {% set stockColor = 'c-ok' %}
                {% elseif entity.stock > 0 and entity.stock < 10 %}
                    {% set stockColor = 'c-warning' %}
                {% else %}
                    {% set stockColor = 'c-ko' %}
                {% endif %}
                <span class="{{ stockColor }}"> {{ item.stock }}</span>
            </td>
            {% include '@AdminCore/Tables/actions.html.twig' with {
                entity: item,
                class: 'product',
            } %}
        {% endfor %}
    </tbody>
</table><commit_msg>fixing layout of product search result<commit_after><table class="table">
    <thead>
        <tr>
            <th>
                {{ 'admin.product.field.image.title'|trans }}
            </th>
            <th>
                {{ 'admin.product.field.name_details.title'|trans }}
            </th>
            <th>
                {{ 'admin.product.field.main_category.title'|trans }}
            </th>
            <th>
                {{ 'admin.product.field.price.title'|trans }}
            </th>
            <th>
                {{ 'admin.product.field.stock.title'|trans }}
            </th>
        </tr>
    </thead>
    <tbody>
        {% for item in product %}
            <tr>
                <td>
                    {% if item.images|length > 0 %}
                        <a href="{{ url('admin_product_edit', { id: item.id }) }}" class="thumbnail">
                            <img src="{{ item.getSortedImages.first|resize({ height: 100, width: 100, type: 5 }) }}" />
                        </a>
                    {% endif %}
                </td>
                <td>
                    <a href="{{ url('admin_product_edit', { id: item.id }) }}">
                        <strong>{{ item.name }}</strong>
                    </a>
                    {% set path = url('store_product_view', { id: item.id, slug: item.slug }) %}
                    {% set relativePath = path('store_product_view', { id: item.id, slug: item.slug }) %}
                    <p class="fz-s">
                        <a target="_blank" href="{{ path }}">{{ relativePath }}</a>
                    </p>
                    {% if item.enabled %}
                        <span class="label-ok fz-xs">{{ 'admin.product.field.enabled.options.active'|trans }}</span>
                    {% else %}
                        <span class="label fz-xs">{{ 'admin.product.field.enabled.options.inactive'|trans }}</span>
                    {% endif %}
                    {% if item.showInHome %}
                        <span class="label-info fz-xs">
                {{'admin.product.tag.in_home'|trans}}
                    </span>
                    {% endif %}

                    {% if item.hasVariants %}
                        <span class="label bg-secondary fz-xs c-background">
                        {{'admin.product.tag.has_variants'|trans}}
                    </span>
                    {% endif %}

                    {% if item.principalCategory is null %}
                        <span class="label label-ko fz-xs">
                    <i class="icon-warning mr-s"></i>
                            {{'admin.product.tag.no_category'|trans}}
                    </span>
                    {% endif %}

                    {% if item.manufacturer is null %}
                        <span class="label label-ko fz-xs">
                        <i class="icon-warning mr-s"></i>
                            {{'admin.product.tag.no_manufacturer'|trans}}
                    </span>
                    {% endif %}
                </td>
                <td>
                    {% if item.principalCategory %}
                        <a href="{{ url('admin_category_edit', { id: item.principalCategory.id }) }}">
                            {{ item.principalCategory.name }}
                        </a>
                    {% endif %}
                </td>
                <td class="ta-r">
                    {{ item.price|print_money }}
                </td>
                <td class="ta-r {% if not store.useStock %}d-n{% endif %}">
                    {% if entity.stock >= 5 %}
                        {% set stockColor = 'c-ok' %}
                    {% elseif entity.stock > 0 and entity.stock < 10 %}
                        {% set stockColor = 'c-warning' %}
                    {% else %}
                        {% set stockColor = 'c-ko' %}
                    {% endif %}
                    <span class="{{ stockColor }}"> {{ item.stock }}</span>
                </td>
                {% include '@AdminCore/Tables/actions.html.twig' with {
                entity: item,
                class: 'product',
                } %}
            </tr>
        {% endfor %}
    </tbody>
</table>
{'fraction_non_alphanumeric': 0.15487925086249385, 'fraction_numerical': 0.002957121734844751, 'mean_word_length': 1.0533771818871742, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 129, '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': '3636912', 'n_tokens_mistral': 2370, 'n_tokens_neox': 2063, 'n_words': 408}