<commit_before><%@ include file="/common/taglibs.jsp"%>
<jsp:directive.page import="org.apache.commons.lang.StringUtils" />
<jsp:useBean id="expressionExperiment" scope="request"
    class="ubic.gemma.model.expression.experiment.ExpressionExperimentImpl" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<spring:bind path="expressionExperiment.*">
	<c:if test="${not empty status.errorMessages}">
		<div class="error"><c:forEach var="error"
			items="${status.errorMessages}">
			<img src="<c:url value="/images/iconWarning.gif"/>"
				alt="<fmt:message key="icon.warning"/>" class="icon" />
			<c:out value="${error}" escapeXml="false" />
			<br />
		</c:forEach></div>
	</c:if>
</spring:bind>

<title> <fmt:message key="expressionExperiment.title" /> </title>
<form method="post" action="<c:url value="/expressionExperiment/editExpressionExperiment.html"/>">


<h2>
	<fmt:message key="expressionExperiment.title" />
</h2>
	
<table cellspacing="10">
    <tr>
       <td valign="top">
        	<b>
        	<fmt:message key="expressionExperiment.name" />
            </b>
        </td>
        <td>
        	<spring:bind path="expressionExperiment.name">
	        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
	        </spring:bind>
	    </td>
    </tr>
    
    <tr>    
	    <td valign="top">
        	<b>
        		<fmt:message key="expressionExperiment.description" />
            </b>
        </td>
        <td>
        	<spring:bind path="expressionExperiment.description">
	        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
	        <%--<textarea rows=8 cols=30 name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"></textarea>--%>
	        </spring:bind>
	    </td>
	</tr>
	
	<tr>    
	    <td valign="top">
        	<b>
        	<fmt:message key="expressionExperiment.source" />
            </b>
        </td>
        <td>
        	<spring:bind path="expressionExperiment.source">
	        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
	        </spring:bind>
	    </td>
	</tr>	
                <tr>
       <td valign="top">
        	<b>
        	<fmt:message key="databaseEntry.title" />
            </b>
        </td>
        <td>
            <spring:bind path="expressionExperiment.accession">
        	<c:choose>
            <c:when test="${expressionExperiment.accession == null}">
                <input type="text" name="expressionExperiment.accession.accession" value="<c:out value="Accession unavailable"/>"/>
            </c:when>
            <c:otherwise>
                <input type="text" name="expressionExperiment.accession.accession" value="<c:out value="${expressionExperiment.accession.accession}"/>"/>
            </c:otherwise>
        	</c:choose>      
	        </spring:bind>
	      
	    </td>
    </tr>  
    
        <tr>
       <td valign="top">
        	<b>
        	<fmt:message key="externalDatabase.title" />
            </b>
        </td>
        <td>
                <c:if test="${expressionExperiment.accession != null}">
       		<spring:bind path="expressionExperiment.accession.externalDatabase.name">
       			<select name="${status.expression}">
          			<c:forEach items="${externalDatabases}" var="externalDatabase">
            			<option value="${externalDatabase.name}" <c:if test="${status.value == externalDatabase.name}">selected="selected"</c:if>>
                			${externalDatabase.name}
            			</option>
          			</c:forEach>
        		</select>
        	<span class="fieldError">${status.errorMessage}</span>
       		</spring:bind>
       	</c:if>
	    </td>
    </tr>
    
   
        

       	
       	
    
       
    	            <tr>
                <td valign="top">
                    <b>
                        <fmt:message key="expressionExperiment.owner" />
                    </b>
                </td>
                <td>
                	<%if (expressionExperiment.getOwner() != null){%>
                    	<jsp:getProperty name="expressionExperiment" property="owner" />
                    <%}else{
                    	out.print("Owner unavailable");
                    }%>
                </td>
            </tr>       
            <tr>
                <td valign="top">
                    <b>
                        <fmt:message key="pubMed.publication" />
                    </b>
                </td>
                <td>
                	<%if (expressionExperiment.getPrimaryPublication() != null){%>
                    	<jsp:getProperty name="expressionExperiment" property="primaryPublication" />
                    <%}else{
                    	out.print("Primary publication unavailable");
                    }%>
                </td>
            </tr>   
            
            <tr>
                <td valign="top">
                    <b>
                        <fmt:message key="auditTrail.date" />
                    </b>
                </td>
                <td>
                	<%if (expressionExperiment.getAuditTrail() != null){
                		out.print(expressionExperiment.getAuditTrail().getCreationEvent().getDate());
                    }else{
                    	out.print("Create date unavailable");
                    }%>
                </td>
            </tr>                
            <commit_msg>added modifications on investigators and publications onto edit page<commit_after><%@ include file="/common/taglibs.jsp"%>
<jsp:directive.page import="org.apache.commons.lang.StringUtils" />
<jsp:useBean id="expressionExperiment" scope="request"
    class="ubic.gemma.model.expression.experiment.ExpressionExperimentImpl" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<spring:bind path="expressionExperiment.*">
	<c:if test="${not empty status.errorMessages}">
		<div class="error"><c:forEach var="error"
			items="${status.errorMessages}">
			<img src="<c:url value="/images/iconWarning.gif"/>"
				alt="<fmt:message key="icon.warning"/>" class="icon" />
			<c:out value="${error}" escapeXml="false" />
			<br />
		</c:forEach></div>
	</c:if>
