<commit_before><h2>Create new user</h2>
<% if (request.getParameter("e") != null && request.getParameter("e").equals("1200")) { %>
<div><h3>Could not perform update</h3></div>
<%}%>
<form class="crawcial-login-form" action="user" method="post">
    <div class="crawcial-form-row">
        <input class="crawcial-form-large" type="text" name="user"
               value=""
               placeholder="Username" autofocus="">
    </div>
    <div class="crawcial-form-row">
        <input class="crawcial-form-large" type="password" name="password"
               value=""
               placeholder="Password">
    </div>
    <div class="crawcial-form-row">
        <button>Create new user</button>
    </div>
    <input type="hidden" name="action" value="adduser">

</form>
<form class="crawcial-login-form" action="user" method="post">
    <div class="crawcial-form-row">
        <button>Delete current user</button>
    </div>
    <input type="hidden" name="action" value="deluser">
</form><commit_msg>Redirect to login / no access to user management if not authenticated<commit_after><%@ page import="de.crawcial.web.auth.AuthHelper" %>
<%@ page import="de.crawcial.web.util.Modules" %>
<% if (AuthHelper.isAuthenticated(request)) {%>
<h2>Create new user</h2>
<% if (request.getParameter("e") != null && request.getParameter("e").equals("1200")) { %>
<div><h3>Could not perform update</h3></div>
<%}%>
<form class="crawcial-login-form" action="user" method="post">
    <div class="crawcial-form-row">
        <input class="crawcial-form-large" type="text" name="user"
               value=""
               placeholder="Username" autofocus="">
    </div>
    <div class="crawcial-form-row">
        <input class="crawcial-form-large" type="password" name="password"
               value=""
               placeholder="Password">
    </div>
    <div class="crawcial-form-row">
        <button>Create new user</button>
    </div>
    <input type="hidden" name="action" value="adduser">

</form>
<form class="crawcial-login-form" action="user" method="post">
    <div class="crawcial-form-row">
        <button>Delete current user</button>
    </div>
    <input type="hidden" name="action" value="deluser">
</form>
<% } else {
    response.sendRedirect(Modules.LOGIN);
} %>
{'fraction_non_alphanumeric': 0.1914612676056338, 'fraction_numerical': 0.007042253521126761, 'mean_word_length': 3.518886679920477, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 63, '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': '507992', 'n_tokens_mistral': 746, 'n_tokens_neox': 723, 'n_words': 138}