<commit_before><%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div id="content">

<!--Page Help-->

<div class="pagehelp"><a href="javascript:openHelpWindowWithNavigation('manage_platforms_help')" class="help">
(draft)</a>
</div>

<!--/Page Help-->
    
<script type="text/javascript">
    function CheckPlatformVendor(vendor) {
        if (vendor != "Agilent") {
            document.getElementById("platformName").disabled = true;
        } else {
            document.getElementById("platformName").value = "";
            document.getElementById("platformName").disabled = false;
        }
    }
</script>

<h1>Manage Platforms</h1>
<s:form action="addPlatform" method="post" enctype="multipart/form-data" >
    <table class="data">
        <tr>
            <th colspan="2">
                <s:select name="platformVendor" label="Vendor"
                    list="@gov.nih.nci.caintegrator2.application.arraydata.PlatformVendorEnum@getValuesToDisplay()"
                    onchange="CheckPlatformVendor(this.form.platformVendor.value);" />
                <s:textfield id="platformName" name="platformName" label="Platform Name (only needed for Agilent)" />
                <s:file name="platformFile" label="Annotation File" />
                <s:hidden name="selectedAction" value="addPlatform" />
                <s:submit value="Add" align="center" />
            </th>    
        </tr>
        <tr>
            <th>Name</th>
            <th>Vendor</th>
        </tr>
        <s:iterator value="platforms" status="status">
            <s:if test="#status.odd == true">
              <tr class="odd">
            </s:if>
            <s:else>
              <tr class="even">
            </s:else>            
                <td><s:property value="name" /></td>
                <td><s:property value="vendor" /></td>
            </tr>
        </s:iterator>
    </table>
</s:form></div>
    
<script type="text/javascript">
    CheckPlatformVendor(this.form.platformVendor.value);
</script>

<div class="clear"><br />
</div><commit_msg>Set the default vendor to Affymetrix and disable the platform name, reviewed by JP.<commit_after><%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<div id="content">

<!--Page Help-->

<div class="pagehelp"><a href="javascript:openHelpWindowWithNavigation('manage_platforms_help')" class="help">
(draft)</a>
</div>

<!--/Page Help-->
    
<script type="text/javascript">
    function CheckPlatformVendor(vendor) {
        if (vendor != "Agilent") {
            document.getElementById("platformName").value = " ";
            document.getElementById("platformName").disabled = true;
        } else {
            document.getElementById("platformName").disabled = false;
        }
    }
</script>

<h1>Manage Platforms</h1>
<s:form action="addPlatform" method="post" enctype="multipart/form-data" >
    <table class="data">
        <tr>
            <th colspan="2">
                <s:select name="platformVendor" label="Vendor"
                    list="@gov.nih.nci.caintegrator2.application.arraydata.PlatformVendorEnum@getValuesToDisplay()"
                    value="Affymetrix" onchange="CheckPlatformVendor(this.form.platformVendor.value);" />
                <s:textfield id="platformName" name="platformName" label="Platform Name (only needed for Agilent)"
                    disabled="true" />
                <s:file name="platformFile" label="Annotation File" />
                <s:hidden name="selectedAction" value="addPlatform" />
                <s:submit value="Add" align="center" />
            </th>    
        </tr>
        <tr>
            <th>Name</th>
            <th>Vendor</th>
        </tr>
        <s:iterator value="platforms" status="status">
            <s:if test="#status.odd == true">
              <tr class="odd">
            </s:if>
            <s:else>
              <tr class="even">
            </s:else>            
                <td><s:property value="name" /></td>
                <td><s:property value="vendor" /></td>
            </tr>
        </s:iterator>
    </table>
</s:form></div>

<div class="clear"><br />
</div>
{'fraction_non_alphanumeric': 0.16943916349809887, 'fraction_numerical': 0.0042775665399239545, 'mean_word_length': 2.2627906976744185, 'pattern_counts': {'":': 0, '<': 107, '<?xml version=': 0, '>': 107, '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': '1462610', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1220, 'n_words': 218}