<commit_before><%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %>
<%@ page import="org.acegisecurity.ui.AbstractProcessingFilter" %>
<%@ page import="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter" %>
<%@ page import="org.acegisecurity.AuthenticationException" %>

<jsp:include page="/includes/header.jsp" flush="false">
  <jsp:param name="title" value="Login" />
  <jsp:param name="nonavbar" value="true" />
</jsp:include>
	
    <%-- this form-login-page form is also used as the 
         form-error-page to ask for a login again.
         --%>
    <c:if test="${not empty param.login_error}">
      <p style="color:red;">
        <strong>Your log-in attempt failed, please try again</strong></p>
      <p>Reason: <%= ((AuthenticationException) session.getAttribute(AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY)).getMessage() %></p>
    </c:if>

    <div class="formOnly">
    <form action="<c:url value='j_acegi_security_check'/>" method="POST">
        <p>User: <input type='text' name='j_username' <c:if test="${not empty param.login_error}">value='<%= session.getAttribute(AuthenticationProcessingFilter.ACEGI_SECURITY_LAST_USERNAME_KEY) %>'</c:if> /><br /> 
           Password: <input type='password' name='j_password'></p>
<!--
        <p><input type="checkbox" name="_acegi_security_remember_me"> Don't ask for my password for two weeks</p>
-->
			<input name="reset" type="reset" value="Reset" />
			<input name="Get in" type="submit" value="Get in" />
    </form>
    </div>
    <hr />
<jsp:include page="/includes/footer.jsp" flush="false" /><commit_msg>Eliminate warnings (at the expense of hard-coding some static strings).<commit_after><%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core'%>

<jsp:include page="/includes/header.jsp" flush="false">
  <jsp:param name="title" value="Login" />
  <jsp:param name="nonavbar" value="true" />
</jsp:include>

<%-- this form-login-page form is also used as the 
         form-error-page to ask for a login again.
         --%>
<c:if test="${not empty param.login_error}">
  <p style="color:red;">
    <strong>Your log-in attempt failed, please try again</strong>
  </p>

  <%-- This is: AbstractProcessingFilter.ACEGI_SECURITY_LAST_EXCEPTION_KEY --%>
  <p>Reason: ${ACEGI_SECURITY_LAST_EXCEPTION.message}</p>
</c:if>

<div class="formOnly">
  <form action="<c:url value='j_acegi_security_check'/>" method="POST">
    <p>
      User: 
      <c:choose>
        <c:when test="${not empty param.login_error}">
          <%-- This is: AuthenticationProcessingFilter.ACEGI_SECURITY_LAST_USERNAME_KEY --%>
          <input type='text' name='j_username' value='${ACEGI_SECURITY_LAST_USERNAME}' /><br />
        </c:when>
        <c:otherwise>
          <input type='text' name='j_username' /><br />
        </c:otherwise>
      </c:choose>
      
      Password: <input type='password' name='<PASSWORD>'>
    </p>
      
    <!--
    <p><input type="checkbox" name="_acegi_security_remember_me"> Don't ask for my password for two weeks</p>
    -->
    
    <input name="reset" type="reset" value="Reset" />
    <input name="Get in" type="submit" value="Get in" />
  
  </form>
</div>

<hr />

<jsp:include page="/includes/footer.jsp" flush="false" />
{'fraction_non_alphanumeric': 0.18313327177593106, 'fraction_numerical': 0.0, 'mean_word_length': 3.8076923076923075, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '4323596', 'n_tokens_mistral': 1120, 'n_tokens_neox': 1076, 'n_words': 220}