<commit_before>{% extends 'ui/base.html' %}
{% block title %}System Settings | BioQueue{% endblock %}
{% block content %}
<div class="row-fluid">
    <div class="page-header">
        <h1>System Settings</h1>
    </div>
    <form class="form" method="post" action=".">
        <div class="panel-group" id="settings-container" role="tablist" aria-multiselectable="true">
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="head-env-settings">
                    <h4 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#settings-container" href="#env-settings" aria-expanded="true" aria-controls="env-settings">
                            Enviorment Settings
                        </a>
                    </h4>
                </div>
                <div id="env-settings" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="head-env-settings">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="control-label" for="path">Run folder</label>
                            <input type="text" class="form-control" id="path" name="path" value="{{ run_folder }}" required />
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cpu">Processors</label>
                            <input type="number" class="form-control" id="cpu" name="cpu" value="{{ cpu }}" required />
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mem">Memory(Gb)</label>
                            <input type="number" class="form-control" id="mem" name="mem" value="{{ memory }}" required />
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="dquota">User Disk Quota(Gb) <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="Total Disk Space(Gb): {{ max_disk }}<br />Free Disk Space(Gb): {{ free_disk }}" data-html="true"></i></label>
                            <input id="dquota" name="dquota" class="sliderbar" data-slider-id='diskquota' type="text" data-slider-min="0" class="form-control" data-slider-max="{{ max_disk }}" data-slider-step="1" data-slider-value="{{ disk_quota }}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="dcw">Disk confidence: <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="Weight for regression result" data-html="true"></i></label>
                            <input id="dcw" name="dcw" class="sliderbar" data-slider-id='dcw' type="text" data-slider-min="0.1" class="form-control" data-slider-max="2" data-slider-step="0.1" data-slider-value="{{ disk_confidence_weight }}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mcw">Memory confidence: <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="Weight for regression result" data-html="true"></i></label>
                            <input id="mcw" name="mcw" class="sliderbar" data-slider-id='mcw' type="text" data-slider-min="0.1" class="form-control" data-slider-max="2" data-slider-step="0.1" data-slider-value="{{ mem_confidence_weight }}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ccw">CPU confidence: <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="Weight for regression result" data-html="true"></i></label>
                            <input id="ccw" name="ccw" class="sliderbar" data-slider-id='ccw' type="text" data-slider-min="0.1" class="form-control" data-slider-max="2" data-slider-step="0.1" data-slider-value="{{ cpu_confidence_weight }}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="dquota">Correlation coefficient threshold: <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="If the absolute value of correlation coefficient is less than this threshold, BioQueue will possess mean and sd." data-html="true"></i></label>
                            <input id="ccthr" name="ccthr" class="sliderbar" data-slider-id='corcoethr' type="text" data-slider-min="0.1" class="form-control" data-slider-max="1" data-slider-step="0.1" data-slider-value="{{ threshold }}"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="head-mail-settings">
                    <h4 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#settings-container" href="#mail-settings" aria-expanded="true" aria-controls="mail-settings">
                            E-mail Notification
                        </a>
                    </h4>
                </div>
                <div id="mail-settings" class="panel-collapse collapse" role="tabpanel" aria-labelledby="head-mail-settings">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="control-label" for="mailhost">Mail host (SMTP Server)</label>
                            <input type="text" class="form-control" id="mail-host" name="mailhost" value="{{ mail_host }}" placeholder="Mail host" />
                            <p class="help-block">Leave it blank to turn off notification.</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mailport">Mail port</label>
                            <input type="text" class="form-control" id="mail-port" name="mailport" value="{{ mail_port }}" placeholder="Mail port" />
                            <p class="help-block">Leave it blank to turn off notification.</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mailuser">Use SSL/TLS?</label>
                            <p>
                                {% if mail_protocol == 'ssl' %}
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-ssl" value="ssl" checked>Use SSL
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-tls" value="tls">Use TLS
                                    </label>
                                {% elif mail_protocol == 'tls' %}
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-ssl" value="ssl">Use SSL
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-tls" value="tls" checked>Use TLS
                                    </label>
                                {% else %}
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-ssl" value="ssl">Use SSL
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-tls" value="tls">Use TLS
                                    </label>
                                {% endif %}
                            </p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mailuser">Mail user</label>
                            <input type="text" class="form-control" id="mail-user" name="mailuser" value="{{ mail_user }}" placeholder="Mail user" />
                            <p class="help-block">Leave it blank to turn off notification.</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mailpassword">Mail password</label>
                            <input type="password" class="form-control" id="mail-password" name="mailpassword" value="{{ mail_password }}" placeholder="Mail password" />
                            <p class="help-block">Leave it blank to turn off notification.</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="head-cluster-settings">
                    <h4 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#settings-container" href="#cluster-settings" aria-expanded="true" aria-controls="cluster-settings">
                            Cluster Settings
                        </a>
                    </h4>
                </div>
                <div id="cluster-settings" class="panel-collapse collapse" role="tabpanel" aria-labelledby="head-cluster-settings">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="control-label" for="cluster_type">Cluster engine:</label>
                            <select class="form-control" name="cluster_type" id="cluster-type">
                                <option value="">Run on local / cloud</option>
                                {% for model in cluster_models %}
                                {% if cluster_type == model %}
                                <option value="{{ model }}" selected>{{ model }}</option>
                                {% else %}
                                <option value="{{ model }}">{{ model }}</option>
                                {% endif %}
                                {% endfor %}
                            </select>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-cpu">CPU cores for single job:</label>
                            <input type="number" class="form-control cluster-control" id="cluster-cpu" aria-valuemin="1" name="job_cpu" value="{{ job_cpu }}" disabled="disabled"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-mem">Physical Memory:</label>
                            <input type="text" class="form-control cluster-control" id="cluster-mem" name="job_mem" value="{{ job_mem }}" disabled="disabled"/>
                            <p class="help-block">Maximum amount of physical memory used by the job. e.g. 32GB, 64MB</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-mem">Virtual Memory:</label>
                            <input type="text" class="form-control cluster-control" id="cluster-mem" name="job_vrt" value="{{ job_vrt }}" disabled="disabled"/>
                            <p class="help-block">Maximum amount of virtual memory used by the job. e.g. 32GB, 64MB</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-dest">Destination:</label>
                            <input type="text" class="form-control cluster-control" id="cluster-dest" name="job_dest" value="{{ job_dest }}" disabled="disabled"/>
                            <p class="help-block">Defines the destination of the job. The destination names a queue (high, low, FAT), a server, or a queue at a server.</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-cpu">Wall-time:</label>
                            <input type="text" class="form-control cluster-control" id="cluster-wt" name="job_wt" value="{{ job_wt }}" disabled="disabled"/>
                            <p class="help-block">If not set for a generally available resource, the limit for CPU time is infinite.</p>
                        </div><commit_msg>unique id<commit_after>{% extends 'ui/base.html' %}
{% block title %}System Settings | BioQueue{% endblock %}
{% block content %}
<div class="row-fluid">
    <div class="page-header">
        <h1>System Settings</h1>
    </div>
    <form class="form" method="post" action=".">
        <div class="panel-group" id="settings-container" role="tablist" aria-multiselectable="true">
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="head-env-settings">
                    <h4 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#settings-container" href="#env-settings" aria-expanded="true" aria-controls="env-settings">
                            Enviorment Settings
                        </a>
                    </h4>
                </div>
                <div id="env-settings" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="head-env-settings">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="control-label" for="path">Run folder</label>
                            <input type="text" class="form-control" id="path" name="path" value="{{ run_folder }}" required />
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cpu">Processors</label>
                            <input type="number" class="form-control" id="cpu" name="cpu" value="{{ cpu }}" required />
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mem">Memory(Gb)</label>
                            <input type="number" class="form-control" id="mem" name="mem" value="{{ memory }}" required />
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="dquota">User Disk Quota(Gb) <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="Total Disk Space(Gb): {{ max_disk }}<br />Free Disk Space(Gb): {{ free_disk }}" data-html="true"></i></label>
                            <input id="dquota" name="dquota" class="sliderbar" data-slider-id='diskquota' type="text" data-slider-min="0" class="form-control" data-slider-max="{{ max_disk }}" data-slider-step="1" data-slider-value="{{ disk_quota }}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="dcw">Disk confidence: <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="Weight for regression result" data-html="true"></i></label>
                            <input id="dcw" name="dcw" class="sliderbar" data-slider-id='dcw' type="text" data-slider-min="0.1" class="form-control" data-slider-max="2" data-slider-step="0.1" data-slider-value="{{ disk_confidence_weight }}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mcw">Memory confidence: <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="Weight for regression result" data-html="true"></i></label>
                            <input id="mcw" name="mcw" class="sliderbar" data-slider-id='mcw' type="text" data-slider-min="0.1" class="form-control" data-slider-max="2" data-slider-step="0.1" data-slider-value="{{ mem_confidence_weight }}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="ccw">CPU confidence: <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="Weight for regression result" data-html="true"></i></label>
                            <input id="ccw" name="ccw" class="sliderbar" data-slider-id='ccw' type="text" data-slider-min="0.1" class="form-control" data-slider-max="2" data-slider-step="0.1" data-slider-value="{{ cpu_confidence_weight }}"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="dquota">Correlation coefficient threshold: <i id="tooltip" class="icon-info-sign tooltipopen" data-toggle="tooltip" title="If the absolute value of correlation coefficient is less than this threshold, BioQueue will possess mean and sd." data-html="true"></i></label>
                            <input id="ccthr" name="ccthr" class="sliderbar" data-slider-id='corcoethr' type="text" data-slider-min="0.1" class="form-control" data-slider-max="1" data-slider-step="0.1" data-slider-value="{{ threshold }}"/>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="head-mail-settings">
                    <h4 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#settings-container" href="#mail-settings" aria-expanded="true" aria-controls="mail-settings">
                            E-mail Notification
                        </a>
                    </h4>
                </div>
                <div id="mail-settings" class="panel-collapse collapse" role="tabpanel" aria-labelledby="head-mail-settings">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="control-label" for="mailhost">Mail host (SMTP Server)</label>
                            <input type="text" class="form-control" id="mail-host" name="mailhost" value="{{ mail_host }}" placeholder="Mail host" />
                            <p class="help-block">Leave it blank to turn off notification.</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mailport">Mail port</label>
                            <input type="text" class="form-control" id="mail-port" name="mailport" value="{{ mail_port }}" placeholder="Mail port" />
                            <p class="help-block">Leave it blank to turn off notification.</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mailuser">Use SSL/TLS?</label>
                            <p>
                                {% if mail_protocol == 'ssl' %}
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-ssl" value="ssl" checked>Use SSL
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-tls" value="tls">Use TLS
                                    </label>
                                {% elif mail_protocol == 'tls' %}
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-ssl" value="ssl">Use SSL
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-tls" value="tls" checked>Use TLS
                                    </label>
                                {% else %}
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-ssl" value="ssl">Use SSL
                                    </label>
                                    <label class="radio-inline">
                                        <input type="radio" name="protocol" id="protocol-tls" value="tls">Use TLS
                                    </label>
                                {% endif %}
                            </p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mailuser">Mail user</label>
                            <input type="text" class="form-control" id="mail-user" name="mailuser" value="{{ mail_user }}" placeholder="Mail user" />
                            <p class="help-block">Leave it blank to turn off notification.</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="mailpassword">Mail password</label>
                            <input type="password" class="form-control" id="mail-password" name="mailpassword" value="{{ mail_password }}" placeholder="Mail password" />
                            <p class="help-block">Leave it blank to turn off notification.</p>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="head-cluster-settings">
                    <h4 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#settings-container" href="#cluster-settings" aria-expanded="true" aria-controls="cluster-settings">
                            Cluster Settings
                        </a>
                    </h4>
                </div>
                <div id="cluster-settings" class="panel-collapse collapse" role="tabpanel" aria-labelledby="head-cluster-settings">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="control-label" for="cluster_type">Cluster engine:</label>
                            <select class="form-control" name="cluster_type" id="cluster-type">
                                <option value="">Run on local / cloud</option>
                                {% for model in cluster_models %}
                                {% if cluster_type == model %}
                                <option value="{{ model }}" selected>{{ model }}</option>
                                {% else %}
                                <option value="{{ model }}">{{ model }}</option>
                                {% endif %}
                                {% endfor %}
                            </select>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-cpu">CPU cores for single job:</label>
                            <input type="number" class="form-control cluster-control" id="cluster-cpu" aria-valuemin="1" name="job_cpu" value="{{ job_cpu }}" disabled="disabled"/>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-mem">Physical Memory:</label>
                            <input type="text" class="form-control cluster-control" id="cluster-mem" name="job_mem" value="{{ job_mem }}" disabled="disabled"/>
                            <p class="help-block">Maximum amount of physical memory used by the job. e.g. 32GB, 64MB</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-vrt-mem">Virtual Memory:</label>
                            <input type="text" class="form-control cluster-control" id="cluster-vrt-mem" name="job_vrt" value="{{ job_vrt }}" disabled="disabled"/>
                            <p class="help-block">Maximum amount of virtual memory used by the job. e.g. 32GB, 64MB</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-dest">Destination:</label>
                            <input type="text" class="form-control cluster-control" id="cluster-dest" name="job_dest" value="{{ job_dest }}" disabled="disabled"/>
                            <p class="help-block">Defines the destination of the job. The destination names a queue (high, low, FAT), a server, or a queue at a server.</p>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="cluster-cpu">Wall-time:</label>
                            <input type="text" class="form-control cluster-control" id="cluster-wt" name="job_wt" value="{{ job_wt }}" disabled="disabled"/>
                            <p class="help-block">If not set for a generally available resource, the limit for CPU time is infinite.</p>
                        </div>
{'fraction_non_alphanumeric': 0.14350300101332916, 'fraction_numerical': 0.0030399875282562942, 'mean_word_length': 1.5047832877782117, 'pattern_counts': {'":': 0, '<': 379, '<?xml version=': 0, '>': 379, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 54, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6175768', 'n_tokens_mistral': 6395, 'n_tokens_neox': 6096, 'n_words': 1374}