<commit_before>{% extends 'KellsFrontBundle:Default:base.html.twig' %}
{% block body %}
<div class="contenido-gris linea-gris-abajo">
	<div class="container">
		<div class="row">          
			 {% for flashMessage in app.session.flashbag.get('notice') %}
			<div class="alert alert-success role="alert">
				<p  ALIGN=center>{{flashMessage}}</p>
			</div>
			{% endfor %}
			{{ include('KellsFrontBundle:Default:buscador.html.twig') }}
			{% if cars %}
				{% if filter %} 
					<div class="row botmar">
						<div class="col-sm-4 col-md-4 col-lg-3 toppad filtros">
                        	<div class="panel-group" id="accordion">
                            	<div class="panel panel-default">
                              		<div class="panel-heading">
                                  		<h4 class="panel-title text-uppercase">
                                    		<a data-toggle="collapse" data-parent="#accordion" href="#filtros" class="collapsed">
                                      			Filtrar por <span class="caret"></span>
                                    		</a>
                                  		</h4>
                                	</div><!-- panel heading -->
                               
                                	<div id="filtros" class="panel-collapse collapse">
                                  		<div class="panel-body">
                                  		 	{% if markFilter %}
                                    		<div class="alert alert-dismissible" role="alert">
                                        		<a href="{{path('removeFilter', {'pattern' : pattern, 'markShouldBeFilter' : false, 'modelFilter' : modelFilter, 'fuelFilter': fuelFilter, 'directionFilter': directionFilter} )}}" 
                                        		type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Eliminar filtro</span></a>
                                        			{{markFilter}}
                                    		</div> <!-- alert -->
                                    		{% endif %}
                                    		{% if modelFilter %}
                                    		<div class="alert alert-dismissible" role="alert">
                                        		<a href="{{path('removeFilter', {'pattern' : pattern, 'modelShouldBeFilter' : false, 'markFilter' : markFilter, 'fuelFilter': fuelFilter, 'directionFilter': directionFilter} )}}" 
                                        		type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Eliminar filtro</span></a>
                                        			{{modelFilter}}
                                    		</div> <!-- alert -->
                                    		{% endif %}

											{% if fuelFilter %}
                                    		<div class="alert alert-dismissible" role="alert">
                                        		<a href="{{path('removeFilter', {'pattern' : pattern, 'fuelShouldBeFilter' : false, 'markFilter' : markFilter, 'modelFilter' : modelFilter, 'directionFilter': directionFilter} )}}" 
                                        		type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Eliminar filtro</span></a>
                                        			{{fuelFilter}}
                                    		</div> <!-- alert -->
                                    		{% endif %}
                                    		
                                    		{% if directionFilter %}
                                    		<div class="alert alert-dismissible" role="alert">
                                        		<a href="{{path('removeFilter', {'pattern' : pattern, 'directionShouldBeFilter' : false, 'markFilter' : markFilter, 'modelFilter' : modelFilter,'fuelFilter': fuelFilter} )}}" 
                                        		type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Eliminar filtro</span></a>
                                        			{{directionFilter}}
                                    		</div> <!-- alert -->
                                    		{% endif %}
                                    		
                                    		

                                    		{% if trademarksFilter %}
                                   			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Marca</div>
                                      			{% for mark in marksKeysFilter %}
                                      				<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : mark, 'directionFilter': directionFilter, 'modelFilter' :modelFilter, 'fuelFilter': fuelFilter } )}}" class="list-group-item"><span class="badge">{{ trademarksFilter[mark]}}</span>{{mark}}</a>
                                      			{% endfor %}
                                  			</div> <!-- list group -->
                                  			{% endif  %}
                                  			
                                  			{% if modelsFilter %}
                                  			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Modelo</div>
                                      			{% for model in modelKeysFilter %}
                                      				<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : markFilter, 'directionFilter': directionFilter,'modelFilter' : model, 'fuelFilter': fuelFilter} )}}" class="list-group-item"><span class="badge">{{ modelsFilter[model]}}</span>{{model}}</a>
                                      			{% endfor %}
                                    			</div><!-- Filtro marca -->
                                  			{% endif  %}
                                  			{% if fuelsFilter %}
                                  			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Combustible</div>
                                      			{% for fuel in fuelKeysFilter %}
                                      				<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : markFilter, 'modelFilter' : modelFilter,  'directionFilter': directionFilter, 'fuelFilter': fuel} )}}" class="list-group-item"><span class="badge">{{ fuelsFilter[fuel]}}</span>{{fuel}}</a>
                                      			{% endfor %}
                                    			</div><!-- list group -->
                                  			{% endif  %}
                                  			
                                  			{% if directionsFilter %}
                                  			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Dirección</div>
                                      			{% for direction in directionKeysFilter %}
                                      				<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : markFilter, 'modelFilter' : modelFilter, 'fuelFilter': fuelFilter, 'directionFilter': direction} )}}" 
                                      				class="list-group-item"><span class="badge">{{ directionsFilter[direction]}}</span>{{direction}}</a>
                                      			{% endfor %}
                                    			</div><!-- list group -->
                                  			{% endif  %}
                                  			
                                  			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Precio</div>
                                      			
                                      			<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : markFilter, 'modelFilter' : modelFilter, 'fuelFilter': fuelFilter, 'directionFilter': directionFilter} )}}" 
                                      				class="list-group-item"><span class="badge">Ir</span> <input type="text" id="minPrice" name="minPrice" size="2"/> - <input type="text" size="2" id="maxPrice" name="maxPrice" /> </a>
                                    		</div><!-- list group -->
                                    			
                                    			
                                  			</div> 
                                		</div> <!-- panel body -->
                              		</div><!-- panel filtros -->
                            	</div>
                        	</div> <!-- accordion -->
						<div class="col-sm-8 col-md-8 col-lg-9 toppad">
            				<div class="row resultados">
            					<div class="col-xs-12">
            					
            						{% if pattern %}
                         			<h3 class="nomar">B&uacute;squeda realizada: <strong><em>&quot;{{pattern}}&quot;</em></strong></h3>
                         			{% endif %}
                         		</div>
                         		<div class="clearfix"></div>
								{{ include('KellsFrontBundle:Default:resultado.html.twig', { 'cars': cars }) }}
						</div>
					</div>
				</div>
            	{% else %}   
				<div class="row botmar resultados"  id="resultados">
					{{ include('KellsFrontBundle:Default:resultado.html.twig', { 'cars': cars }) }}
				</div>
				
      <!-- navigation holder -->
      			<div class="holder"></div>
				
				{% endif %}   
			{% else %}
				<div class="alert alert-danger role="alert">
				<p  ALIGN=center>No se encontraron automóviles, por favor intente con otra búsqueda.</p></div>
			{% endif %}
		</div>
	</div>
