<commit_before>{% extends 'member/my-member-dashboard.html' %}

{% block dashboard_main %}
<div class="panel panel-default pad-all-sides">
  <table class="table">
    <tr>
      <th>Study/Activity</th>
      <th>Date</th>
      <th>Files</th>
    </tr>
    {% for task in data_retrieval_tasks %}
    <tr>
      <td><small>{{ task.source }}</small></td>
      <td>
        <small>
          {% if task.complete_time %}
          {{ task.complete_time }}
          {% else %}
          Submitted at {{ task.start_time }}
          {% endif %}
        </small>
      </td>
      <td>
        {% if not task.complete_time %}
        <small>
          <b>N/A.</b> Task status: {{ task.get_status_display }}
          {% else %}
        </small>
        <table>
          {% if not task.data_files %}
            <small>No data available.</small>
          {% endif %}
          {% for data_file in task.data_files %}
          <tr>
            <td style="width:50%;"><small>{{ data_file.basename }}</small></td>
            <td>
              <a class="btn btn-primary btn-xs" href="{{ data_file.file.url }}">
                Download
              </a>
              {% if user.member.public_data_participant.enrolled %}
              <form action="{% url 'public-data:toggle-sharing' %}"
                  method="POST" style="display:inline-block;">
                {% csrf_token %}
                <input type="hidden" name="data_file" value="{{ data_file.file }}">
                {% if data_file.is_public %}
                  <input type="hidden" name="public" value="False">
                  {% else %}
                  <input type="hidden" name="public" value="True">
                {% endif %}
                <input class="btn btn-primary btn-xs"
                  {% if data_file.is_public %}
                    value="Stop public sharing"
                  {% else %}
                    value="Publicly share"
                  {% endif %}<commit_msg>🔧 Prompt user to verify email on pending tasks.<commit_after>{% extends 'member/my-member-dashboard.html' %}

{% block dashboard_main %}
<div class="panel panel-default pad-all-sides">
  <table class="table">
    <tr>
      <th>Study/Activity</th>
      <th>Date</th>
      <th>Files</th>
    </tr>
    {% for task in data_retrieval_tasks %}
    <tr>
      <td><small>{{ task.source }}</small></td>
      <td>
        <small>
          {% if task.complete_time %}
          {{ task.complete_time }}
          {% else %}
          Submitted at {{ task.start_time }}
          {% endif %}
        </small>
      </td>
      <td>
        {% if not task.complete_time %}
        <small>
          {% if task.get_status_display == 'Postponed' %}
          Task Status: Postponed pending email verification.
          <br>
          <a href="{% url 'my-member-send-confirmation-email' %}">
            [Resend email confirmation]</a>
          {% else %}
          <b>N/A.</b> Task status: {{ task.get_status_display }}
          {% endif %}
        </small>
        {% else %}
        <table>
          {% if not task.data_files %}
            <small>No data available.</small>
          {% endif %}
          {% for data_file in task.data_files %}
          <tr>
            <td style="width:50%;"><small>{{ data_file.basename }}</small></td>
            <td>
              <a class="btn btn-primary btn-xs" href="{{ data_file.file.url }}">
                Download
              </a>
              {% if user.member.public_data_participant.enrolled %}
              <form action="{% url 'public-data:toggle-sharing' %}"
                  method="POST" style="display:inline-block;">
                {% csrf_token %}
                <input type="hidden" name="data_file" value="{{ data_file.file }}">
                {% if data_file.is_public %}
                  <input type="hidden" name="public" value="False">
                  {% else %}
                  <input type="hidden" name="public" value="True">
                {% endif %}
                <input class="btn btn-primary btn-xs"
                  {% if data_file.is_public %}
                    value="Stop public sharing"
                  {% else %}
                    value="Publicly share"
                  {% endif %}
{'fraction_non_alphanumeric': 0.1560734463276836, 'fraction_numerical': 0.0009416195856873823, 'mean_word_length': 1.5412679425837321, 'pattern_counts': {'":': 0, '<': 86, '<?xml version=': 0, '>': 84, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6813263', 'n_tokens_mistral': 1320, 'n_tokens_neox': 1181, 'n_words': 251}