<commit_before><%@ include file="/common/taglibs.jsp"%>
<jsp:useBean id="experimentalDesign" scope="request"
	class="ubic.gemma.model.expression.experiment.ExperimentalDesignImpl" />
<jsp:useBean id="expressionExperiment" scope="request"
	class="ubic.gemma.model.expression.experiment.ExpressionExperimentImpl" />
<head>
	<title><fmt:message key="experimentalDesign.details" />
	</title>
	<jwr:script src='/scripts/ajax/ext/data/DwrProxy.js' />
	<jwr:script src='/scripts/app/eeDataFetch.js' />
	<jwr:script src='/scripts/app/ExperimentalDesign.js' />
</head>

<input type="hidden" id="reloadOnLogout" value="true">
<input type="hidden" id="reloadOnLogin" value="true"/>

<input type="hidden" id="expressionExperimentID" value="${expressionExperiment.id}" />
<input type="hidden" id="experimentalDesignID" value="${experimentalDesign.id}" />
<input type="hidden" id="currentUserCanEdit" value="${currentUserCanEdit}" />

<div id="messages" style="margin: 10px; width: 400px"></div>

<div style="padding: 2px; margin-bottom: 10px;">
	<h2>
		<fmt:message key="experimentalDesign.details" />
		for
		<a href='<c:out value="${expressionExperimentUrl}" />'><jsp:getProperty name="expressionExperiment"
				property="shortName" /> </a>
	</h2>

	<c:choose>
		<c:when test="${!hasPopulatedDesign}">
			<strong>This experiment does not have any experimental design details filled in.</strong>
		</c:when>
		<c:otherwise>
			<p>
				Download design File:
				<a href="#"
					onClick="fetchData(false, ${expressionExperiment.id }, 'text', null, ${expressionExperiment.experimentalDesign.id})">Click
					to start download</a>

				<a class="helpLink" href="?"
					onclick="showHelpTip(event, 'Tab-delimited design file for this experiment, if available.'); return false"><img
						src="/Gemma/images/help.png" /> </a>
			</p>

		</c:otherwise>
	</c:choose>


	<table cellspacing="3">
		<tr>
			<td class="label">
				<b><fmt:message key="expressionExperiment.name" /> </b>
			</td>
			<td>
				<c:choose>
					<c:when test="${not empty expressionExperiment.name}">
				${expressionExperiment.name}
			</c:when>
					<c:otherwise>(Name not available)</c:otherwise>
				</c:choose>
			</td>
		</tr>
		<tr>
			<td class="label">
				<fmt:message key="expressionExperiment.description" />
			</td>
			<td>
				<c:choose>
					<c:when test="${not empty expressionExperiment.description}">
				${expressionExperiment.description}
			</c:when>
					<c:otherwise>(Description not available)</c:otherwise>
				</c:choose>
			</td>
		</tr>
		<tr>
			<td class="label">
				<fmt:message key="databaseEntry.title" />
			</td>
			<td>
				<Gemma:databaseEntry databaseEntry="${expressionExperiment.accession}" />
			</td>
		</tr>
		<tr>
			<td class="label">
				<fmt:message key="pubMed.publication" />
			</td>


			<td>
				<c:choose>
					<c:when test="${not empty expressionExperiment.primaryPublication}">
						<Gemma:citation citation="${expressionExperiment.primaryPublication }" />
					</c:when><commit_msg>I put the experimental design description in a text area to handle the case when a description is very long (that section of the page is plain html). This quick solution means shorter descriptions will have some white space below. From the pages I've checked, it looks fine though. (bug 2417)<commit_after><%@ include file="/common/taglibs.jsp"%>
<jsp:useBean id="experimentalDesign" scope="request"
	class="ubic.gemma.model.expression.experiment.ExperimentalDesignImpl" />
<jsp:useBean id="expressionExperiment" scope="request"
	class="ubic.gemma.model.expression.experiment.ExpressionExperimentImpl" />
<head>
	<title><fmt:message key="experimentalDesign.details" />
	</title>
	<jwr:script src='/scripts/ajax/ext/data/DwrProxy.js' />
	<jwr:script src='/scripts/app/eeDataFetch.js' />
	<jwr:script src='/scripts/app/ExperimentalDesign.js' />
</head>

<input type="hidden" id="reloadOnLogout" value="true">
<input type="hidden" id="reloadOnLogin" value="true"/>

<input type="hidden" id="expressionExperimentID" value="${expressionExperiment.id}" />
<input type="hidden" id="experimentalDesignID" value="${experimentalDesign.id}" />
<input type="hidden" id="currentUserCanEdit" value="${currentUserCanEdit}" />

<div id="messages" style="margin: 10px; width: 400px"></div>

<div style="padding: 2px; margin-bottom: 10px;">
	<h2>
		<fmt:message key="experimentalDesign.details" />
		for
		<a href='<c:out value="${expressionExperimentUrl}" />'><jsp:getProperty name="expressionExperiment"
				property="shortName" /> </a>
	</h2>

	<c:choose>
		<c:when test="${!hasPopulatedDesign}">
			<strong>This experiment does not have any experimental design details filled in.</strong>
		</c:when>
		<c:otherwise>
			<p>
				Download design File:
				<a href="#"
					onClick="fetchData(false, ${expressionExperiment.id }, 'text', null, ${expressionExperiment.experimentalDesign.id})">Click
					to start download</a>

				<a class="helpLink" href="?"
					onclick="showHelpTip(event, 'Tab-delimited design file for this experiment, if available.'); return false"><img
						src="/Gemma/images/help.png" /> </a>
			</p>

		</c:otherwise>
	</c:choose>


	<table cellspacing="3">
		<tr>
			<td class="label">
				<b><fmt:message key="expressionExperiment.name" /> </b>
			</td>
			<td>
				<c:choose>
					<c:when test="${not empty expressionExperiment.name}">
				${expressionExperiment.name}
			</c:when>
					<c:otherwise>(Name not available)</c:otherwise>
				</c:choose>
			</td>
		</tr>
		<tr>
			<td class="label">
				<fmt:message key="expressionExperiment.description" />
			</td>
			<td>
				<c:choose>
					<c:when test="${not empty expressionExperiment.description}">
				<textarea rows=12 readonly="true" 
					style="width:700px;background-color:white;border:1px solid gainsboro">${expressionExperiment.description}</textarea>
			</c:when>
					<c:otherwise>(Description not available)</c:otherwise>
				</c:choose>
			</td>
		</tr>
		<tr>
			<td class="label">
				<fmt:message key="databaseEntry.title" />
			</td>
			<td>
				<Gemma:databaseEntry databaseEntry="${expressionExperiment.accession}" />
			</td>
		</tr>
		<tr>
			<td class="label">
				<fmt:message key="pubMed.publication" />
			</td>


			<td>
				<c:choose>
					<c:when test="${not empty expressionExperiment.primaryPublication}">
						<Gemma:citation citation="${expressionExperiment.primaryPublication }" />
					</c:when>
{'fraction_non_alphanumeric': 0.17813575226775102, 'fraction_numerical': 0.005004691898654989, 'mean_word_length': 4.604732690622261, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 0, '>': 179, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3634294', 'n_tokens_mistral': 2466, 'n_tokens_neox': 2076, 'n_words': 420}