<commit_before><%@page import="java.util.List"%>
<%@page import="es.ucm.fdi.iw.controller.*"%>
<%@ include file="../jspf/header.jspf" %>
<div class="container">
	
	
		<div class="zona-info form-inline form-search">
				<label>Edici&oacute;n</label>
				<select class="form-control">
					<option>Todas</option>
					<option>Saga de Urza</option>
					<option>Tempestad</option>
					<option>Fortaleza</option>
				</select>
				
				<label>Tipo de carta</label>
				<select class="form-control">
					<option>Todos</option>
					<option>Tierra</option>
					<option>Criatura</option>
					<option>Encantamiento</option>
				</select>
			
				<label>Color</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea1" value="opcion_1"> Rojo
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea2" value="opcion_2"> Negro
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea3" value="opcion_3"> Azul
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea1" value="opcion_1"> Verde
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea2" value="opcion_2"> Blanco
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea3" value="opcion_3"> Incoloro
					</label>
		</div>	
		<div id="intercambio">
			<div class="cont_gestion">
				<img class="flecha" src="${prefijo}${prefix}img/left_arrow.png" onclick="incrOwner()"/>
				<!-- AQU FLECHA A LA IZDA -->
				<div id="table_cards">
					<table id="tab1" class="table table-striped">
					    <thead>
						    <tr>
						        <th>Nombre</th>
						        <th>Edicion</th>
						    </tr>
					    </thead>
					    <tbody>
							<c:forEach items="${cards}" var="carta">
								<tr>
						        	<td class="filterable-cell">${carta.name}</td>
						        	<td class="filterable-cell">${carta.setName}</td>
						    	</tr>
							</c:forEach>
					    </tbody>
					</table>
				</div>
				<!-- AQU FLECHA A LA DERECHA -->
				<img class="flecha" src="${prefijo}${prefix}img/right_arrow.png" onclick="incrSearch()"/>
			</div>
			<form action='${prefijo}gestion_cartas/registrarCartasUsuario' method='post'>
				<div class="cont_gestion">
					<div id="table_propias" class="tabla_gestion">
						<table id="tab2" class="table table-striped ">
						<caption>Propias</caption>
						    <thead>
							    <tr>  
								  <th>Carta</th>
								  <th>Edicin</th>
								  <th>Estado</th>
								  <th>Cantidad</th>
								  <th></th>
						  		</tr>
						    </thead>
						    <tbody>
						    <c:forEach items="${user.cartasPropias}" var="cartaPropia">
							 <tr id="oRow${cartaPropia.id}">
							 	<td class="filterable-cell">${cartaPropia.carta.name}
							 	</td>
								<td class="filterable-cell">${cartaPropia.carta.edicion}
								</td>
								<td class="filterable-cell">
									<select id="selORow${cartaPropia.id}" class="form-control input-sm selectorEstado" onchange="updateState(event)">
									<option>Nueva</option>
									<option>Jugada</option>
									<option>Deteriorada</option>
									</select>
								</td>
								<td class="filterable-cell">
									<button type="button" class="btn btn-xs spinner" onclick="decrSpinner(event)">-</button>
									<input  id="qORow" type="text" name="quantity" class="cantidad-carta" value="${cartaPropia.cantidad}">
									<button type="button" class="btn btn-xs spinner" onclick="incrSpinner(event)">+</button>
								</td>
								<td class="filterable-cell text-right">
									<button type="button" class="btn btn-link btn-xs" onclick="removeCard(event, 1)" >X</button>
								</td>
							</tr>
							<input id="nameORow${cartaPropia.id}" type="hidden" value="${cartaPropia.carta.name}" name="cardsO[]"></input>
							<input id="edORow${cartaPropia.id}" type="hidden" value="${cartaPropia.carta.edicion}" name="cardsOE[]"></input>
							<input id="quantityORow${cartaPropia.id}" type="hidden" value="${cartaPropia.cantidad}" name="cardsOQ[]"></input>
							<input id="stateORow${cartaPropia.id}" type="hidden" value="${cartaPropia.estadoCarta}" name="cardsOS[]"></input> 
						    </c:forEach>
						    </tbody>
						</table>
					</div>
					
					
					<div id="table_buscadas" class="tabla_gestion">
						<table id = "tab3" class="table table-striped">
						<caption>Buscadas</caption>
						    <thead>
							    <tr>
							        <th>Nombre</th>
							        <th>Edicin</th>
							        <th></th>
							    </tr>
						    </thead>
						    <tbody>
							   <c:forEach items="${user.cartasBuscadas}" var="cartaBuscada">
							    <tr id="sRow${cartasBuscada.id}">
								    <td class="filterable-cell">${cartasBuscada.name}
								    </td>
								    <td class="filterable-cell">${cartasBuscada.edicion}
								    </td>
								    <td class="filterable-cell text-right">
								    	<button type="button" class="btn btn-link btn-xs" onclick="removeCard(event,2)">X</button>
								    </td>
							    </tr>
								<input id="nameSRow"${cartasBuscada.id} type="hidden" value="1" name="cardsS[]"></input>
								<input id="edSRow${cartasBuscada.id}" type="hidden" value="1" name="cardsSE[]"></input>
								</c:forEach><commit_msg>Pequeña mejora. Gestión y Home casi<commit_after><%@page import="java.util.List"%>