</div>
<script>  
$(document).ready(function(){  
 /* initiate plugin */
    $("div.holder").jPages({
      containerID: "resultados"
    });<commit_msg>12 items per page<commit_after>{% extends 'KellsFrontBundle:Default:base.html.twig' %}
{% block body %}
<div class="contenido-gris linea-gris-abajo">
	<div class="container">
		<div class="row">          
			 {% for flashMessage in app.session.flashbag.get('notice') %}
			<div class="alert alert-success role="alert">
				<p  ALIGN=center>{{flashMessage}}</p>
			</div>
			{% endfor %}
			{{ include('KellsFrontBundle:Default:buscador.html.twig') }}
			{% if cars %}
				{% if filter %} 
					<div class="row botmar">
						<div class="col-sm-4 col-md-4 col-lg-3 toppad filtros">
                        	<div class="panel-group" id="accordion">
                            	<div class="panel panel-default">
                              		<div class="panel-heading">
                                  		<h4 class="panel-title text-uppercase">
                                    		<a data-toggle="collapse" data-parent="#accordion" href="#filtros" class="collapsed">
                                      			Filtrar por <span class="caret"></span>
                                    		</a>
                                  		</h4>
                                	</div><!-- panel heading -->
                               
                                	<div id="filtros" class="panel-collapse collapse">
                                  		<div class="panel-body">
                                  		 	{% if markFilter %}
                                    		<div class="alert alert-dismissible" role="alert">
                                        		<a href="{{path('removeFilter', {'pattern' : pattern, 'markShouldBeFilter' : false, 'modelFilter' : modelFilter, 'fuelFilter': fuelFilter, 'directionFilter': directionFilter} )}}" 
                                        		type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Eliminar filtro</span></a>
                                        			{{markFilter}}
                                    		</div> <!-- alert -->
                                    		{% endif %}
                                    		{% if modelFilter %}
                                    		<div class="alert alert-dismissible" role="alert">
                                        		<a href="{{path('removeFilter', {'pattern' : pattern, 'modelShouldBeFilter' : false, 'markFilter' : markFilter, 'fuelFilter': fuelFilter, 'directionFilter': directionFilter} )}}" 
                                        		type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Eliminar filtro</span></a>
                                        			{{modelFilter}}
                                    		</div> <!-- alert -->
                                    		{% endif %}

											{% if fuelFilter %}
                                    		<div class="alert alert-dismissible" role="alert">
                                        		<a href="{{path('removeFilter', {'pattern' : pattern, 'fuelShouldBeFilter' : false, 'markFilter' : markFilter, 'modelFilter' : modelFilter, 'directionFilter': directionFilter} )}}" 
                                        		type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Eliminar filtro</span></a>
                                        			{{fuelFilter}}
                                    		</div> <!-- alert -->
                                    		{% endif %}
                                    		
                                    		{% if directionFilter %}
                                    		<div class="alert alert-dismissible" role="alert">
                                        		<a href="{{path('removeFilter', {'pattern' : pattern, 'directionShouldBeFilter' : false, 'markFilter' : markFilter, 'modelFilter' : modelFilter,'fuelFilter': fuelFilter} )}}" 
                                        		type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Eliminar filtro</span></a>
                                        			{{directionFilter}}
                                    		</div> <!-- alert -->
                                    		{% endif %}
                                    		
                                    		

                                    		{% if trademarksFilter %}
                                   			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Marca</div>
                                      			{% for mark in marksKeysFilter %}
                                      				<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : mark, 'directionFilter': directionFilter, 'modelFilter' :modelFilter, 'fuelFilter': fuelFilter } )}}" class="list-group-item"><span class="badge">{{ trademarksFilter[mark]}}</span>{{mark}}</a>
                                      			{% endfor %}
                                  			</div> <!-- list group -->
                                  			{% endif  %}
                                  			
                                  			{% if modelsFilter %}
                                  			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Modelo</div>
                                      			{% for model in modelKeysFilter %}
                                      				<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : markFilter, 'directionFilter': directionFilter,'modelFilter' : model, 'fuelFilter': fuelFilter} )}}" class="list-group-item"><span class="badge">{{ modelsFilter[model]}}</span>{{model}}</a>
                                      			{% endfor %}
                                    			</div><!-- Filtro marca -->
                                  			{% endif  %}
                                  			{% if fuelsFilter %}
                                  			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Combustible</div>
                                      			{% for fuel in fuelKeysFilter %}
                                      				<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : markFilter, 'modelFilter' : modelFilter,  'directionFilter': directionFilter, 'fuelFilter': fuel} )}}" class="list-group-item"><span class="badge">{{ fuelsFilter[fuel]}}</span>{{fuel}}</a>
                                      			{% endfor %}
                                    			</div><!-- list group -->
                                  			{% endif  %}
                                  			
                                  			{% if directionsFilter %}
                                  			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Dirección</div>
                                      			{% for direction in directionKeysFilter %}
                                      				<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : markFilter, 'modelFilter' : modelFilter, 'fuelFilter': fuelFilter, 'directionFilter': direction} )}}" 
                                      				class="list-group-item"><span class="badge">{{ directionsFilter[direction]}}</span>{{direction}}</a>
                                      			{% endfor %}
                                    			</div><!-- list group -->
                                  			{% endif  %}
                                  			
                                  			<div class="list-group">
                                      			<div class="list-group-item list-group-title">Precio</div>
                                      			
                                      			<a href="{{path('filterResults', {'pattern' : pattern, 'markFilter' : markFilter, 'modelFilter' : modelFilter, 'fuelFilter': fuelFilter, 'directionFilter': directionFilter} )}}" 
                                      				class="list-group-item"><span class="badge">Ir</span> <input type="text" id="minPrice" name="minPrice" size="2"/> - <input type="text" size="2" id="maxPrice" name="maxPrice" /> </a>
                                    		</div><!-- list group -->
                                    			
                                    			
                                  			</div> 
                                		</div> <!-- panel body -->
                              		</div><!-- panel filtros -->
                            	</div>
                        	</div> <!-- accordion -->
						<div class="col-sm-8 col-md-8 col-lg-9 toppad">
            				<div class="row resultados">
            					<div class="col-xs-12">
            					
            						{% if pattern %}
                         			<h3 class="nomar">B&uacute;squeda realizada: <strong><em>&quot;{{pattern}}&quot;</em></strong></h3>
                         			{% endif %}
                         		</div>
                         		<div class="clearfix"></div>
								{{ include('KellsFrontBundle:Default:resultado.html.twig', { 'cars': cars }) }}
						</div>
					</div>
				</div>
            	{% else %}   
				<div class="row botmar resultados"  id="resultados">
					{{ include('KellsFrontBundle:Default:resultado.html.twig', { 'cars': cars }) }}
				</div>
				
      <!-- navigation holder -->
      			<div class="holder"></div>
				
				{% endif %}   
			{% else %}
				<div class="alert alert-danger role="alert">
				<p  ALIGN=center>No se encontraron automóviles, por favor intente con otra búsqueda.</p></div>
			{% endif %}
		</div>
	</div>
</div>
<script>  
$(document).ready(function(){  
 /* initiate plugin */
    $("div.holder").jPages({
      containerID: "resultados",
       perPage : 12
    });
{'fraction_non_alphanumeric': 0.1390792345566215, 'fraction_numerical': 0.0016242830313182072, 'mean_word_length': 1.1112301757393914, 'pattern_counts': {'":': 0, '<': 285, '<?xml version=': 0, '>': 285, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 186, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '536071', 'n_tokens_mistral': 5419, 'n_tokens_neox': 4613, 'n_words': 833}