<commit_before><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
   <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <link rel="stylesheet" type="text/css" href="<c:out value="${pageContext.request.contextPath}"/>/resources/css/admin_login.css" />
      <title>Broadleaf Commerce - Administrative Application Forgot Username</title>
      
      <script language="javascript">
          function setSubmitUrl(form)
          {
            var hash = encodeURI(self.document.location.hash.substring(1));
            form.action = "${pageContext.request.contextPath}/blcadmin/resetPassword#" + hash;
            return true;
          }
      </script>
   </head>
   <body id="bg" class="en">
        <c:choose>
            <c:when test="${errorCode == 'invalidUser'}">
                <div id="login-error">No matching username found.</div>
            </c:when>
            <c:when test="${errorCode == 'emailNotFound'}">
                <div id="login-error">The requested username does not have a valid email address.  Please contact an administrator.</div>
            </c:when>
            <c:when test="${errorCode == 'inactiveUser'}">
                <div id="login-error">The username you entered is marked as inactive.   Please contact an administrator to activate your account.</div>
            </c:when>
            <c:when test="${not empty param.errorCode}">
                <div id="login-error">Unknown error.</div>
            </c:when>
        </c:choose>


        <div id="content">
            <div id="logo"></div>
            <form class="login-form" onSubmit="return setSubmitUrl(this);" method="post">
                <table class="login">
                    <tr><td><label for="username_field" class="user">Username:</label><input id="username_field" class="input-username" name="username" type="text"></td></tr>
                    <tr><td><input id="submitButton" type="submit" value="Reset Password"></td></tr>
                </table>
            </form>
        </div>
        <div id="foot" class="forgot">
            <a href="<c:out value="${pageContext.request.contextPath}"/>/blcadmin/forgotUsername">Forgot username</a> -
            <a href="<c:out value="${pageContext.request.contextPath}"/>/blcadmin/login">Return to Login</a>
        </div>
   </body>
</html><commit_msg>Restyled forgot password<commit_after><%@ include file="/blcadmin/snippets/include.jsp" %>
<!DOCTYPE html>

<html lang="en">
<head>
    <link href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/resources/css/admin.css" />
    <title>Broadleaf Commerce - Administrative Application Forgot Password</title>
</head>

    <body>

        <div id="login">
            <div id="logo">
                <img src="${pageContext.request.contextPath}/resources/img/broadleaf_admin_header_logo.png" />
            </div>
            <form action="${pageContext.request.contextPath}/blcadmin/resetPassword" method="post" class="form-horizontal">
                <div class="control-group">
                    <label class="control-label" for="username_field">Username</label>
                    <div class="controls">
                        <input type="email" id="username_field" name="username" autofocus="autofocus" />
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <button type="submit" class="btn" >Reset Password</button>
                    </div>
                </div>
            </form>
        </div>

        <c:choose>
            <c:when test="${errorCode == 'invalidUser'}">
                <p class="alert alert-error"><strong>No matching user found.</strong></p>
            </c:when>
            <c:when test="${errorCode == 'emailNotFound'}">
                <p class="alert alert-success"><strong>The requested username does not have a valid email address.  Please contact an administrator.</strong></p>
            </c:when>
            <c:when test="${errorCode == 'inactiveUser'}">
                <p class="alert alert-success"><strong>The username you entered is marked as inactive.   Please contact an administrator to activate your account.</strong></p>
            </c:when>
            <c:when test="${not empty param.errorCode}">
                <p class="alert alert-success"><strong>Unknown error.</strong></p>
            </c:when>
        </c:choose>

        <div id="security-options">
            <a href="${pageContext.request.contextPath}/blcadmin/forgotPassword">Forgot username</a> |
            <a href="${pageContext.request.contextPath}/blcadmin/login">Return to login</a>
        </div>

        <script src="${pageContext.request.contextPath}/resources/js/lib/jquery-1.8.0.min.js"></script>
        <script type="text/javascript" src="${pageContext.request.contextPath}/resources/js/security.js"></script>

    </body>

</html>
{'fraction_non_alphanumeric': 0.16718778738274784, 'fraction_numerical': 0.0033106492551039177, 'mean_word_length': 2.485897435897436, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '4885393', 'n_tokens_mistral': 1567, 'n_tokens_neox': 1495, 'n_words': 299}