<commit_before><div class="container-fluid">
  <div class="row bg-image-search">
    <%= render 'common/navbar' %>
    <div class="page-headline">
      <h1>Sponsor a Child</h1>
      <h3>Help a Child in Need Learn to Read</h3>
    </div>
    <div class="col-md-0 col-md-offset-6 col-sm-offset-6 col-xs-offset-6 mouse">
      <img src="<%= asset_path('scroll-button.png') %>" />
    </div>
  </div>


  <div class="row featurette hero-top">
    <div class="col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3">
      <% if live_campaigns? %>
        <%= form_tag("/wishlists?slug=#{params[:slug]}", method: :get, remote: true) do %>
          <div class="input-group search-bar">
            <input class="form-control" name="term" id="term" placeholder="Find a child, teacher, or school" />
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit">
                <span class="glyphicon glyphicon-search"></span>
              </button>
            </span>
        </div>
        <% end -%>
      <% end -%>
      <!-- <h2 class="featurette-heading">Home Libraries<%= " for #{@organization.name}" unless @organization.nil? %></h2> -->
      <!-- <p class="lead"><%= live_campaigns? ? @content['sponsor_lead'] : @content['sponsor_lead_no_campaign'] %></p> -->
      <h4 id="specific-child">Children affected by <strong><NAME></strong> and from low-income families have created wish lists of new books to rebuild their home libraries.
         Please sponsor one or more children below by simply clicking “Sponsor This Child.” Your generous gift is tax-deductible. Thank you for giving the gift of reading this holiday season.</h4>
      <% if @organization.nil? -%>
        <p class="donation" data-toggle="tooltip" title="Make a general donation here if you’re not sponsoring any specific children.  If you'd like to add a general donation to your specific child sponsorship, please click Complete My Donation on the left side and add that amount to your total.">
          <%= link_to 'Program Donation', donate_url(:id_list => ""), :class => 'btn btn-primary', :id => 'program-checkout' %>
        </p>
      <% else -%>
        <!--p class="donation" data-toggle="tooltip" title="Make a general donation here if you’re not sponsoring any specific children.  If you'd like to add a general donation to your specific child sponsorship, please click Complete My Donation on the left side and add that amount to your total.">
          <%= link_to "Program Donation to #{@organization.name}", donate_url(:campaign_id => @organization.current_campaign), :class => 'btn btn-primary', :id => 'program-checkout' if live_campaigns? %>
          <%= link_to "Program Donation to #{@organization.name}", donate_url(:organization_id => @organization.id), :class => 'btn btn-primary', :id => 'program-checkout' unless live_campaigns? %>
        </p-->
      <% end -%>
    </div>
  </div>

  <% if live_campaigns? -%>
  <div class="row">
    <div class="col-md-3 col-sm-3">
       <div id="sponsor-list" data-id-list="" data-spy="affix" data-offset-top="540">
        <% if live_campaigns? -%>
          <div class="sponsor-shoppingcart">
            <div class="sponsor-header">
              <h4 class="sponsor-title">Children You've Selected</h4>
            </div>

            <ul class="list-group" id="sponsor-unordered-list">
              <li id="empty-list-message" class="list-group-item disabled">No wish lists selected</li>
            </ul>
            <span id="subtotal">Your Subtotal: $0.00</span>
          </div>
          <%= link_to 'Complete My Donation', donate_url(:id_list => ""), :class => 'btn disabled btn-lg', :id => 'checkout-btn' %>
        <% end -%>
      </div>
    </div>
    <div class="col-md-8 col-sm-8">
      <div id="search_results">
        <%= render partial: 'search_results', locals: {wishlists: @wishlists} %>
      </div>

    </div>
  </div>

  <div class="row">
    <div class="col-md-4 col-md-offset-4 col-sm-4 col-sm-offset-4">
      <p>
        <%= link_to 'Load More Wish Lists', "/wishlists?slug=#{params[:slug]}&append=true", :remote => true, :class => 'btn', :id => 'load-more' %>
      </p>
    </div>
  </div>
  <% end -%>

  <div class="row search-description">
    <div class="col-md-5 col-md-offset-3 col-sm-5 col-sm-offset-3">
    </div>
  </div>
  <div class="row">
    <div class="search-bg-teacher">
        <img src="<%= asset_path('kids_bg_3.jpg') %>" />
    </div>
  </div>


