<commit_before><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="x"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<x:base>
    <jsp:attribute name="title">
        <c:out value="${book.name}" /> - book detail
    </jsp:attribute>
    <jsp:attribute name="content">
        <h1>
            <c:out value="${book.name}" /> - book detail</h1>
        <table class="table table-default">
            <tr>
                <td class="key">Author name</td>
                <td><c:out value="${book.authorName}" /></td>
            </tr>
            <tr>
                <td class="key">ISBN</td>
                <td><c:out value="${book.isbn}" /></td>
            </tr>
            <tr>
                <td class="key">Current state</td>
                <td><c:out value="${book.state.value}" /></td>
            </tr>
            <tr>
                <td class="key">Presently loaned</td>
                <td><c:out value="${book.loaned? 'Yes': 'No'}" /></td>
            </tr>
        </table>
        <sec:authorize access="hasRole('ADMIN')">
            <div class="panel panel-default">
                <div class="panel-heading">Loan history</div>
                <x:loanTable loans="${book.loans}" showMember="true" showReturn="true"/>
            </div>
            <form action="delete/${book.id}" method="POST" style="display:inline"
                    onSubmit="return confirm('Are you sure you want to permanently delete the collection?')">
                <button class="btn btn-default">Delete book</button>
            </form>
        </sec:authorize>
    </jsp:attribute>
</x:base><commit_msg>fix design in show book<commit_after><%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib tagdir="/WEB-INF/tags" prefix="x"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<x:base>
    <jsp:attribute name="title">
        <c:out value="${book.name}" /> - book detail
    </jsp:attribute>
    <jsp:attribute name="content">
        <h1>
            <c:out value="${book.name}" /> - book detail</h1>
        <table class="table table-default">
            <tr>
                <td class="key">Author name</td>
                <td><c:out value="${book.authorName}" /></td>
            </tr>
            <tr>
                <td class="key">ISBN</td>
                <td><c:out value="${book.isbn}" /></td>
            </tr>
            <tr>
                <td class="key">Current state</td>
                <td><c:out value="${book.state.value}" /></td>
            </tr>
            <tr>
                <td class="key">Presently loaned</td>
                <td><c:out value="${book.loaned? 'Yes': 'No'}" /></td>
            </tr>
        </table>
        <sec:authorize access="hasRole('ADMIN')">
            <div class="panel panel-default">
                <div class="panel-heading">Loan history</div>
                <x:loanTable loans="${book.loans}" showMember="true" showReturn="true"/>
            </div>
            <form action="delete/${book.id}" method="POST" style="display:inline"
                    onSubmit="return confirm('Are you sure you want to permanently delete the book?')">
                <button class="btn btn-default">Delete book</button>
            </form>
        </sec:authorize>
    </jsp:attribute>
</x:base>
{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.0020833333333333333, 'mean_word_length': 2.1355102040816325, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5894737', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1179, 'n_words': 221}