<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 governance" data-object-id="{{instance.id}}" 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">
              {{#infer_roles instance}}
                <li>
                  <div class="item-data">
                    <div class="tree-title-area">
                      <span class="role">
                        {{.}}
                      </span>
                    </div>
                  </div>
                </li>
              {{/infer_roles}}
              <li>
                {{{renderLive '/static/mustache/base_objects/relevance_action.mustache' instance=instance parent_instance=parent_instance}}}
              </li>
              {{#with_mapping_count instance 'related_objects'}}
                {{#prune_context}}
                  <li>
                    <div class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped objects">
                      <i class="grcicon-object-black"></i>
                        {{#if count}}
                          <span>{{count}}</span>
                        {{else}}
                          <strong class="error">0</strong>
                        {{/if}}
                    </div>
                  </li>
                {{/prune_context}}
              {{/with_mapping_count}}
              
              {{#pack list=instance.objectives}}
                {{#prune_context}}
                  <li>
                    <div class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped objectives">
                      <i class="grcicon-objective-black"></i>
                        {{#if list.length}} 
                          <span>{{list.length}}</span>
                        {{else}}
                          <strong class="error">0</strong>
                        {{/if}}
                    </div>
                  </li>
                {{/prune_context}}
              {{/pack}}
              
              {{#pack list=instance.controls}}
                {{#prune_context}}
                  <li>
                    <div class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped controls">
                      <i class="grcicon-control-black"></i>
                      {{#if list.length}} 
                        <span>{{list.length}}</span>
                      {{else}}
                        <strong class="error">0</strong>
                      {{/if}}
                    </div>
                  </li>
                {{/prune_context}}
              {{/pack}}
            </ul>
            
            <div class="item-data">
              <div class="tree-title-area">
                <i class="grcicon-{{instance.class.table_singular}}-color"></i>
                {{instance.title}}
              </div>
            </div>
            
          </div>
        </div>
      </div>
    </div>

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

        <div class="row-fluid">

          <div class="span12">
            {{#if_helpers '\
              if_instance_of' instance "Section" '\
              and if_instance_of' parent_instance "Directive"}}
            {{#is_allowed 'update' instance}}
              <a href="javascript://" class="info-action pull-right" data-toggle="modal-ajax-form" data-object-plural="{{model.table_plural}}" data-object-singular="{{model.model_singular}}" data-object-singular-override="{{#if_equals instance.directive.type 'Contract'}}Clause{{/if_equals}}" data-modal-reset="reset" data-modal-class="modal-wide" title="Edit {{instance.class.model_singular}}" data-object-id="{{instance.id}}">
                <i class="grcicon-edit"></i>
                Edit {{instance.class.model_singular}}
              </a>
            {{/is_allowed}}
            {{else}}
            {{#if allow_mapping}}
            {{#if mappings}}
            {{#is_allowed_all 'delete' mappings}}
            {{^is_dashboard}}
              <a href="javascript://" class="info-action unmap pull-right" data-toggle="unmap">
                {{#result}}<span class="result" {{data 'result'}}></span>{{/result}}
                <i class="grcicon-remove"></i>
                Unmap
              </a>
            {{/is_dashboard}}
            {{/is_allowed_all}}
            {{/if}}
            {{/if}}
            {{/if_helpers}}
          </div>

        </div>

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

        {{#if_instance_of parent_instance "Section"}}
        {{#using directive=instance.directive}}
          <div class="row-fluid">
            <div class="span12">
              Part of
              <a href="{{directive.viewLink}}">
                <i class="grcicon-{{directive.class.table_singular}}-color"></i>
                {{directive.title}}
              </a>
            </div>
          </div><commit_msg>Restore display of "Part of <Directive>" in Section 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>
}}


  <li class="tree-item governance" data-object-id="{{instance.id}}" 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">
              {{#infer_roles instance}}
                <li>
                  <div class="item-data">
                    <div class="tree-title-area">
                      <span class="role">
                        {{.}}
                      </span>
                    </div>
                  </div>
                </li>
              {{/infer_roles}}
              <li>
                {{{renderLive '/static/mustache/base_objects/relevance_action.mustache' instance=instance parent_instance=parent_instance}}}
              </li>
              {{#with_mapping_count instance 'related_objects'}}
                {{#prune_context}}
                  <li>
                    <div class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped objects">
                      <i class="grcicon-object-black"></i>
                        {{#if count}}
                          <span>{{count}}</span>
                        {{else}}
                          <strong class="error">0</strong>
                        {{/if}}
                    </div>
                  </li>
                {{/prune_context}}
              {{/with_mapping_count}}
              
              {{#pack list=instance.objectives}}
                {{#prune_context}}
                  <li>
                    <div class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped objectives">
                      <i class="grcicon-objective-black"></i>
                        {{#if list.length}} 
                          <span>{{list.length}}</span>
                        {{else}}
                          <strong class="error">0</strong>
                        {{/if}}
                    </div>
                  </li>
                {{/prune_context}}
              {{/pack}}
              
              {{#pack list=instance.controls}}
                {{#prune_context}}
                  <li>
                    <div class="counter" rel="tooltip" data-placement="left" data-original-title="# of mapped controls">
                      <i class="grcicon-control-black"></i>
                      {{#if list.length}} 
                        <span>{{list.length}}</span>
                      {{else}}
                        <strong class="error">0</strong>
                      {{/if}}
                    </div>
                  </li>
                {{/prune_context}}
              {{/pack}}
            </ul>
            
            <div class="item-data">
              <div class="tree-title-area">
                <i class="grcicon-{{instance.class.table_singular}}-color"></i>
                {{instance.title}}
              </div>
            </div>
            
          </div>
        </div>
      </div>
    </div>

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

        <div class="row-fluid">

          <div class="span12">
            {{#if_helpers '\
              if_instance_of' instance "Section" '\
              and if_instance_of' parent_instance "Directive"}}
            {{#is_allowed 'update' instance}}
              <a href="javascript://" class="info-action pull-right" data-toggle="modal-ajax-form" data-object-plural="{{model.table_plural}}" data-object-singular="{{model.model_singular}}" data-object-singular-override="{{#if_equals instance.directive.type 'Contract'}}Clause{{/if_equals}}" data-modal-reset="reset" data-modal-class="modal-wide" title="Edit {{instance.class.model_singular}}" data-object-id="{{instance.id}}">
                <i class="grcicon-edit"></i>
                Edit {{instance.class.model_singular}}
              </a>
            {{/is_allowed}}
            {{else}}
            {{#if allow_mapping}}
            {{#if mappings}}
            {{#is_allowed_all 'delete' mappings}}
            {{^is_dashboard}}
              <a href="javascript://" class="info-action unmap pull-right" data-toggle="unmap">
                {{#result}}<span class="result" {{data 'result'}}></span>{{/result}}
                <i class="grcicon-remove"></i>
                Unmap
              </a>
            {{/is_dashboard}}
            {{/is_allowed_all}}
            {{/if}}
            {{/if}}
            {{/if_helpers}}
          </div>

        </div>

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

        {{#if_instance_of instance "Section"}}
        {{#using directive=instance.directive}}
          <div class="row-fluid">
            <div class="span12">
              Part of
              <a href="{{directive.viewLink}}">
                <i class="grcicon-{{directive.class.table_singular}}-color"></i>
                {{directive.title}}
              </a>
            </div>
          </div>
{'fraction_non_alphanumeric': 0.1580583865952669, 'fraction_numerical': 0.0032820867161858698, 'mean_word_length': 1.3453514279927081, 'pattern_counts': {'":': 0, '<': 194, '<?xml version=': 0, '>': 194, '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': '1077812', 'n_tokens_mistral': 3177, 'n_tokens_neox': 2980, 'n_words': 535}