<commit_before>{{!
    Copyright (C) 2016 Google Inc.
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
}}

<li class="tree-item requests" 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">
      {{> '/static/mustache/base_objects/open_close.mustache'}}
      <div class="select">
        <div class="item-data">
          <div class="row-fluid">

            <div class="span{{display_options.title_width}}">
              <div class="title tree-title-area" title="{{instance.title}}">
                {{#is_subtree}}
                  <i class="fa fa-{{instance.request_type}}"></i>
                {{/is_subtree}}
                <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}}
                          {{! because the object can currently only be a
                              person there is no need to switch }}
                          {{#using person=object}}
                            {{>'/static/mustache/people/popover.mustache'}}
                          {{/using}}
                        {{/get_custom_attr_value}}
                      </div>
                    {{else}}
                      <div class="owner tree-title-area capitalize">
                        {{#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 'audit'}}
                            {{#using audit=instance.audit}}
                              {{audit.status}} &mdash; {{audit.title}}
                            {{/using}}
                          {{/case}}
                          {{#case 'mapped_responses'}}
                            <i rel="tooltip" data-placement="right" {{#if_equals instance.request_type "documentation"}}data-original-title="# of attached documents" class="fa fa-files-o"{{else}}data-original-title="# of attached meetings" class="fa fa-calendar"{{/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 attr_type 'custom'}}
                  </div>
                {{/display_attr_list}}
              </div>
            </div>

            <div class="span{{display_options.action_width}}">
              <div class="show-details">
                <view-object-button instance="instance" />
              </div>
            </div>

          </div><commit_msg>Add open/view buttons to requests tree view<commit_after>{{!
    Copyright (C) 2016 Google Inc.
    Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
}}

<li class="tree-item requests" 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">
      {{> '/static/mustache/base_objects/open_close.mustache'}}
      <div class="select">
        <div class="item-data">
          <div class="row-fluid">

            <div class="span{{display_options.title_width}}">
              <div class="title tree-title-area" title="{{instance.title}}">
                {{#is_subtree}}
                  <i class="fa fa-{{instance.request_type}}"></i>
                {{/is_subtree}}
                <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}}
                          {{! because the object can currently only be a
                              person there is no need to switch }}
                          {{#using person=object}}
                            {{>'/static/mustache/people/popover.mustache'}}
                          {{/using}}
                        {{/get_custom_attr_value}}
                      </div>
                    {{else}}
                      <div class="owner tree-title-area capitalize">
                        {{#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 'audit'}}
                            {{#using audit=instance.audit}}
                              {{audit.status}} &mdash; {{audit.title}}
                            {{/using}}
                          {{/case}}
                          {{#case 'mapped_responses'}}
                            <i rel="tooltip" data-placement="right" {{#if_equals instance.request_type "documentation"}}data-original-title="# of attached documents" class="fa fa-files-o"{{else}}data-original-title="# of attached meetings" class="fa fa-calendar"{{/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 attr_type 'custom'}}
                  </div>
                {{/display_attr_list}}
              </div>
            </div>

            <div class="span{{display_options.action_width}}">
              <div class="show-details">
                <view-object-buttons instance="instance" open-is-hidden="is_subtree" />
              </div>
            </div>

          </div>
{'fraction_non_alphanumeric': 0.1321778878202076, 'fraction_numerical': 0.002285496619369584, 'mean_word_length': 1.1084119654687814, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 85, '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': '5388058', 'n_tokens_mistral': 2563, 'n_tokens_neox': 2448, 'n_words': 414}