<commit_before>{{#population_sample}}
  <div class="row-fluid inline-edit-population-doc" data-model="true" {{data 'model'}}>
    <div class="span9">
      <div class="row-fluid inner-population-doc">
        <div class="span5">
          <h5>
            Population Worksheet
            {{^if_null population_document_id}}
              <i class="grcicon-ok"></i>
            {{/if_null}}
          </h5>
        </div>
        <div class="span7 inline-editing custom-edit" data-doc-type="population">
          {{#if_null population_document_id}}
          <form>
            <input class="input-block-level input-title" name="title" placeholder="Search for Doc Title or URL" type="text" {{ (el) -> el.pbc_autocomplete_documents() }}>
            <a class="add-document" data-modal-reset="reset" data-toggle="modal-ajax-form" href="/documents/new" data-target="#ajax-modal-documents-new"></a>
          </form>
          {{else}}
            <a class="btn btn-mini pull-right remove-population-doc" href="javascript://" rel="tooltip" title="Remove population worksheet">
              <i class="grcicon-x-grey"></i>
            </a>
            <a class="btn btn-mini pull-right" href="/documents/{{population_document.id}}/edit?no_delete=true" data-toggle="modal-ajax-form" data-modal-class="modal-wide" rel="tooltip" title="Edit population worksheet">
              <i class="grcicon-edit"></i>
            </a>
            <p class="oneline">
              {{#if_null population_document.link_url}}
                <span>{{population_document.title}}</span>
              {{else}}
                <a href="{{population_document.link_url}}" target="_blank">
                  <span rel="tooltip" title="{{population_document.link_url}}">
                    {{firstnonempty population_document.title population_document.link_url}}
                  </span>
                </a>
              {{/if_null}}
            </p>
          {{/if_null}}
        </div>
      </div>
    </div>
    <div class="span3">
      <div class="row-fluid inner-population-doc">
        <div class="span8">
          <h5 class="right">Population #</h5>
        </div>
    
        <div class="span4 auto-save">
          <input type="text" name="population" class="input-block-level" value="{{firstexist population ''}}" />
          <span class="success fade" style="white-space:nowrap">Saved</span>
        </div>
      </div>
    </div>
  </div>

  <div class="row-fluid inline-edit-population-doc" data-model="true" {{data 'model'}}>
    <div class="span9">
      <div class="row-fluid inner-population-doc">
        <div class="span5">
          <h5>
            Sample Worksheet
            {{^if_null sample_worksheet_document_id}}
              <i class="grcicon-ok"></i>
            {{/if_null}}
          </h5>
        </div>
        <div class="span7 inline-editing custom-edit" data-doc-type="sample_worksheet">
          {{#if_null sample_worksheet_document_id}}
          <form>
            <input class="input-block-level input-title" name="title" placeholder="Search for Doc Title or URL" type="text" {{ (el) -> el.pbc_autocomplete_documents() }}>
             <a class="add-document" data-modal-reset="reset" data-toggle="modal-ajax-form" href="/documents/new" data-target="#ajax-modal-documents-new"></a>
         </form>
          {{else}}
            <a class="btn btn-mini pull-right remove-population-doc" href="javascript://" rel="tooltip" title="Remove sample worksheet">
              <i class="grcicon-x-grey"></i>
            </a>
            <a class="btn btn-mini pull-right" href="/documents/{{sample_worksheet_document.id}}/edit?no_delete=true" data-toggle="modal-ajax-form" data-modal-class="modal-wide" rel="tooltip" title="Edit sample worksheet">
              <i class="grcicon-edit"></i>
            </a>
            <p class="oneline">
              {{#if_null sample_worksheet_document.link_url}}
                <span>{{sample_worksheet_document.title}}</span>
              {{else}}
                <a href="{{sample_worksheet_document.link_url}}" target="_blank">
                  <span rel="tooltip" title="{{sample_worksheet_document.link_url}}">
                    {{firstnonempty sample_worksheet_document.title sample_worksheet_document.link_url}}
                  </span>
                </a>
              {{/if_null}}
            </p>
          {{/if_null}}
        </div>
      </div>
    </div>
    <div class="span3">
      <div class="row-fluid inner-population-doc">
        <div class="span8">
          <h5 class="right">Sample #</h5>
        </div>
    
        <div class="span4 auto-save">
          <input type="text" name="samples" class="input-block-level" value="{{firstexist samples ''}}"/>
          <span class="success fade" style="white-space:nowrap">Saved</span>
        </div>
      </div>
    </div>
  </div>

  <div class="row-fluid inline-edit-population-doc" data-model="true" {{data 'model'}}>
    <div class="span9">
      <div class="row-fluid inner-population-doc">
        <div class="span5">
          <h5>
            Sample Evidence
            {{^if_null sample_evidence_document_id}}
              <i class="grcicon-ok"></i>
            {{/if_null}}
          </h5>
        </div>
        <div class="span7 inline-editing custom-edit" data-doc-type="sample_evidence">
          {{#if_null sample_evidence_document_id}}
            <form>
              <input class="input-block-level input-title" name="title" placeholder="Search for Doc Title or URL" type="text" {{ (el) -> el.pbc_autocomplete_documents() }}>
              <a class="add-document" data-modal-reset="reset" data-toggle="modal-ajax-form" href="/documents/new" data-target="#ajax-modal-documents-new"></a>
            </form>
          {{else}}
            <a class="btn btn-mini pull-right remove-population-doc" href="javascript://" rel="tooltip" title="Remove sample evidence">
              <i class="grcicon-x-grey"></i>
            </a>
            <a class="btn btn-mini pull-right" href="/documents/{{sample_evidence_document.id}}/edit?no_delete=true" data-toggle="modal-ajax-form" data-modal-class="modal-wide" rel="tooltip" title="Edit sample evidence">
              <i class="grcicon-edit"></i>
            </a>
            <p class="oneline">
              {{#if_null sample_evidence_document.link_url}}
                <span>{{sample_evidence_document.title}}</span>
              {{else}}
                <a href="{{sample_evidence_document.link_url}}" target="_blank">
                  <span rel="tooltip" title="{{sample_evidence_document.link_url}}">
                    {{firstnonempty sample_evidence_document.title sample_evidence_document.link_url}}
                  </span>
                </a>
              {{/if_null}}<commit_msg>Story 47646875: Adding preview popover to population sample evidence<commit_after>{{#population_sample}}
  <div class="row-fluid inline-edit-population-doc" data-model="true" {{data 'model'}}>
    <div class="span9">
      <div class="row-fluid inner-population-doc">
        <div class="span5">
          <h5>
            Population Worksheet
            {{^if_null population_document_id}}
              <i class="grcicon-ok"></i>
            {{/if_null}}
          </h5>
        </div>
        <div class="span7 inline-editing custom-edit" data-doc-type="population">
          {{#if_null population_document_id}}
          <form>
            <input class="input-block-level input-title" name="title" placeholder="Search for Doc Title or URL" type="text" {{ (el) -> el.pbc_autocomplete_documents() }}>
            <a class="add-document" data-modal-reset="reset" data-toggle="modal-ajax-form" href="/documents/new" data-target="#ajax-modal-documents-new"></a>
          </form>
          {{else}}
            <a class="btn btn-mini pull-right remove-population-doc" href="javascript://" rel="tooltip" title="Remove population worksheet">
              <i class="grcicon-x-grey"></i>
            </a>
            <a class="btn btn-mini pull-right" href="/documents/{{population_document.id}}/edit?no_delete=true" data-toggle="modal-ajax-form" data-modal-class="modal-wide" rel="tooltip" title="Edit population worksheet">
              <i class="grcicon-edit"></i>
            </a>
            <p class="oneline">
              {{#if_null population_document.link_url}}
                <span>{{population_document.title}}</span>
              {{else}}
                <a class="inner-element" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/assets/pbc/iframe_tooltip.mustache' population_document}}" data-placement="right" href="{{population_document.link_url}}" target="_blank">
                    {{{withattr "data-original-title" "<div class='row-fluid'><div class='span12'><h3><i class='grcicon-link'></i> Viewing {firstnonempty population_document.title population_document.link_url} </span> </h3></div></div>"}}}
                  {{firstnonempty population_document.title population_document.link_url}}
                </a>
              {{/if_null}}
            </p>
          {{/if_null}}
        </div>
      </div>
    </div>
    <div class="span3">
      <div class="row-fluid inner-population-doc">
        <div class="span8">
          <h5 class="right">Population #</h5>
        </div>
    
        <div class="span4 auto-save">
          <input type="text" name="population" class="input-block-level" value="{{firstexist population ''}}" />
          <span class="success fade" style="white-space:nowrap">Saved</span>
        </div>
      </div>
    </div>
  </div>

  <div class="row-fluid inline-edit-population-doc" data-model="true" {{data 'model'}}>
    <div class="span9">
      <div class="row-fluid inner-population-doc">
        <div class="span5">
          <h5>
            Sample Worksheet
            {{^if_null sample_worksheet_document_id}}
              <i class="grcicon-ok"></i>
            {{/if_null}}
          </h5>
        </div>
        <div class="span7 inline-editing custom-edit" data-doc-type="sample_worksheet">
          {{#if_null sample_worksheet_document_id}}
          <form>
            <input class="input-block-level input-title" name="title" placeholder="Search for Doc Title or URL" type="text" {{ (el) -> el.pbc_autocomplete_documents() }}>
             <a class="add-document" data-modal-reset="reset" data-toggle="modal-ajax-form" href="/documents/new" data-target="#ajax-modal-documents-new"></a>
         </form>
          {{else}}
            <a class="btn btn-mini pull-right remove-population-doc" href="javascript://" rel="tooltip" title="Remove sample worksheet">
              <i class="grcicon-x-grey"></i>
            </a>
            <a class="btn btn-mini pull-right" href="/documents/{{sample_worksheet_document.id}}/edit?no_delete=true" data-toggle="modal-ajax-form" data-modal-class="modal-wide" rel="tooltip" title="Edit sample worksheet">
              <i class="grcicon-edit"></i>
            </a>
            <p class="oneline">
              {{#if_null sample_worksheet_document.link_url}}
                <span>{{sample_worksheet_document.title}}</span>
              {{else}}
                <a class="inner-element" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/assets/pbc/iframe_tooltip.mustache' sample_worksheet_document}}" data-placement="right" href="{{sample_worksheet_document.link_url}}" target="_blank">
                    {{{withattr "data-original-title" "<div class='row-fluid'><div class='span12'><h3><i class='grcicon-link'></i> Viewing {firstnonempty sample_worksheet_document.title sample_worksheet_document.link_url} </span> </h3></div></div>"}}}
                  {{firstnonempty sample_worksheet_document.title sample_worksheet_document.link_url}}
                </a>
              {{/if_null}}
            </p>
          {{/if_null}}
        </div>
      </div>
    </div>
    <div class="span3">
      <div class="row-fluid inner-population-doc">
        <div class="span8">
          <h5 class="right">Sample #</h5>
        </div>
    
        <div class="span4 auto-save">
          <input type="text" name="samples" class="input-block-level" value="{{firstexist samples ''}}"/>
          <span class="success fade" style="white-space:nowrap">Saved</span>
        </div>
      </div>
    </div>
  </div>

  <div class="row-fluid inline-edit-population-doc" data-model="true" {{data 'model'}}>
    <div class="span9">
      <div class="row-fluid inner-population-doc">
        <div class="span5">
          <h5>
            Sample Evidence
            {{^if_null sample_evidence_document_id}}
              <i class="grcicon-ok"></i>
            {{/if_null}}
          </h5>
        </div>
        <div class="span7 inline-editing custom-edit" data-doc-type="sample_evidence">
          {{#if_null sample_evidence_document_id}}
            <form>
              <input class="input-block-level input-title" name="title" placeholder="Search for Doc Title or URL" type="text" {{ (el) -> el.pbc_autocomplete_documents() }}>
              <a class="add-document" data-modal-reset="reset" data-toggle="modal-ajax-form" href="/documents/new" data-target="#ajax-modal-documents-new"></a>
            </form>
          {{else}}
            <a class="btn btn-mini pull-right remove-population-doc" href="javascript://" rel="tooltip" title="Remove sample evidence">
              <i class="grcicon-x-grey"></i>
            </a>
            <a class="btn btn-mini pull-right" href="/documents/{{sample_evidence_document.id}}/edit?no_delete=true" data-toggle="modal-ajax-form" data-modal-class="modal-wide" rel="tooltip" title="Edit sample evidence">
              <i class="grcicon-edit"></i>
            </a>
            <p class="oneline">
              {{#if_null sample_evidence_document.link_url}}
                <span>{{sample_evidence_document.title}}</span>
              {{else}}
                <a class="inner-element" data-popover-trigger="sticky-hover" data-sticky-popover="true" data-content="{{render '/assets/pbc/iframe_tooltip.mustache' sample_evidence_document}}" data-placement="right" href="{{sample_evidence_document.link_url}}" target="_blank">
                    {{{withattr "data-original-title" "<div class='row-fluid'><div class='span12'><h3><i class='grcicon-link'></i> Viewing {firstnonempty sample_evidence_document.title sample_evidence_document.link_url} </span> </h3></div></div>"}}}
                  {{firstnonempty sample_evidence_document.title sample_evidence_document.link_url}}
                </a>
              {{/if_null}}
{'fraction_non_alphanumeric': 0.16667805177949313, 'fraction_numerical': 0.004781747387116606, 'mean_word_length': 2.430981954534802, 'pattern_counts': {'":': 0, '<': 276, '<?xml version=': 0, '>': 282, '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': '2361911', 'n_tokens_mistral': 4484, 'n_tokens_neox': 4283, 'n_words': 768}