<commit_before>{{!
    Copyright (C) 2015 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>
}}

{{#instance}}
  <section class="info{{#is_info_pin}} sticky-info-panel request{{/is_info_pin}}">

    {{#is_info_pin}}
      {{{render '/static/mustache/base_objects/info-pin.mustache'}}}
    {{/is_info_pin}}

    <div class="tier-content">
      {{> /static/mustache/base_templates/header.mustache}}

      <div class="row-fluid">
        <div class="span8">
          {{> /static/mustache/base_objects/description.mustache}}

          {{#if test}}
            <div class="row-fluid wrap-row">
              <div class="span12">
                <h6>Test</h6>
                <div class="rtf-block">
                  {{test}}
                </div>

              </div>
            </div>
          {{/if}}
          {{#if notes}}
            <div class="row-fluid wrap-row">
              <div class="span12">
                <h6>Notes</h6>
                <div class="rtf-block">
                  {{notes}}
                </div>
              </div>
            </div>
          {{/if}}

          <div class="row-fluid wrap-row">
            <div class="span6">
              <div class="left-spacing">
                <h6>Evidence</h6>
                {{> /static/mustache/base_templates/attachment_list.mustache}}
              </div>
            </div>
            <div class="span6">
              <h6>URL</h6>
              {{#instance.class.info_pane_options.urls}}
                {{#add_to_current_scope parent_instance=instance}}
                  <ul class="attachment-list" {{data 'options'}} {{ (el) -> el.cms_controllers_tree_view(el.data('options')).control("tree_view").display() }} data-info-controller="true">
                {{/add_to_current_scope}}
              {{/instance.class.info_pane_options.urls}}
              {{#is_allowed 'update' instance}}
              {{#toggle show_new_object_form}}
                <ggrc-quick-add parent_instance="instance" join_model="Relationship" quick_create="create_url">
                  {{#prune_context}}
                  <div class="objective-selector field-wrap">
                    <input tabindex="3" type="text" name="instance" placeholder="Add URL">
                    <a href="javascript://" {{toggle_button}}><i class="grcicon-deleted"></i></a>
                    <a href="javascript://" class="btn btn-small btn-success no-float" data-toggle="submit" {{toggle_button "modal:success"}}>Add</a>
                  </div>
                  <input type="hidden" name="role_name" value="Auditor" />
                  {{/prune_context}}
                </ggrc-quick-add>
              {{else}}
                <br>
                  <a href="javascript://" class="btn btn-small btn-draft" {{toggle_button}}>+ Add URL</a>
              {{/toggle}}
              {{/is_allowed}}
              </ul>
            </div>
          </div>

          <div class="row-fluid wrap-row">
            <div class="span12">
              {{> /static/mustache/base_templates/mapped_objects.mustache}}
            </div>
          </div>

        </div>
        <div class="span4">
          <div class="row-fluid wrap-row">
            <div class="span12">
              <people-list instance="instance" editable="true"></people-list>
            </div>
          </div>

          <div class="row-fluid wrap-row">
            <div class="span12">
              {{> /static/mustache/base_templates/dates_list.mustache}}
            </div>
          </div>

          <div class="row-fluid wrap-row">
            <div class="span12">
              <h6>Code</h6>
              <div class="side-content">
                {{slug}}
              </div>
            </div>
          </div>

          <div class="row-fluid wrap-row">
            <div class="span12">
              {{> /static/mustache/base_templates/request_type.mustache}}
            </div>
          </div>

        </div>
      </div>

      <div class="tabs-wrap">
        <ul class="nav nav-tabs">
          <li class="active"><a href="#tab1" data-toggle="tab">
            Comments and Responses
          </a></li>
        </ul>

        <div class="tab-content">
          <div class="tab-pane fade in active" id="tab1">
            {{^if_equals status "Verified"}}
            <div class="tree-item-add">
              <add-comment data="comments"></add-comment>
            </div>
            {{/if_equals}}
            {{> /static/mustache/base_templates/comment_list.mustache}}
          </div>

        </div>
      </div>
    </div>
  </section>
{{/instance}}
<commit_msg>Disable commenting for "Finished" requests<commit_after>{{!
    Copyright (C) 2015 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>
}}

{{#instance}}
  <section class="info{{#is_info_pin}} sticky-info-panel request{{/is_info_pin}}">

    {{#is_info_pin}}
      {{{render '/static/mustache/base_objects/info-pin.mustache'}}}
    {{/is_info_pin}}

    <div class="tier-content">
      {{> /static/mustache/base_templates/header.mustache}}

      <div class="row-fluid">
        <div class="span8">
          {{> /static/mustache/base_objects/description.mustache}}

          {{#if test}}
            <div class="row-fluid wrap-row">
              <div class="span12">
                <h6>Test</h6>
                <div class="rtf-block">
                  {{test}}
                </div>

              </div>
            </div>
          {{/if}}
          {{#if notes}}
            <div class="row-fluid wrap-row">
              <div class="span12">
                <h6>Notes</h6>
                <div class="rtf-block">
                  {{notes}}
                </div>
              </div>
            </div>
          {{/if}}

          <div class="row-fluid wrap-row">
            <div class="span6">
              <div class="left-spacing">
                <h6>Evidence</h6>
                {{> /static/mustache/base_templates/attachment_list.mustache}}
              </div>
            </div>
            <div class="span6">
              <h6>URL</h6>
              {{#instance.class.info_pane_options.urls}}
                {{#add_to_current_scope parent_instance=instance}}
                  <ul class="attachment-list" {{data 'options'}} {{ (el) -> el.cms_controllers_tree_view(el.data('options')).control("tree_view").display() }} data-info-controller="true">
                {{/add_to_current_scope}}
              {{/instance.class.info_pane_options.urls}}
              {{#is_allowed 'update' instance}}
              {{#toggle show_new_object_form}}
                <ggrc-quick-add parent_instance="instance" join_model="Relationship" quick_create="create_url">
                  {{#prune_context}}
                  <div class="objective-selector field-wrap">
                    <input tabindex="3" type="text" name="instance" placeholder="Add URL">
                    <a href="javascript://" {{toggle_button}}><i class="grcicon-deleted"></i></a>
                    <a href="javascript://" class="btn btn-small btn-success no-float" data-toggle="submit" {{toggle_button "modal:success"}}>Add</a>
                  </div>
                  <input type="hidden" name="role_name" value="Auditor" />
                  {{/prune_context}}
                </ggrc-quick-add>
              {{else}}
                <br>
                  <a href="javascript://" class="btn btn-small btn-draft" {{toggle_button}}>+ Add URL</a>
              {{/toggle}}
              {{/is_allowed}}
              </ul>
            </div>
          </div>

          <div class="row-fluid wrap-row">
            <div class="span12">
              {{> /static/mustache/base_templates/mapped_objects.mustache}}
            </div>
          </div>

        </div>
        <div class="span4">
          <div class="row-fluid wrap-row">
            <div class="span12">
              <people-list instance="instance" editable="true"></people-list>
            </div>
          </div>

          <div class="row-fluid wrap-row">
            <div class="span12">
              {{> /static/mustache/base_templates/dates_list.mustache}}
            </div>
          </div>

          <div class="row-fluid wrap-row">
            <div class="span12">
              <h6>Code</h6>
              <div class="side-content">
                {{slug}}
              </div>
            </div>
          </div>

          <div class="row-fluid wrap-row">
            <div class="span12">
              {{> /static/mustache/base_templates/request_type.mustache}}
            </div>
          </div>

        </div>
      </div>

      <div class="tabs-wrap">
        <ul class="nav nav-tabs">
          <li class="active"><a href="#tab1" data-toggle="tab">
            Comments and Responses
          </a></li>
        </ul>

        <div class="tab-content">
          <div class="tab-pane fade in active" id="tab1">
            {{#if_helpers '\
              ^if_equals' status 'Verified' '\
              and ^if_equals' status 'Finished' }}
            <div class="tree-item-add">
              <add-comment data="comments"></add-comment>
            </div>
            {{/if_helpers}}
            {{> /static/mustache/base_templates/comment_list.mustache}}
          </div>

        </div>
      </div>
    </div>
  </section>
{{/instance}}

{'fraction_non_alphanumeric': 0.16278101582014987, 'fraction_numerical': 0.007701915070774354, 'mean_word_length': 1.5713138881455713, 'pattern_counts': {'":': 0, '<': 205, '<?xml version=': 0, '>': 221, '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': '6880918', 'n_tokens_mistral': 2897, 'n_tokens_neox': 2771, 'n_words': 489}