<commit_before><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!-- enrichmentWidget.jsp -->
<html:xhtml/>

<link rel="stylesheet" type="text/css" href="css/enrichmentWidget.css"/>

<div class="body">

<center><h2>${enrichmentWidgetForm.title}</h2></center>

<c:out value='${enrichmentWidgetForm.description}'/>  Smaller p-values show greater enrichment.  Method: Hypergeometric test  
<br/><br/>
Reference population: <c:out value='${referencePopulation}'/>.
<br/>
<table>	
<tr>
	<td valign="top" align="left">

	<html:form action="/enrichmentWidget" method="get">
	<table>
	<tr>
		<td>Multiple Hypothesis Test Correction</td>
		<td><html:select property="errorCorrection">
				<html:option value="Benjamini and Hochberg">Benjamini and Hochberg</html:option>
				<html:option value="Bonferroni">Bonferroni</html:option>
				<html:option value="None">None</html:option>
			</html:select>
		</td>
	</tr>
	<c:if test="${!empty enrichmentWidgetForm.filters}">
      <tr>
      	<td>${enrichmentWidgetForm.filterLabel}</td>
      	<td>
      	
    <c:set value="${enrichmentWidgetForm.filters}" var="filters" />
	<c:set var="list" value='${fn:split(filters, ",")}' />
      	
      		<html:select property="filter">
     		 <c:forEach items="${list}" var="name">
				<html:option value="${name}">${name}</html:option>
    		 </c:forEach>    		 
      		</html:select>	
			&nbsp;
	    </td>
	   </tr>	   
	   </c:if>	   
	   
	   <tr>
	   	<td>Maximum value to display</td>
		<td><html:select property="max">
				<html:option value="0.01">0.01</html:option>
				<html:option value="0.05">0.05</html:option>
				<html:option value="0.10">0.10</html:option>
				<html:option value="0.50">0.50</html:option>
				<html:option value="1.00">1.00</html:option>
			</html:select>
		</td>
	   	
	   	</tr>
	   <tr>
	   	<td></td>
	   	<td><html:submit property="filterSubmit" value="Update results" /></td>
	   	</tr>
	</table>	
   		<html:hidden property="bagName"/>
      		    <html:hidden property="filters"/>
      		    <html:hidden property="controller"/>
      		   	<html:hidden property="title" />
      		    <html:hidden property="link" />      		  
      		  	<html:hidden property="description" />
      		  	<html:hidden property="filterLabel"/>
      		  	<html:hidden property="label"/>
	
	</html:form>	
	
	</td>
</tr>



<tr>
	<td>
	
	<html:form action="/enrichmentWidgetExport" method="get">
	
		<c:choose>
		<c:when test="${!empty pvalues}">
			<table cellpadding="5" border="0" cellspacing="0" class="results">
		  	<tr>	
  				<th>${enrichmentWidgetForm.label}</th>
	  			<th>p-value</th>
  				<th>&nbsp;</th>
			</tr>
	  		<c:forEach items="${pvalues}" var="results">
    			<tr>
    				<td>
    					<input type="checkbox" name="selectedObjects" value="${results.value}" />
    				</td>
  					<td align="left">
  							<c:choose>
							<c:when test="${!empty externalLink}">
								<a href="${externalLink}${results.key}${append}" class="extlink" target="_new"><c:out value='${labelToId[results.key]}'/></a>
					 		</c:when>		
							<c:otherwise>	
								<c:out value='${labelToId[results.key]}'/>
					        </c:otherwise>        
					        </c:choose>
  						<c:if test="${labelToId[results.key] != results.key}">[<c:out value='${results.key}'/>]</c:if>
 					</td>  				
  					<td align="left">
  						<c:choose>
  						<c:when test="${results.value < 0.0000001}">
  							<fmt:formatNumber value="${results.value}" pattern="0.#######E0" minFractionDigits="7" maxFractionDigits="7" />
						</c:when>		
						<c:otherwise>
	  						<fmt:formatNumber value="${results.value}" minFractionDigits="7" maxFractionDigits="7" />
				        </c:otherwise>        
    				    </c:choose>
  					</td>
  					<td align="left" nowrap>
  		   				<html:link action="/widgetAction?key=${results.key}&bagName=${enrichmentWidgetForm.bagName}&link=${enrichmentWidgetForm.link}" target="_top">
  		   					[<c:out value='${totals[results.key]}'/>  ${bagType}s]
       					</html:link>  	
	       			</td>
				</tr>
			</c:forEach>
			</table>
		</c:when>		
		<c:otherwise>
	        No results found.
        </c:otherwise>        
        </c:choose>

	</html:form>	

	</td>
</tr>
</table>
            
 </div>
<!-- /enrichmentWidget.jsp --><commit_msg>revert accidental check-in<commit_after><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib tagdir="/WEB-INF/tags" prefix="im"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!-- enrichmentWidget.jsp -->
<html:xhtml/>

