<commit_before><form
  action="{{ url_for('SearchView:mutations') }}"
  class="search-form"
  method="POST"
  id="mutations-form"
  enctype="multipart/form-data"
>
  {% if dataset %}
    <h3>Dataset: {{ dataset.name }}</h3>
    <h4>Saved on {{ dataset.created_on }}
      {% if dataset.owner %}
        by {{ dataset.owner.username }}
      {% else %}
        anonimously
      {% endif %}
    </h4>
  {% endif %}
  <input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">
  {# TODO: the example should return more representative results #}
  {% set example='HTR3E I183823756M\nSTAT6 W737C\nchr12 57490358 C A\nTP53 R282W\nBRCA1 L432V' %}
  <div class="options">
    <a class="btn btn-default btn-file">
      Select VCF file  <input type="file" name="vcf-file">
    </a>
    <a href="?mutations={{ example | urlencode }}" class="btn btn-default set-example">Load an example</a>
    <button type="submit" class="btn btn-primary mut-search">
      Search {{ 'again' if results }}
      <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
    </button>
    {% with widgets=[widgets.is_ptm] %}
      {% include 'widgets/filters_bar.html' %}
    {% endwith %}
  </div>
  <label>
    <input type="checkbox" name="store_on_server" onchange="$('.storage_details').toggleClass('hidden')">
    Store these mutations on server*.
    {% if current_user.is_authenticated %}
      Saving dataset to {{ current_user.username }} account.
    {% else %}
      To be able to browse these mutations as a dataset later, please
      <a href="{{ url_for('ContentManagmentSystem:login') }}">login first</a>.
    {% endif %}
  </label>
  <div class="storage_details hidden">
    Dataset name: <input type="text" name="dataset_name">
    {#
    Dataset access password (optinal): <input type="password" name="dataset_password">
    #}
  </div>
  <div class="inputs" class="{{ 'hidden' if results }}">
    {# The length of the textarea should change dynamically up to 30 rows - JS #}
    {# The single-line placeholder will be substituted by multiline placeholder with JS in all browsers #}
    <textarea
      name="mutations"
      class="form-control"
      placeholder="chr1 12345678 A C"
      data-full-placeholder="Type in genomic or protein mutations separated by new lines, in following format:\n{{ example }}\n(you can mix genomic and protein mutations as long as each is placed in a separate line)"
      rows="6"
    >
      {%- if query -%}
        {{ query }}
      {%- endif -%}
    </textarea>
    <span class="help-block">
      You can provide a VCF file and plain-text mutation lines above at once, so result for both will be shown on one page.
    </span>
  </div>
  <div
    class="results {{ 'hidden' if not results and not badly_formatted and not without_mutations }}"
  >
    {% include 'search/results/mutations.html' %}
  </div>
  <div id="footnote">
    * Mutations will be stored for 7 days. Ticking this box allows you to return to the results later easily.
  </div>
  <input type="hidden" name="fallback" value="True">
</form><commit_msg>Small improvements in mutations search template<commit_after><form
  action="{{ url_for('SearchView:mutations') }}"
  class="search-form"
  method="POST"
  id="mutations-form"
  enctype="multipart/form-data"
>
  {% if dataset %}
    <h3>Dataset: {{ dataset.name }}</h3>
    <h4>Saved on {{ dataset.created_on }}
      {% if dataset.owner %}
        by {{ dataset.owner.username }}
      {% else %}
        anonimously
      {% endif %}
    </h4>
  {% endif %}
  <input type="hidden" name="_csrf_token" value="{{ csrf_token() }}">
  {# TODO: the example should return more representative results #}
  {% set example='HTR3E I183823756M\nSTAT6 W737C\nchr12 57490358 C A\nTP53 R282W\nBRCA1 L432V' %}
  <div class="options">
    <a class="btn btn-default btn-file">
      Select VCF file  <input type="file" name="vcf-file">
    </a>
    <a href="?mutations={{ example | urlencode }}" class="btn btn-default set-example">Load an example</a>
    <button type="submit" class="btn btn-primary mut-search">
      Search {{ 'again' if results }}
      <span class="glyphicon glyphicon-search" aria-hidden="true"></span>
    </button>
    {% with widgets=[widgets.is_ptm] %}
      {% include 'widgets/filters_bar.html' %}
    {% endwith %}
  </div>
  <label>
    <input type="checkbox" name="store_on_server" onchange="$('.storage_details').toggleClass('hidden')">
    Store these mutations on server*.
    {% if current_user.is_authenticated %}
      Saving dataset to {{ current_user.username }} account.
    {% else %}
      To be able to browse these mutations as a dataset later, please
      <a href="{{ url_for('ContentManagmentSystem:login') }}">login first</a>.
    {% endif %}
  </label>
  <div class="storage_details hidden">
    Dataset name: <input type="text" name="dataset_name" class="form-control">
  </div>
  <div class="inputs">
    {# The length of the textarea should change dynamically up to 30 rows - JS #}
    {# The single-line placeholder will be substituted by multiline placeholder with JS in all browsers #}
    <textarea
      name="mutations"
      class="form-control"
      placeholder="chr1 12345678 A C"
      data-full-placeholder="Type in genomic or protein mutations separated by new lines, in following format:\n{{ example }}\n(you can mix genomic and protein mutations as long as each is placed in a separate line)"
      rows="6"
    >
      {%- if query -%}
        {{ query }}
      {%- endif -%}
    </textarea>
    <span class="help-block">
      You can provide a VCF file and plain-text mutation lines above at once, so result for both will be shown on one page.
    </span>
  </div>
  <div
    class="results {{ 'hidden' if not results and not badly_formatted and not without_mutations }}"
  >
    {% include 'search/results/mutations.html' %}
  </div>
  <div id="footnote">
    * Mutations will be stored for 7 days. Ticking this box allows you to return to the results later easily.
  </div>
  <input type="hidden" name="fallback" value="True">
</form>
{'fraction_non_alphanumeric': 0.1445067634444078, 'fraction_numerical': 0.01649620587264929, 'mean_word_length': 3.3183760683760686, 'pattern_counts': {'":': 0, '<': 78, '<?xml version=': 0, '>': 78, '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': '6978177', 'n_tokens_mistral': 2003, 'n_tokens_neox': 1847, 'n_words': 568}