<commit_before><HTML>
<HEAD><TITLE>FreestyleLM Error</TITLE></HEAD>
<BODY>
<font size=5><b><u>
Freestyle Lexical Mine Error:<br>
</u></b></font>

<%
if(request.getAttribute("javax.servlet.jsp.jspException") != null){
	Exception exception = (Exception)request.getAttribute("javax.servlet.jsp.jspException") ;
	String url = request.getRequestURL().toString();
	if(url.indexOf("/searchError.jsp")>-1){
		url = url.substring(0, url.indexOf("/searchError.jsp"));
	}
    %>
    <p><font color=red size=4>           
    <%=exception.getMessage()%>
    </font></p><hr><hr><br><br>
    <a href="<%=url%>/indexSearch.jsp">Back to Search Page</a>
    <%
}
%>


</BODY>
</HTML><commit_msg>Per app scan, added JSTL tag to use <c:out> so that escapeHTML is used when displaying error message<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<HTML>
<HEAD><TITLE>FreestyleLM Error</TITLE></HEAD>
<BODY>
<font size=5><b><u>
Freestyle Lexical Mine Error:<br>
</u></b></font>

<%
if(request.getAttribute("javax.servlet.jsp.jspException") != null){
	Exception exception = (Exception)request.getAttribute("javax.servlet.jsp.jspException") ;
	String message=exception.getMessage();
	pageContext.setAttribute("message", message);
	String url = request.getRequestURL().toString();
	if(url.indexOf("/searchError.jsp")>-1){
		url = url.substring(0, url.indexOf("/searchError.jsp"));
	}
    %>
    <p><font color=red size=4> 
    <c:out value="${message}"/>
    </font></p><hr><hr><br><br>
    <a href="<%=url%>/indexSearch.jsp">Back to Search Page</a>
    <%
}
%>


</BODY>
</HTML>
{'fraction_non_alphanumeric': 0.209529627367135, 'fraction_numerical': 0.004886988393402566, 'mean_word_length': 4.102803738317757, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 65, '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': '4620935', 'n_tokens_mistral': 599, 'n_tokens_neox': 587, 'n_words': 95}