<commit_before><%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>


	<p class="resultCount">Total number of results: ${rows}</p>

	<!-- Associations table -->
	<c:if test="${chart != null}">
		<!-- chart here -->
		<div id="chartDiv"></div>
		<script type="text/javascript" async>${chart}</script>
	</c:if>

	<c:set var="count" value="0" scope="page" />

	<script>
		var resTemp = document.getElementsByClassName("resultCount");
		if (resTemp.length > 1){ resTemp[0].remove();}
	</script>

	<table id="strainPvalues">
		<thead>
			<tr>
				<th class="headerSort">Allele</th>
				<th class="headerSort">Center</th>
				<th class="headerSort">Procedure / Parameter</th>
				<th class="headerSort">Zygosity</th>
				<th class="headerSort">Mutants</th>
				<th class="headerSort">Statistical<br/>Method</th>
				<th class="headerSort">P Value</th>
				<th class="headerSort">Status</th>
				<th class="headerSort">Graph</th>
			</tr>
		</thead>

		<tbody>
			<c:forEach var="stableId" items="${experimentRows.keySet()}"
				varStatus="status">
				<c:set var="stableIdExperimentsRow" value="${experimentRows[stableId]}" />
				<c:forEach var="row" items="${stableIdExperimentsRow}">
					<tr>
						<td><t:formatAllele>${row.getAllele().getSymbol()}</t:formatAllele></td>
						<td>${row.getPhenotypingCenter()}</td>
						<td>${row.getProcedure().getName()} / ${row.getParameter().getName()}</td>
						<td>${row.getZygosity().toString().substring(0,3).toUpperCase()}</td>
						<td>${row.getFemaleMutantCount()}f:${row.getMaleMutantCount()}m</td>
						<td>${row.getStatisticalMethod()}</td>
						<!-- pValue -->
						<c:choose>
							<c:when
								test="${ ! empty row && row.getStatus() == 'SUCCESS'}">
								<c:set var="paletteIndex" value="${row.colorIndex}" />
								<c:set var="Rcolor" value="${palette[0][paletteIndex]}" />
								<c:set var="Gcolor" value="${palette[1][paletteIndex]}" />
								<c:set var="Bcolor" value="${palette[2][paletteIndex]}" />
								<td style="background-color:rgb(${Rcolor},${Gcolor},${Bcolor})">
									<t:formatScientific> ${row.getpValue()}</t:formatScientific>
								</td>
							</c:when>
							<c:otherwise>
								<td><t:formatScientific>${row.getpValue()}</t:formatScientific></td>
							</c:otherwise>
						</c:choose>
						<td>${row.status}</td>
						<td style="text-align: center">
							<c:if test="${phenotype.getEvidenceLink().getDisplay()}">
								<a href='${row.getEvidenceLink().getUrl()}'>
									<i class="fa fa-bar-chart-o" title="${row.getEvidenceLink().getAlt()}"> </i>
								</a>
							</c:if>
							<c:if test="${!phenotype.getEvidenceLink().getDisplay()}">
								<i class="fa fa-bar-chart-o" title="No supporting data supplied."></i>
							</c:if>
						</td>
					</tr>
				</c:forEach>
			</c:forEach>
		</tbody>
	</table>


		<script type="text/javascript">
			$(document).ready(function() {
			  var oTable = $('#strainPvalues').dataTable({
				//		"sPaginationType": "bootstrap"
						"bPaginate":false
			  });
			  // Sort immediately with p-value column starting with the lowest one
			  oTable.fnSort( [ [6,'asc'] ] );
			} );
		</script><commit_msg>Fixed graph link colouring on experiments page.<commit_after><%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="t" tagdir="/WEB-INF/tags"%>


	<p class="resultCount">Total number of results: ${rows}</p>

	<!-- Associations table -->
	<c:if test="${chart != null}">
		<!-- chart here -->
		<div id="chartDiv"></div>
		<script type="text/javascript" async>${chart}</script>
	</c:if>

	<c:set var="count" value="0" scope="page" />

	<script>
		var resTemp = document.getElementsByClassName("resultCount");
		if (resTemp.length > 1){ resTemp[0].remove();}
	</script>

	<table id="strainPvalues">
		<thead>
			<tr>
				<th class="headerSort">Allele</th>
				<th class="headerSort">Center</th>
				<th class="headerSort">Procedure / Parameter</th>
				<th class="headerSort">Zygosity</th>
				<th class="headerSort">Mutants</th>
				<th class="headerSort">Statistical<br/>Method</th>
				<th class="headerSort">P Value</th>
				<th class="headerSort">Status</th>
				<th class="headerSort">Graph</th>
			</tr>
		</thead>

		<tbody>
			<c:forEach var="stableId" items="${experimentRows.keySet()}"
				varStatus="status">
				<c:set var="stableIdExperimentsRow" value="${experimentRows[stableId]}" />
				<c:forEach var="row" items="${stableIdExperimentsRow}">
					<tr>
						<td><t:formatAllele>${row.getAllele().getSymbol()}</t:formatAllele></td>
						<td>${row.getPhenotypingCenter()}</td>
						<td>${row.getProcedure().getName()} / ${row.getParameter().getName()}</td>
						<td>${row.getZygosity().toString().substring(0,3).toUpperCase()}</td>
						<td>${row.getFemaleMutantCount()}f:${row.getMaleMutantCount()}m</td>
						<td>${row.getStatisticalMethod()}</td>
						<!-- pValue -->
						<c:choose>
							<c:when
								test="${ ! empty row && row.getStatus() == 'SUCCESS'}">
								<c:set var="paletteIndex" value="${row.colorIndex}" />
								<c:set var="Rcolor" value="${palette[0][paletteIndex]}" />
								<c:set var="Gcolor" value="${palette[1][paletteIndex]}" />
								<c:set var="Bcolor" value="${palette[2][paletteIndex]}" />
								<td style="background-color:rgb(${Rcolor},${Gcolor},${Bcolor})">
									<t:formatScientific> ${row.getpValue()}</t:formatScientific>
								</td>
							</c:when>
							<c:otherwise>
								<td><t:formatScientific>${row.getpValue()}</t:formatScientific></td>
							</c:otherwise>
						</c:choose>
						<td>${row.status}</td>
						<td  class="postQcLink">
							<c:if test="${row.getEvidenceLink().getDisplay()}">
								<a href='${row.getEvidenceLink().getUrl()}'>
									<i class="fa fa-bar-chart-o" title="${row.getEvidenceLink().getAlt()}"> </i>
								</a>
							</c:if>
							<c:if test="${!row.getEvidenceLink().getDisplay()}">
								<i class="fa fa-bar-chart-o" title="No supporting data supplied."></i>
							</c:if>
						</td>
					</tr>
				</c:forEach>
			</c:forEach>
		</tbody>
	</table>


		<script type="text/javascript">
			$(document).ready(function() {
			  var oTable = $('#strainPvalues').dataTable({
				//		"sPaginationType": "bootstrap"
						"bPaginate":false
			  });
			  // Sort immediately with p-value column starting with the lowest one
			  oTable.fnSort( [ [6,'asc'] ] );
			} );
		</script>
{'fraction_non_alphanumeric': 0.22761137296639805, 'fraction_numerical': 0.0027368100957883535, 'mean_word_length': 3.58397212543554, 'pattern_counts': {'":': 4, '<': 201, '<?xml version=': 0, '>': 203, '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': '5446909', 'n_tokens_mistral': 2949, 'n_tokens_neox': 2312, 'n_words': 342}