<%@page import="es.ucm.fdi.iw.controller.*"%>
<%@ include file="../jspf/header.jspf" %>
<div class="container">
	
	
		<div class="zona-info form-inline form-search">
				<label>Edici&oacute;n</label>
				<select class="form-control">
					<option>Todas</option>
					<option>Saga de Urza</option>
					<option>Tempestad</option>
					<option>Fortaleza</option>
				</select>
				
				<label>Tipo de carta</label>
				<select class="form-control">
					<option>Todos</option>
					<option>Tierra</option>
					<option>Criatura</option>
					<option>Encantamiento</option>
				</select>
			
				<label>Color</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea1" value="opcion_1"> Rojo
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea2" value="opcion_2"> Negro
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea3" value="opcion_3"> Azul
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea1" value="opcion_1"> Verde
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea2" value="opcion_2"> Blanco
					</label>
					<label class="checkbox-inline">
					  <input type="checkbox" id="checkboxEnLinea3" value="opcion_3"> Incoloro
					</label>
		</div>	
		<div id="intercambio">
			<div class="cont_gestion">
				<img class="flecha" src="${prefijo}${prefix}img/left_arrow.png" onclick="incrOwner()"/>
				<!-- AQU FLECHA A LA IZDA -->
				<div id="table_cards">
					<table id="tab1" class="table table-striped">
					    <thead>
						    <tr>
						        <th>Nombre</th>
						        <th>Edicion</th>
						    </tr>
					    </thead>
					    <tbody>
							<c:forEach items="${cards}" var="carta">
								<tr>
						        	<td class="filterable-cell">${carta.name}</td>
						        	<td class="filterable-cell">${carta.setName}</td>
						    	</tr>
							</c:forEach>
					    </tbody>
					</table>
				</div>
				<!-- AQU FLECHA A LA DERECHA -->
				<img class="flecha" src="${prefijo}${prefix}img/right_arrow.png" onclick="incrSearch()"/>
			</div>
			<form action='${prefijo}gestion_cartas/registrarCartasUsuario' method='post'>
				<div class="cont_gestion">
					<div id="table_propias" class="tabla_gestion">
						<table id="tab2" class="table table-striped ">
						<caption>Propias</caption>
						    <thead>
							    <tr>  
								  <th>Carta</th>
								  <th>Edicin</th>
								  <th>Estado</th>
								  <th>Cantidad</th>
								  <th></th>
						  		</tr>
						    </thead>
						    <tbody>
						    <c:forEach items="${user.cartasPropias}" var="cartaPropia">
							 <tr id="oRow${cartaPropia.id}">
							 	<td class="filterable-cell">${cartaPropia.carta.name}
							 	</td>
								<td class="filterable-cell">${cartaPropia.carta.edicion.name}
								</td>
								<td class="filterable-cell">
									<select id="selORow${cartaPropia.id}" class="form-control input-sm selectorEstado" onchange="updateState(event)">
									<option>Nueva</option>
									<option>Jugada</option>
									<option>Deteriorada</option>
									</select>
								</td>
								<td class="filterable-cell">
									<button type="button" class="btn btn-xs spinner" onclick="decrSpinner(event)">-</button>
									<input  id="qORow" type="text" name="quantity" class="cantidad-carta" value="${cartaPropia.cantidad}">
									<button type="button" class="btn btn-xs spinner" onclick="incrSpinner(event)">+</button>
								</td>
								<td class="filterable-cell text-right">
									<button type="button" class="btn btn-link btn-xs" onclick="removeCard(event, 1)" >X</button>
								</td>
							</tr>
							<input id="nameORow${cartaPropia.id}" type="hidden" value="${cartaPropia.carta.name}" name="cardsO[]"></input>
							<input id="edORow${cartaPropia.id}" type="hidden" value="${cartaPropia.carta.edicion}" name="cardsOE[]"></input>
							<input id="quantityORow${cartaPropia.id}" type="hidden" value="${cartaPropia.cantidad}" name="cardsOQ[]"></input>
							<input id="stateORow${cartaPropia.id}" type="hidden" value="${cartaPropia.estadoCarta}" name="cardsOS[]"></input> 
						    </c:forEach>
						    </tbody>
						</table>
					</div>
					
					
					<div id="table_buscadas" class="tabla_gestion">
						<table id = "tab3" class="table table-striped">
						<caption>Buscadas</caption>
						    <thead>
							    <tr>
							        <th>Nombre</th>
							        <th>Edicin</th>
							        <th></th>
							    </tr>
						    </thead>
						    <tbody>
							   <c:forEach items="${user.cartasBuscadas}" var="cartaBuscada">
							    <tr id="sRow${cartasBuscada.id}">
								    <td class="filterable-cell">${cartaBuscada.name}
								    </td>
								    <td class="filterable-cell">${cartaBuscada.edicion}
								    </td>
								    <td class="filterable-cell text-right">
								    	<button type="button" class="btn btn-link btn-xs" onclick="removeCard(event,2)">X</button>
								    </td>
							    </tr>
								<input id="nameSRow"${cartasBuscada.id} type="hidden" value="1" name="cardsS[]"></input>
								<input id="edSRow${cartasBuscada.id}" type="hidden" value="1" name="cardsSE[]"></input>
								</c:forEach>
{'fraction_non_alphanumeric': 0.18301380012966564, 'fraction_numerical': 0.003519496156339724, 'mean_word_length': 2.6455097906819716, 'pattern_counts': {'":': 0, '<': 345, '<?xml version=': 0, '>': 345, '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': '5099372', 'n_tokens_mistral': 5143, 'n_tokens_neox': 3621, 'n_words': 576}