<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="/chemicalAssociation">
	<table width="100%" align="center">
		<tr>
			<td>
				<h4>
					${particleName} Sample Composition - Chemical Association
				</h4>
			</td>
			<td align="right" width="15%">
				<a
					href="javascript:openHelpWindow('webHelp/index.html?single=true&amp;context=caNanoLab&amp;topic=composition_help')"
					class="helpText">Help</a>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<h5 align="center">
					<%--					Entity#1:Dendrimer--%>
				</h5>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<jsp:include page="/bodyMessage.jsp?bundle=particle" />
				<table width="100%" border="0" align="center" cellpadding="3"
					cellspacing="0" class="topBorderOnly" summary="" id="summary">
					<tr class="topBorder">
						<td class="formTitle" colspan="4">
							<div align="justify">
								Chemical Association Information
							</div>
						</td>
					</tr>
					<tr>
						<td class="leftLabel">
							<strong>Association Type</strong>
						</td>
						<td class="label">
							<html:select styleId="assoType" property="assoc.type"
								onchange="javascript:callPrompt('Association Type', 'assoType');
											displayBondType();">
								<option value=""></option>
								<html:options name="chemicalAssociationTypes" />
								<option value="other">
									[Other]
								</option>
							</html:select>
						</td>
						<td class="label" valign="top">
							&nbsp;
							<Strong id="bondTypeTitle" style="display:none">Bond
								Type</Strong>
						</td>
						<td class="rightLabel">
							&nbsp;
							<span id="bondTypeLine" style="display:none"><html:select
									styleId="bondType" property="assoc.attachment.bondType"
									onchange="javascript:callPrompt('Bond Type', 'bondType');">
									<option value=""></option>
									<html:options name="bondTypes" />
									<option value="other">
										[Other]
									</option>
								</html:select> </span>
						</td>
					</tr>
					<tr>
						<td class="completeLabel" colspan="4">
							<div id="assocEleBlockA" class="assocEleBlock">
								<ul>
									<li>
										<strong>Element</strong>
									</li>
									<li>
										<html:select styleId="compositionTypeA"
											property="assoc.associatedElementA.compositionType"
											onchange="getAssociatedElementOptions('compositionTypeA', 'entityTypeA', 'compEleA')">
											<option value=""></option>
											<option value="Nanoparticle Entity">
												Nanoparticle Entity
											</option>
											<option value="Functionalizing Entity">
												Functionalizing Entity
											</option>
										</html:select>
									</li>
									<li>
										<span class="indented1" id="entityA"><html:select
												styleId="entityTypeA"
												property="assoc.associatedElementA.entityId"
												onchange="getAssociatedComposingElements('compositionTypeA', 'entityTypeA', 'compEleTypeA', 'compEleA');
														setEntityDisplayName('entityTypeA', 'entityDisplayA');">
												<option value="">
												</option>
											</html:select> </span>
										<html:hidden styleId="entityDisplayA"
											property="assoc.associatedElementA.entityDisplayName"
											value="" />
									</li>
									<li>
										<span class="indented3" id="compEleA" style="display:none">
											<html:select styleId="compEleTypeA"
												property="assoc.associatedElementA.composingElement.id">
												<option value=""></option>
											</html:select> </span>
									</li>
								</ul>
							</div>
							<div id="assocEleLinkBlock" class="arrowBlock">
								<img src="images/arrow.small.left.gif" />
								<img src="images/arrow.small.right.gif" />
								<br>
								<strong>associated with</strong>
							</div>
							<div id="assocEleBlockB" class="assocEleBlock">
								<ul>
									<li>
										<strong>Element</strong>
									</li>
									<li>
										<html:select styleId="compositionTypeB"
											property="assoc.associatedElementB.compositionType"
											onchange="getAssociatedElementOptions('compositionTypeB', 'entityTypeB', 'compEleB')">
											<option value="" />
											<option value="Nanoparticle Entity">
												Nanoparticle Entity
											</option>
											<option value="Functionalizing Entity">
												Functionalizing Entity
											</option>
										</html:select>
									</li>
									<li>
										<span class="indented1" id="entityB"><html:select
												styleId="entityTypeB"
												property="assoc.associatedElementB.entityId"
												onchange="getAssociatedComposingElements('compositionTypeB', 'entityTypeB', 'compEleTypeB', 'compEleB');
															setEntityDisplayName('entityTypeB', 'entityDisplayB');">
												<option value="">
												</option>
											</html:select> </span>
										<html:hidden styleId="entityDisplayB"
											property="assoc.associatedElementB.entityDisplayName"
											value="" />
									</li>
									<li>
										<span class="indented3" id="compEleB" style="display:none"><html:select
												styleId="compEleTypeB"
												property="assoc.associatedElementB.composingElement.id">
												<option value=""></option>
											</html:select> </span>
									</li>
								</ul>
							</div>
						</td>
					</tr>

					<tr>
						<td class="leftLabel" valign="top">
							<strong>Association Description</strong>
						</td>
						<td class="rightLabel" colspan="3">
							<html:textarea property="assoc.description" rows="2" cols="60" /><commit_msg>updated to work with 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"%>

