<commit_before>{{!
    Copyright (C) 2014 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>
}}


<li class="tree-item task-item governance t-assigned" data-object-id="{{instance.id}}" {{addclass "t-" instance.status}} {{addclass "t-" instance.overdue}} data-object-type="{{instance.class.table_singular}}">
  <div class="item-main" {{#instance}}{{data 'model'}}{{/instance}}>
    <div class="openclose">
      <a class="openclose-placeholder" href="javascript://"> </a>
      <div class="row-fluid">
        <div class="span12">
          <ul class="tree-action-list">
            <li>
              {{{renderLive '/static/mustache/tasks/states.mustache' status=instance.status}}}
            </li>
            <li>
              <span class="counter">
                due
                <strong class="error">{{instance.end_date}}</strong>
              </span>
            </li>

            <li>
              {{#with_mapping_count instance 'cycle_task_group_objects'}}
              <span class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped objects">
                <i class="grcicon-object-black"></i>
                <strong class="error">{{count}}</strong>
              </span>
              {{/with_mapping_count}}
            </li>

            <!--li>
              <span class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped tasks">
                <i class="grcicon-task-black"></i>
                <strong class="error">{{tasks.length}}</strong>
              </span>
            </li-->
          </ul>
          <span class="tier-trigger"></span>
          <div class="item-data">
            <div class="tree-title-area">
              {{instance.title}}
            </div>
          </div>

        </div>
      </div>
    </div>
  </div>

  {{#if expanded}}
  <div class="tier-2-info item-content">
    <div class="tier-2-info-content">

      {{#instance.description}}
      <div class="show-description">
        <div class="row-fluid">
          <div class="span12">
            <div class="tree-description">
              {{{instance.description}}}
            </div>
            
          </div>
        </div>
      </div>
      {{/instance.description}}

    </div>

    {{#if draw_children}}
      {{#child_options}}
        <div class="inner-tree">
          <h6>Objects ({{list.length}})</h6>
          <ul class="tree-structure new-tree colored-list" {{data 'options'}} {{ (el) -> el.cms_controllers_tree_view(el.data("options")) }}></ul>
        </div>
      {{/child_options}}
    {{/if}}

  </div>
  {{/if}}
</li><commit_msg>Add state buttons to cycle_task_group<commit_after>{{!
    Copyright (C) 2014 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>
}}


<li class="tree-item task-item governance t-assigned" data-object-id="{{instance.id}}" {{addclass "t-" instance.status}} {{addclass "t-" instance.overdue}}>
  <div class="item-main" {{#instance}}{{data 'model'}}{{/instance}}>
    <div class="openclose">
      <a class="openclose-placeholder" href="javascript://"> </a>
      <div class="row-fluid">
        <div class="span12">
          <ul class="tree-action-list">
            <li>
            {{#using cycle=instance.cycle}}
              {{#if_equals cycle.is_current true}}
                <div class="request-control"
                  {{ (el) -> $(el).bind('inserted', function() { el.ggrc_controllers_quick_form({ instance : el.closest('.item-main').data('model')}); });}}
                  >
                  {{^instance.status}}
                    <button class="btn btn-primary change-task-status {{instance._disabled}}" data-openclose="open" data-name="status" data-value="InProgress">Start</button>
                  {{/status}}
                  {{#if_equals instance.status 'InProgress'}}
                    <button class="btn change-task-status {{instance._disabled}}" data-name="status" data-value="Finished">Finish</button>
                  {{/if_equals}}
                  {{#if_equals instance.status 'Declined'}}
                    <button class="btn change-task-status {{instance._disabled}}" data-name="status" data-value="Finished">Finish</button>
                  {{/if_equals}}
                  {{#if_equals instance.status 'Finished'}}
                    <button class="btn btn-danger change-task-status {{instance._disabled}}" data-name="status" data-value="Declined">Decline</button>
                    <button class="btn btn-success change-task-status {{instance._disabled}}" data-openclose="close" data-name="status" data-value="Verified">Verify</button>
                  {{/status}}
                  {{#if_equals instance.status 'Verified'}}
                    <span class="task-done">
                      <em>Verified</em>
                    </span>
                  {{/if_equals}}
                  <!--
                  {{#instance._undo.0}}
                    <a href="javascript://" data-name="status" data-value="{{instance._undo.0}}" data-undo="true" class="undo {{instance._disabled}}">Undo</a>
                  {{/instance._undo.0}}
                  -->
                </div>
              {{/if_equals}}
            {{/using}}
            </li>
            <li>
              {{#with_mapping_count instance 'cycle_task_group_objects'}}
              <span class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped objects">
                <i class="grcicon-object-black"></i>
                <strong class="error">{{count}}</strong>
              </span>
              {{/with_mapping_count}}
            </li>

            <!--li>
              <span class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped tasks">
                <i class="grcicon-task-black"></i>
                <strong class="error">{{tasks.length}}</strong>
              </span>
            </li-->
          </ul>
          <span class="tier-trigger"></span>
          <div class="item-data">
            <div class="tree-title-area">
              {{instance.title}}
            </div>
          </div>

        </div>
      </div>
    </div>
  </div>

  {{#if expanded}}
  <div class="tier-2-info item-content">
    <div class="tier-2-info-content">

      {{#instance.description}}
      <div class="show-description">
        <div class="row-fluid">
          <div class="span12">
            <div class="tree-description">
              {{{instance.description}}}
            </div>

          </div>
        </div>
      </div>
      {{/instance.description}}

    </div>

    {{#if draw_children}}
      {{#child_options}}
        <div class="inner-tree">
          <h6>Objects ({{list.length}})</h6>
          <ul class="tree-structure new-tree colored-list" {{data 'options'}} {{ (el) -> el.cms_controllers_tree_view(el.data("options")) }}></ul>
        </div>
      {{/child_options}}
    {{/if}}

  </div>
  {{/if}}
</li>
{'fraction_non_alphanumeric': 0.1798282072596287, 'fraction_numerical': 0.0042948185092823495, 'mean_word_length': 1.9309784815265936, 'pattern_counts': {'":': 0, '<': 148, '<?xml version=': 0, '>': 151, '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': '6440223', 'n_tokens_mistral': 2138, 'n_tokens_neox': 2045, 'n_words': 391}