<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 rq-{{to_class instance.status}} {{#if_helpers '\
      #if_null' instance.assignee '\
      or #if_null' instance.objective '\
         and #is_allowed' 'update' 'Objective' context=null}}rq-warning{{/if_helpers}}" 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="span3">
          <div class="item-data">
            <div class="tree-title-area">
              <i class="grcicon-request-color"></i>
              {{#using objective=instance.objective}}
                {{objective.title}}
              {{/using}}
              {{#if_helpers '\
                #if_null' instance.objective '\
                and ^is_allowed' "update" "Objective" context=null}}
                  NEW
              {{/if_helpers}}
            </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>
        {{#using assignee=instance.assignee}}
          <div class="objective-selector">
              {{#if_helpers '\
                ^if' allow_mapping_or_creating '\
                or ^is_allowed' 'update' instance '\
              ' _1_context=instance.context.id}}
                {{{renderLive '/static/mustache/people/popover.mustache' person=assignee}}}
              {{else}}
                <input type="text" name="assignee.name" data-lookup="Person" class="span8 short-field" value="{{firstnonempty assignee.name assignee.email ''}}">
              {{/if_helpers}}
          </div>
        {{/using}}
        </div>
        <div class="span3" {{ (el) -> el.ggrc_controllers_quick_form({ instance : el.closest('[data-model]').data('model')}); }}>
          <span class="pull-left request-type black-font">type:</span>
          {{#with_mapping 'responses' instance}}
            {{#if_helpers '\
              ^if' allow_mapping_or_creating '\
              or ^is_allowed' 'update' instance '\
              or #if' responses.length '\
            ' _1_context=instance.context.id}}
              <span class="request-readonly" rel="tooltip" title="Can't change Request Type since responses already exist"><i class="grcicon-lock-small"></i></span>
              <select name="request_type" class="span8 short-field" disabled="true" readonly="true">
                {{#iterate 'Documentation' 'Interview' 'Population Sample'}}
                <option {{#if_equals iterator.toLowerCase instance.request_type}}selected="true"{{/if_equals}}>{{iterator}}</option>
                {{/iterate}}
              </select>
            {{else}}<commit_msg>Show request description and mising objective<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 rq-{{to_class instance.status}} {{#if_helpers '\
      #if_null' instance.assignee '\
      or #if_null' instance.objective '\
         and #is_allowed' 'update' 'Objective' context=null}}rq-warning{{/if_helpers}}" 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="span2">
          <div class="item-data">
            <div class="tree-title-area">
              <i class="grcicon-request-color"></i>
              {{instance.description}}
            </div>
          </div>
        </div>
        <div class="span2">
          <div class="item-data">
            <div class="tree-title-area">
              <i class="grcicon-objective-color"></i>
              {{#using objective=instance.objective}}
                {{#if objective}}
                  {{objective.title}}
                {{else}}
                  Missing Objective
                {{/objective}}
              {{/using}}
              {{#if_helpers '\
                #if_null' instance.objective '\
                and ^is_allowed' "update" "Objective" context=null}}
                  NEW
              {{/if_helpers}}
            </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>
        {{#using assignee=instance.assignee}}
          <div class="objective-selector">
              {{#if_helpers '\
                ^if' allow_mapping_or_creating '\
                or ^is_allowed' 'update' instance '\
              ' _1_context=instance.context.id}}
                {{{renderLive '/static/mustache/people/popover.mustache' person=assignee}}}
              {{else}}
                <input type="text" name="assignee.name" data-lookup="Person" class="span8 short-field" value="{{firstnonempty assignee.name assignee.email ''}}">
              {{/if_helpers}}
          </div>
        {{/using}}
        </div>
        <div class="span2" {{ (el) -> el.ggrc_controllers_quick_form({ instance : el.closest('[data-model]').data('model')}); }}>
          <span class="pull-left request-type black-font"></span>
          {{#with_mapping 'responses' instance}}
            {{#if_helpers '\
              ^if' allow_mapping_or_creating '\
              or ^is_allowed' 'update' instance '\
              or #if' responses.length '\
            ' _1_context=instance.context.id}}
              <span class="request-readonly" rel="tooltip" title="Can't change Request Type since responses already exist"><i class="grcicon-lock-small"></i></span>
              <select name="request_type" class="span8 short-field" disabled="true" readonly="true">
                {{#iterate 'Documentation' 'Interview' 'Population Sample'}}
                <option {{#if_equals iterator.toLowerCase instance.request_type}}selected="true"{{/if_equals}}>{{iterator}}</option>
                {{/iterate}}
              </select>
            {{else}}
{'fraction_non_alphanumeric': 0.16618867924528302, 'fraction_numerical': 0.004075471698113208, 'mean_word_length': 2.2528227785959745, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 83, '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': '6073585', 'n_tokens_mistral': 1942, 'n_tokens_neox': 1895, 'n_words': 362}