<commit_before>{% extends "base.html" %}
{% block title %}View Collection{% endblock %}
{% block css %}
    <link rel="stylesheet" type="text/css" href="{{ url_for('css', filename='DataTables/css/jquery.dataTables.css') }}" />
    <link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/extensions/buttons.dataTables.css">
    <link rel="stylesheet" type="text/css" href="/static/new/css/show_trait.css" />
{% endblock %}
{% block content %}
<!-- Start of body -->

    <div class="container" style="min-width: 2050px;">
        <h1>
            <span id="collection_name">{{ uc.name }}</span>
            <input type="text" name="new_collection_name" style="font-size: 20px; display: none; width: 500px;" class="form-control" placeholder="{{ uc.name }}"> 
            <button class="btn btn-default" style="display: inline;" id="change_collection_name">Change Collection Name</button>
        </h1>
        <h3>This collection has {{ '{}'.format(numify(trait_obs|count, "record", "records")) }}</h3>

        <!--<hr style="height: 1px; background-color: #A9A9A9;">-->

        <div>
          <form id="collection_form" action="/delete" method="post">
            <input type="hidden" name="uc_id" id="uc_id" value="{{ uc.id }}" />
            <input type="hidden" name="collection_name" id="collection_name" value="{{ collection_name }}" />
            <input type="hidden" name="tool_used" value="" />
            <input type="hidden" name="form_url" value="" />
            <input type="hidden" name="trait_list" id="trait_list" value= "
            {% for this_trait in trait_obs %}
                {{ this_trait.name }}:{{ this_trait.dataset.name }}:{{ data_hmac('{}:{}'.format(this_trait.name, this_trait.dataset.name)) }},
            {% endfor %}" >

            <button id="corr_matrix" class="btn btn-primary submit_special" data-url="/corr_matrix" title="Correlation Matrix" >
                Correlations
            </button>

            <button id="network_graph" class="btn btn-primary submit_special" data-url="/network_graph" title="Network Graph" >
                Networks
            </button>

            <button id="send_to_webgestalt" class="btn btn-primary submit_special" data-url="/webgestalt_page" title="WebGestalt" >
              WebGestalt
            </button>

            <button id="send_to_geneweaver" class="btn btn-primary submit_special" data-url="/geneweaver_page" title="GeneWeaver" >
              GeneWeaver
            </button>

            <button id="send_to_bnw" class="btn btn-primary submit_special" data-url="/bnw_page" title="Bayesian Network" >
              BNW
           </button>

            <button id="wgcna_setup" class="btn btn-primary submit_special" data-url="/wgcna_setup" title="WGCNA Analysis" >
                WGCNA
            </button>

            <button id="ctl_setup" class="btn btn-primary submit_special" data-url="/ctl_setup" title="CTL Analysis" >
                CTL Maps
            </button>

            <button id="heatmap" class="btn btn-primary submit_special" data-url="/heatmap" title="Heatmap" >
                MultiMap
            </button>

            <button id="comp_bar_chart" class="btn btn-primary submit_special" data-url="/comparison_bar_chart" title="Comparison Bar Chart" >
                Comparison Bar Chart
            </button>

          </form>
        </div>

        <div>
            <br />
            <form id="export_form" method="POST" action="/export_traits_csv">
            <button class="btn btn-default" id="select_all" type="button"><span class="glyphicon glyphicon-ok"></span> Select All</button>
            <button class="btn" id="add" disabled="disabled" type="button"><i class="icon-plus-sign"></i> Copy</button>
            <input type="hidden" name="database_name" id="database_name" value="None">
            <input type="hidden" name="export_data" id="export_data" value="">
            <input type="hidden" name="file_name" id="file_name" value="collection_table">
            <button class="btn btn-default" id="export_traits">Download CSV</button>
            <input type="text" id="searchbox" class="form-control" style="width: 200px; display: inline; padding-bottom: 9px;" placeholder="Search Table For ...">
            <input type="text" id="select_top" class="form-control" style="width: 200px; display: inline; padding-bottom: 9px;" placeholder="Select Top ...">
            <button class="btn btn-default" id="deselect_all" type="button"><span class="glyphicon glyphicon-remove"></span> Deselect</button>
            <button id="remove" class="btn btn-danger" data-url="/collections/remove" disabled="disabled" type="button"><i class="icon-minus-sign"></i> Delete Rows</button>
            <button id="delete" class="btn btn-danger submit_special" data-url="/collections/delete" title="Delete this collection" > Delete Collection</button>
            </form>
            <div style="margin-top: 10px; margin-bottom: 5px;">
                <b>Show/Hide Columns:</b>
            </div>
            <div>
                <table class="table-hover table-striped cell-border" id='trait_table' style="float: left;">
                    <thead>
                        <tr>
                            <th></th><commit_msg>Added Invert button to collection page * wqflask/wqflask/templates/collections/view.html - Added the Invert button back to the collection page; it was removed in the past but Rob decided it should be re-added<commit_after>{% extends "base.html" %}
{% block title %}View Collection{% endblock %}
{% block css %}
    <link rel="stylesheet" type="text/css" href="{{ url_for('css', filename='DataTables/css/jquery.dataTables.css') }}" />
    <link rel="stylesheet" type="text/css" href="/static/new/packages/DataTables/extensions/buttons.dataTables.css">
    <link rel="stylesheet" type="text/css" href="/static/new/css/show_trait.css" />
{% endblock %}
{% block content %}
<!-- Start of body -->

    <div class="container" style="min-width: 2050px;">
        <h1>
            <span id="collection_name">{{ uc.name }}</span>
            <input type="text" name="new_collection_name" style="font-size: 20px; display: none; width: 500px;" class="form-control" placeholder="{{ uc.name }}"> 
            <button class="btn btn-default" style="display: inline;" id="change_collection_name">Change Collection Name</button>
        </h1>
        <h3>This collection has {{ '{}'.format(numify(trait_obs|count, "record", "records")) }}</h3>

        <!--<hr style="height: 1px; background-color: #A9A9A9;">-->

        <div>
          <form id="collection_form" action="/delete" method="post">
            <input type="hidden" name="uc_id" id="uc_id" value="{{ uc.id }}" />
            <input type="hidden" name="collection_name" id="collection_name" value="{{ collection_name }}" />
            <input type="hidden" name="tool_used" value="" />
            <input type="hidden" name="form_url" value="" />
            <input type="hidden" name="trait_list" id="trait_list" value= "
            {% for this_trait in trait_obs %}
                {{ this_trait.name }}:{{ this_trait.dataset.name }}:{{ data_hmac('{}:{}'.format(this_trait.name, this_trait.dataset.name)) }},
            {% endfor %}" >

            <button id="corr_matrix" class="btn btn-primary submit_special" data-url="/corr_matrix" title="Correlation Matrix" >
                Correlations
            </button>

            <button id="network_graph" class="btn btn-primary submit_special" data-url="/network_graph" title="Network Graph" >
                Networks
            </button>

            <button id="send_to_webgestalt" class="btn btn-primary submit_special" data-url="/webgestalt_page" title="WebGestalt" >
              WebGestalt
            </button>

            <button id="send_to_geneweaver" class="btn btn-primary submit_special" data-url="/geneweaver_page" title="GeneWeaver" >
              GeneWeaver
            </button>

            <button id="send_to_bnw" class="btn btn-primary submit_special" data-url="/bnw_page" title="Bayesian Network" >
              BNW
           </button>

            <button id="wgcna_setup" class="btn btn-primary submit_special" data-url="/wgcna_setup" title="WGCNA Analysis" >
                WGCNA
            </button>

            <button id="ctl_setup" class="btn btn-primary submit_special" data-url="/ctl_setup" title="CTL Analysis" >
                CTL Maps
            </button>

            <button id="heatmap" class="btn btn-primary submit_special" data-url="/heatmap" title="Heatmap" >
                MultiMap
            </button>

            <button id="comp_bar_chart" class="btn btn-primary submit_special" data-url="/comparison_bar_chart" title="Comparison Bar Chart" >
                Comparison Bar Chart
            </button>

          </form>
        </div>

        <div>
            <br />
            <form id="export_form" method="POST" action="/export_traits_csv">
            <button class="btn btn-default" id="select_all" type="button"><span class="glyphicon glyphicon-ok"></span> Select All</button>
            <button class="btn btn-default" id="invert" type="button"><span class="glyphicon glyphicon-ok"></span> Invert</button>
            <button class="btn" id="add" disabled="disabled" type="button"><i class="icon-plus-sign"></i> Copy</button>
            <input type="hidden" name="database_name" id="database_name" value="None">
            <input type="hidden" name="export_data" id="export_data" value="">
            <input type="hidden" name="file_name" id="file_name" value="collection_table">
            <button class="btn btn-default" id="export_traits">Download CSV</button>
            <input type="text" id="searchbox" class="form-control" style="width: 200px; display: inline; padding-bottom: 9px;" placeholder="Search Table For ...">
            <input type="text" id="select_top" class="form-control" style="width: 200px; display: inline; padding-bottom: 9px;" placeholder="Select Top ...">
            <button class="btn btn-default" id="deselect_all" type="button"><span class="glyphicon glyphicon-remove"></span> Deselect</button>
            <button id="remove" class="btn btn-danger" data-url="/collections/remove" disabled="disabled" type="button"><i class="icon-minus-sign"></i> Delete Rows</button>
            <button id="delete" class="btn btn-danger submit_special" data-url="/collections/delete" title="Delete this collection" > Delete Collection</button>
            </form>
            <div style="margin-top: 10px; margin-bottom: 5px;">
                <b>Show/Hide Columns:</b>
            </div>
            <div>
                <table class="table-hover table-striped cell-border" id='trait_table' style="float: left;">
                    <thead>
                        <tr>
                            <th></th>
{'fraction_non_alphanumeric': 0.15913682277318641, 'fraction_numerical': 0.0051423324150596875, 'mean_word_length': 2.776352288488211, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 171, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1554642', 'n_tokens_mistral': 3241, 'n_tokens_neox': 3068, 'n_words': 675}