<commit_before>{{!div class="modal-body"}}
<div class="hideable-holder">
{{#instance}}
<form action="javascript://">
  {{> /static/mustache/base_objects/form_restore.mustache}}
  <div class="row-fluid">
    <div class="span9">
      <label>
        Response
        <span class="required">*</span>
      </label>
      <div class="wysiwyg-area">
          <textarea id="response_description" tabindex="1" class="input-block-level double wysihtml5" placeholder="Response Title" name="description" autofocus>{{{description}}}</textarea>
      </div>
    </div>
    
    {{#using contact=instance.contact}}
    <div class="span3">
      <label>
        Assignee
        <span class="required">*</span>
      </label>
      <div class="objective-selector">
          {{#using request=instance.request}}
          {{#using request_assignee=request.assignee}}
            {{#if new_object_form}}
              <input type="hidden" name="contact.id" value="{{request_assignee.id}}">
            {{else}}
              <input type="hidden" name="contact.id" value="{{contact.id}}">
            {{/if}}
            <span class="read-only oneline">
              <i class="grcicon-person-green pull-left icon-field"></i>
              {{{renderLive '/static/mustache/people/popover.mustache' person=contact}}}
            </span>
          {{/using}}
          {{/using}}
      </div>
    </div>
    {{/using}}
  </div>
  
  <div class="row-fluid">
    {{#if_instance_of instance "DocumentationResponse"}}
    <div class="span6 hidable">
      <ggrc-modal-connector
        instance="instance"
        source_mapping="documents"
        mapping="documents"
        deferred="true"
        >
        <label class="border-l">
          Documents
          <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
        </label>
        {{#each list}}
        <div class="oneline">
          <a class="url" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/static/mustache/pbc/iframe_tooltip.mustache' url=link}}" href="{{schemed_url link}}" target="_blank">
            {{firstnonempty title link}}
          </a>
          <a href="javascript://" class="unmap" data-toggle="unmap">
            <span class="result" {{data 'result'}}></span>
            <i class="grcicon-deleted"></i>
          </a>
        </div>
        {{/each}}
        {{^list.length}}
          <span class="gray"><em>No References</em></span>
        {{/list.length}}
        {{^if_hooks 'DocumentationResponse.modal_connector'}}
        {{#prune_context}}
          <br>
          <div class="objective-selector">
            <div style="float:left">
              <label for="link" style="line-height:29px">Add Evidence URL: &nbsp;</label>
            </div>
            <div style="float:left"><input type="text" tabindex="3" name="link" placeholder="Enter Evidence URL here" value="{{attributes.link}}"></div>
            <input type="hidden" name="context" model="Context" value="{{instance.context.id}}">
            <div style="clear:both; height:1px">&nbsp;</div>
            <div style="float:left">
              <label for="title" style="line-height:29px">Evidence title (optional): &nbsp;</label>
            </div>
            <div style="float:left"><input type="text" tabindex="4" name="title" placeholder="Enter title here" value="{{attributes.title}}"></div>
            <div style="clear:both">
              <a href="javascript://" class="btn btn-success {{^attributes.title}}disabled{{/attributes.title}} no-float" data-toggle="submit">Add</a>
            </div>
          </div>
        {{/prune_context}}
        {{/if_hooks}}
        <div tabindex="5"></div><!this dummy div is needed for save&add another button for hidden elements for the below dynamically loaded g-drive connector buttons. -->
        {{{render_hooks 'DocumentationResponse.modal_connector'}}}
      </ggrc-modal-connector>
    </div>
    {{/if_instance_of}}

    {{#if_instance_of instance "InterviewResponse"}}
    <div class="span6 hidable">
      <ggrc-modal-connector
        instance="instance"
        source_mapping="meetings"
        mapping="meetings"
        deferred="true"
        >
        <label class="border-l">
          Meetings
          <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
        </label>
        {{#each list}}
        <a class="url" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/static/mustache/pbc/iframe_tooltip.mustache' url=title}}" href="{{schemed_url title}}" target="_blank">
          {{title}}
        </a>
        <a href="javascript://" class="unmap" data-toggle="unmap">
          <span class="result" {{data 'result'}}></span>
          <i class="grcicon-deleted"></i>
        </a>
        {{/each}}
        {{^list.length}}
          <span class="gray"><em>No meetings</em></span>
        {{/list.length}}
        {{#prune_context}}
          <div class="objective-selector">
            <br>
            <div style="float:left">
              <label for="title" style="line-height:29px">Add Meeting URL: &nbsp;</label>
            </div>
            <div style="float:left; margin-right: 4px;"><input tabindex="3" type="text" name="title" placeholder="Enter Meeting URL here" value="{{attributes.title}}"></div>
            <input type="hidden" name="context" model="Context" value="{{instance.context.id}}">
            <input type="hidden" name="start_at" value="{{localize_datetime}}">
            <input type="hidden" name="end_at" value="{{localize_datetime}}">
            <a href="javascript://" class="btn btn-success {{^attributes.title}}disabled{{/attributes.title}} no-float" data-toggle="submit" tabindex="4">Add</a>
          </div>
        {{/prune_context}}
      </ggrc-modal-connector>
    </div>
    {{/if_instance_of}}

    <div class="span6 hidable">
      <ggrc-modal-connector
        instance="instance"
        source_mapping="business_objects"
        deferred="true"
        >
        <label class="border-l">
          Mapped Objects
          <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
        </label>
        {{#each list}}
        <div class="oneline">
          <a class="url" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/static/mustache/pbc/iframe_tooltip.mustache' url=link}}" href="{{schemed_url link}}" target="_blank">
            {{title}}
          </a>
          <a href="javascript://" class="unmap" data-toggle="unmap">
            <span class="result" {{data 'result'}}></span>
            <i class="grcicon-deleted"></i>
          </a>
        </div>
        {{/each}}
        {{^list.length}}
          <span class="gray"><em>No mapped objects</em></span>
        {{/list.length}}
        {{#prune_context}}
          <div class="objective-selector">         
            <div style="clear:both">
              <br>
               <a class="section-add section-sticky btn"
                 href="javascript://" rel="tooltip"
                 {{#instance}}{{data 'join-object'}}{{/instance}}
                 data-placement="left"
                 data-toggle="multitype-object-modal-selector"
                 data-deferred="true"
                 data-object-source="true"
                 data-join-mapping="business_objects"
                 data-join-object-id="{{instance.id}}"
                 data-join-object-type="{{instance.class.model_singular}}"
                 {{#if_instance_of instance 'DocumentationResponse'}}data-exclude-option-types="Document"{{/if_instance_of}}
                 data-original-title="Map Object to this {{instance.class.title_singular}}" tabindex="6">
                Map Objects
              </a>
            </div>
          </div>
        {{/prune_context}}
      </ggrc-modal-connector><commit_msg>assignee should probably be editable in main form<commit_after>{{!div class="modal-body"}}
<div class="hideable-holder">
{{#instance}}
<form action="javascript://">
  {{> /static/mustache/base_objects/form_restore.mustache}}
  <div class="row-fluid">
    <div class="span9">
      <label>
        Response
        <span class="required">*</span>
      </label>
      <div class="wysiwyg-area">
          <textarea id="response_description" tabindex="1" class="input-block-level double wysihtml5" placeholder="Response Title" name="description" autofocus>{{{description}}}</textarea>
      </div>
    </div>

    {{#using contact=instance.contact}}
    <div class="span3">
      <label>
        Assignee
        <span class="required">*</span>
      </label>
      <div class="objective-selector">
          {{#using request=instance.request}}
          {{#using request_assignee=request.assignee}}
            {{#if new_object_form}}
              <input type="hidden" name="contact.id" value="{{request_assignee.id}}">
            {{else}}
              <input type="hidden" name="contact.id" value="{{contact.id}}">
            {{/if}}
            {{#if_helpers "\
              #if_can_edit_request" instance "\
              and ^if_auditor" instance _1_include_admin=false "\
              or #is_allowed" "__GGRC_ADMIN__" instance }}
              <div class="objective-selector">
                <input type="text" name="request_assignee.name" data-lookup="Person" data-params="Person:is_enabled=1" class="input-block-level search-icon" placeholder="Enter text to search for Assignee" null-if-empty="true" value="{{firstnonempty request_assignee.name request_assignee.email ''}}">
              </div>
            {{else}}
              <p class="read-only oneline">
                <i class="grcicon-person-green pull-left icon-field"></i>
                {{{renderLive '/static/mustache/people/popover.mustache' person=request_assignee}}}
              </p>
            {{/if_helpers}}
          {{/using}}
          {{/using}}
      </div>
    </div>
    {{/using}}
  </div>

  <div class="row-fluid">
    {{#if_instance_of instance "DocumentationResponse"}}
    <div class="span6 hidable">
      <ggrc-modal-connector
        instance="instance"
        source_mapping="documents"
        mapping="documents"
        deferred="true"
        >
        <label class="border-l">
          Documents
          <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
        </label>
        {{#each list}}
        <div class="oneline">
          <a class="url" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/static/mustache/pbc/iframe_tooltip.mustache' url=link}}" href="{{schemed_url link}}" target="_blank">
            {{firstnonempty title link}}
          </a>
          <a href="javascript://" class="unmap" data-toggle="unmap">
            <span class="result" {{data 'result'}}></span>
            <i class="grcicon-deleted"></i>
          </a>
        </div>
        {{/each}}
        {{^list.length}}
          <span class="gray"><em>No References</em></span>
        {{/list.length}}
        {{^if_hooks 'DocumentationResponse.modal_connector'}}
        {{#prune_context}}
          <br>
          <div class="objective-selector">
            <div style="float:left">
              <label for="link" style="line-height:29px">Add Evidence URL: &nbsp;</label>
            </div>
            <div style="float:left"><input type="text" tabindex="3" name="link" placeholder="Enter Evidence URL here" value="{{attributes.link}}"></div>
            <input type="hidden" name="context" model="Context" value="{{instance.context.id}}">
            <div style="clear:both; height:1px">&nbsp;</div>
            <div style="float:left">
              <label for="title" style="line-height:29px">Evidence title (optional): &nbsp;</label>
            </div>
            <div style="float:left"><input type="text" tabindex="4" name="title" placeholder="Enter title here" value="{{attributes.title}}"></div>
            <div style="clear:both">
              <a href="javascript://" class="btn btn-success {{^attributes.title}}disabled{{/attributes.title}} no-float" data-toggle="submit">Add</a>
            </div>
          </div>
        {{/prune_context}}
        {{/if_hooks}}
        <div tabindex="5"></div><!this dummy div is needed for save&add another button for hidden elements for the below dynamically loaded g-drive connector buttons. -->
        {{{render_hooks 'DocumentationResponse.modal_connector'}}}
      </ggrc-modal-connector>
    </div>
    {{/if_instance_of}}

    {{#if_instance_of instance "InterviewResponse"}}
    <div class="span6 hidable">
      <ggrc-modal-connector
        instance="instance"
        source_mapping="meetings"
        mapping="meetings"
        deferred="true"
        >
        <label class="border-l">
          Meetings
          <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
        </label>
        {{#each list}}
        <a class="url" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/static/mustache/pbc/iframe_tooltip.mustache' url=title}}" href="{{schemed_url title}}" target="_blank">
          {{title}}
        </a>
        <a href="javascript://" class="unmap" data-toggle="unmap">
          <span class="result" {{data 'result'}}></span>
          <i class="grcicon-deleted"></i>
        </a>
        {{/each}}
        {{^list.length}}
          <span class="gray"><em>No meetings</em></span>
        {{/list.length}}
        {{#prune_context}}
          <div class="objective-selector">
            <br>
            <div style="float:left">
              <label for="title" style="line-height:29px">Add Meeting URL: &nbsp;</label>
            </div>
            <div style="float:left; margin-right: 4px;"><input tabindex="3" type="text" name="title" placeholder="Enter Meeting URL here" value="{{attributes.title}}"></div>
            <input type="hidden" name="context" model="Context" value="{{instance.context.id}}">
            <input type="hidden" name="start_at" value="{{localize_datetime}}">
            <input type="hidden" name="end_at" value="{{localize_datetime}}">
            <a href="javascript://" class="btn btn-success {{^attributes.title}}disabled{{/attributes.title}} no-float" data-toggle="submit" tabindex="4">Add</a>
          </div>
        {{/prune_context}}
      </ggrc-modal-connector>
    </div>
    {{/if_instance_of}}

    <div class="span6 hidable">
      <ggrc-modal-connector
        instance="instance"
        source_mapping="business_objects"
        deferred="true"
        >
        <label class="border-l">
          Mapped Objects
          <a href="javascript://" class="field-hide" tabindex="-1">hide</a>
        </label>
        {{#each list}}
        <div class="oneline">
          <a class="url" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/static/mustache/pbc/iframe_tooltip.mustache' url=link}}" href="{{schemed_url link}}" target="_blank">
            {{title}}
          </a>
          <a href="javascript://" class="unmap" data-toggle="unmap">
            <span class="result" {{data 'result'}}></span>
            <i class="grcicon-deleted"></i>
          </a>
        </div>
        {{/each}}
        {{^list.length}}
          <span class="gray"><em>No mapped objects</em></span>
        {{/list.length}}
        {{#prune_context}}
          <div class="objective-selector">
            <div style="clear:both">
              <br>
               <a class="section-add section-sticky btn"
                 href="javascript://" rel="tooltip"
                 {{#instance}}{{data 'join-object'}}{{/instance}}
                 data-placement="left"
                 data-toggle="multitype-object-modal-selector"
                 data-deferred="true"
                 data-object-source="true"
                 data-join-mapping="business_objects"
                 data-join-object-id="{{instance.id}}"
                 data-join-object-type="{{instance.class.model_singular}}"
                 {{#if_instance_of instance 'DocumentationResponse'}}data-exclude-option-types="Document"{{/if_instance_of}}
                 data-original-title="Map Object to this {{instance.class.title_singular}}" tabindex="6">
                Map Objects
              </a>
            </div>
          </div>
        {{/prune_context}}
      </ggrc-modal-connector>
{'fraction_non_alphanumeric': 0.17637007201269375, 'fraction_numerical': 0.0030513853289393386, 'mean_word_length': 2.394862233271183, 'pattern_counts': {'":': 0, '<': 288, '<?xml version=': 0, '>': 290, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '5393119', 'n_tokens_mistral': 4809, 'n_tokens_neox': 4740, 'n_words': 861}