<commit_before>{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

<form action="javascript://">
  <div class="row-fluid">
    <div class="span8">
      <label>
        Summary
        <span class="required">*</span>
        <i class="grcicon-help-black" rel="tooltip" title="Give new {{model.model_singular}} a summary that is easy to search for and indicates the main goals of this {{model.model_singular}}"></i>
      </label>
      <input class="input-block-level required" id="task-title" placeholder="Enter Title" name="title" type="text" value="{{instance.title}}" tabindex="1" autofocus>
      <br>
    </div>
    <div class="span4">
      {{#using contact=instance.contact model_singular=model.model_singular}}
      <label>
        Assignee
        <i class="grcicon-help-black" rel="tooltip" title="This is the default assignee for this task."></i>
      </label>
      <input tabindex="2" class="input-block-level" name="contact.email" data-lookup="Person" placeholder="Enter email address" type="text" value="{{firstexist contact.email ''}}" />
      {{/using}}
      <br>
    </div>
  </div>
  <div class="row-fluid">
    <div class="span8">
      <label>
        Task Type
      </label>
      <select name="task_type">
        {{#iterate 'text' 'Task Details' 'menu' 'One Response Option' 'checkbox' 'Mutiple Response Options' step=2}}
          <option value="{{iterator_0}}" {{#if_equals instance.task_type iterator_0}}selected="selected"{{/if_equals}}>{{iterator_1}}</option>
        {{/iterate}}
      </select>
      <br>
      <label>
      {{#if_helpers '\
      #if_equals' instance.task_type 'text' '\
      of #if_equals' instance.task_type '' '\
      or #if_null' instance.task_type}}
      <label>
        Task Details
        <i class="grcicon-help-black" rel="tooltip" title="Provide more details on the purpose of this {{model.model_singular}} and provide context for how and when this {{model.model_singular}} might be used."></i>
      </label>
      <div class="wysiwyg-area">
        <textarea id="tgt_response_options" class="span12 double wysihtml5" name="description" placeholder="Enter Description" tabindex="3">{{instance.description}}</textarea>
      </div>
      {{else}}
      <label>
        Selection Response Options (Comma Separated)
        <i class="grcicon-help-black" rel="tooltip" title="Choose which response should be applied to this {{model.model_singular}}."></i>
      </label>
        <textarea id="tgt_response_options" class="span12 double" name="response_options_csv" placeholder="Enter Description" tabindex="2">{{instance.response_options_csv}}</textarea>
      {{/if_equals}}
    </div>

    <div class="span4" id="frequency-div">
      {{#using task_group=instance.task_group}}
      {{#using workflow=task_group.workflow}}
      {{#switch workflow.frequency}}<commit_msg>adding new structure to support checkboxes as well<commit_after>{{!
    Copyright (C) 2013 Google Inc., authors, and contributors <see AUTHORS file>
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
    Created By: <EMAIL>
    Maintained By: <EMAIL>
}}

<form action="javascript://">
  <div class="row-fluid">
    <div class="span8">
      <label>
        Summary
        <span class="required">*</span>
        <i class="grcicon-help-black" rel="tooltip" title="Give new {{model.model_singular}} a summary that is easy to search for and indicates the main goals of this {{model.model_singular}}"></i>
      </label>
      <input class="input-block-level required" id="task-title" placeholder="Enter Title" name="title" type="text" value="{{instance.title}}" tabindex="1" autofocus>
      <br>
    </div>
    <div class="span4">
      {{#using contact=instance.contact model_singular=model.model_singular}}
      <label>
        Assignee
        <i class="grcicon-help-black" rel="tooltip" title="This is the default assignee for this task."></i>
      </label>
      <input tabindex="2" class="input-block-level" name="contact.email" data-lookup="Person" placeholder="Enter email address" type="text" value="{{firstexist contact.email ''}}" />
      {{/using}}
      <br>
    </div>
  </div>
  <div class="row-fluid">
    <div class="span8">
      <label>
        Task Type
      </label>
      <select name="task_type">
        {{#iterate 'text' 'Rich text with file upload' 'menu' 'Dropdown' 'checkbox' 'Checkboxes' step=2}}
          <option value="{{iterator_0}}" {{#if_equals instance.task_type iterator_0}}selected="selected"{{/if_equals}}>{{iterator_1}}</option>
        {{/iterate}}
      </select>
      <br>
      <label>
      {{#if_helpers '\
      #if_equals' instance.task_type 'text' '\
      of #if_equals' instance.task_type '' '\
      or #if_null' instance.task_type}}
      <label>
        Task Description
        <i class="grcicon-help-black" rel="tooltip" title="Provide more details on the purpose of this {{model.model_singular}} and provide context for how and when this {{model.model_singular}} might be used."></i>
      </label>
      <div class="wysiwyg-area">
        <textarea id="tgt_response_options" class="span12 double wysihtml5" name="description" placeholder="Enter Description" tabindex="3">{{instance.description}}</textarea>
      </div>
      {{/if_equals}}
      {{#if_helpers '\
      #if_equals' instance.task_type 'menu' '\
      of #if_equals' instance.task_type '' '\
      or #if_null' instance.task_type}}
      <label>
        Dropdown Options (Comma Separated)
        <i class="grcicon-help-black" rel="tooltip" title="Choose which response should be applied to this {{model.model_singular}}."></i>
      </label>
        <textarea id="tgt_response_options" class="span12 double" name="response_options_csv" placeholder="Enter Values" tabindex="2">{{instance.response_options_csv}}</textarea>
      {{/if_equals}}
      {{#if_helpers '\
      #if_equals' instance.task_type 'checkbox' '\
      of #if_equals' instance.task_type '' '\
      or #if_null' instance.task_type}}
      <label>
        Checkbox Options (Comma Separated)
        <i class="grcicon-help-black" rel="tooltip" title="Choose which response should be applied to this {{model.model_singular}}."></i>
      </label>
        <textarea id="" class="span12 double" name="" placeholder="Enter Values" tabindex="2">{{instance.response_options_csv}}</textarea>
      {{/if_equals}}
    </div>

    <div class="span4" id="frequency-div">
      {{#using task_group=instance.task_group}}
      {{#using workflow=task_group.workflow}}
      {{#switch workflow.frequency}}
{'fraction_non_alphanumeric': 0.15794170136823318, 'fraction_numerical': 0.007287328970850684, 'mean_word_length': 3.4506949040370616, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '1118273', 'n_tokens_mistral': 2084, 'n_tokens_neox': 2015, 'n_words': 501}