<commit_before><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="exp" type="ae3.model.AtlasExperiment" scope="request"/>
<jsp:useBean id="expSpecies" type="java.util.Collection<java.lang.String>" scope="request"/>
<jsp:useBean id="arrayDesigns" type="java.util.Collection<java.lang.String>" scope="request"/>

<div style="float:right;margin:0 20px;">
    <a href="http://www.ebi.ac.uk/arrayexpress/experiments/${exp.accession}" target="_blank"
       title="Experiment information and full data in ArrayExpress Archive" class="geneName"
       style="vertical-align: baseline">${exp.accession}</a>

    <div style="border:1px black solid;padding:5px;">
        <table cellpadding="2" cellspacing="0" border="0">
            <tr>
                <td style="text-align:right;">Platform:</td>
                <td>
                    <c:forEach var="arrayDesign" items="${arrayDesigns}">
                        <a href="${pageContext.request.contextPath}/experiment/${exp.accession}?ad=${arrayDesign}">${arrayDesign}</a>&nbsp;
                    </c:forEach>
                </td>
            </tr>
            <tr>
                <td style="text-align:right;">Organism:</td>
                <td>
                    <c:forEach var="species" items="${expSpecies}" varStatus="i">
                        ${species}${i.last ? "" : ", "}
                    </c:forEach>
                </td>
            </tr>
            <tr>
                <td style="text-align:right;">Samples:</td>
                <td>${exp.numSamples}</td>
            </tr>
            <tr>
                <td style="text-align:right;">Individuals:</td>
                <td>${exp.numIndividuals}</td>
            </tr>
            <tr>
                <td style="text-align:right;">Study type:</td>
                <td>${exp.studyType}</td>
            </tr>
        </table>
    </div><commit_msg>Ticket #2853 Do not show empty properties in the experiment page header<commit_after><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="exp" type="ae3.model.AtlasExperiment" scope="request"/>
<jsp:useBean id="expSpecies" type="java.util.Collection<java.lang.String>" scope="request"/>
<jsp:useBean id="arrayDesigns" type="java.util.Collection<java.lang.String>" scope="request"/>

<div style="float:right;margin:0 20px;">
    <a href="http://www.ebi.ac.uk/arrayexpress/experiments/${exp.accession}" target="_blank"
       title="Experiment information and full data in ArrayExpress Archive" class="geneName"
       style="vertical-align: baseline">${exp.accession}</a>

    <div style="border:1px black solid;padding:5px;">
        <table cellpadding="2" cellspacing="0" border="0">
            <tr>
                <td style="text-align:right;">Platform:</td>
                <td>
                    <c:forEach var="arrayDesign" items="${arrayDesigns}">
                        <a href="${pageContext.request.contextPath}/experiment/${exp.accession}?ad=${arrayDesign}">${arrayDesign}</a>&nbsp;
                    </c:forEach>
                </td>
            </tr>
            <tr>
                <td style="text-align:right;">Organism:</td>
                <td>
                    <c:forEach var="species" items="${expSpecies}" varStatus="i">
                        ${species}${i.last ? "" : ", "}
                    </c:forEach>
                </td>
            </tr>

            <c:if test="${not empty exp.numSamples}">
                <tr>
                    <td style="text-align:right;">Samples:</td>
                    <td>${exp.numSamples}</td>
                </tr>
            </c:if>

            <c:if test="${not empty exp.numIndividuals}">
                <tr>
                    <td style="text-align:right;">Individuals:</td>
                    <td>${exp.numIndividuals}</td>
                </tr>
            </c:if>

            <c:if test="${not empty exp.studyType}">
                <tr>
                    <td style="text-align:right;"><nobr>Study&nbsp;type:</nobr></td>
                    <td>${exp.studyType}</td>
                </tr>
            </c:if>
        </table>
    </div>
{'fraction_non_alphanumeric': 0.17989417989417988, 'fraction_numerical': 0.005291005291005291, 'mean_word_length': 1.9043296089385475, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 109, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7489641', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1196, 'n_words': 190}