<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"%>

<html:form action="/nanoparticleGeneralInfo">
	<table width="100%" align="center">
		<tr>
			<td>
				<h3>
					<br>
					Submit Nanoparticle - General Information
				</h3>
			</td>
			<td align="right" width="15%">
				<a href="javascript:openHelpWindow('webHelp/caLAB_0.5/index.html?single=true&amp;context=caLAB_0.5&amp;topic=create_nanoparticle')" class="helpText">Help</a>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<jsp:include page="/bodyMessage.jsp?bundle=submit" />
				<table class="topBorderOnly" cellspacing="0" cellpadding="3" width="100%" align="center" summary="" border="0">
					<tbody>
						<tr class="topBorder">
							<td class="formTitle" colspan="4">
								<div align="justify">
									General Information
								</div>
							</td>
						</tr>
						<tr>
							<td class="leftLabel">
								<strong>Particle Type*</strong>
							</td>
							<td class="rightLabel">
								<html:select property="particleType" onchange="javascript:doubleDropdown(document.nanoparticleGeneralInfoForm.particleType, document.nanoparticleGeneralInfoForm.particleName, particleTypeParticles)">
									<option value=""></option>
									<html:options name="allParticleTypes" />
								</html:select>
							</td>
						</tr>
						<tr>
							<td class="leftLabel">
								<strong>Particle ID*</strong>
							</td>
							<td class="rightLabel">
								<html:select property="particleName">
									<option value=""></option>
									<option value="${nanoparticleGeneralInfoForm.map.particleName}" selected>
										${nanoparticleGeneralInfoForm.map.particleName}
									</option>
								</html:select>
							</td>
						</tr>
						<tr>
							<td class="leftLabel">
								<strong>Keywords <em>(one per line)</em></strong>
							</td>
							<td class="rightLabel">
								<html:textarea property="keywords" rows="4"/>
							</td>
						</tr>
						<tr>
							<td class="leftLabel">
								<strong>Visibility*</strong>
							</td>
							<td class="rightLabel">
								<html:select property="visibilities" multiple="true" size="3">
									<html:options name="allVisibilityGroups" />
								</html:select>
							</td>
						</tr>
					</tbody>
				</table>
				<br>
				<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="topBorderOnly" summary="">
					<tr>
						<td width="30%">
							<span class="formMessage"> </span>
							<br>
							<table width="498" height="32" border="0" align="right" cellpadding="4" cellspacing="0">
								<tr>
									<td width="490" height="32">
										<div align="right">
											<div align="right">
												<input type="reset" value="Reset" onclick="">
												<input type="hidden" name="dispatch" value="create">
												<input type="hidden" name="page" value="1">
												<html:submit />
											</div>
										</div>
									</td>
								</tr>
							</table>
							<div align="right"></div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>
<script language="JavaScript">
<!--//

  /* populate a hashtable containing particle type particles */
  var particleTypeParticles=new Array();    
  <c:forEach var="item" items="${allParticleTypeParticles}">
    var particleNames=new Array();
    <c:forEach var="particleName" items="${allParticleTypeParticles[item.key]}" varStatus="count">
  		particleNames[${count.index}]=new Option('${particleName}', '${particleName}');  	
    </c:forEach>
    particleTypeParticles['${item.key}']=particleNames;
  </c:forEach> 
//-->
</script>
<commit_msg>updated particle type and particle ID to be read only in setupUpdate<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"%>

<html:form action="/nanoparticleGeneralInfo">
	<table width="100%" align="center">
		<tr>
			<td>
				<h3>
					<br>
					Submit Nanoparticle - General Information
				</h3>
			</td>
			<td align="right" width="15%">
				<a href="javascript:openHelpWindow('webHelp/caLAB_0.5/index.html?single=true&amp;context=caLAB_0.5&amp;topic=create_nanoparticle')" class="helpText">Help</a>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<jsp:include page="/bodyMessage.jsp?bundle=submit" />
				<table class="topBorderOnly" cellspacing="0" cellpadding="3" width="100%" align="center" summary="" border="0">
					<tbody>
						<tr class="topBorder">
							<td class="formTitle" colspan="4">
								<div align="justify">
									General Information
								</div>
							</td>
						</tr>
						<tr>
							<td class="leftLabel">
								<strong>Particle Type*</strong>
							</td>
							<td class="rightLabel">
								<c:choose>
									<c:when test="${param.dispatch eq 'setupUpdate'}">
										${nanoparticleGeneralInfoForm.map.particleType}
									</c:when>
									<c:otherwise>
										<html:select property="particleType" onchange="javascript:doubleDropdown(document.nanoparticleGeneralInfoForm.particleType, document.nanoparticleGeneralInfoForm.particleName, particleTypeParticles)">
											<option value=""></option>
											<html:options name="allParticleTypes" />
										</html:select>
									</c:otherwise>
								</c:choose>
							</td>
						</tr>
						<tr>
							<td class="leftLabel">
								<strong>Particle ID*</strong>
							</td>
							<td class="rightLabel">
								<c:choose>
									<c:when test="${param.dispatch eq 'setupUpdate'}">
              							${nanoparticleGeneralInfoForm.map.particleName}
									</c:when>
									<c:otherwise>
										<html:select property="particleName">
											<option value=""></option>
											<option value="${nanoparticleGeneralInfoForm.map.particleName}" selected>
												${nanoparticleGeneralInfoForm.map.particleName}
											</option>
										</html:select>
									</c:otherwise>
								</c:choose>
							</td>
						</tr>
						<tr>
							<td class="leftLabel">
								<strong>Keywords <em>(one per line)</em></strong>
							</td>
							<td class="rightLabel">
								<html:textarea property="keywords" rows="4" />
							</td>
						</tr>
						<tr>
							<td class="leftLabel">
								<strong>Visibility*</strong>
							</td>
							<td class="rightLabel">
								<html:select property="visibilities" multiple="true" size="3">
									<html:options name="allVisibilityGroups" />
								</html:select>
							</td>
						</tr>
					</tbody>
				</table>
				<br>
				<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" class="topBorderOnly" summary="">
					<tr>
						<td width="30%">
							<span class="formMessage"> </span>
							<br>
							<table width="498" height="32" border="0" align="right" cellpadding="4" cellspacing="0">
								<tr>
									<td width="490" height="32">
										<div align="right">
											<div align="right">
												<input type="reset" value="Reset" onclick="">
												<input type="hidden" name="dispatch" value="create">
												<input type="hidden" name="page" value="1">
												<html:submit />
											</div>
										</div>
									</td>
								</tr>
							</table>
							<div align="right"></div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</html:form>
<script language="JavaScript">
<!--//

  /* populate a hashtable containing particle type particles */
  var particleTypeParticles=new Array();    
  <c:forEach var="item" items="${allParticleTypeParticles}">
    var particleNames=new Array();
    <c:forEach var="particleName" items="${allParticleTypeParticles[item.key]}" varStatus="count">
  		particleNames[${count.index}]=new Option('${particleName}', '${particleName}');  	
    </c:forEach>
    particleTypeParticles['${item.key}']=particleNames;
  </c:forEach> 
//-->
</script>

{'fraction_non_alphanumeric': 0.1818623285176642, 'fraction_numerical': 0.010440694427582858, 'mean_word_length': 2.710810810810811, 'pattern_counts': {'":': 0, '<': 247, '<?xml version=': 0, '>': 247, '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': '3503719', 'n_tokens_mistral': 3872, 'n_tokens_neox': 2601, 'n_words': 475}