<commit_before><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page import="edu.wustl.common.beans.NameValueBean"%>
<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>
<%@ page import="edu.wustl.catissuecore.actionForm.MultipleSpecimenForm"%>
<%@ page import="edu.wustl.catissuecore.util.global.Utility"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="/WEB-INF/nlevelcombo.tld" prefix="ncombo" %>

<script language="JavaScript" type="text/javascript"
	src="jss/javaScript.js"></script>
<script src="jss/calendarComponent.js"></script>
<SCRIPT>var imgsrc="images/";</SCRIPT>
<LINK href="css/calanderComponent.css" type=text/css rel=stylesheet>

<link rel="stylesheet" type="text/css" href="css/styleSheet.css" />

<%MultipleSpecimenForm form = (MultipleSpecimenForm) request
					.getAttribute("multipleSpecimenForm");

			String submitFunName ="",pageType="";
			boolean readOnlyValue = false, readOnlyForAll = false;
			Map map = form.getExternalIdentifier();
			int exIdRows = 1;
			int bhRows = 1;
            
			String unitSpecimen = "";
			if (form != null)
			{
				exIdRows = form.getExIdCounter();
				bhRows = form.getBhCounter();
			}
			pageType = (String) request.getAttribute("type");
			List biohazardList = (List) request.getAttribute(Constants.BIOHAZARD_TYPE_LIST);

			
			String action = Constants.NEW_MULTIPLE_SPECIMEN_ACTION;
			
%>

<html:errors />


<html:messages id="messageKey" message="true" header="messages.header"
	footer="messages.footer">
	<%=messageKey%>
</html:messages>
<html:form action="<%=action%>">
<input type="hidden" id="specimenAttributeKeyForJS" name="specimenAttributeKeyForJS" value="<%=form.getSpecimenAttributeKey()%>"/>

	<table summary="" cellpadding="0" cellspacing="0" border="0"
		class="contentPage" width="600">

		<logic:equal name="output" value="success">
			<script language="JavaScript" type="text/javascript">
			
			var specimenAttributeKey = document.getElementById("specimenAttributeKeyForJS");
			if(specimenAttributeKey!=null)
			{
			    parent.window.opener.document.applets[0].setButtonCaption(specimenAttributeKey.value);
			}
			self.close(); 
	       </script>
		</logic:equal>
		<logic:equal name="output" value="init">
			<script language="JavaScript" type="text/javascript">window.focus(); 
	</script>
		</logic:equal>


		<tr>
			<td><input type="hidden" id="<%=Constants.SPECIMEN_ATTRIBUTE_KEY%>"
				name="<%=Constants.SPECIMEN_ATTRIBUTE_KEY%>"
				value="<%= request.getParameter(Constants.SPECIMEN_ATTRIBUTE_KEY) %>" />
			<html:hidden property="type" />

			<table summary="" cellpadding="3" cellspacing="0" border="0">
				<logic:equal name="type"
					value="<%=Constants.COMMENTS_TYPE%>">
					<%submitFunName = "submitComments();";%>
					<%@ include file="comments.jsp"%>
				</logic:equal>

				<logic:equal name="type"
					value="<%=Constants.EXTERNALIDENTIFIER_TYPE%>">
					<%submitFunName = "submitExternalIdentifiers();";%>
					<%@ include file="ExternalIdentifiers.jsp"%><commit_msg>added not null check<commit_after><%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ page import="edu.wustl.common.beans.NameValueBean"%>
<%@ page import="edu.wustl.catissuecore.util.global.Constants"%>
<%@ page import="edu.wustl.catissuecore.actionForm.MultipleSpecimenForm"%>
<%@ page import="edu.wustl.catissuecore.util.global.Utility"%>
<%@ page import="java.util.*"%>
<%@ taglib uri="/WEB-INF/nlevelcombo.tld" prefix="ncombo" %>

<script language="JavaScript" type="text/javascript"
	src="jss/javaScript.js"></script>
<script src="jss/calendarComponent.js"></script>
<SCRIPT>var imgsrc="images/";</SCRIPT>
<LINK href="css/calanderComponent.css" type=text/css rel=stylesheet>

<link rel="stylesheet" type="text/css" href="css/styleSheet.css" />

<%MultipleSpecimenForm form = (MultipleSpecimenForm) request
					.getAttribute("multipleSpecimenForm");

			String submitFunName ="",pageType="";
			boolean readOnlyValue = false, readOnlyForAll = false;
			Map map = form.getExternalIdentifier();
			int exIdRows = 1;
			int bhRows = 1;
            
			String unitSpecimen = "";
			if (form != null)
			{
				exIdRows = form.getExIdCounter();
				bhRows = form.getBhCounter();
			}
			pageType = (String) request.getAttribute("type");
			List biohazardList = (List) request.getAttribute(Constants.BIOHAZARD_TYPE_LIST);

			
			String action = Constants.NEW_MULTIPLE_SPECIMEN_ACTION;
			
%>

<html:errors />


<html:messages id="messageKey" message="true" header="messages.header"
	footer="messages.footer">
	<%=messageKey%>
</html:messages>
<html:form action="<%=action%>">

	<table summary="" cellpadding="0" cellspacing="0" border="0"
		class="contentPage" width="600">

		<logic:equal name="output" value="success">
			<script language="JavaScript" type="text/javascript">
			
			var specimenAttributeKey = "<%=form.getSpecimenAttributeKey()%>";
			if(specimenAttributeKey!=null)
			{
			    parent.window.opener.document.applets[0].setButtonCaption(specimenAttributeKey);
			}
			self.close(); 
	       </script>
		</logic:equal>
		<logic:equal name="output" value="init">
			<script language="JavaScript" type="text/javascript">window.focus(); 
	</script>
		</logic:equal>


		<tr>
			<td><input type="hidden" id="<%=Constants.SPECIMEN_ATTRIBUTE_KEY%>"
				name="<%=Constants.SPECIMEN_ATTRIBUTE_KEY%>"
				value="<%= request.getParameter(Constants.SPECIMEN_ATTRIBUTE_KEY) %>" />
			<html:hidden property="type" />

			<table summary="" cellpadding="3" cellspacing="0" border="0">
				<logic:equal name="type"
					value="<%=Constants.COMMENTS_TYPE%>">
					<%submitFunName = "submitComments();";%>
					<%@ include file="comments.jsp"%>
				</logic:equal>

				<logic:equal name="type"
					value="<%=Constants.EXTERNALIDENTIFIER_TYPE%>">
					<%submitFunName = "submitExternalIdentifiers();";%>
					<%@ include file="ExternalIdentifiers.jsp"%>
{'fraction_non_alphanumeric': 0.18165438165438166, 'fraction_numerical': 0.003931203931203931, 'mean_word_length': 5.294845360824742, 'pattern_counts': {'":': 0, '<': 106, '<?xml version=': 0, '>': 106, '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': '3307574', 'n_tokens_mistral': 2372, 'n_tokens_neox': 2051, 'n_words': 303}