<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='javascript/ProtocolManager.js'></script>
<script type='text/javascript' src='dwr/interface/ProtocolManager.js'></script>
<script type='text/javascript' src='dwr/engine.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>

<link rel="StyleSheet" type="text/css" href="css/promptBox.css">
<c:set var="action" value="Submit" scope="request" />
<c:if test="${param.dispatch eq 'setupUpdate'}">
	<c:set var="action" value="Update" scope="request" />
</c:if>

<jsp:include page="/bodyTitle.jsp">
	<jsp:param name="pageTitle" value="${action} Protocol" />
	<jsp:param name="topic" value="submit_protocol_help" />
	<jsp:param name="glossaryTopic" value="glossary_help" />
</jsp:include>
<html:form action="/protocol" enctype="multipart/form-data" styleId="protocolForm">
	<jsp:include page="/bodyMessage.jsp?bundle=protocol" />
	<table width="100%" align="center" class="submissionView" summary="layout">
		<tr>
			<td class="cellLabel">
				<label for="protocolType">Protocol Type*</label>
			</td>
			<td>
				<div id="protocolTypePrompt">
					<html:select styleId="protocolType" property="protocol.domain.type"
						onchange="javascript:callPrompt('Protocol Type', 'protocolType', 'protocolTypePrompt'); retrieveProtocolNames();">
						<option value="" />
							<html:options name="protocolTypes" />
							<option value="other">
								[other]
							</option>
					</html:select>
				</div>
			</td>
		</tr>
		<tr>
			<td class="cellLabel">
				<label for="protocolName">Protocol Name*</label>
			</td>
			<td>
				<div id="protocolNamePrompt">
					<html:select styleId="protocolName" property="protocol.domain.name"
						onchange="javascript:callPrompt('Protocol Name', 'protocolName', 'protocolNamePrompt'); retrieveProtocolVersions()">
						<option value="" />
							<c:if test="${!empty protocolNamesByType}">
								<html:options name="protocolNamesByType" />
							</c:if>
							<option value="other">
								[other]
							</option>
					</html:select>
				</div>
			</td>
		</tr>
		<tr>
			<td class="cellLabel">
				<label for="protocolVersion">Protocol Version</label>
			</td>
			<td>
				<div id="protocolVersionPrompt">
					<html:select styleId="protocolVersion"
						property="protocol.domain.version"
						onchange="javascript:callPrompt('Protocol Version', 'protocolVersion', 'protocolVersionPrompt');retrieveProtocol('${applicationOwner}');">
						<option value="" />
							<c:if test="${!empty protocolVersionsByTypeName}">
								<html:options name="protocolVersionsByTypeName" />
							</c:if>
							<option value="other">
								[other]
							</option>
					</html:select>
				</div>
			</td>
		</tr>
		<tr>
			<td class="cellLabel" width="20%">
				<label for="protocolAbbreviation">Protocol Abbreviation</label>
			</td>
			<td>
				<html:text styleId="protocolAbbreviation"
					property="protocol.domain.abbreviation" size="30" />
			</td>
		</tr>
		<tr>
			<td class="cellLabel"><label for="protocolFile">Protocol
					File</label>
			</td>
			<td><c:set var="theFile"
					value="${protocolForm.map.protocol.fileBean}" />
				<c:set var="fileBeanProperty" value="protocol.fileBean"/>
				<c:set var="fileJavascript" value="writeLink(null);"/>
				<c:set var="actionName" value="protocol"/>
				<c:set var="fileId" value="${protocolForm.map.protocol.fileBean.domainFile.id}"/>
				<%@include file="../bodySubmitFile.jsp" %>				
			</td>
			<html:hidden property="protocol.domain.id" styleId="protocolId" />
			<html:hidden property="protocol.fileBean.domainFile.id"
				styleId="fileId" />
			<html:hidden property="protocol.fileBean.domainFile.uri"
				styleId="fileUri" />
			<html:hidden property="protocol.fileBean.domainFile.name"
				styleId="fileName" />
		</tr>
		<tr><commit_msg>updated input form<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='javascript/ProtocolManager.js'></script>
<script type='text/javascript' src='dwr/interface/ProtocolManager.js'></script>
<script type='text/javascript' src='dwr/engine.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>

<link rel="StyleSheet" type="text/css" href="css/promptBox.css">
<c:set var="action" value="Submit" scope="request" />
<c:if test="${param.dispatch eq 'setupUpdate'}">
	<c:set var="action" value="Update" scope="request" />
</c:if>

<jsp:include page="/bodyTitle.jsp">
	<jsp:param name="pageTitle" value="${action} Protocol" />
	<jsp:param name="topic" value="submit_protocol_help" />
	<jsp:param name="glossaryTopic" value="glossary_help" />
</jsp:include>
<html:form action="/protocol" enctype="multipart/form-data" styleId="protocolForm">
	<jsp:include page="/bodyMessage.jsp?bundle=protocol" />
	<table width="100%" align="center" class="submissionView" summary="layout">
		<tr>
			<td class="cellLabel">
				<label for="protocolType">Protocol Type*</label>
			</td>
			<td>
				<div id="protocolTypePrompt">
					<html:select styleId="protocolType" property="protocol.domain.type"
						onchange="javascript:callPrompt('Protocol Type', 'protocolType', 'protocolTypePrompt');">
						<option value="" />
							<html:options name="protocolTypes" />
							<option value="other">
								[other]
							</option>
					</html:select>
				</div>
			</td>
		</tr>
		<tr>
			<td class="cellLabel">
				<label for="protocolName">Protocol Name*</label>
			</td>
			<td>
				<div id="protocolNamePrompt">
				<html:text styleId="protocolName" property="protocol.domain.name" size="100" onchange="javascript:retrieveProtocol('${applicationOwner}');"/>
				</div>
			</td>
		</tr>
		<tr>
			<td class="cellLabel" width="20%">
				<label for="protocolAbbreviation">Protocol Abbreviation</label>
			</td>
			<td>
				<html:text styleId="protocolAbbreviation"
					property="protocol.domain.abbreviation" size="30" />
			</td>
		</tr>
		<tr>
			<td class="cellLabel">
				<label for="protocolVersion">Protocol Version</label>
			</td>
			<td>
				<div id="protocolVersionPrompt">
				 <html:text styleId="protocolVersion" property="protocol.domain.version" size="30"/>
				</div>
			</td>
		</tr>
		<tr>
			<td class="cellLabel"><label for="protocolFile">Protocol
					File</label>
			</td>
			<td><c:set var="theFile"
					value="${protocolForm.map.protocol.fileBean}" />
				<c:set var="fileBeanProperty" value="protocol.fileBean"/>
				<c:set var="actionName" value="protocol"/>
				<c:set var="fileId" value="${protocolForm.map.protocol.fileBean.domainFile.id}"/>
				<%@include file="../bodySubmitFile.jsp" %>				
			</td>
			<html:hidden property="protocol.domain.id" styleId="protocolId" />
			<html:hidden property="protocol.fileBean.domainFile.id"
				styleId="fileId" />
			<html:hidden property="protocol.fileBean.domainFile.uri"
				styleId="fileUri" />
			<html:hidden property="protocol.fileBean.domainFile.name"
				styleId="fileName" />
		</tr>
		<tr>
{'fraction_non_alphanumeric': 0.19487721151307102, 'fraction_numerical': 0.002508581991021917, 'mean_word_length': 4.557593543653705, 'pattern_counts': {'":': 0, '<': 202, '<?xml version=': 0, '>': 202, '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': '5904737', 'n_tokens_mistral': 2991, 'n_tokens_neox': 2486, 'n_words': 403}