</spring:bind>

<title> <fmt:message key="expressionExperiment.title" /> </title>
<form method="post" action="<c:url value="/expressionExperiment/editExpressionExperiment.html"/>">


<h2>
	<fmt:message key="expressionExperiment.title" />
</h2>
	
<table cellspacing="10">
    <tr>
       <td valign="top">
        	<b>
        	<fmt:message key="expressionExperiment.name" />
            </b>
        </td>
        <td>
        	<spring:bind path="expressionExperiment.name">
	        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
	        </spring:bind>
	    </td>
    </tr>
    
    <tr>    
	    <td valign="top">
        	<b>
        		<fmt:message key="expressionExperiment.description" />
            </b>
        </td>
        <td>
        	<spring:bind path="expressionExperiment.description">
	        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
	        <%--<textarea rows=8 cols=30 name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"></textarea>--%>
	        </spring:bind>
	    </td>
	</tr>
	
	<tr>    
	    <td valign="top">
        	<b>
        	<fmt:message key="expressionExperiment.source" />
            </b>
        </td>
        <td>
        	<spring:bind path="expressionExperiment.source">
	        <input type="text" name="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>"/>
	        </spring:bind>
	    </td>
	</tr>	
                <tr>
       <td valign="top">
        	<b>
        	<fmt:message key="databaseEntry.title" />
            </b>
        </td>
        <td>
            <spring:bind path="expressionExperiment.accession">
        	<c:choose>
            <c:when test="${expressionExperiment.accession == null}">
                <input type="text" name="expressionExperiment.accession.accession" value="<c:out value="Accession unavailable"/>"/>
            </c:when>
            <c:otherwise>
                <input type="text" name="expressionExperiment.accession.accession" value="<c:out value="${expressionExperiment.accession.accession}"/>"/>
            </c:otherwise>
        	</c:choose>      
	        </spring:bind>
	      
	    </td>
    </tr>  
    
        <tr>
       <td valign="top">
        	<b>
        	<fmt:message key="externalDatabase.title" />
            </b>
        </td>
        <td>
                <c:if test="${expressionExperiment.accession != null}">
       		<spring:bind path="expressionExperiment.accession.externalDatabase.name">
       			<select name="${status.expression}">
          			<c:forEach items="${externalDatabases}" var="externalDatabase">
            			<option value="${externalDatabase.name}" <c:if test="${status.value == externalDatabase.name}">selected="selected"</c:if>>
                			${externalDatabase.name}
            			</option>
          			</c:forEach>
        		</select>
        	<span class="fieldError">${status.errorMessage}</span>
       		</spring:bind>
       	</c:if>
	    </td>
    </tr>
    
   
        

       	
       	
    
       
    	            <tr>
                <td valign="top">
                    <b>
                        <fmt:message key="expressionExperiment.owner" />
                    </b>
                </td>
                <td>
                	<%if (expressionExperiment.getOwner() != null){%>
                    	<jsp:getProperty name="expressionExperiment" property="owner" />
                    <%}else{
                    	out.print("Owner unavailable");
                    }%>
                </td>
            </tr>       
            <tr>
				<td class="label">
					<fmt:message key="investigators.title" />
				</td>
				<td>
					<%
					                    if ( ( expressionExperiment.getInvestigators() ) != null
					                    && ( expressionExperiment.getInvestigators().size() > 0 ) ) {
					%>
					<c:forEach end="0" var="investigator"
						items="${ expressionExperiment.investigators }">
						<c:out value="${ investigator.name}" />
					</c:forEach>
					<%
					                    if ( expressionExperiment.getInvestigators().size() > 1 ) {
					                    out.print( ", et al. " );
					                }
					            } else {
					                out.print( "No investigators known" );
					            }
					%>
				</td>
			</tr>
			<tr>
				<td class="label">
					<fmt:message key="pubMed.publication" />
				</td>
				<td>
					<%
					            if ( expressionExperiment.getPrimaryPublication() != null ) {
					%>	
					<Gemma:citation citation="${expressionExperiment.primaryPublication }" />
					<% 
					            } else {
					                out.print( "Primary publication unavailable" );
					            }
					%>
				</td>
			</tr>  
            
            <tr>
                <td valign="top">
                    <b>
                        <fmt:message key="auditTrail.date" />
                    </b>
                </td>
                <td>
                	<%if (expressionExperiment.getAuditTrail() != null){
                		out.print(expressionExperiment.getAuditTrail().getCreationEvent().getDate());
                    }else{
                    	out.print("Create date unavailable");
                    }%>
                </td>
            </tr>                
            
{'fraction_non_alphanumeric': 0.16826758147512866, 'fraction_numerical': 0.002144082332761578, 'mean_word_length': 1.6831569259088817, 'pattern_counts': {'":': 0, '<': 315, '<?xml version=': 0, '>': 317, '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': '7661119', 'n_tokens_mistral': 3727, 'n_tokens_neox': 3338, 'n_words': 534}