<commit_before>{% load class_tags %}

<div {% get_id_and_classes "activity-task-form-content" %}>
  {% if form.is_multipart %}
    <form id="myform" enctype="multipart/form-data" action="add" method="post">
  {% else %}
    <form id="myform" action="add" method="post">
  {% endif %}

  {% csrf_token %}

  {% if admin_message %}
    Admin message: {{ admin_message }}
  {% endif %}
  
  <p/>
   {% if task.type == "event" or task.type == "excursion" %}          {# event #}
     {% if task.is_event_completed %}
        Please enter the confirmation code you receieved from the event:
        {{ form.code }}
        {{ form.response.errors }}
        {{ form.response }}
        <div {% get_id_and_classes "activity-task-form-content-button" %}>
          <button style="cursor:pointer;">Submit</button>
          <button style="cursor:pointer;" onclick='$("#setup-dialog").dialog("close"); return false;'>Cancel</button>
        </div>
     {% else %}
        You will earn 2 points for signing up for the {{task.type}}.
         <div {% get_id_and_classes "activity-task-form-content-button" %}>
          <button style="cursor:pointer;">OK, Let's do it</button>
          <button style="cursor:pointer;" onclick='$("#setup-dialog").dialog("close"); return false;'>I don't want to do it</button>
         </div>
      {% endif %}
   <!--
     <p/>(Optional) Provide comment for Kukui Cup Admin:<br/>
         {{ form.comment }} 
      <p/>
   -->
   {% endif %}
   
   {% if task.type == "commitment" %}     {# commitment #}
     {% if approval.days_left != 0 %}
     You will earn 2 points for making this commitment.
     <p/>
     Come back in 5 days of meeting your commitment for the rest of your 
     points.
     {% else %}
     Thank you for the commitment.
     <p/>
     You've earned {{task.point_value}} points.
     {% endif %}
     <div {% get_id_and_classes "activity-task-form-content-button" %}>
          <button style="cursor:pointer;">OK, Let's do it</button>
         <button style="cursor:pointer;" onclick='$("#setup-dialog").dialog("close"); return false;'>I don't want to do it</button>
     </div>
   {% endif %}
  
  {% if task.type == "activity" %}          {# activity #}
    {% if form.image_response %}         {# image #}
      {{task.confirm_prompt}} <p/>
      {{ form.image_response.errors }}
      {{ form.image_response }}
    {% else %}                           
      {% if question %}                                {# question #}
    Please answer the following question(s) and submit your answer(s).
    <br>You can also click on the "Cancel" button to go back to review the information.
    <p/><commit_msg>change button to ok and cancel for comitment and event dialog<commit_after>{% load class_tags %}

<div {% get_id_and_classes "activity-task-form-content" %}>
  {% if form.is_multipart %}
    <form id="myform" enctype="multipart/form-data" action="add" method="post">
  {% else %}
    <form id="myform" action="add" method="post">
  {% endif %}

  {% csrf_token %}

  {% if admin_message %}
    Admin message: {{ admin_message }}
  {% endif %}
  
  <p/>
   {% if task.type == "event" or task.type == "excursion" %}          {# event #}
     {% if task.is_event_completed %}
        Please enter the confirmation code you receieved from the event:
        {{ form.code }}
        {{ form.response.errors }}
        {{ form.response }}
        <div {% get_id_and_classes "activity-task-form-content-button" %}>
          <button style="cursor:pointer;">Submit</button>
          <button style="cursor:pointer;" onclick='$("#setup-dialog").dialog("close"); return false;'>Cancel</button>
        </div>
     {% else %}
        You will earn 2 points for signing up for the {{task.type}}.
         <div {% get_id_and_classes "activity-task-form-content-button" %}>
          <button style="cursor:pointer;">OK</button>
          <button style="cursor:pointer;" onclick='$("#setup-dialog").dialog("close"); return false;'>Cancel</button>
         </div>
      {% endif %}
   <!--
     <p/>(Optional) Provide comment for Kukui Cup Admin:<br/>
         {{ form.comment }} 
      <p/>
   -->
   {% endif %}
   
   {% if task.type == "commitment" %}     {# commitment #}
     {% if approval.days_left != 0 %}
     You will earn 2 points for making this commitment.
     <p/>
     Come back in 5 days of meeting your commitment for the rest of your 
     points.
     {% else %}
     Thank you for the commitment.
     <p/>
     You've earned {{task.point_value}} points.
     {% endif %}
     <div {% get_id_and_classes "activity-task-form-content-button" %}>
          <button style="cursor:pointer;">OK</button>
         <button style="cursor:pointer;" onclick='$("#setup-dialog").dialog("close"); return false;'>Cancel</button>
     </div>
   {% endif %}
  
  {% if task.type == "activity" %}          {# activity #}
    {% if form.image_response %}         {# image #}
      {{task.confirm_prompt}} <p/>
      {{ form.image_response.errors }}
      {{ form.image_response }}
    {% else %}                           
      {% if question %}                                {# question #}
    Please answer the following question(s) and submit your answer(s).
    <br>You can also click on the "Cancel" button to go back to review the information.
    <p/>
{'fraction_non_alphanumeric': 0.16327300150829563, 'fraction_numerical': 0.0015082956259426848, 'mean_word_length': 2.42479018721756, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '2404723', 'n_tokens_mistral': 1681, 'n_tokens_neox': 1548, 'n_words': 405}