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

<ul class="tree-structure new-tree">
  {{#each list}}
    {{#person}}
    <li data-model="true" {{data 'person'}} class="tree-item person">
      <div class="item-main">
        <div class="openclose">
          <div class="row-fluid">
            <div class="span9">
              <div class="item-data">
                <div class="tree-title-area">
                  {{firstnonempty name email}}
                  {{#if_match name '\\\\S'}}
                    {{#name}}
                      <span class="email">{{email}}</span>
                    {{/name}}
                  {{/if_match}}
                </div>
              </div>
            </div>
            <div class="span3">
              <div class="item-data">
                <div class="tree-title-area">
                  {{#if roles.length}}
                    <span class="role" title="{{#roles}}{{permission_summary}} {{/roles}}">
                      {{roles.0.role.permission_summary}}
                      {{#roles.1}}
                        + {{sum roles.length '-1'}}
                      {{/roles.1}}
                    </span>
                  {{else}}
                    <span class="no-role">
                      No Access
                    </span>
                  {{/if}}
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="tier-2-info item-content">
        <div class="tier-2-info-content">
          <div class="row-fluid">
            <div class="span6">
              <div class="profile-info">
                <ul>
                  {{#if_match name '\\\\S'}}
                    {{#name}}
                      <li>
                        <span class="name">
                          <strong>{{name}}</strong>
                        </span>
                      </li>
                    {{/name}}
                  {{/if_match}}
                  {{#if_match email '\\\\S'}}
                    {{#email}}
                      <li>
                        <span class="email">
                          <strong>Email:</strong> <a href='mailto:{{email}}' rel='tooltip' title='{{email}}' target="_blank">{{email}}</a>
                        </span>
                      </li>
                    {{/email}}
                  {{/if}}
                  {{#if_match company '\\\\S'}}
                    {{#company}}
                      <li>
                        <span class="company">
                          <strong>Company:</strong> {{company}}
                        </span>
                      </li>
                    {{/company}}
                  {{/if_match}}
                  <li>
                    <ul>
                    {{#roles}}
                      <li class="role">
                        {{role.permission_summary}}{{#if_equals role.permission_summary 'Auditor'}}: {{#with_mapping 'audit_via_context' user_role}}{{audit_via_context.0.instance.title}}{{/with_mapping}}{{/if_equal}}
                      </li>
                    {{/roles}}
                    </ul>
                  </li>
                </ul>
              </div>
            </div>
            <div class="span6 info person-info">
              <div>
                <div class="pull-right">
                  <a class="info-edit" data-modal-class="modal-wide" data-placement="left" data-toggle="user-roles-modal-selector" data-modal-selector-options="user_roles" data-person_id="{{ id }}" href="javascript://" rel="tooltip" title="Edit Authorizations">
                    <i class="grcicon-role-color"></i> <span>Edit Authorizations</span>
                  </a>
                </div>
              </div>
              {{#roles}}
              {{#if_equals role.permission_summary 'Mapped'}}
              {{#if allow_mapping}}
              {{#if user_role.result.mappings}}
              {{#is_allowed_all 'delete' user_role.result.mappings}}
                <a href="javascript://" class="info-action unmap pull-right" data-toggle="unmap">
                  {{#user_role.result}}<span class="result" {{data 'result'}}></span>{{/user_role.result}}
                  <i class="grcicon-remove"></i>
                  Unmap
                </a>
              {{/is_allowed_all}}
              {{/if}}
              {{/if}}
              {{/if_equals}}
              {{/roles}}
            </div>
          </div>
          {{#roles}}
            {{#if_equals role.permission_summary 'Mapped'}}
              {{{render '/static/mustache/base_objects/mappings_detail.mustache' result=user_role.result parent_instance=parent_instance}}}
            {{/if_equals}}
          {{/roles}}
          <div class="row-fluid">
            <div class="span6">
              <div>
                <a href="/people/{{id}}" class="info-action">
                  View Profile Page
                  <i class="grcicon-goto"></i>
                </a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </li>
    {{/person}}
  {{/each}}
  {{#if allow_mapping}}
  {{#is_allowed_to_map parent_instance model.shortName}}
  <li class="tree-footer tree-item tree-item-add">
    <div class="row-fluid">
      <div class="span12">

        <a
          href="javascript://"
          rel="tooltip"<commit_msg>Fixing people widget for public programs<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>
}}

<ul class="tree-structure new-tree">
  {{#list}}
    {{#person}}
    <li data-model="true" {{data 'person'}} class="tree-item person">
      <div class="item-main">
        <div class="openclose">
          <div class="row-fluid">
            <div class="span9">
              <div class="item-data">
                <div class="tree-title-area">
                  {{firstnonempty name email}}
                  {{#if_match name '\\\\S'}}
                    {{#name}}
                      <span class="email">{{email}}</span>
                    {{/name}}
                  {{/if_match}}
                </div>
              </div>
            </div>
            <div class="span3">
              <div class="item-data">
                <div class="tree-title-area">
                  {{#if roles.length}}
                    <span class="role" title="{{#roles}}{{permission_summary}} {{/roles}}">
                      {{roles.0.role.permission_summary}}
                      {{#roles.1}}
                        + {{sum roles.length '-1'}}
                      {{/roles.1}}
                    </span>
                  {{else}}
                    <span class="no-role">
                      No Access
                    </span>
                  {{/if}}
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="tier-2-info item-content">
        <div class="tier-2-info-content">
          <div class="row-fluid">
            <div class="span6">
              <div class="profile-info">
                <ul>
                  {{#if_match name '\\\\S'}}
                    {{#name}}
                      <li>
                        <span class="name">
                          <strong>{{name}}</strong>
                        </span>
                      </li>
                    {{/name}}
                  {{/if_match}}
                  {{#if_match email '\\\\S'}}
                    {{#email}}
                      <li>
                        <span class="email">
                          <strong>Email:</strong> <a href='mailto:{{email}}' rel='tooltip' title='{{email}}' target="_blank">{{email}}</a>
                        </span>
                      </li>
                    {{/email}}
                  {{/if}}
                  {{#if_match company '\\\\S'}}
                    {{#company}}
                      <li>
                        <span class="company">
                          <strong>Company:</strong> {{company}}
                        </span>
                      </li>
                    {{/company}}
                  {{/if_match}}
                  <li>
                    <ul>
                    {{#roles}}
                      <li class="role">
                        {{role.permission_summary}}{{#if_equals role.permission_summary 'Auditor'}}: {{#with_mapping 'audit_via_context' user_role}}{{audit_via_context.0.instance.title}}{{/with_mapping}}{{/if_equal}}
                      </li>
                    {{/roles}}
                    </ul>
                  </li>
                </ul>
              </div>
            </div>
            <div class="span6 info person-info">
              <div>
                <div class="pull-right">
                  <a class="info-edit" data-modal-class="modal-wide" data-placement="left" data-toggle="user-roles-modal-selector" data-modal-selector-options="user_roles" data-person_id="{{ id }}" href="javascript://" rel="tooltip" title="Edit Authorizations">
                    <i class="grcicon-role-color"></i> <span>Edit Authorizations</span>
                  </a>
                </div>
              </div>
              {{#roles}}
              {{#if_equals role.permission_summary 'Mapped'}}
              {{#if allow_mapping}}
              {{#if user_role.result.mappings}}
              {{#is_allowed_all 'delete' user_role.result.mappings}}
                <a href="javascript://" class="info-action unmap pull-right" data-toggle="unmap">
                  {{#user_role.result}}<span class="result" {{data 'result'}}></span>{{/user_role.result}}
                  <i class="grcicon-remove"></i>
                  Unmap
                </a>
              {{/is_allowed_all}}
              {{/if}}
              {{/if}}
              {{/if_equals}}
              {{/roles}}
            </div>
          </div>
          {{#roles}}
            {{#if_equals role.permission_summary 'Mapped'}}
              {{{render '/static/mustache/base_objects/mappings_detail.mustache' result=user_role.result parent_instance=parent_instance}}}
            {{/if_equals}}
          {{/roles}}
          <div class="row-fluid">
            <div class="span6">
              <div>
                <a href="/people/{{id}}" class="info-action">
                  View Profile Page
                  <i class="grcicon-goto"></i>
                </a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </li>
    {{/person}}
  {{/list}}
  {{#if allow_mapping}}
  {{#is_allowed_to_map parent_instance model.shortName}}
  <li class="tree-footer tree-item tree-item-add">
    <div class="row-fluid">
      <div class="span12">

        <a
          href="javascript://"
          rel="tooltip"
{'fraction_non_alphanumeric': 0.1620795107033639, 'fraction_numerical': 0.003597769382982551, 'mean_word_length': 1.1544274365433056, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 0, '>': 203, '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': '1380047', 'n_tokens_mistral': 3110, 'n_tokens_neox': 2919, 'n_words': 547}