<commit_before><%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="uv" tagdir="/WEB-INF/tags" %>
<%@taglib prefix="icon" tagdir="/WEB-INF/tags/icons" %>

<!DOCTYPE html>
<html lang="${language}" class="tw-<c:out value='${theme}' />">

<spring:url var="URL_PREFIX" value="/web"/>

<head>
    <title>
        <spring:message code="person.account.header.title" arguments="${person.niceName}"/>
    </title>
    <uv:custom-head/>
</head>

<body>

<uv:menu/>

<div class="content">
    <div class="container">

        <div class="feedback">
            <c:if test="${createSuccess}">
                <div class="alert alert-success">
                    <spring:message code="person.account.action.create.success"/>
                </div>
            </c:if>
            <c:if test="${updateSuccess}">
                <div class="alert alert-success">
                    <spring:message code="person.account.action.update.success"/>
                </div>
            </c:if>
        </div>

        <div class="tw-space-y-12 md:tw-space-y-0 md:tw-grid tw-gap-12 tw-grid-cols-1 md:tw-grid-cols-2">
            <div class="md:tw-col-start-1 md:grid-row-start-1">
                <uv:section-heading>
                    <jsp:attribute name="actions">
                        <c:if test="${canEditBasedata}">
                            <a href="${URL_PREFIX}/person/${person.id}/basedata" class="icon-link tw-px-1" aria-hidden="true" data-title="<spring:message code="action.edit"/>">
                                <icon:pencil className="tw-w-5 tw-h-5" />
                            </a>
                        </c:if>
                    </jsp:attribute>
                    <jsp:body>
                        <h2>
                            <spring:message code="person.account.basedata.title"/>
                        </h2>
                    </jsp:body>
                </uv:section-heading>
                <uv:person person="${person}" cssClass="tw-mb-0 tw-border-none" noPadding="true" />
                <dl class="tw-m-0 tw-mt-10 tw-list-none tw-grid tw-gap-x-8 tw-gap-y-4" style="grid-template-columns: fit-content(30%) 1fr;">
                    <dt class="dark:tw-text-zinc-400 tw-font-normal tw-text-right">
                        <spring:message code="person.account.basedata.username"/>
                    </dt>
                    <dd>
                        ${person.username}
                    </dd>
                    <c:if test="${not empty personBasedata.personnelNumber}">
                        <dt class="dark:tw-text-zinc-400 tw-font-normal tw-text-right">
                            <spring:message code="person.account.basedata.personnelNumber"/>
                        </dt>
                        <dd class="tw-text-ellipsis tw-overflow-hidden">
                            <c:out value="${personBasedata.personnelNumber}"/>
                        </dd>
                    </c:if>
                    <c:if test="${not empty personBasedata.additionalInfo}">
                        <dt class="dark:tw-text-zinc-400 tw-font-normal tw-text-right">
                            <spring:message code="person.account.basedata.additionalInformation"/>
                        </dt>
                        <dd class="tw-text-ellipsis tw-overflow-hidden">
                           <span class="tw-whitespace-pre-line"><c:out value="${personBasedata.additionalInfo}"/></span>
                        </dd>
                    </c:if>
                </dl>
            </div>
            <div class="md:tw-col-start-1 md:tw-row-start-3 md:tw-row-span-2">
                <uv:section-heading>
                    <jsp:attribute name="actions">
                        <c:if test="${canEditPermissions}">
                            <a href="${URL_PREFIX}/person/${person.id}/permissions" class="icon-link tw-px-1" aria-hidden="true" data-title="<spring:message code="action.edit"/>">
                                <icon:pencil className="tw-w-5 tw-h-5" />
                            </a>
                        </c:if>
                    </jsp:attribute>
                    <jsp:body>
                        <h2>
                            <spring:message code="person.account.permissions.title"/>
                        </h2>
                    </jsp:body>
                </uv:section-heading>
                <uv:box className="tw-mb-2 tw-border-none" noPadding="true">
                    <jsp:attribute name="icon">
                        <uv:box-icon className="tw-bg-blue-400 tw-text-white dark:tw-bg-sky-500 dark:tw-text-zinc-900">
                            <icon:key className="tw-w-8 tw-h-8" />
                        </uv:box-icon><commit_msg>Arrange basedata in person details<commit_after><%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="uv" tagdir="/WEB-INF/tags" %>