</div>

<%= content_for :foot do %>
<script>
var preselected = "<%= session[:wishlist_cart] %>";

if(preselected.length > 0){
  $(document).ready(function() {
    $.each(preselected.split(','), function(idx, id){
      addIdToCart(id);
    });
  });
}

$('body').on('click', '.donation a', completeDonation);

function completeDonation(){
  var modalDonation = '<div class="input-group"><span>Please input your amount:</span>\
  <input type="number" step="1.00" id="addl_donation_slug" class="form-control" placeholder="Enter dollar amount" /></div>\
  <div><% if @organization.nil? -%>\
  <%= link_to "Complete Donation", donate_url(), :class => "btn btn-warning btn-lg focus", :id => "checkout-btn-3" %></div>\
  <% else -%>\
  <%= link_to "Complete Donation to #{@organization.name}", donate_url(:campaign_id => @organization.current_campaign), :id => "checkout-btn-3", :class => 'btn btn-warning btn-lg focus' if live_campaigns? %>\
  <%= link_to "Complete Donation to #{@organization.name}", donate_url(:organization_id => @organization.id), :id => "checkout-btn-3", :class => 'btn btn-warning btn-lg focus' unless live_campaigns? %>\
  <% end -%>'

  $("#globalModalShopping .modal-body").html(modalDonation);
  $('#globalModalShopping').modal();

  return false;<commit_msg>Updates text for donation pop ups<commit_after><div class="container-fluid">
  <div class="row bg-image-search">
    <%= render 'common/navbar' %>
    <div class="page-headline">
      <h1>Sponsor a Child</h1>
      <h3>Help a Child in Need Learn to Read</h3>
    </div>
    <div class="col-md-0 col-md-offset-6 col-sm-offset-6 col-xs-offset-6 mouse">
      <img src="<%= asset_path('scroll-button.png') %>" />
    </div>
  </div>


  <div class="row featurette hero-top">
    <div class="col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3">
      <% if live_campaigns? %>
        <%= form_tag("/wishlists?slug=#{params[:slug]}", method: :get, remote: true) do %>
          <div class="input-group search-bar">
            <input class="form-control" name="term" id="term" placeholder="Find a child, teacher, or school" />
            <span class="input-group-btn">
              <button class="btn btn-default" type="submit">
                <span class="glyphicon glyphicon-search"></span>
              </button>
            </span>
        </div>
        <% end -%>
      <% end -%>
      <!-- <h2 class="featurette-heading">Home Libraries<%= " for #{@organization.name}" unless @organization.nil? %></h2> -->
      <!-- <p class="lead"><%= live_campaigns? ? @content['sponsor_lead'] : @content['sponsor_lead_no_campaign'] %></p> -->
      <h4 id="specific-child">Your tax-deductible donation directly benefits economically disadvantaged children in Houston. For every $5 you donate, a child will receive a new book of his or her choice. A $30 donation provides a child with all 6 books on his or her wish list through My Home Library.</h4>
      <% if @organization.nil? -%>
        <p class="donation" data-toggle="tooltip" title="Make a general donation here if you’re not sponsoring any specific children.  If you'd like to add a general donation to your specific child sponsorship, please click Complete My Donation on the left side and add that amount to your total.">
          <%= link_to 'Program Donation', donate_url(:id_list => ""), :class => 'btn btn-primary', :id => 'program-checkout' %>
        </p>
      <% else -%>
        <!--p class="donation" data-toggle="tooltip" title="Make a general donation here if you’re not sponsoring any specific children.  If you'd like to add a general donation to your specific child sponsorship, please click Complete My Donation on the left side and add that amount to your total.">
          <%= link_to "Program Donation to #{@organization.name}", donate_url(:campaign_id => @organization.current_campaign), :class => 'btn btn-primary', :id => 'program-checkout' if live_campaigns? %>
          <%= link_to "Program Donation to #{@organization.name}", donate_url(:organization_id => @organization.id), :class => 'btn btn-primary', :id => 'program-checkout' unless live_campaigns? %>
        </p-->
      <% end -%>
    </div>
  </div>

  <% if live_campaigns? -%>
  <div class="row">
    <div class="col-md-3 col-sm-3">
       <div id="sponsor-list" data-id-list="" data-spy="affix" data-offset-top="540">
        <% if live_campaigns? -%>
          <div class="sponsor-shoppingcart">
            <div class="sponsor-header">
              <h4 class="sponsor-title">Children You've Selected</h4>
            </div>

            <ul class="list-group" id="sponsor-unordered-list">
              <li id="empty-list-message" class="list-group-item disabled">No wish lists selected</li>
            </ul>
            <span id="subtotal">Your Subtotal: $0.00</span>
          </div>
          <%= link_to 'Complete My Donation', donate_url(:id_list => ""), :class => 'btn disabled btn-lg', :id => 'checkout-btn' %>
        <% end -%>
      </div>
    </div>
    <div class="col-md-8 col-sm-8">
      <div id="search_results">
        <%= render partial: 'search_results', locals: {wishlists: @wishlists} %>
      </div>

    </div>
  </div>

  <div class="row">
    <div class="col-md-4 col-md-offset-4 col-sm-4 col-sm-offset-4">
      <p>
        <%= link_to 'Load More Wish Lists', "/wishlists?slug=#{params[:slug]}&append=true", :remote => true, :class => 'btn', :id => 'load-more' %>
      </p>
    </div>
  </div>
  <% end -%>

  <div class="row search-description">
    <div class="col-md-5 col-md-offset-3 col-sm-5 col-sm-offset-3">
    </div>
  </div>
  <div class="row">
    <div class="search-bg-teacher">
        <img src="<%= asset_path('kids_bg_3.jpg') %>" />
    </div>
  </div>


</div>

<%= content_for :foot do %>
<script>
var preselected = "<%= session[:wishlist_cart] %>";

if(preselected.length > 0){
  $(document).ready(function() {
    $.each(preselected.split(','), function(idx, id){
      addIdToCart(id);
    });
  });
}

$('body').on('click', '.donation a', completeDonation);

function completeDonation(){
  var modalDonation = '<div class="input-group">\
  <input type="number" step="1.00" id="addl_donation_slug" class="form-control" placeholder="Enter dollar amount" /></div>\
  <div><% if @organization.nil? -%>\
  <%= link_to "Complete Donation", donate_url(), :class => "btn btn-warning btn-lg focus", :id => "checkout-btn-3" %></div>\
  <% else -%>\
  <%= link_to "Complete Donation to #{@organization.name}", donate_url(:campaign_id => @organization.current_campaign), :id => "checkout-btn-3", :class => 'btn btn-warning btn-lg focus' if live_campaigns? %>\
  <%= link_to "Complete Donation to #{@organization.name}", donate_url(:organization_id => @organization.id), :id => "checkout-btn-3", :class => 'btn btn-warning btn-lg focus' unless live_campaigns? %>\
  <% end -%>'

  $("#globalModalShopping .modal-body").html(modalDonation);
  $('#globalModalShopping').modal();

  return false;
{'fraction_non_alphanumeric': 0.18269230769230768, 'fraction_numerical': 0.008041958041958041, 'mean_word_length': 3.1422881969587255, 'pattern_counts': {'":': 0, '<': 230, '<?xml version=': 0, '>': 278, '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': '5692337', 'n_tokens_mistral': 3891, 'n_tokens_neox': 3657, 'n_words': 947}