<commit_before>{% set countries = getCountries() %}
{% for tour in tours %}
    {% if tour.type == 'avia' %}
        <a href="{{ path('avia_tour', {id: tour.info.id}) }}" class="box {{ random(['w', '']) }} flip-container">
            <div class="flipper">
                <div class="front{% if tour.info.departure|date <= "+ 1 week"|date %} hot {% endif %}">
                    <img src="{{ asset(getTourImages(tour.info.Allocation.id, 'hotels')|first|default('/images/noimagew.png')) }}" alt="" style="height: 100%;">

                    <div class="flags">
                            <i class="flag-{{ countries[tour.info.Country.id|number_format].nick }}"></i>
                    </div>
                    <div class="vehicle">
                        <i class="plain"></i>
                    </div>
                    <div class="country">
                        <span>{{ tour.info.Country.name }}</span>
                        <span>{{ tour.info.price }} $</span>
                    </div>
                </div>
                <div class="back {{ random(['green', 'red', 'yellow', 'blue']) }}">
                    <div class="vehicle">
                        <i class="plain"></i>
                    </div>
                    <div class="country">
                        <span>{{ tour.info.Country.name }}</span>
                        <span>{{ tour.info.price }} $</span>
                    </div>
                    <p>
                        {% spaceless %}
                            <span><strong>Название: </strong>{{ tour.info.Allocation.name }}</span>
                            <span><strong>Тип питания: </strong>{{ tour.info.Meal.name }} ({{ tour.info.Meal.description }})</span>
                            <span><strong>Номер: </strong>{{ tour.info.RoomSize.name }} ({{ tour.info.RoomSize.description }})</span>
                            <span><strong>Начало тура: </strong>{{ tour.info.departure }}</span>
                            <span><strong>Конец тура: </strong>{{ tour.info.arrival }}</span>
                        {% endspaceless %}
                    </p>
                </div>
            </div>
        </a>
    {% else %}
        <a href="{{ path('bus_tour', { "id": tour.info.tourId }) }}" class="box {{ random(['w', '']) }} flip-container">
            <div class="flipper">
                <div class="front">
                    <img src="{{ asset(random(getTourImages((tour.info.countries|first).id, 'countries')|default(['/images/noimagew.png']))) }}" alt="" style="height: 100%;">

                    <div class="flags">
                        {% for country in tour.info.countries %}
                            <i class="flag-{{ country.nick }}"></i>
                        {% endfor %}
                    </div>
                    <div class="vehicle">
                        <i class="bus"></i>
                    </div>
                    <div class="country">
                        <span>{{ (tour.info.countries|last).name }}</span><commit_msg>ссылка в новом окене<commit_after>{% set countries = getCountries() %}
{% for tour in tours %}
    {% if tour.type == 'avia' %}
        <a href="{{ path('avia_tour', {id: tour.info.id}) }}" class="box {{ random(['w', '']) }} flip-container" target="_blank">
            <div class="flipper">
                <div class="front{% if tour.info.departure|date <= "+ 1 week"|date %} hot {% endif %}">
                    <img src="{{ asset(getTourImages(tour.info.Allocation.id, 'hotels')|first|default('/images/noimagew.png')) }}" alt="" style="height: 100%;">

                    <div class="flags">
                            <i class="flag-{{ countries[tour.info.Country.id|number_format].nick }}"></i>
                    </div>
                    <div class="vehicle">
                        <i class="plain"></i>
                    </div>
                    <div class="country">
                        <span>{{ tour.info.Country.name }}</span>
                        <span>{{ tour.info.price }} $</span>
                    </div>
                </div>
                <div class="back {{ random(['green', 'red', 'yellow', 'blue']) }}">
                    <div class="vehicle">
                        <i class="plain"></i>
                    </div>
                    <div class="country">
                        <span>{{ tour.info.Country.name }}</span>
                        <span>{{ tour.info.price }} $</span>
                    </div>
                    <p>
                        {% spaceless %}
                            <span><strong>Название: </strong>{{ tour.info.Allocation.name }}</span>
                            <span><strong>Тип питания: </strong>{{ tour.info.Meal.name }} ({{ tour.info.Meal.description }})</span>
                            <span><strong>Номер: </strong>{{ tour.info.RoomSize.name }} ({{ tour.info.RoomSize.description }})</span>
                            <span><strong>Начало тура: </strong>{{ tour.info.departure }}</span>
                            <span><strong>Конец тура: </strong>{{ tour.info.arrival }}</span>
                        {% endspaceless %}
                    </p>
                </div>
            </div>
        </a>
    {% else %}
        <a href="{{ path('bus_tour', { "id": tour.info.tourId }) }}" class="box {{ random(['w', '']) }} flip-container" target="_blank">
            <div class="flipper">
                <div class="front">
                    <img src="{{ asset(random(getTourImages((tour.info.countries|first).id, 'countries')|default(['/images/noimagew.png']))) }}" alt="" style="height: 100%;">

                    <div class="flags">
                        {% for country in tour.info.countries %}
                            <i class="flag-{{ country.nick }}"></i>
                        {% endfor %}
                    </div>
                    <div class="vehicle">
                        <i class="bus"></i>
                    </div>
                    <div class="country">
                        <span>{{ (tour.info.countries|last).name }}</span>
{'fraction_non_alphanumeric': 0.18632114154502213, 'fraction_numerical': 0.002296211251435132, 'mean_word_length': 1.3381901840490797, 'pattern_counts': {'":': 2, '<': 145, '<?xml version=': 0, '>': 143, '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': '6649194', 'n_tokens_mistral': 1764, 'n_tokens_neox': 1603, 'n_words': 308}