<%@taglib prefix="icon" tagdir="/WEB-INF/tags/icons" %>

<!DOCTYPE html>
<html lang="${language}" class="tw-<c:out value='${theme}' />">

<spring:url var="URL_PREFIX" value="/web"/>

<head>
    <title>
        <spring:message code="person.account.header.title" arguments="${person.niceName}"/>
    </title>
    <uv:custom-head/>
</head>

<body>

<uv:menu/>

<div class="content">
    <div class="container">

        <div class="feedback">
            <c:if test="${createSuccess}">
                <div class="alert alert-success">
                    <spring:message code="person.account.action.create.success"/>
                </div>
            </c:if>
            <c:if test="${updateSuccess}">
                <div class="alert alert-success">
                    <spring:message code="person.account.action.update.success"/>
                </div>
            </c:if>
        </div>

        <div class="tw-space-y-12 md:tw-space-y-0 md:tw-grid tw-gap-12 tw-grid-cols-1 md:tw-grid-cols-2">
            <div class="md:tw-col-start-1 md:grid-row-start-1">
                <uv:section-heading>
                    <jsp:attribute name="actions">
                        <c:if test="${canEditBasedata}">
                            <a href="${URL_PREFIX}/person/${person.id}/basedata" class="icon-link tw-px-1" aria-hidden="true" data-title="<spring:message code="action.edit"/>">
                                <icon:pencil className="tw-w-5 tw-h-5" />
                            </a>
                        </c:if>
                    </jsp:attribute>
                    <jsp:body>
                        <h2>
                            <spring:message code="person.account.basedata.title"/>
                        </h2>
                    </jsp:body>
                </uv:section-heading>
                <uv:person person="${person}" cssClass="tw-mb-0 tw-border-none" noPadding="true" />
                <dl class="tw-ml-[6.25rem] tw-m-0 tw-mt-4 tw-list-none">
                    <c:if test="${not empty personBasedata.personnelNumber}">
                        <dt class="tw-mb-2 tw-font-medium dark:tw-text-zinc-400">
                            <spring:message code="person.account.basedata.personnelNumber"/>
                        </dt>
                        <dd class="tw-text-sm tw-mb-8 tw-text-ellipsis tw-overflow-hidden">
                            <c:out value="${personBasedata.personnelNumber}"/>
                        </dd>
                    </c:if>
                    <c:if test="${not empty personBasedata.additionalInfo}">
                        <dt class="tw-mb-2 tw-font-medium dark:tw-text-zinc-400">
                            <spring:message code="person.account.basedata.additionalInformation"/>
                        </dt>
                        <dd class="tw-text-sm tw-text-ellipsis tw-overflow-hidden">
                           <span class="tw-whitespace-pre-line"><c:out value="${personBasedata.additionalInfo}"/></span>
                        </dd>
                    </c:if>
                </dl>
            </div>
            <div class="md:tw-col-start-1 md:tw-row-start-3 md:tw-row-span-2">
                <uv:section-heading>
                    <jsp:attribute name="actions">
                        <c:if test="${canEditPermissions}">
                            <a href="${URL_PREFIX}/person/${person.id}/permissions" class="icon-link tw-px-1" aria-hidden="true" data-title="<spring:message code="action.edit"/>">
                                <icon:pencil className="tw-w-5 tw-h-5" />
                            </a>
                        </c:if>
                    </jsp:attribute>
                    <jsp:body>
                        <h2>
                            <spring:message code="person.account.permissions.title"/>
                        </h2>
                    </jsp:body>
                </uv:section-heading>
                <uv:box className="tw-mb-2 tw-border-none" noPadding="true">
                    <jsp:attribute name="icon">
                        <uv:box-icon className="tw-bg-blue-400 tw-text-white dark:tw-bg-sky-500 dark:tw-text-zinc-900">
                            <icon:key className="tw-w-8 tw-h-8" />
                        </uv:box-icon>
{'fraction_non_alphanumeric': 0.16221962368449028, 'fraction_numerical': 0.010949293079621558, 'mean_word_length': 1.4209984559958826, 'pattern_counts': {'":': 0, '<': 190, '<?xml version=': 0, '>': 190, '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': '131264', 'n_tokens_mistral': 2804, 'n_tokens_neox': 2633, 'n_words': 395}