<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>
}}

<li class="tree-item programs" data-object-id="{{instance.id}}" data-object-type="{{instance.class.table_singular}}" {{addclass "rq-" instance.status}}>
  <div class="item-main" {{#instance}}{{data 'model'}}{{/instance}} data-model="true">
    <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="span{{display_options.title_width}}">
              <div class="title tree-title-area">
                {{#if_draw_icon instance}}
                  <i class="grcicon-{{instance.request_type}}"></i>
                {{/if_draw_icon}}
                <span>{{instance.title}}</span>
              </div>
            </div>
            <div class="span{{display_options.selectable_width}}">
              <div class="row-fluid">
                {{#display_attr_list}}
                  <div class="span{{display_options.selectable_attr_width}}">
                    {{#if_equals attr_type 'custom'}}
                      <div class="custom tree-title-area">
                        {{get_custom_attr_value this instance}}
                      </div>
                    {{else}}
                      <div class="owner tree-title-area">
                        {{#switch attr_name}}
                          {{#case 'audit_object'}}
                            {{#using audit=instance.audit}}
                              {{#with_mapping "audit_object_object" instance}}
                                {{#if audit_object_object.0.instance}}
                                  {{#is_allowed "view_object_page" audit_object_object.0.instance}}
                                    <a class="object-title" href="{{audit_object_object.0.instance.viewLink}}" target="_blank">{{audit_object_object.0.instance.title}}</a>
                                  {{else}}
                                    <span class="object-title" target="_blank">{{audit_object_object.0.instance.title}}</span>
                                  {{/is_allowed}}
                                {{else}}
                                  {{#with_mapping "authorizations" audit}}
                                    {{#if_helpers "\
                                      ^if_equals" instance.status "Accepted" "\
                                      and ^if_auditor" instance _1_include_admin=false}}
                                      None
                                    {{/if_helpers}}
                                  {{/with_mapping}}
                                {{/if}}
                              {{/with_mapping}}
                            {{/using}}
                          {{/case}}
                          {{#case 'assignee'}}
                            {{#using assignee=instance.assignee}}
                              {{{renderLive '/static/mustache/people/popover.mustache' person=assignee}}}
                            {{/using}}
                          {{/case}}
                          {{#case 'mapped_responses'}}
                            <i rel="tooltip" data-placement="right" {{#if_equals instance.request_type "documentation"}}data-original-title="# of attached documents" class="grcicon-directive-black"{{else}}data-original-title="# of attached meetings" class="grcicon-interview"{{/if_equals}}></i>
                            <span class="counter">
                              {{#child_options}}
                                {{#with_mapping_count instance mapping}}
                                  {{count}}
                                {{/with_mapping_count}}
                              {{/child_options}}
                            </span>
                          {{/case}}
                          {{#default}}
                            {{#instance}}
                              {{get_default_attr_value attr_name instance}}
                            {{/instance}}
                          {{/default}}
                        {{/switch}}
                      </div>
                    {{/if_equals}}
                  </div>
                {{/display_attr_list}}
              </div>
            </div>

          </div>
        </div><!-- item-data end -->
      </div><!-- select end -->
    </div><!-- item-wrap end -->
  </div><!-- tree-item end -->

  {{#if expanded}}
  <div class="tier-2-info item-content">
    <div class="tier-2-info-content">
      {{^if_equals instance.status "Draft"}}
      {{#if draw_children}}
        {{#each child_options}}
          <div class="inner-tree">
            <ul class="tree-structure new-tree" {{data 'options'}} {{ (el) -> el.cms_controllers_tree_view(el.data("options")).control("tree_view").display() }}>
            </ul>
          </div>
        {{/each}}
      {{/if}}<commit_msg>Add missing action controls on request tree view<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>
}}

<li class="tree-item programs" data-object-id="{{instance.id}}" data-object-type="{{instance.class.table_singular}}" {{addclass "rq-" instance.status}}>
  <div class="item-main" {{#instance}}{{data 'model'}}{{/instance}} data-model="true">
    <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="span{{display_options.title_width}}">
              <div class="title tree-title-area">
                {{#if_draw_icon instance}}
                  <i class="grcicon-{{instance.request_type}}"></i>
                {{/if_draw_icon}}
                <span>{{instance.title}}</span>
              </div>
            </div>
            <div class="span{{display_options.selectable_width}}">
              <div class="row-fluid">
                {{#display_attr_list}}
                  <div class="span{{display_options.selectable_attr_width}}">
                    {{#if_equals attr_type 'custom'}}
                      <div class="custom tree-title-area">
                        {{get_custom_attr_value this instance}}
                      </div>
                    {{else}}
                      <div class="owner tree-title-area">
                        {{#switch attr_name}}
                          {{#case 'audit_object'}}
                            {{#using audit=instance.audit}}
                              {{#with_mapping "audit_object_object" instance}}
                                {{#if audit_object_object.0.instance}}
                                  {{#is_allowed "view_object_page" audit_object_object.0.instance}}
                                    <a class="object-title" href="{{audit_object_object.0.instance.viewLink}}" target="_blank">{{audit_object_object.0.instance.title}}</a>
                                  {{else}}
                                    <span class="object-title" target="_blank">{{audit_object_object.0.instance.title}}</span>
                                  {{/is_allowed}}
                                {{else}}
                                  {{#with_mapping "authorizations" audit}}
                                    {{#if_helpers "\
                                      ^if_equals" instance.status "Accepted" "\
                                      and ^if_auditor" instance _1_include_admin=false}}
                                      None
                                    {{/if_helpers}}
                                  {{/with_mapping}}
                                {{/if}}
                              {{/with_mapping}}
                            {{/using}}
                          {{/case}}
                          {{#case 'assignee'}}
                            {{#using assignee=instance.assignee}}
                              {{{renderLive '/static/mustache/people/popover.mustache' person=assignee}}}
                            {{/using}}
                          {{/case}}
                          {{#case 'mapped_responses'}}
                            <i rel="tooltip" data-placement="right" {{#if_equals instance.request_type "documentation"}}data-original-title="# of attached documents" class="grcicon-directive-black"{{else}}data-original-title="# of attached meetings" class="grcicon-interview"{{/if_equals}}></i>
                            <span class="counter">
                              {{#child_options}}
                                {{#with_mapping_count instance mapping}}
                                  {{count}}
                                {{/with_mapping_count}}
                              {{/child_options}}
                            </span>
                          {{/case}}
                          {{#default}}
                            {{#instance}}
                              {{get_default_attr_value attr_name instance}}
                            {{/instance}}
                          {{/default}}
                        {{/switch}}
                      </div>
                    {{/if_equals}}
                  </div>
                {{/display_attr_list}}
              </div>
            </div>

            <div class="span{{display_options.action_width}}">
              <div class="show-details">
                {{#if instance.viewLink}}
                  {{#is_allowed "view_object_page" instance}}
                    <a href="{{instance.viewLink}}" target="_blank"><i class="grcicon-to-right"></i></a>
                  {{/is_allowed}}
                {{/if}}
              </div>
            </div>

          </div>
        </div><!-- item-data end -->
      </div><!-- select end -->
    </div><!-- item-wrap end -->
  </div><!-- tree-item end -->

  {{#if expanded}}
  <div class="tier-2-info item-content">
    <div class="tier-2-info-content">
      {{^if_equals instance.status "Draft"}}
      {{#if draw_children}}
        {{#each child_options}}
          <div class="inner-tree">
            <ul class="tree-structure new-tree" {{data 'options'}} {{ (el) -> el.cms_controllers_tree_view(el.data("options")).control("tree_view").display() }}>
            </ul>
          </div>
        {{/each}}
      {{/if}}
{'fraction_non_alphanumeric': 0.14446634750774429, 'fraction_numerical': 0.0026283675959823524, 'mean_word_length': 1.2619957537154989, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 28, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7652098', 'n_tokens_mistral': 2746, 'n_tokens_neox': 2627, 'n_words': 451}