<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"%>
<script type='text/javascript' src='javascript/addDropDownOptions.js'></script>
<script type='text/javascript' src='/caNanoLab/dwr/engine.js'></script>
<script type='text/javascript' src='/caNanoLab/dwr/util.js'></script>
<script type='text/javascript' src='javascript/SampleManager.js'></script>
<script type="text/javascript"
	src="/caNanoLab/dwr/interface/SampleManager.js"></script>
<link rel="StyleSheet" type="text/css" href="css/promptBox.css">
<c:set var="title" value="Submit" />
<c:if test="${!empty updateSample}">
	<c:set var="title" value="Update" />
</c:if>

<jsp:include page="/bodyTitle.jsp">
	<jsp:param name="pageTitle" value="${title} Sample" />
	<jsp:param name="topic" value="submit_sample_help" />
	<jsp:param name="glossaryTopic" value="glossary_help" />
</jsp:include>
<html:form action="/sample"
	onsubmit="return validateSavingTheData('newPointOfContact', 'point of contact');">
	<jsp:include page="/bodyMessage.jsp?bundle=sample" />
	<table width="100%" align="center" class="submissionView">
		<tr>
			<td class="cellLabel" width="20%">
				<label for="sampleName">Sample Name *</label>
			</td>
			<td>
				<html:text property="sampleBean.domain.name" size="80" styleId="sampleName"/>
				<c:if test="${!empty sampleForm.map.sampleBean.domain.id}">
					<label for="sampleId" style="display:none">Sample ID</label>
					<html:hidden styleId="sampleId" property="sampleBean.domain.id"
						value="${sampleForm.map.sampleBean.domain.id}" />
				</c:if>
			</td>
		</tr>
		<tr>
			<td class="cellLabel">
				Point of Contact *
			</td>
			<td>
			    <c:set var="disableOuterButtons" value="false"/>
				<c:set var="newAddPOCButtonStyle" value="display:block" />
				<c:if
					test="${empty sampleForm.map.sampleBean.primaryPOCBean.domain.id}">
					<c:set var="newAddPOCButtonStyle" value="display:none" />
					<c:set var="disableOuterButtons" value="true"/>
				</c:if>
				<a href="#"
					onclick="javascript:confirmAddNew(['Access'], 'PointOfContact', 'Point Of Contact', 'clearPointOfContact()');"
					id="addPointOfContact" style="${newAddPOCButtonStyle}"><img
						align="top" src="images/btn_add.gif" border="0" /></a>
			</td>
		</tr>
		<c:if
			test="${!empty sampleForm.map.sampleBean.primaryPOCBean.domain.id || ! empty sampleForm.map.sampleBean.otherPOCBeans }">
			<tr>
				<td colspan="2">
					<c:set var="edit" value="true" />
					<%@ include file="bodyPointOfContactEdit.jsp"%>
				</td>
			</tr>
		</c:if>
		<tr>
			<td colspan="2">
				<c:set var="newPOCStyle" value="display:none" />
				<c:if
					test="${empty sampleForm.map.sampleBean.primaryPOCBean.domain.id}">
					<c:set var="newPOCStyle" value="display:block" />
				</c:if>
				<c:if test="${openPOC eq true }">
					<c:set var="newPOCStyle" value="display:block" />
				</c:if>
				<div style="${newPOCStyle}" id="newPointOfContact">
					<a name="submitPointOfContact"><%@ include
							file="bodySubmitPointOfContact.jsp"%></a>
				</div>
			</td>
		</tr>
		<tr>
			<td class="cellLabel">
				<label for="keyword">Keywords</label>
				<i>(one keyword per line)</i>
			</td>
			<td>
				<html:textarea property="sampleBean.keywordsStr" rows="6" cols="80" styleId="keyword"/>
			</td>
		</tr>
		<c:set var="groupAccesses" value="${sampleForm.map.sampleBean.groupAccesses}"/>
		<c:set var="userAccesses" value="${sampleForm.map.sampleBean.userAccesses}"/>
		<c:set var="accessParent" value="sampleBean"/>
		<c:set var="dataType" value="Sample"/>
		<c:set var="parentAction" value="sample"/>
		<c:set var="parentForm" value="sampleForm"/>
		<c:set var="parentPage" value="4"/>
		<c:set var="protectedData" value="${sampleForm.map.sampleBean.domain.id}"/>
		<c:set var="newData" value="true"/>
		<c:set var="isPublic" value="${sampleForm.map.sampleBean.publicStatus}"/>
		<c:set var="isOwner" value="${sampleForm.map.sampleBean.userIsOwner}"/>
		<c:set var="ownerName" value="${sampleForm.map.sampleBean.domain.createdBy}"/>
		<c:if test="${updateSample}">
		   <c:set var="newData" value="false"/>
		</c:if>
		<%@include file="../bodyManageAccessibility.jsp" %>
		<c:if test="${!empty updateSample}">
		<tr>
			<c:set var="showDataAvailabilityMetrics" value="${sampleForm.map.sampleBean.hasComposition
						|| sampleForm.map.sampleBean.hasCharacterizations || sampleForm.map.sampleBean.hasPublications }" />
				<c:if test="${!empty user }">
					<td class="cellLabel">
					Data Availability Metrics
					</td>
				</c:if>
				<td>
					<c:if
						test="${!empty user && !sampleForm.map.sampleBean.hasDataAvailability }">
						<input type="image" value="Generate" src="images/btn_generate.gif"
							onclick="javascript:generateDataAvailability(sampleForm, 'sample', 'generateDataAvailability');">
					</c:if>
				</td>
			</tr>
			<c:if
				test="${!empty user && sampleForm.map.sampleBean.hasDataAvailability eq 'true'}">
			<tr>
				<td colspan="2"><table class="editTableWithGrid" width="95%" align="center">
									<tr>
										<th scope="row">
											caNanoLab Availability Score
										</th>
										<th scope="row">
											MINChar Availability Score
										</th>
										<th scope="row"></th>
									</tr>
									<tr><td><c:out value="${sampleForm.map.sampleBean.caNanoLabScore}"/></td>
										<td><c:out value="${sampleForm.map.sampleBean.mincharScore}"/></td><commit_msg>updated for 508 compliance<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"%>
