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


{{!tree node mustache}}
<li class="tree-item" data-object-id="{{instance.id}}" data-object-type="{{instance.class.table_singular}}">
  <div class="item-main" data-model="true" {{#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">
                {{#if_draw_icon instance}}
                  <i class="grcicon-{{instance.class.table_singular}}-color"></i>
                {{/if_draw_icon}}
                {{instance.title}}
              </div>
            </div>
            {{#instance}}
              <div class="span2">
                <div class="owner tree-title-area">
                  {{#if instance.contact}}
                    {{#using contact=instance.contact}}
                      {{{renderLive '/static/mustache/people/popover.mustache' person=contact}}}
                    {{/using}}
                  {{else}}
                    Not defined
                  {{/if}}
                </div>
              </div>

              <div class="span1">
                <div class="code tree-title-area">
                  {{slug}}
                </div>
              </div>
            {{/instance}}

            <div class="span1">
              <div class="state-value state-{{to_class instance.status '_'}} tree-title-area">
                {{instance.status}}
              </div>
            </div>

            <div class="span4">
              <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>
              <ul class="tree-action-list">
                {{#infer_roles instance}}
                  <li>
                    <div class="item-data">
                      <div class="tree-title-area">
                        <span class="role">
                          {{.}}
                        </span>
                      </div>
                    </div>
                  </li>
                {{/infer_roles}}
                {{#with_page_object_as 'page_object'}}
                  {{#if_instance_of page_object 'Person'}}

                    {{^instance.contact}}
                      <li>
                        <div class="counter">
                          <i class="grcicon-people-warning"></i>
                        </div>
                      </li>
                    {{/instance.contact}}

                    {{#mapping_count instance 'related_owned_objects'}}
                      <li>
                        <div class="counter">
                          <i class="grcicon-object-black"></i>
                            {{.}}
                        </div>
                      </li>
                      {{else}}
                      <li>
                        <div class="counter">
                          <i class="grcicon-object-black"></i>
                            ...
                        </div>
                      </li>
                    {{/mapping_count}}
                    {{else}}
                    {{^instance.contact}}
                      <li>
                        <div class="counter">
                          <i class="grcicon-people-warning"></i>
                        </div>
                      </li>
                    {{/instance.contact}}
                  {{/if_instance_of}}
                {{/with_page_object_as}}
              </ul>

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

</li><commit_msg>CORE-1037 Show Requests and responses in audit tree<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>
}}


{{!tree node mustache}}
<li class="tree-item" data-object-id="{{instance.id}}" data-object-type="{{instance.class.table_singular}}">
  <div class="item-main" data-model="true" {{#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">
                {{#if_draw_icon instance}}
                  <i class="grcicon-{{instance.class.table_singular}}-color"></i>
                {{/if_draw_icon}}
                {{instance.title}}
              </div>
            </div>
            {{#instance}}
              <div class="span2">
                <div class="owner tree-title-area">
                  {{#if instance.contact}}
                    {{#using contact=instance.contact}}
                      {{{renderLive '/static/mustache/people/popover.mustache' person=contact}}}
                    {{/using}}
                  {{else}}
                    Not defined
                  {{/if}}
                </div>
              </div>

              <div class="span1">
                <div class="code tree-title-area">
                  {{slug}}
                </div>
              </div>
            {{/instance}}

            <div class="span1">
              <div class="state-value state-{{to_class instance.status '_'}} tree-title-area">
                {{instance.status}}
              </div>
            </div>

            <div class="span4">
              <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>
              <ul class="tree-action-list">
                {{#infer_roles instance}}
                  <li>
                    <div class="item-data">
                      <div class="tree-title-area">
                        <span class="role">
                          {{.}}
                        </span>
                      </div>
                    </div>
                  </li>
                {{/infer_roles}}
                {{#with_page_object_as 'page_object'}}
                  {{#if_instance_of page_object 'Person'}}

                    {{^instance.contact}}
                      <li>
                        <div class="counter">
                          <i class="grcicon-people-warning"></i>
                        </div>
                      </li>
                    {{/instance.contact}}

                    {{#mapping_count instance 'related_owned_objects'}}
                      <li>
                        <div class="counter">
                          <i class="grcicon-object-black"></i>
                            {{.}}
                        </div>
                      </li>
                      {{else}}
                      <li>
                        <div class="counter">
                          <i class="grcicon-object-black"></i>
                            ...
                        </div>
                      </li>
                    {{/mapping_count}}
                    {{else}}
                    {{^instance.contact}}
                      <li>
                        <div class="counter">
                          <i class="grcicon-people-warning"></i>
                        </div>
                      </li>
                    {{/instance.contact}}
                  {{/if_instance_of}}
                {{/with_page_object_as}}
              </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.0}}
          <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>
        {{/child_options.0}}
      {{/if}}
    </div>
  </div>
  {{/if}}

</li>
{'fraction_non_alphanumeric': 0.15467263570229434, 'fraction_numerical': 0.003357582540570789, 'mean_word_length': 1.080074487895717, 'pattern_counts': {'":': 0, '<': 171, '<?xml version=': 0, '>': 172, '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': '2358536', 'n_tokens_mistral': 2404, 'n_tokens_neox': 2245, 'n_words': 416}