<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 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="item-wrap">
      {{{render '/static/mustache/base_objects/open_close.mustache' instance=instance}}}
      <div class="select">
        <div class="item-data">
          <div class="row-fluid">
            <div class="span4">
              <div class="title tree-title-area">
                <i class="grcicon-task_group-color"></i>
                {{instance.title}}
              </div>
            </div>
            <div class="span4">
              <ul class="tree-action-list">
                {{#with_mapping_count instance 'cycle_task_group_tasks'}}
                  <li>
                    <span class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped tasks">
                      <i class="grcicon-task-black"></i>
                      <strong class="error">{{count}}</strong>
                    </span>
                  </li>
                {{/with_mapping_count}}
                <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-mini btn-info 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 btn-mini btn-draft change-task-status {{instance._disabled}}" data-name="status" data-value="Finished">Finish</button>
                      {{/if_equals}}
                      {{#if_equals instance.status 'Declined'}}
                        {{#if review_task.object_review}}
                          <button class="btn btn-mini btn-draft change-task-status {{instance._disabled}}" data-name="status" data-value="Verified">Finish</button>
                        {{else}}
                          <button class="btn btn-mini btn-draft change-task-status {{instance._disabled}}" data-name="status" data-value="Finished">Finish</button>
                        {{/if}}
                      {{/if_equals}}
                      {{#if_equals instance.status 'Finished'}}
                        <button class="btn btn-mini btn-danger change-task-status {{instance._disabled}}" data-name="status" data-value="Declined">Decline</button>
                        <button class="btn btn-mini 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>
              </ul>
            </div>
          </div>
        </div><!-- item-data end -->
      </div><!-- select end -->
    </div><!-- item-wrap end -->
  </div><!-- item-main end -->

  {{#if expanded}}
  <div class="tier-2-info item-content">
    <div class="tier-2-info-content">
      {{#if draw_children}}
        {{#child_options}}
          <div class="inner-tree {{^if list.length}}hide{{/list}}">
            <ul class="tree-structure new-tree" {{data 'options'}} {{ (el) -> el.cms_controllers_tree_view(el.data("options")) }}></ul>
          </div>
        {{/child_options}}
      {{/if}}
    </div>
  </div>
  {{/if}}
</li><commit_msg>Scoped in review task. Corrected mismatched mustache tags. Formatting.<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 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="item-wrap">
      {{{render '/static/mustache/base_objects/open_close.mustache' instance=instance}}}
      <div class="select">
        <div class="item-data">
          <div class="row-fluid">
            <div class="span4">
              <div class="title tree-title-area">
                <i class="grcicon-task_group-color"></i>
                {{instance.title}}
              </div>
            </div>
            <div class="span4">
              <ul class="tree-action-list">
                {{#with_mapping_count instance 'cycle_task_group_tasks'}}
                  <li>
                    <span class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped tasks">
                      <i class="grcicon-task-black"></i>
                      <strong class="error">{{count}}</strong>
                    </span>
                  </li>
                {{/with_mapping_count}}
                <li>
                  {{#with_review_task}}
                    {{#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-mini btn-info change-task-status {{instance._disabled}}" data-openclose="open" data-name="status" data-value="InProgress">Start</button>
                          {{/instance.status}}
                          {{#if_equals instance.status 'InProgress'}}
                            <button class="btn btn-mini btn-draft change-task-status {{instance._disabled}}" data-name="status" data-value="Finished">Finish</button>
                          {{/if_equals}}
                          {{#if_equals instance.status 'Declined'}}
                            {{#if review_task.object_review}}
                              <button class="btn btn-mini btn-draft change-task-status {{instance._disabled}}" data-name="status" data-value="Verified">Finish</button>
                            {{else}}
                              <button class="btn btn-mini btn-draft change-task-status {{instance._disabled}}" data-name="status" data-value="Finished">Finish</button>
                            {{/if}}
                          {{/if_equals}}
                          {{#if_equals instance.status 'Finished'}}
                            <button class="btn btn-mini btn-danger change-task-status {{instance._disabled}}" data-name="status" data-value="Declined">Decline</button>
                            <button class="btn btn-mini btn-success change-task-status {{instance._disabled}}" data-openclose="close" data-name="status" data-value="Verified">Verify</button>
                          {{/if_equals}}
                          {{#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}}
                  {{/with_review_task}}
                </li>
              </ul>
            </div>
          </div>
        </div><!-- item-data end -->
      </div><!-- select end -->
    </div><!-- item-wrap end -->
  </div><!-- item-main end -->

  {{#if expanded}}
  <div class="tier-2-info item-content">
    <div class="tier-2-info-content">
      {{#if draw_children}}
        {{#child_options}}
          <div class="inner-tree {{^if list.length}}hide{{/list}}">
            <ul class="tree-structure new-tree" {{data 'options'}} {{ (el) -> el.cms_controllers_tree_view(el.data("options")) }}></ul>
          </div>
        {{/child_options}}
      {{/if}}
    </div>
  </div>
  {{/if}}
</li>
{'fraction_non_alphanumeric': 0.16636528028933092, 'fraction_numerical': 0.002765663227316243, 'mean_word_length': 1.6218627997769102, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 145, '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': '375194', 'n_tokens_mistral': 2608, 'n_tokens_neox': 2500, 'n_words': 469}