<commit_before><div class='preview-container clearfix px5 mt4 mb4 bg-black'>

  {% for band_combo, composite in composites.iteritems() %}

  <div  id='{{ band_combo }}'
    class='js-preview sm-col sm-col-6 md-col md-col-4 lg-col lg-col-3 relative'
    style='background-image: url( {{ composite.previewurl }} ); background-size: 200% auto; background-position: center center; height: 20rem;'>

    <!-- Scene composite metadata -->
    <div class='scene-meta white full-width'>

      <!-- Full render download button -->
      {% if composite.fullurl %}
      <!-- <a  class='button not-rounded full-width center' --> 
        <!--     href='{{ composite.fullurl }}'>Download full size image. -->
        <!-- </a> -->

      <!-- If a full render has NOT been created, display a means of creating one. -->
      {% else %}
      <!-- <div class='js-nofull' id='{{composite.fulljobid}}'> -->
        <!--     <1!-- TODO: This is currently handled poorly. --1> -->
        <!--     <1!-- If a full has been requested, display the processing status. --1> -->
        <!--     {% if composite.fullstatus %} -->
        <!--         <a  class='button not-rounded full-width center' id='js-fullstatus'>{{ composite.fullstatus }}</a> -->
        <!--     {% else %} -->
        <!--         <button id='js-opener{{band_combo}}' class='button not-rounded left full-width center'> -->
          <!--             Request a full size image.</button> -->
        <!--         <div id='js-dialog{{band_combo}}' class='js-modal' title='Email notification'> -->
          <!--             <form method='post'> -->
            <!--                 <input class='mb1 left full-width center' type='email' name='email_address' placeholder='Email (optional)'/> -->
            <!--                 <input type='hidden' name='band1' value='{{ composite.band1 }}'/> -->
            <!--                 <input type='hidden' name='band2' value='{{ composite.band2 }}'/> -->
            <!--                 <input type='hidden' name='band3' value='{{ composite.band3 }}'/> -->
            <!--                 <p class='px1 center'>A full render is ready in ~3 minutes, but high traffic volumes can lead to a longer wait.</p> -->
            <!--                 <p class='px1 center'>Enter your email address for notification.</p> -->
            <!--                 <button -->
              <!--                     class='button not-rounded left full-width center' -->
              <!--                     formaction='/request_composite/{{ meta_data.scene_id }}' -->
              <!--                     formmethod='post' -->
              <!--                     type='submit'>Request a full size image. -->
              <!--                 </button> -->
            <!--             </form> -->
          <!--         </div> -->
        <!--         <script> -->
          <!--             // modal code -->
          <!--             $( '#js-dialog{{band_combo}}' ).dialog({ -->
              <!--                 autoOpen: false, -->
              <!--                 modal: true -->
              <!--             }); -->
          <!--             $( '#js-opener{{band_combo}}' ).click(function() { -->
              <!--                 // prevent scrolling -->
              <!--                 $('html,body').css('overflow','hidden'); -->
              <!--                 $( '#js-dialog{{band_combo}}' ).dialog( 'open' ); -->
              <!--             }); -->
          <!--             // on modal close, allow scrolling. -->
          <!--             $( '#js-dialog{{band_combo}}' ).dialog({ -->
              <!--                 close: function() { -->
              <!--                     $('html,body').css('overflow','auto'); -->
              <!--                 } -->
              <!--             }); -->
        <!--         </script> -->
      <!--     {% endif %} -->
      <!-- </div> <1!-- nofull --1> -->
    {% endif %}
  </div> <!-- scene-meta -->

  <div class='preview-block p1'>
    <!-- Scene barcode visualization -->
    <!-- <div class='js-graph' id='graph{{composite.previewjobid}}'></div> -->

    <!-- Display the band combination of the composite -->
    <h1 class='composite-description m0'>
      <span class='band-red'>     {{ composite.band1 }}</span> 
      <span class='band-green'>   {{ composite.band2 }}</span> 
      <span class='band-blue'>    {{ composite.band3 }}</span>
    </h1>
  </div> <!-- preview-block -->

  <!-- Display preview or loading gif -->
  {% if composite.previewjobid %}
  <div id='{{composite.previewjobid}}'>
    {% if composite.previewurl %}
    <a href='{{ composite.previewurl }}'>
      <!-- <img src='{{ composite.previewurl }}'> -->
    </a>
    {% else %}
    <div class='js-nopreview' id='{{composite.previewjobid}}'>
      <!-- <img class='loading' src='/static/img/loading.gif'> -->
    </div>
    {% endif %}
  </div>
  {% else %}
  <form method='post'>
    <input type='hidden' name='band1' value='{{ composite.band1 }}'/>
    <input type='hidden' name='band2' value='{{ composite.band2 }}'/>
    <input type='hidden' name='band3' value='{{ composite.band3 }}'/>
    <button class='button rounded-left fit' 
      formaction='/request_preview/{{meta_data.scene_id}}' 
      formmethod='post' 
      type='submit'>
      <span class='regular'>Get the Preview</span>
    </button>
  </form>
  {% endif %}
