<commit_before>{% extends 'admin/model/list.html' %}
{% block body %}
{% if data %}
{% set task = data[0].task %}
<h1>{{task.filename}}</h1>
<table class="table table-hover table-bordered searchable">
    <tbody>
    <tr>
        <td>
            <b>Task Filename</b>
        </td>
        <td>
            {{task.filename}}
        </td>
    </tr>
    <tr>
        <td>
            <b>Organisation</b>
        </td>
        <td>
            {{task.org.name}}
        </td>
    </tr>
    <tr>
        <td>
            <b>Completed At</b>
        </td>
        <td>
            {% if task.completed_at %}
            {{task.completed_at|isodate}}
            {% else %}
            &nbsp;
            {% endif %}
        </td>
    </tr>
    <tr>
        <td>
            <b>Submitted At</b>
        </td>
        <td>
            {{task.created_at|isodate}}
        </td>
    </tr>
    </tbody>
</table>
{% endif %}
<form class="icon" method="POST"
      action="{{url_for('activate_all')}}">
    <input id="task_id" name="task_id" type="hidden" value="{{task.id}}">
    <button onclick="return safeConfirm('Are you sure you want to activate all records for processing?');"
            title="Activiate Records" class="btn btn-info">Activiate all
    </button>
</form>
{{ super() }}
{% endblock %}<commit_msg>imroved UI...<commit_after>{% extends 'admin/model/list.html' %}
{% block body %}
  {% if data %}
    {% set task = data[0].task %}
    <h1>{{task.filename}}</h1>
    <table class="table table-hover table-bordered searchable">
      <tbody>
        <tr>
          <td>
            <b>Task Filename</b>
          </td>
          <td>
            {{task.filename}}
          </td>
        </tr>
        <tr>
          <td>
            <b>Organisation</b>
          </td>
          <td>
            {{task.org.name}}
          </td>
        </tr>
        <tr>
          <td>
            <b>Completed At</b>
          </td>
          <td>
            {% if task.completed_at %}
              {{task.completed_at|isodate}}
            {% else %}
              &nbsp;
            {% endif %}
          </td>
        </tr>
        <tr>
          <td>
            <b>Submitted At</b>
          </td>
          <td>
            {{task.created_at|isodate}}
          </td>
        </tr>
      </tbody>
    </table>
  {% endif %}
  <span class="pull-right">
    <form class="icon" method="POST"
                       action="{{url_for('activate_all')}}">
      <input id="task_id" name="task_id" type="hidden" value="{{task.id}}">
      <button onclick="return safeConfirm('Are you sure you want to activate all records for processing?');"
              data-toggle="tooltip" data-placement="bottom"
              title="Activiate all records for batch processing..." class="btn btn-info">Activiate all
      </button>
    </form>
  </span>
  {{ super() }}
{% endblock %}
{'fraction_non_alphanumeric': 0.18020216103171838, 'fraction_numerical': 0.0020913210177762286, 'mean_word_length': 1.5131348511383538, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, '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': '4214199', 'n_tokens_mistral': 952, 'n_tokens_neox': 902, 'n_words': 192}