<commit_before><div class="row">
    <div class="searchSideBar col-md-3">
        {% include 'NumaDOASiteBundle:Search:searchSidebarLinked.html.twig' %}
    </div>
    <div class="searchResults col-md-9">
        <div class="row">
            <div class="col-lg-3 col-md-3 col-sm-6 col-sm-12">
                <span class="listinsFound">{{ pagerfanta|length }} listings found</span>
            </div>
            <div class="col-lg-4 col-md-4 col-sm-6 col-sm-12">
                {#<span class="left">Number of listings per page:</span>#}

                {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
                <ul class="listingsNumber list-inline" id="numberoflisting" name="listings_per_page">
                    <li><a class="listinsPP {% if listing_per_page == 5 %}active{% endif %}" href="#5" data-value="5">5</a></li>
                    <li><a class="listinsPP {% if listing_per_page == 10 %}active{% endif %}" href="#10" data-value="10">10</a></li>
                    <li><a class="listinsPP {% if listing_per_page == 20 %}active{% endif %}" href="#20" data-value="20">20</a></li>
                    <li><a class="listinsPP {% if listing_per_page == 50 %}active{% endif %}" href="#50" data-value="50">50</a></li>
                    <li><a class="listinsPP {% if listing_per_page == 100 %}active{% endif %}" href="#100" data-value="100">100</a></li>
                </ul>
                <input type="hidden" value="{% if queryUrl is defined %}{{ queryUrl }}{% endif %}"
                       name="searchSource"
                       id="searchSource">
            </div>
            <script>
                $('.listinsPP').click(function () {
                    lnr = parseInt(($(this).data('value')));

                    {% if queryUrl is defined %}
                    url = "{{ path('search_dispatch') }}?{{ queryUrl }}&listings_per_page=" + lnr;
                    url = url.replace(/&amp;/g, '&');
                    //console.log(url);
                    //console.log("{{ queryUrl }}");
                    window.location.href = url;
                    {% else %}


                    console.log({{ path('search_dispatch') }} ? listings_per_page = "+lnr);
                    //window.open(url.replace("&amp;","&"));
                    {% endif %}
                })
            </script>
            {% set sortYearUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=year&sort_order=asc
            {% endset %}
            {% if sort_by=='year' and sort_order == 'asc' %}
                {% set sortYearUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=year&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortPriceUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=price&sort_order=asc
            {% endset %}
            {% if sort_by=='price' and sort_order == 'asc' %}
                {% set sortPriceUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=price&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortPicturesUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=pictures&sort_order=asc
            {% endset %}
            {% if sort_by=='pictures' and sort_order == 'asc' %}
                {% set sortPicturesUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=pictures&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortMakeUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=make&sort_order=asc
            {% endset %}
            {% if sort_by=='make' and sort_order == 'asc' %}
                {% set sortPriceUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=make&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortMileageUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=mileage&sort_order=asc
            {% endset %}
            {% if sort_by=='mileage' and sort_order == 'asc' %}
                {% set sortMileageUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=mileage&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortDateUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=date_created&sort_order=asc
            {% endset %}
            {% if sort_by=='date_created' and sort_order == 'asc' %}
                {% set sortDateUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=date_created&sort_order=desc
                {% endset %}
            {% endif %}
            <div class="col-lg-5 col-md-5 col-sm-6 col-sm-12 sort clearfix">
                <button data-toggle="dropdown"  type="button" class="btn btn-default">
                    <img src="{{ asset("bundles/numadoasite/Tnt/images/Sort-By.png") }}" alt="Sort By" title="Sort By"> Sort By
                </button>
                <ul role="menu" class="dropdown-menu sort-dropdown">
                    <li><span class="sort-by-label">Year</span></li>
                    <li class="divider"></li>
                    <li id="sortYearDesc" {% if sort_by=='year' and sort_order == 'desc' %}class="active"{% endif %}>
                        <a href="{{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=year&sort_order=desc" >Newest
                            to Oldest</a></li>
                    <li id="sortYearAsc"  {% if sort_by=='year' and sort_order == 'asc' %}class="active"{% endif %}>
                        <a href="{{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=year&sort_order=asc">Oldest
                            to Newest</a></li>
                    <br>
                    <li><span class="sort-by-label">Price</span></li>
                    <li class="divider"></li>
                    <li id="sortPriceAsc"  {% if sort_by=='price' and sort_order == 'asc' %}class="active"{% endif %}>
                        <a href="{{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=price&sort_order=asc">Lowest
                            to Highest</a></li>
                    <li id="sortPriceDesc" {% if sort_by=='price' and sort_order == 'desc' %}class="active"{% endif %}>
                        <a href="{{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=price&sort_order=Desc">Highest
                            to Lowest</a></li><commit_msg>Bridge fix<commit_after><div class="row">
    <div class="searchSideBar col-md-3">
        {% include 'NumaDOASiteBundle:Search:searchSidebarLinked.html.twig' %}
    </div>
    <div class="searchResults col-md-9">
        <div class="row">
            <div class="col-lg-3 col-md-3 col-sm-6 col-sm-12">
                <span class="listinsFound">{{ pagerfanta|length }} listings found</span>
            </div>
            <div class="col-lg-4 col-md-4 col-sm-6 col-sm-12">
                {#<span class="left">Number of listings per page:</span>#}

                {% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
                <ul class="listingsNumber list-inline" id="numberoflisting" name="listings_per_page">
                    <li><a class="listinsPP {% if listing_per_page == 5 %}active{% endif %}" href="#5" data-value="5">5</a></li>
                    <li><a class="listinsPP {% if listing_per_page == 10 %}active{% endif %}" href="#10" data-value="10">10</a></li>
                    <li><a class="listinsPP {% if listing_per_page == 20 %}active{% endif %}" href="#20" data-value="20">20</a></li>
                    <li><a class="listinsPP {% if listing_per_page == 50 %}active{% endif %}" href="#50" data-value="50">50</a></li>
                    <li><a class="listinsPP {% if listing_per_page == 100 %}active{% endif %}" href="#100" data-value="100">100</a></li>
                </ul>
                <input type="hidden" value="{% if queryUrl is defined %}{{ queryUrl }}{% endif %}"
                       name="searchSource"
                       id="searchSource">
            </div>
            <script>
                $('.listinsPP').click(function () {
                    lnr = parseInt(($(this).data('value')));

                    {% if queryUrl is defined %}
                    url = "{{ path('search_dispatch') }}?{{ queryUrl }}&listings_per_page=" + lnr;
                    url = url.replace(/&amp;/g, '&');
                    //console.log(url);
                    //console.log("{{ queryUrl }}");
                    window.location.href = url;
                    {% else %}


                    console.log({{ path('search_dispatch') }} ? listings_per_page = "+lnr);
                    //window.open(url.replace("&amp;","&"));
                    {% endif %}
                })
            </script>
            {% set sortYearUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=year&sort_order=asc
            {% endset %}
            {% if sort_by=='year' and sort_order == 'asc' %}
                {% set sortYearUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=year&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortPriceUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=price&sort_order=asc
            {% endset %}
            {% if sort_by=='price' and sort_order == 'asc' %}
                {% set sortPriceUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=price&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortPicturesUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=pictures&sort_order=asc
            {% endset %}
            {% if sort_by=='pictures' and sort_order == 'asc' %}
                {% set sortPicturesUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=pictures&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortMakeUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=make&sort_order=asc
            {% endset %}
            {% if sort_by=='make' and sort_order == 'asc' %}
                {% set sortPriceUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=make&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortMileageUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=mileage&sort_order=asc
            {% endset %}
            {% if sort_by=='mileage' and sort_order == 'asc' %}
                {% set sortMileageUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=mileage&sort_order=desc
                {% endset %}
            {% endif %}

            {% set sortDateUrl %}
                {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=date_created&sort_order=asc
            {% endset %}
            {% if sort_by=='date_created' and sort_order == 'asc' %}
                {% set sortDateUrl %}
                    {{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=date_created&sort_order=desc
                {% endset %}
            {% endif %}
            <div class="col-lg-5 col-md-5 col-sm-6 col-sm-12 sort clearfix">
                <button data-toggle="dropdown"  type="button" class="btn btn-default pull-right">
                    <img src="{{ asset("bundles/numadoasite/Tnt/images/Sort-By.png") }}" alt="Sort By" title="Sort By"> Sort By
                </button>
                <ul role="menu" class="dropdown-menu sort-dropdown">
                    <li><span class="sort-by-label">Year</span></li>
                    <li class="divider"></li>
                    <li id="sortYearDesc" {% if sort_by=='year' and sort_order == 'desc' %}class="active"{% endif %}>
                        <a href="{{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=year&sort_order=desc" >Newest
                            to Oldest</a></li>
                    <li id="sortYearAsc"  {% if sort_by=='year' and sort_order == 'asc' %}class="active"{% endif %}>
                        <a href="{{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=year&sort_order=asc">Oldest
                            to Newest</a></li>
                    <br>
                    <li><span class="sort-by-label">Price</span></li>
                    <li class="divider"></li>
                    <li id="sortPriceAsc"  {% if sort_by=='price' and sort_order == 'asc' %}class="active"{% endif %}>
                        <a href="{{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=price&sort_order=asc">Lowest
                            to Highest</a></li>
                    <li id="sortPriceDesc" {% if sort_by=='price' and sort_order == 'desc' %}class="active"{% endif %}>
                        <a href="{{ path('search_dispatch') }}?{{ queryUrlNoSort }}&sort_by=price&sort_order=Desc">Highest
                            to Lowest</a></li>
{'fraction_non_alphanumeric': 0.17352108478617195, 'fraction_numerical': 0.008493518104604381, 'mean_word_length': 1.8199579831932773, 'pattern_counts': {'":': 0, '<': 147, '<?xml version=': 0, '>': 147, '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': '4335725', 'n_tokens_mistral': 4255, 'n_tokens_neox': 3749, 'n_words': 677}