<commit_before>{% extends "base.html" %}
{% block body %}
<div id="content" class="journalist-view-single">

  <form action='/regenerate-code' method='post' id="regenerate-code">
    <input name="csrf_token" type="hidden" value="{{ csrf_token() }}"/>
    <input type="hidden" name="sid" value="{{ sid }}">

    <p class="breadcrumbs">
      <a href="/">All Sources</a>
      <i class="fa fa-chevron-right"></i>
      <strong>{{ source.journalist_designation }}</strong>
      <a href="#change-codename-{{ source.journalist_designation }}" title="Generate a new random codename for this source. We recommend doing this if the first random codename is difficult to say or remember. You can generate new random codenames as many times as you like." class="plain" id="regenerate-codename-btn"><span id="regenerate-codename-btn-label">Change codename</span></a>
      <div id="change-codename-{{ source.journalist_designation }}" class="confirm-prompt">Are you sure you want to generate a new codename?
        <a href="#regenerate-code">Cancel</a>
        <button class="sd-button" type="submit">CONFIRM</button>
      </div>
    </p>
  </form>

  {% if source.collection %}
    <p>The documents are stored encrypted for security. To read them, you will need to decrypt them using GPG.</p>
    <form action="/bulk" method="post">
      <div class="document-actions">
        <div id='select-container'></div>
        <button class="sd-button" type="submit" name="action" value="download"></i> DOWNLOAD</button>
        <button class="sd-button" type="submit" name="action" value="confirm_delete" class="danger" id="delete_selected">DELETE</button>
      </div>
      <ul id="submissions" class="plain submissions"><commit_msg>Replace Download/Delete text to make clear if JS is not on<commit_after>{% extends "base.html" %}
{% block body %}
<div id="content" class="journalist-view-single">

  <form action='/regenerate-code' method='post' id="regenerate-code">
    <input name="csrf_token" type="hidden" value="{{ csrf_token() }}"/>
    <input type="hidden" name="sid" value="{{ sid }}">

    <p class="breadcrumbs">
      <a href="/">All Sources</a>
      <i class="fa fa-chevron-right"></i>
      <strong>{{ source.journalist_designation }}</strong>
      <a href="#change-codename-{{ source.journalist_designation }}" title="Generate a new random codename for this source. We recommend doing this if the first random codename is difficult to say or remember. You can generate new random codenames as many times as you like." class="plain" id="regenerate-codename-btn"><span id="regenerate-codename-btn-label">Change codename</span></a>
      <div id="change-codename-{{ source.journalist_designation }}" class="confirm-prompt">Are you sure you want to generate a new codename?
        <a href="#regenerate-code">Cancel</a>
        <button class="sd-button" type="submit">CONFIRM</button>
      </div>
    </p>
  </form>

  {% if source.collection %}
    <p>The documents are stored encrypted for security. To read them, you will need to decrypt them using GPG.</p>
    <form action="/bulk" method="post">
      <div class="document-actions">
        <div id='select-container'></div>
        <button class="sd-button" type="submit" name="action" value="download"></i> DOWNLOAD SELECTED</button>
        <button class="sd-button" type="submit" name="action" value="confirm_delete" class="danger" id="delete_selected">DELETE SELECTED</button>
      </div>
      <ul id="submissions" class="plain submissions">
{'fraction_non_alphanumeric': 0.1639577986883376, 'fraction_numerical': 0.0, 'mean_word_length': 4.235820895522388, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4541731', 'n_tokens_mistral': 1070, 'n_tokens_neox': 1027, 'n_words': 293}