<commit_before><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<spring:url value="/resources/bootstrap/css/bootstrap.min.css" var="bootstrapcss" />
<link href="${bootstrapcss}" rel="stylesheet" type="text/css" />


<title>Cat details</title>
</head>
<body>
	<div class="container">
		<div class="jumbotron">
			<h1>Cats Database</h1>
			<p>Spring MVC, JPA, Boostrap, JSTL example based on Cats Database.</p>
		</div>
		<div class="row">
			<div class="col-md-3">
				<div class="list-group">
					<spring:url value="/" var="catsUrlM" />
					<spring:url value="/cats/add" var="AddCatUrlM" />
					<a href="${catsUrlM}" class="list-group-item list-group-item-action">Cats list</a> <a href="${AddCatUrlM}"
						class="list-group-item list-group-item-action">Add cat</a>
				</div>
			</div>
			<div class="col-md-9">
				<c:if test="${not empty msg}">
					<div class="alert alert-${css} alert-dismissible" role="alert">
						<button type="button" class="close" data-dismiss="alert" aria-label="Close">
							<span aria-hidden="true">×</span>
						</button>
						<strong>${msg}</strong>
					</div>
				</c:if>
				<h4>Cat details</h4>
				<div class="container">
					<table class="table table-sm table-hover">
						<thead>
							<tr>
								<th>#ID</th>
								<th>Name</th>
								<th>Birth Date</th>
								<th>Weight</th>
								<th>Owner</th>
							</tr>
						</thead>
						<tbody>

							<tr>
								<th scope="row">${cat.custId}</th>
								<td>${cat.name}</td>
								<td><fmt:formatDate pattern="dd.MM.yyyy" value="${cat.birthDate}" /></td>
								<td>${cat.weight}</td>
								<td>${cat.owner}</td>
							</tr>

						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<spring:url value="/resources/jquery/jquery-3.2.1.min.js" var="jqueryMinJs" />
	<spring:url value="/resources/bootstrap/js/bootstrap.min.js" var="bootstrapjs" />
	<script type="text/javascript" src="${jqueryMinJs}"></script>
	<script type="text/javascript" src="${bootstrapjs}"></script>

</body>
</html><commit_msg>rewrited cat detailed view<commit_after><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<spring:url value="/resources/bootstrap/css/bootstrap.min.css" var="bootstrapcss" />
<link href="${bootstrapcss}" rel="stylesheet" type="text/css" />


<title>Cat details</title>
</head>
<body>
	<div class="container">
		<div class="jumbotron">
			<h1>Cats Database</h1>
			<p>Spring MVC, JPA, Boostrap, JSTL example based on Cats Database.</p>
		</div>
		<div class="row">
			<div class="col-md-3">
				<div class="list-group">
					<spring:url value="/" var="catsUrlM" />
					<spring:url value="/cats/add" var="AddCatUrlM" />
					<a href="${catsUrlM}" class="list-group-item list-group-item-action">Cats list</a> <a href="${AddCatUrlM}"
						class="list-group-item list-group-item-action">Add cat</a>
				</div>
			</div>
			<div class="col-md-9">
				<c:if test="${not empty msg}">
					<div class="alert alert-${css} alert-dismissible" role="alert">
						<button type="button" class="close" data-dismiss="alert" aria-label="Close">
							<span aria-hidden="true">×</span>
						</button>
						<strong>${msg}</strong>
					</div>
				</c:if>
				<h4>Cat details</h4>
				<div class="container">
					<dl class="row">
						<dt class="col-sm-3">#ID</dt>
						<dd class="col-sm-9">${cat.custId}</dd>
						<dt class="col-sm-3">Name</dt>
						<dd class="col-sm-9">${cat.name}</dd>
						<dt class="col-sm-3">Birtd Date</dt>
						<dd class="col-sm-9">
							<fmt:formatDate pattern="dd.MM.yyyy" value="${cat.birthDate}" />
						</dd>
						<dt class="col-sm-3">Weight</dt>
						<dd class="col-sm-9">${cat.weight}</dd>
						<dt class="col-sm-3">Sex</dt>
						<dd class="col-sm-9">${cat.sex}</dd>
						<dt class="col-sm-3">Coloring</dt>
						<dd class="col-sm-9">${cat.coloring}</dd>
						<dt class="col-sm-3">Owner</dt>
						<dd class="col-sm-9">${cat.owner}</dd>
					</dl>


				</div>
			</div>
		</div>
	</div>
	<spring:url value="/resources/jquery/jquery-3.2.1.min.js" var="jqueryMinJs" />
	<spring:url value="/resources/bootstrap/js/bootstrap.min.js" var="bootstrapjs" />
	<script type="text/javascript" src="${jqueryMinJs}"></script>
	<script type="text/javascript" src="${bootstrapjs}"></script>

</body>
</html>
{'fraction_non_alphanumeric': 0.23218743998463606, 'fraction_numerical': 0.007681966583445362, 'mean_word_length': 3.5445026178010473, 'pattern_counts': {'":': 0, '<': 187, '<?xml version=': 0, '>': 187, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '823692', 'n_tokens_mistral': 2340, 'n_tokens_neox': 1926, 'n_words': 322}