<commit_before><%@ page import="org.mskcc.cbio.portal.model.GeneWithScore" %>
<%@ page import="org.mskcc.cbio.portal.servlet.QueryBuilder" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.io.PrintWriter" %>
<%@ page import="java.io.IOException" %>
<%@ page import="org.mskcc.cbio.portal.servlet.GeneratePlots" %>
<%@ page import="org.mskcc.cbio.cgds.model.GeneticProfile" %>
<%@ page import="org.mskcc.cbio.cgds.model.GeneticAlterationType" %>

<%
    String cancer_study_id = (String)request.getParameter("cancer_study_id");
    String case_set_id = (String)request.getParameter("case_set_id");
    String[] gene_list = ((String)request.getParameter("gene_list")).split("\\s+");
%>

<!-- Global Variables -->
<script>
    var cancer_study_id = "<%out.print(cancer_study_id);%>",
            case_set_id = "<%out.print(case_set_id);%>";
</script>
<script type="text/javascript" src="js/plots_tab.js"></script>

<div class="section" id="plots">
    <table>
        <tr>
            <td>
                <table>
                    <tr>
                        <td style="border:2px solid #BDBDBD;padding:10px;height:300px;">
                            <h4 style="padding-top:10px;">Plot Parameters</h4>
                            <br>
                            <b>Gene</b><br>
                            <select id='genes' onchange="viewController.updateView();">
                                <%
                                    for (int i=0; i<gene_list.length; i++){
                                        out.println("<option value='" + gene_list[i].toUpperCase() + "'>" + gene_list[i].toUpperCase() + "</option>");
                                    }
                                %>
                            </select>
                            <br><br>
                            <b>Plot Type</b><br><commit_msg>Distabled dropdown menu for single gene query.<commit_after><%@ page import="org.mskcc.cbio.portal.model.GeneWithScore" %>
<%@ page import="org.mskcc.cbio.portal.servlet.QueryBuilder" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.io.PrintWriter" %>
<%@ page import="java.io.IOException" %>
<%@ page import="org.mskcc.cbio.portal.servlet.GeneratePlots" %>
<%@ page import="org.mskcc.cbio.cgds.model.GeneticProfile" %>
<%@ page import="org.mskcc.cbio.cgds.model.GeneticAlterationType" %>

<%
    String cancer_study_id = (String)request.getParameter("cancer_study_id");
    String case_set_id = (String)request.getParameter("case_set_id");
    String[] gene_list = ((String)request.getParameter("gene_list")).split("\\s+");
%>

<!-- Global Variables -->
<script>
    var cancer_study_id = "<%out.print(cancer_study_id);%>",
            case_set_id = "<%out.print(case_set_id);%>";
</script>
<script type="text/javascript" src="js/plots_tab.js"></script>

<div class="section" id="plots">
    <table>
        <tr>
            <td>
                <table>
                    <tr>
                        <td style="border:2px solid #BDBDBD;padding:10px;height:300px;">
                            <h4 style="padding-top:10px;">Plot Parameters</h4>
                            <br>
                            <b>Gene</b><br>
                            <%
                                if (gene_list.length == 1) {
                                    out.print("&nbsp;" + gene_list[0]);
                                }
                            %>
                            <%
                                if (gene_list.length == 1){
                                    out.println("<select id='genes' style='display:none;'>");
                                    out.println("<option value='" + gene_list[0].toUpperCase() + "'>" + gene_list[0].toUpperCase() + "</option>");
                                } else {
                                    out.println("<select id='genes' onchange=\"viewController.updateView();\">");
                                    for (int i = 0; i < gene_list.length; i++){
                                        out.println("<option value='" + gene_list[i].toUpperCase() + "'>" + gene_list[i].toUpperCase() + "</option>");
                                    }
                                }
                            %>
                            </select>
                            <br><br>
                            <b>Plot Type</b><br>
{'fraction_non_alphanumeric': 0.16384439359267736, 'fraction_numerical': 0.006178489702517162, 'mean_word_length': 1.6064400715563507, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 15, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7384379', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1248, 'n_words': 168}