<script type='text/javascript' src='javascript/addDropDownOptions.js'></script>
<script type='text/javascript' src='/caNanoLab/dwr/engine.js'></script>
<script type='text/javascript' src='/caNanoLab/dwr/util.js'></script>
<script type='text/javascript' src='javascript/SampleManager.js'></script>
<script type="text/javascript"
	src="/caNanoLab/dwr/interface/SampleManager.js"></script>
<link rel="StyleSheet" type="text/css" href="css/promptBox.css">
<c:set var="title" value="Submit" />
<c:if test="${!empty updateSample}">
	<c:set var="title" value="Update" />
</c:if>

<jsp:include page="/bodyTitle.jsp">
	<jsp:param name="pageTitle" value="${title} Sample" />
	<jsp:param name="topic" value="submit_sample_help" />
	<jsp:param name="glossaryTopic" value="glossary_help" />
</jsp:include>
<html:form action="/sample"
	onsubmit="return validateSavingTheData('newPointOfContact', 'point of contact');">
	<jsp:include page="/bodyMessage.jsp?bundle=sample" />
	<table width="100%" align="center" class="submissionView">
		<tr>
			<td class="cellLabel" width="20%">
				<label for="sampleName">Sample Name *</label>
			</td>
			<td>
				<html:text property="sampleBean.domain.name" size="80" styleId="sampleName"/>
				<c:if test="${!empty sampleForm.map.sampleBean.domain.id}">
					<label for="sampleId" style="display:none">Sample ID</label>
					<html:hidden styleId="sampleId" property="sampleBean.domain.id"
						value="${sampleForm.map.sampleBean.domain.id}" />
				</c:if>
			</td>
		</tr>
		<tr>
			<td class="cellLabel">
				Point of Contact *
			</td>
			<td>
			    <c:set var="disableOuterButtons" value="false"/>
				<c:set var="newAddPOCButtonStyle" value="display:block" />
				<c:if
					test="${empty sampleForm.map.sampleBean.primaryPOCBean.domain.id}">
					<c:set var="newAddPOCButtonStyle" value="display:none" />
					<c:set var="disableOuterButtons" value="true"/>
				</c:if>
				<a href="#"
					onclick="javascript:confirmAddNew(['Access'], 'PointOfContact', 'Point Of Contact', 'clearPointOfContact()');"
					id="addPointOfContact" style="${newAddPOCButtonStyle}"><img
						align="top" src="images/btn_add.gif" border="0" alt="add point of contact"/></a>
			</td>
		</tr>
		<c:if
			test="${!empty sampleForm.map.sampleBean.primaryPOCBean.domain.id || ! empty sampleForm.map.sampleBean.otherPOCBeans }">
			<tr>
				<td colspan="2">
					<c:set var="edit" value="true" />
					<%@ include file="bodyPointOfContactEdit.jsp"%>
				</td>
			</tr>
		</c:if>
		<tr>
			<td colspan="2">
				<c:set var="newPOCStyle" value="display:none" />
				<c:if
					test="${empty sampleForm.map.sampleBean.primaryPOCBean.domain.id}">
					<c:set var="newPOCStyle" value="display:block" />
				</c:if>
				<c:if test="${openPOC eq true }">
					<c:set var="newPOCStyle" value="display:block" />
				</c:if>
				<div style="${newPOCStyle}" id="newPointOfContact">
					<a name="submitPointOfContact"><%@ include
							file="bodySubmitPointOfContact.jsp"%></a>
				</div>
			</td>
		</tr>
		<tr>
			<td class="cellLabel">
				<label for="keyword">Keywords</label>
				<i>(one keyword per line)</i>
			</td>
			<td>
				<html:textarea property="sampleBean.keywordsStr" rows="6" cols="80" styleId="keyword"/>
			</td>
		</tr>
		<c:set var="groupAccesses" value="${sampleForm.map.sampleBean.groupAccesses}"/>
		<c:set var="userAccesses" value="${sampleForm.map.sampleBean.userAccesses}"/>
		<c:set var="accessParent" value="sampleBean"/>
		<c:set var="dataType" value="Sample"/>
		<c:set var="parentAction" value="sample"/>
		<c:set var="parentForm" value="sampleForm"/>
		<c:set var="parentPage" value="4"/>
		<c:set var="protectedData" value="${sampleForm.map.sampleBean.domain.id}"/>
		<c:set var="newData" value="true"/>
		<c:set var="isPublic" value="${sampleForm.map.sampleBean.publicStatus}"/>
		<c:set var="isOwner" value="${sampleForm.map.sampleBean.userIsOwner}"/>
		<c:set var="ownerName" value="${sampleForm.map.sampleBean.domain.createdBy}"/>
		<c:if test="${updateSample}">
		   <c:set var="newData" value="false"/>
		</c:if>
		<%@include file="../bodyManageAccessibility.jsp" %>
		<c:if test="${!empty updateSample}">
		<tr>
			<c:set var="showDataAvailabilityMetrics" value="${sampleForm.map.sampleBean.hasComposition
						|| sampleForm.map.sampleBean.hasCharacterizations || sampleForm.map.sampleBean.hasPublications }" />
				<c:if test="${!empty user }">
					<td class="cellLabel">
					Data Availability Metrics
					</td>
				</c:if>
				<td>
					<c:if
						test="${!empty user && !sampleForm.map.sampleBean.hasDataAvailability }">
						<input type="image" value="Generate" src="images/btn_generate.gif" alt="generate data availability matrix"
							onclick="javascript:generateDataAvailability(sampleForm, 'sample', 'generateDataAvailability');">
					</c:if>
				</td>
			</tr>
			<c:if
				test="${!empty user && sampleForm.map.sampleBean.hasDataAvailability eq 'true'}">
			<tr>
				<td colspan="2"><table class="editTableWithGrid" width="95%" align="center">
									<tr>
										<th scope="row">
											caNanoLab Availability Score
										</th>
										<th scope="row">
											MINChar Availability Score
										</th>
										<th scope="row"></th>
									</tr>
									<tr><td><c:out value="${sampleForm.map.sampleBean.caNanoLabScore}"/></td>
										<td><c:out value="${sampleForm.map.sampleBean.mincharScore}"/></td>
{'fraction_non_alphanumeric': 0.20267043947298613, 'fraction_numerical': 0.003271730480148554, 'mean_word_length': 4.38315088053308, 'pattern_counts': {'":': 0, '<': 281, '<?xml version=': 0, '>': 281, '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': '3629865', 'n_tokens_mistral': 4673, 'n_tokens_neox': 3900, 'n_words': 631}