<commit_before><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<style>

pre.stacktrace {
 background: #f7f7f7;
 border: 1px solid #d7d7d7;
 padding: .25em;
 overflow: auto;
}

div.error_body {
  background-color: white;
  border: solid 1px #bbb;
}

</style>

<!-- error.jsp -->
<html:xhtml/>

<tiles:insert page="/errorMessages.jsp"/></br>
<a href="javascript:history.go(-1)" >Go back</a>

<c:if test="${!empty stacktrace}">
	<div class="error_body">
	<div class="body"><b><fmt:message key="error.stacktrace"/></b></div>

	<div class="body">
	<pre class="stacktrace">
	  <c:out value="${stacktrace}"/>
	 </pre>
	</div>
	</div>
</c:if>

<!-- /error.jsp =--><commit_msg>Prevented stacktrace from appearing when an error happens in a tile. It still gets logged.<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<style>

pre.stacktrace {
 background: #f7f7f7;
 border: 1px solid #d7d7d7;
 padding: .25em;
 overflow: auto;
}

div.error_body {
  background-color: white;
  border: solid 1px #bbb;
}
</style>

<!-- error.jsp -->
<html:xhtml/>

<div id="generic_error">
<tiles:insert page="/errorMessages.jsp"/>
</div>
<!--
<c:if test="${!empty stacktrace}">
	<div class="error_body">
	<div class="body"><b><fmt:message key="error.stacktrace"/></b></div>

	<div class="body">
	<pre class="stacktrace">
	  <c:out value="${stacktrace}"/>
	 </pre>
	</div> 
	</div>
</c:if> 
-->

<!-- /error.jsp =-->
{'fraction_non_alphanumeric': 0.24317226890756302, 'fraction_numerical': 0.011029411764705883, 'mean_word_length': 4.427350427350428, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '1782776', 'n_tokens_mistral': 802, 'n_tokens_neox': 766, 'n_words': 139}