<commit_before><%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<link rel="stylesheet" type="text/css" href="css/displaytag.css" />
<link rel="StyleSheet" type="text/css" href="css/promptBox.css">
<jsp:include page="/bodyTitle.jsp">
	<jsp:param name="pageTitle" value="Publication Search Results" />
	<jsp:param name="topic" value="publications_search_results_help" />
	<jsp:param name="glossaryTopic" value="glossary_help" />
</jsp:include>
<table width="100%" align="center">
	<tr>
		<td colspan="2">
			<c:choose>
				<c:when test="${!empty user && user.curator}">
					<c:set var="link" value="editPublicationURL" />
				</c:when>
				<c:otherwise>
					<c:set var="link" value="displayName" />
				</c:otherwise>
			</c:choose>
			<jsp:include page="/bodyMessage.jsp?bundle=publication" />
			<display:table name="publications" id="publication"
				requestURI="searchPublication.do" pagesize="25" class="displaytable"				
				partialList="true" size="resultSize"
				decorator="gov.nih.nci.cananolab.dto.common.PublicationDecorator">
				<c:if test="${!empty user && user.curator}">
					<display:column title="" property="editPublicationURL" />
				</c:if>
				<display:column title="Bibliography Info" property="displayName"
					sortable="true" />
				<display:column title="Publication<br>Type"
					property="publicationType" sortable="true" />
				<display:column title="Research<br>Category" property="researchArea"
					sortable="true" />
				<display:column title="Associated<br>Sample Names"
					property="sampleNames" sortable="true" />
				<display:column title="Description"
					property="descriptionDetail" sortable="true" />
				<display:column title="Created<br>Date"
					property="domainFile.createdDate" sortable="true"
					format="{0,date,MM-dd-yyyy}" />
				<display:column title="Publication<br>Status"
					property="domainFile.status" sortable="true" />
				<display:column title="Location" property="location" sortable="true" />
			</display:table>
		</td>
	</tr>
</table>
<commit_msg>added default sort on date per page<commit_after><%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<link rel="stylesheet" type="text/css" href="css/displaytag.css" />
<link rel="StyleSheet" type="text/css" href="css/promptBox.css">
<jsp:include page="/bodyTitle.jsp">
	<jsp:param name="pageTitle" value="Publication Search Results" />
	<jsp:param name="topic" value="publications_search_results_help" />
	<jsp:param name="glossaryTopic" value="glossary_help" />
</jsp:include>
<table width="100%" align="center">
	<tr>
		<td colspan="2">
			<c:choose>
				<c:when test="${!empty user && user.curator}">
					<c:set var="link" value="editPublicationURL" />
				</c:when>
				<c:otherwise>
					<c:set var="link" value="displayName" />
				</c:otherwise>
			</c:choose>
			<jsp:include page="/bodyMessage.jsp?bundle=publication" />
			<c:set var="defaultSortColumn" value="6" />
			<c:if test="${!empty user && user.curator}">
				<c:set var="defaultSortColumn" value="7" />
			</c:if>
			<display:table name="publications" id="publication"
				requestURI="searchPublication.do" pagesize="25" class="displaytable"
				partialList="true" size="resultSize"
				decorator="gov.nih.nci.cananolab.dto.common.PublicationDecorator"
				defaultsort="${defaultSortColumn}">
				<c:if test="${!empty user && user.curator}">
					<display:column title="" property="editPublicationURL" />
				</c:if>
				<display:column title="Bibliography Info" property="displayName"
					sortable="true" />
				<display:column title="Publication<br>Type"
					property="publicationType" sortable="true" />
				<display:column title="Research<br>Category" property="researchArea"
					sortable="true" />
				<display:column title="Associated<br>Sample Names"
					property="sampleNames" sortable="true" />
				<display:column title="Description" property="descriptionDetail"
					sortable="true" />
				<display:column title="Created<br>Date"
					property="domainFile.createdDate" sortable="true"
					format="{0,date,MM-dd-yyyy}" />
				<display:column title="Publication<br>Status"
					property="domainFile.status" sortable="true" />
				<display:column title="Location" property="location" sortable="true" />
			</display:table>
		</td>
	</tr>
</table>

{'fraction_non_alphanumeric': 0.19185200581999584, 'fraction_numerical': 0.0033257119102057782, 'mean_word_length': 5.2250970245795605, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '4256559', 'n_tokens_mistral': 1858, 'n_tokens_neox': 1592, 'n_words': 252}