<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 request-list request-redesign rq-{{to_class instance.status}}" data-object-id="{{instance.id}}" data-object-type="{{instance.class.table_singular}}">
  <div class="item-main" {{#instance}}{{data 'model'}}{{/instance}} data-model="true">
    <a href="javascript://" class="openclose">
      <div class="row-fluid">
        <div class="span4" {{ (el) -> el.ggrc_controllers_quick_form({ instance : el.closest('[data-model]').data('model')}); }}>
          <div class="item-data">
	          <div class="type">
	            <i class="grcicon-{{remove_space instance.request_type}}" rel="tooltip" data-placement="top" data-original-title="{{instance.request_type}}"></i>
	            <div class="state-type dropdown">
	              {{#if_equals 'Draft' instance.status}}
	              <span class="dropdown-toggle" data-toggle="dropdown" role="button">
	                <i class="grcicon-carot"></i>
	              </span>
	              
	              <ul class="dropdown-menu" aria-labelledby="drop2" role="menu">
	                {{#iterate 'Documentation' 'Interview' 'Population Sample'}}
	                <li data-value="{{iterator.toLowerCase}}" data-name="request_type">
	                  <span>
	                    <i class="grcicon-{{remove_space iterator.toLowerCase}}"></i>
	                    {{iterator}} 
	                  </span>
	                </li>
	                {{/iterate}}
	              </ul>
	              {{else}}
	              <span rel="tooltip" data-placement="top" data-original-title="# of Responses">{{instance.responses.length}}</span>
	              {{/if_equals}}
	            </div>
	          </div>
	          <div class="tree-title-area">
	            <span>{{strip_html_tags instance.description}}</span>
	          </div>
          </div>
        </div>
        <div class="span2">
          <div class="item-data">
            <div class="tree-title-area">
              {{#using objective=instance.objective}}
                {{#if objective}}
                  <i class="grcicon-objective-color"></i>
                  {{objective.title}}
                {{else}}
                  {{#is_allowed "update" "Objective" context=null}}
                  <a class="utility-link controls danger" href="javascript://" data-toggle="modal-ajax-form" data-modal-reset="reset" data-modal-class="modal-wide" data-object-singular="Request" data-object-plural="requests" data-object-id="{{instance.id}}">
			              <i class="grcicon-objective-danger"></i>
			              Map Objective
			            </a>
                  {{else}}
                  {{/is_allowed}}
                {{/if}}
              {{/using}}
            </div>
          </div>
        </div>
        <div class="span2" {{ (el) -> el.ggrc_controllers_quick_form({ instance : el.closest('[data-model]').data('model')}); }}>
	        <i class="grcicon-person-green pull-left"></i>
	        {{#if_can_edit_request instance}}
            {{#using assignee=instance.assignee}}
              <div class="objective-selector">
                <input type="text" name="assignee.name" data-lookup="Person" class="span8 short-field" value="{{firstnonempty assignee.name assignee.email ''}}">
              </div>
            {{/using}}
          {{else}}
            <div class="item-data">
              <div class="tree-title-area">
                {{firstnonempty assignee.name assignee.email ''}}
              </div>
            </div>
          {{/if_can_edit_request}}
        </div>
        
        <div class="span4">
          <div class="control-wrap">
            <div class="date">
              {{#if instance.due_on}}
              <span>{{localize_date instance.due_on}}</span>
              {{/if}}
            </div>
            <div class="request-control" {{ (el) -> el.ggrc_controllers_quick_form({ instance : el.closest('[data-model]').data('model')}); }}>
              {{#if_equals instance.status "Draft"}}
                {{#if_auditor instance}}
                <button data-name="status" data-value="Requested" class="btn btn-warning">Request</button>
                {{else}}
                <small class="gray"><em>{{instance.status}}</em></small>
                {{/if_auditor}}
              {{/if_equals}}<commit_msg>Commented out pop-out from PBC Requests<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 request-list request-redesign rq-{{to_class instance.status}}" data-object-id="{{instance.id}}" data-object-type="{{instance.class.table_singular}}">
  <div class="item-main" {{#instance}}{{data 'model'}}{{/instance}} data-model="true">
    <a href="javascript://" class="openclose">
      <div class="row-fluid">
        <div class="span4" {{ (el) -> el.ggrc_controllers_quick_form({ instance : el.closest('[data-model]').data('model')}); }}>
          <div class="item-data">
	          <div class="type">
	            <i class="grcicon-{{remove_space instance.request_type}}" rel="tooltip" data-placement="top" data-original-title="{{instance.request_type}}"></i>
	            <div class="state-type dropdown">
	              {{#if_equals 'Draft' instance.status}}
	              <span class="dropdown-toggle" data-toggle="dropdown" role="button">
	                <i class="grcicon-carot"></i>
	              </span>
	              
	              <ul class="dropdown-menu" aria-labelledby="drop2" role="menu">
	                {{#iterate 'Documentation' 'Interview' 'Population Sample'}}
	                <li data-value="{{iterator.toLowerCase}}" data-name="request_type">
	                  <span>
	                    <i class="grcicon-{{remove_space iterator.toLowerCase}}"></i>
	                    {{iterator}} 
	                  </span>
	                </li>
	                {{/iterate}}
	              </ul>
	              {{else}}
	              <span rel="tooltip" data-placement="top" data-original-title="# of Responses">{{instance.responses.length}}</span>
	              {{/if_equals}}
	            </div>
	          </div>
	          <div class="tree-title-area">
	            <span>{{strip_html_tags instance.description}}</span>
	          </div>
          </div>
        </div>
        <div class="span2">
          <div class="item-data">
            <div class="tree-title-area">
              {{#using objective=instance.objective}}
                {{#if objective}}
                  <i class="grcicon-objective-color"></i>
                  {{objective.title}}
                {{else}}
                  {{#is_allowed "update" "Objective" context=null}}
                  <a class="utility-link controls danger" href="javascript://" data-toggle="modal-ajax-form" data-modal-reset="reset" data-modal-class="modal-wide" data-object-singular="Request" data-object-plural="requests" data-object-id="{{instance.id}}">
			              <i class="grcicon-objective-danger"></i>
			              Map Objective
			            </a>
                  {{else}}
                  {{/is_allowed}}
                {{/if}}
              {{/using}}
            </div>
          </div>
        </div>
        <div class="span2" {{ (el) -> el.ggrc_controllers_quick_form({ instance : el.closest('[data-model]').data('model')}); }}>
	        <i class="grcicon-person-green pull-left"></i>
	        {{#if_can_edit_request instance}}
            {{#using assignee=instance.assignee}}
              <div class="objective-selector">
                <!--<input type="text" name="assignee.name" data-lookup="Person" class="span8 short-field" value="{{firstnonempty assignee.name assignee.email ''}}">-->
                <input type="text" name="assignee.name" class="span8 short-field" value="{{firstnonempty assignee.name assignee.email ''}}">
              </div>
            {{/using}}
          {{else}}
            <div class="item-data">
              <div class="tree-title-area">
                {{firstnonempty assignee.name assignee.email ''}}
              </div>
            </div>
          {{/if_can_edit_request}}
        </div>
        
        <div class="span4">
          <div class="control-wrap">
            <div class="date">
              {{#if instance.due_on}}
              <span>{{localize_date instance.due_on}}</span>
              {{/if}}
            </div>
            <div class="request-control" {{ (el) -> el.ggrc_controllers_quick_form({ instance : el.closest('[data-model]').data('model')}); }}>
              {{#if_equals instance.status "Draft"}}
                {{#if_auditor instance}}
                <button data-name="status" data-value="Requested" class="btn btn-warning">Request</button>
                {{else}}
                <small class="gray"><em>{{instance.status}}</em></small>
                {{/if_auditor}}
              {{/if_equals}}
{'fraction_non_alphanumeric': 0.17346053772766695, 'fraction_numerical': 0.002710320901994796, 'mean_word_length': 1.9304320203303684, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 155, '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': '4931852', 'n_tokens_mistral': 2746, 'n_tokens_neox': 2571, 'n_words': 456}