<link rel="stylesheet" type="text/css" href="css/enrichmentWidget.css"/>

<div class="body">

<center><h2>${enrichmentWidgetForm.title}</h2></center>

<c:out value='${enrichmentWidgetForm.description}'/>  Smaller p-values show greater enrichment.  Method: Hypergeometric test  
<br/><br/>
Reference population: <c:out value='${referencePopulation}'/>.
<br/>
<table>	
<tr>
	<td valign="top" align="left">

	<html:form action="/enrichmentWidget" method="get">
	<table>
	<tr>
		<td>Multiple Hypothesis Test Correction</td>
		<td><html:select property="errorCorrection">
				<html:option value="Benjamini and Hochberg">Benjamini and Hochberg</html:option>
				<html:option value="Bonferroni">Bonferroni</html:option>
				<html:option value="None">None</html:option>
			</html:select>
		</td>
	</tr>
	<c:if test="${!empty enrichmentWidgetForm.filters}">
      <tr>
      	<td>${enrichmentWidgetForm.filterLabel}</td>
      	<td>
      	
    <c:set value="${enrichmentWidgetForm.filters}" var="filters" />
	<c:set var="list" value='${fn:split(filters, ",")}' />
      	
      		<html:select property="filter">
     		 <c:forEach items="${list}" var="name">
				<html:option value="${name}">${name}</html:option>
    		 </c:forEach>    		 
      		</html:select>	
			&nbsp;
	    </td>
	   </tr>	   
	   </c:if>	   
	   
	   <tr>
	   	<td>Maximum value to display</td>
		<td><html:select property="max">
				<html:option value="0.01">0.01</html:option>
				<html:option value="0.05">0.05</html:option>
				<html:option value="0.10">0.10</html:option>
				<html:option value="0.50">0.50</html:option>
				<html:option value="1.00">1.00</html:option>
			</html:select>
		</td>
	   	
	   	</tr>
	   <tr>
	   	<td></td>
	   	<td><html:submit property="filterSubmit" value="Update results" /></td>
	   	</tr>
	</table>	
   		<html:hidden property="bagName"/>
      		    <html:hidden property="filters"/>
      		    <html:hidden property="controller"/>
      		   	<html:hidden property="title" />
      		    <html:hidden property="link" />      		  
      		  	<html:hidden property="description" />
      		  	<html:hidden property="filterLabel"/>
      		  	<html:hidden property="label"/>
	
	</html:form>	
	
	</td>
</tr>



<tr>
	<td>
	

	
		<c:choose>
		<c:when test="${!empty pvalues}">
			<table cellpadding="5" border="0" cellspacing="0" class="results">
		  	<tr>	
  				<th>${enrichmentWidgetForm.label}</th>
	  			<th>p-value</th>
  				<th>&nbsp;</th>
			</tr>
	  		<c:forEach items="${pvalues}" var="results">
    			<tr>
    				<td>
    					<input type="checkbox" name="selectedObjects" value="${results.value}" />
    				</td>
  					<td align="left">
  							<c:choose>
							<c:when test="${!empty externalLink}">
								<a href="${externalLink}${results.key}${append}" class="extlink" target="_new"><c:out value='${labelToId[results.key]}'/></a>
					 		</c:when>		
							<c:otherwise>	
								<c:out value='${labelToId[results.key]}'/>
					        </c:otherwise>        
					        </c:choose>
  						<c:if test="${labelToId[results.key] != results.key}">[<c:out value='${results.key}'/>]</c:if>
 					</td>  				
  					<td align="left">
  						<c:choose>
  						<c:when test="${results.value < 0.0000001}">
  							<fmt:formatNumber value="${results.value}" pattern="0.#######E0" minFractionDigits="7" maxFractionDigits="7" />
						</c:when>		
						<c:otherwise>
	  						<fmt:formatNumber value="${results.value}" minFractionDigits="7" maxFractionDigits="7" />
				        </c:otherwise>        
    				    </c:choose>
  					</td>
  					<td align="left" nowrap>
  		   				<html:link action="/widgetAction?key=${results.key}&bagName=${enrichmentWidgetForm.bagName}&link=${enrichmentWidgetForm.link}" target="_top">
  		   					[<c:out value='${totals[results.key]}'/>  ${bagType}s]
       					</html:link>  	
	       			</td>
				</tr>
			</c:forEach>
			</table>
		</c:when>		
		<c:otherwise>
	        No results found.
        </c:otherwise>        
        </c:choose>


	</td>
</tr>
</table>
            
 </div>
<!-- /enrichmentWidget.jsp -->
{'fraction_non_alphanumeric': 0.21110867659947413, 'fraction_numerical': 0.010736196319018405, 'mean_word_length': 2.901282051282051, 'pattern_counts': {'":': 0, '<': 309, '<?xml version=': 0, '>': 307, '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': '2494146', 'n_tokens_mistral': 3904, 'n_tokens_neox': 3330, 'n_words': 486}