<commit_before>{% extends "base.html" %}
{% block body %}

<div class="center">
  {% include 'flashed.html' %}

  {% if flagged and not haskey %}
    <div class="flash notification">
      <div class="message">
        <strong>{{ gettext('Sorry we haven\'t responded yet!') }}</strong>
        <p>{{ gettext('Our SecureDrop recently experienced a surge of activity. For security reasons, the creation of a two-way communication channel was delayed until you checked in again.') }}</p>
        <p>{{ gettext('Please rest assured that we were able to download your submission, and check back again later for a reply.') }}</p>
      </div>
    </div>
  {% endif %}
</div>

<h2 class="headline">{{ gettext('Submit Files or Messages') }}</h2>
<p class="explanation">{{ gettext('You can submit any kind of file, a message, or both.') }}</p>

<p class="explanation extended-explanation">{{ gettext('If you are already familiar with GPG, you can optionally encrypt your files and messages with our <a href="{url}" class="text-link">public key</a> before submission. Files are encrypted as they are received by SecureDrop.').format(url=url_for('info.download_journalist_pubkey')) }}
{{ gettext('<a href="{url}" class="text-link">Learn more</a>.').format(url=url_for('info.why_download_journalist_pubkey')) }}</p>

<hr class="no-line">

<form id="upload" method="post" action="{{ url_for('main.submit') }}" enctype="multipart/form-data" autocomplete="off">
  <input name="csrf_token" type="hidden" value="{{ csrf_token() }}">
  <div class="snippet"><commit_msg>feat(/lookup): if uploads are disallowed, remove most UI references to files<commit_after>{% extends "base.html" %}
{% block body %}

<div class="center">
  {% include 'flashed.html' %}

  {% if flagged and not haskey %}
    <div class="flash notification">
      <div class="message">
        <strong>{{ gettext('Sorry we haven\'t responded yet!') }}</strong>
        <p>{{ gettext('Our SecureDrop recently experienced a surge of activity. For security reasons, the creation of a two-way communication channel was delayed until you checked in again.') }}</p>
        <p>{{ gettext('Please rest assured that we were able to download your submission, and check back again later for a reply.') }}</p>
      </div>
    </div>
  {% endif %}
</div>

{% if allow_document_uploads %}
<h2 class="headline">{{ gettext('Submit Files or Messages') }}</h2>
<p class="explanation">{{ gettext('You can submit any kind of file, a message, or both.') }}</p>
{% else %}
<h2 class="headline">{{ gettext('Submit Messages') }}</h2>
{% endif %}

<p class="explanation extended-explanation">{{ gettext('If you are already familiar with GPG, you can optionally encrypt your files and messages with our <a href="{url}" class="text-link">public key</a> before submission. Files are encrypted as they are received by SecureDrop.').format(url=url_for('info.download_journalist_pubkey')) }}
{{ gettext('<a href="{url}" class="text-link">Learn more</a>.').format(url=url_for('info.why_download_journalist_pubkey')) }}</p>

<hr class="no-line">

<form id="upload" method="post" action="{{ url_for('main.submit') }}" enctype="multipart/form-data" autocomplete="off">
  <input name="csrf_token" type="hidden" value="{{ csrf_token() }}">
  <div class="snippet">
{'fraction_non_alphanumeric': 0.1729185727355901, 'fraction_numerical': 0.0018298261665141812, 'mean_word_length': 4.985401459854015, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3385741', 'n_tokens_mistral': 1035, 'n_tokens_neox': 972, 'n_words': 328}