</div> <!-- preview -->
{% endfor %}
</div> <!-- preview-container --><commit_msg>#191 match request preview url in view.html with new route<commit_after><div class='preview-container clearfix px5 mt4 mb4 bg-black'>

  {% for band_combo, composite in composites.iteritems() %}

  <div  id='{{ band_combo }}'
    class='js-preview sm-col sm-col-6 md-col md-col-4 lg-col lg-col-3 relative'
    style='background-image: url( {{ composite.previewurl }} ); background-size: 200% auto; background-position: center center; height: 20rem;'>

    <!-- Scene composite metadata -->
    <div class='scene-meta white full-width'>

      <!-- Full render download button -->
      {% if composite.fullurl %}
      <!-- <a  class='button not-rounded full-width center' --> 
        <!--     href='{{ composite.fullurl }}'>Download full size image. -->
        <!-- </a> -->

      <!-- If a full render has NOT been created, display a means of creating one. -->
      {% else %}
      <!-- <div class='js-nofull' id='{{composite.fulljobid}}'> -->
        <!--     <1!-- TODO: This is currently handled poorly. --1> -->
        <!--     <1!-- If a full has been requested, display the processing status. --1> -->
        <!--     {% if composite.fullstatus %} -->
        <!--         <a  class='button not-rounded full-width center' id='js-fullstatus'>{{ composite.fullstatus }}</a> -->
        <!--     {% else %} -->
        <!--         <button id='js-opener{{band_combo}}' class='button not-rounded left full-width center'> -->
          <!--             Request a full size image.</button> -->
        <!--         <div id='js-dialog{{band_combo}}' class='js-modal' title='Email notification'> -->
          <!--             <form method='post'> -->
            <!--                 <input class='mb1 left full-width center' type='email' name='email_address' placeholder='Email (optional)'/> -->
            <!--                 <input type='hidden' name='band1' value='{{ composite.band1 }}'/> -->
            <!--                 <input type='hidden' name='band2' value='{{ composite.band2 }}'/> -->
            <!--                 <input type='hidden' name='band3' value='{{ composite.band3 }}'/> -->
            <!--                 <p class='px1 center'>A full render is ready in ~3 minutes, but high traffic volumes can lead to a longer wait.</p> -->
            <!--                 <p class='px1 center'>Enter your email address for notification.</p> -->
            <!--                 <button -->
              <!--                     class='button not-rounded left full-width center' -->
              <!--                     formaction='/request_composite/{{ meta_data.scene_id }}' -->
              <!--                     formmethod='post' -->
              <!--                     type='submit'>Request a full size image. -->
              <!--                 </button> -->
            <!--             </form> -->
          <!--         </div> -->
        <!--         <script> -->
          <!--             // modal code -->
          <!--             $( '#js-dialog{{band_combo}}' ).dialog({ -->
              <!--                 autoOpen: false, -->
              <!--                 modal: true -->
              <!--             }); -->
          <!--             $( '#js-opener{{band_combo}}' ).click(function() { -->
              <!--                 // prevent scrolling -->
              <!--                 $('html,body').css('overflow','hidden'); -->
              <!--                 $( '#js-dialog{{band_combo}}' ).dialog( 'open' ); -->
              <!--             }); -->
          <!--             // on modal close, allow scrolling. -->
          <!--             $( '#js-dialog{{band_combo}}' ).dialog({ -->
              <!--                 close: function() { -->
              <!--                     $('html,body').css('overflow','auto'); -->
              <!--                 } -->
              <!--             }); -->
        <!--         </script> -->
      <!--     {% endif %} -->
      <!-- </div> <1!-- nofull --1> -->
    {% endif %}
  </div> <!-- scene-meta -->

  <div class='preview-block p1'>
    <!-- Scene barcode visualization -->
    <!-- <div class='js-graph' id='graph{{composite.previewjobid}}'></div> -->

    <!-- Display the band combination of the composite -->
    <h1 class='composite-description m0'>
      <span class='band-red'>     {{ composite.band1 }}</span> 
      <span class='band-green'>   {{ composite.band2 }}</span> 
      <span class='band-blue'>    {{ composite.band3 }}</span>
    </h1>
  </div> <!-- preview-block -->

  <!-- Display preview or loading gif -->
  {% if composite.previewjobid %}
  <div id='{{composite.previewjobid}}'>
    {% if composite.previewurl %}
    <a href='{{ composite.previewurl }}'>
      <!-- <img src='{{ composite.previewurl }}'> -->
    </a>
    {% else %}
    <div class='js-nopreview' id='{{composite.previewjobid}}'>
      <!-- <img class='loading' src='/static/img/loading.gif'> -->
    </div>
    {% endif %}
  </div>
  {% else %}
  <form method='post'>
    <input type='hidden' name='band1' value='{{ composite.band1 }}'/>
    <input type='hidden' name='band2' value='{{ composite.band2 }}'/>
    <input type='hidden' name='band3' value='{{ composite.band3 }}'/>
    <button class='button rounded-left fit' 
      formaction='/request/preview/{{meta_data.scene_id}}' 
      formmethod='post' 
      type='submit'>
      <span class='regular'>Get the Preview</span>
    </button>
  </form>
  {% endif %}
</div> <!-- preview -->
{% endfor %}
</div> <!-- preview-container -->
{'fraction_non_alphanumeric': 0.21073215097771714, 'fraction_numerical': 0.007548885857207822, 'mean_word_length': 1.5313075506445673, 'pattern_counts': {'":': 0, '<': 247, '<?xml version=': 0, '>': 247, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4311483', 'n_tokens_mistral': 3025, 'n_tokens_neox': 2868, 'n_words': 671}