<c:choose>
	<c:when
		test="${! empty chemicalAssociationForm.map.assoc.attachment.id }">
		<c:set var="style" value="" />
	</c:when>
	<c:otherwise>
		<c:set var="style" value="display:none" />
	</c:otherwise>
</c:choose>
<c:choose>
	<c:when
		test="${! empty chemicalAssociationForm.map.assoc.associatedElementA.composingElement.id }">
		<c:set var="ceStyleA" value="" />
	</c:when>
	<c:otherwise>
		<c:set var="ceStyleA" value="display:none" />

	</c:otherwise>
</c:choose>
<c:choose>
	<c:when
		test="${! empty chemicalAssociationForm.map.assoc.associatedElementB.composingElement.id }">
		<c:set var="ceStyleB" value="" />
	</c:when>
	<c:otherwise>
		<c:set var="ceStyleB" value="display:none" />
	</c:otherwise>
</c:choose>
<html:form action="/chemicalAssociation">
	<table width="100%" align="center">
		<tr>
			<td>
				<h4>
					${particleName} Sample Composition - Chemical Association
				</h4>
			</td>
			<td align="right" width="15%">
				<a
					href="javascript:openHelpWindow('webHelp/index.html?single=true&amp;context=caNanoLab&amp;topic=composition_help')"
					class="helpText">Help</a>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<h5 align="center">
					<%--					Entity#1:Dendrimer--%>
				</h5>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<jsp:include page="/bodyMessage.jsp?bundle=particle" />
				<table width="100%" border="0" align="center" cellpadding="3"
					cellspacing="0" class="topBorderOnly" summary="" id="summary">
					<tr class="topBorder">
						<td class="formTitle" colspan="4">
							<div align="justify">
								Chemical Association Information
							</div>
						</td>
					</tr>
					<tr>
						<td class="leftLabel">
							<strong>Association Type</strong>
						</td>
						<td class="label">
							<html:select styleId="assoType" property="assoc.type"
								onchange="javascript:callPrompt('Association Type', 'assoType');
											displayBondType();">
								<option value=""></option>
								<html:options name="chemicalAssociationTypes" />
								<option value="other">
									[Other]
								</option>
							</html:select>
						</td>
						<td class="label" valign="top">
							&nbsp;
							<Strong id="bondTypeTitle" style="${style }">Bond Type</Strong>
						</td>
						<td class="rightLabel">
							&nbsp;
							<span id="bondTypeLine" style="${style}"><html:select
									styleId="bondType" property="assoc.attachment.bondType"
									onchange="javascript:callPrompt('Bond Type', 'bondType');">
									<option value=""></option>
									<html:options name="bondTypes" />
									<option value="other">
										[Other]
									</option>
								</html:select> </span>
						</td>
					</tr>
					<tr>
						<td class="completeLabel" colspan="4">
							<div id="assocEleBlockA" class="assocEleBlock">
								<ul>
									<li>
										<strong>Element</strong>
									</li>
									<li>
										<html:select styleId="compositionTypeA"
											property="assoc.associatedElementA.compositionType"
											onchange="getAssociatedElementOptions('compositionTypeA', 'entityTypeA', 'compEleA')">
											<option value=""></option>
											<html:options name="associationCompositionTypes" />
										</html:select>
									</li>
									<li>
										<span class="indented1" id="entityA"><html:select
												styleId="entityTypeA"
												property="assoc.associatedElementA.entityId"
												onchange="getAssociatedComposingElements('compositionTypeA', 'entityTypeA', 'compEleTypeA', 'compEleA');
														setEntityDisplayName('entityTypeA', 'entityDisplayA');">
												<c:if
													test="${! empty chemicalAssociationForm.map.assoc.domainAssociation.id }">
													<c:forEach var="dataLink" items="${entityListA}">
														<c:choose>
															<c:when
																test="${dataLink.dataId eq chemicalAssociationForm.map.assoc.associatedElementA.entityId }">
																<option value="${dataLink.dataId }" selected>
																	${dataLink.dataDisplayType}
																</option>
															</c:when>
															<c:otherwise>
																<option value="${dataLink.dataId }">
																	${dataLink.dataDisplayType}
																</option>
															</c:otherwise>
														</c:choose>
													</c:forEach>
												</c:if>
											</html:select> </span>
										<html:hidden styleId="entityDisplayA"
											property="assoc.associatedElementA.entityDisplayName"
											value="${chemicalAssociationForm.map.assoc.associatedElementA.entityDisplayName}" />
									</li>
									<li>
										<span class="indented3" id="compEleA" style="${ceStyleA}">
											<html:select styleId="compEleTypeA"
												property="assoc.associatedElementA.composingElement.id">
												<c:if test="${!empty ceListA}">
													<c:forEach var="ce" items="${ceListA}">
														<c:choose>
															<c:when
																test="${ce.domainComposingElement.id eq chemicalAssociationForm.map.assoc.associatedElementA.composingElement.id }">
																<option value="${ce.domainComposingElement.id }"
																	selected>
																	${ce.displayName }
																</option>
															</c:when>
															<c:otherwise>
																<option value="${ce.domainComposingElement.id }">
																	${ce.displayName }
																</option>
															</c:otherwise>
														</c:choose>
													</c:forEach>
												</c:if>
											</html:select> </span>
									</li>
								</ul>
							</div>
							<div id="assocEleLinkBlock" class="arrowBlock">
								<img src="images/arrow.small.left.gif" />
								<img src="images/arrow.small.right.gif" />
								<br>
								<strong>associated with</strong>
							</div>
							<div id="assocEleBlockB" class="assocEleBlock">
								<ul>
									<li>
										<strong>Element</strong>
									</li>
									<li>
										<html:select styleId="compositionTypeB"
											property="assoc.associatedElementB.compositionType"
											onchange="getAssociatedElementOptions('compositionTypeB', 'entityTypeB', 'compEleB')">
											<option value="" />
												<html:options name="associationCompositionTypes" />
										</html:select>
									</li>
									<li>
										<span class="indented1" id="entityB"><html:select
												styleId="entityTypeB"
												property="assoc.associatedElementB.entityId"
												onchange="getAssociatedComposingElements('compositionTypeB', 'entityTypeB', 'compEleTypeB', 'compEleB');
															setEntityDisplayName('entityTypeB', 'entityDisplayB');">
												<c:if
													test="${! empty chemicalAssociationForm.map.assoc.domainAssociation.id }">
													<c:forEach var="dataLink" items="${entityListB}">
														<c:choose>
															<c:when
																test="${dataLink.dataId eq chemicalAssociationForm.map.assoc.associatedElementB.entityId }">
																<option value="${dataLink.dataId }" selected>
																	${dataLink.dataDisplayType}
																</option>
															</c:when>
															<c:otherwise>
																<option value="${dataLink.dataId }">
																	${dataLink.dataDisplayType}
																</option>
															</c:otherwise>
														</c:choose>
													</c:forEach>
												</c:if>
											</html:select> </span>
										<html:hidden styleId="entityDisplayB"
											property="assoc.associatedElementB.entityDisplayName"
											value="${chemicalAssociationForm.map.assoc.associatedElementB.entityDisplayName}" />
									</li>
									<li>
										<span class="indented3" id="compEleB" style="${ceStyleB}"><html:select
												styleId="compEleTypeB"
												property="assoc.associatedElementB.composingElement.id">

												<c:if test="${!empty ceListB}">
													<c:forEach var="ce" items="${ceListB}">
														<c:choose>
															<c:when
																test="${ce.domainComposingElement.id eq chemicalAssociationForm.map.assoc.associatedElementB.composingElement.id }">
																<option value="${ce.domainComposingElement.id }"
																	selected>
																	${ce.displayName }
																</option>
															</c:when>
															<c:otherwise>
																<option value="${ce.domainComposingElement.id }">
																	${ce.displayName }
																</option>
															</c:otherwise>
														</c:choose>
													</c:forEach>
												</c:if>
											</html:select> </span>
									</li>
								</ul>
							</div>
						</td>
					</tr>

					<tr>
						<td class="leftLabel" valign="top">
							<strong>Association Description</strong>
						</td>
						<td class="rightLabel" colspan="3">
							<html:textarea property="assoc.description" rows="2" cols="60" />
{'fraction_non_alphanumeric': 0.1585987682934905, 'fraction_numerical': 0.0037083636845242035, 'mean_word_length': 2.2104591836734695, 'pattern_counts': {'":': 0, '<': 369, '<?xml version=': 0, '>': 369, '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': '529396', 'n_tokens_mistral': 7769, 'n_tokens_neox': 4586, 'n_words': 712}