<commit_before><%
  @title = :confirm_title.l
%>

<div class="max-width-text">
  <%= :confirm_text.tp %>

  <p>
    <%= :confirm_amount.t %>: $<%= sprintf("%0.2f", @donation.amount) %><br/>
    <%= :confirm_recurring.t %>: <%= @donation.recurring ? :YEP.t : :NOPE.t %><br/>
    <% if @donation.anonymous %>
      <%= :donate_anonymous.t %><br/>
    <% else %>
      <%= :donate_who.t %>: <%= @donation.who %><br/>
      <%= :donate_email.t %>: <%= @donation.email %><br/>
    <% end %>
  </p>

  <div class="text-center">
    <form id="donate_form" name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="business" value="<%= MO.donation_business %>">
      <input type="hidden" name="item_name" value="<%= MO.site_name %>">
      <input type="hidden" name="currency_code" value="USD">
      <% if @donation.recurring %>
        <input type="hidden" name="cmd" value="_xclick-subscriptions">
        <input type="hidden" name="a3" value="<%= @donation.amount %>">
        <input type="hidden" name="p3" value="1">
        <input type="hidden" name="t3" value="M">
        <input type="hidden" name="src" value="1">
        <input type="hidden" name="no_note" value="1">
      <% else %>
        <input type="hidden" name="cmd" value="_donations">
        <input type="hidden" name="amount" value="<%= @donation.amount %>">
      <% end %>
      <input type="hidden" name="cancel_return" value="<%= MO.http_domain %>/support/donate">
      <input type="hidden" name="return" value="<%= MO.http_domain %>/support/thanks">
      <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" onclick="transferAmount()" alt="Make payments with PayPal - it's fast, free and secure!"><commit_msg>Insure that sprintf is not called on nil<commit_after><%
  @title = :confirm_title.l
%>

<div class="max-width-text">
  <%= :confirm_text.tp %>

  <p>
    <%= :confirm_amount.t %>: $<%= sprintf("%0.2f", @donation.amount || 0) %><br/>
    <%= :confirm_recurring.t %>: <%= @donation.recurring ? :YEP.t : :NOPE.t %><br/>
    <% if @donation.anonymous %>
      <%= :donate_anonymous.t %><br/>
    <% else %>
      <%= :donate_who.t %>: <%= @donation.who %><br/>
      <%= :donate_email.t %>: <%= @donation.email %><br/>
    <% end %>
  </p>

  <div class="text-center">
    <form id="donate_form" name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
      <input type="hidden" name="business" value="<%= MO.donation_business %>">
      <input type="hidden" name="item_name" value="<%= MO.site_name %>">
      <input type="hidden" name="currency_code" value="USD">
      <% if @donation.recurring %>
        <input type="hidden" name="cmd" value="_xclick-subscriptions">
        <input type="hidden" name="a3" value="<%= @donation.amount %>">
        <input type="hidden" name="p3" value="1">
        <input type="hidden" name="t3" value="M">
        <input type="hidden" name="src" value="1">
        <input type="hidden" name="no_note" value="1">
      <% else %>
        <input type="hidden" name="cmd" value="_donations">
        <input type="hidden" name="amount" value="<%= @donation.amount %>">
      <% end %>
      <input type="hidden" name="cancel_return" value="<%= MO.http_domain %>/support/donate">
      <input type="hidden" name="return" value="<%= MO.http_domain %>/support/thanks">
      <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" onclick="transferAmount()" alt="Make payments with PayPal - it's fast, free and secure!">
{'fraction_non_alphanumeric': 0.2248750694058856, 'fraction_numerical': 0.005274847307051638, 'mean_word_length': 3.7283464566929134, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '5305103', 'n_tokens_mistral': 1341, 'n_tokens_neox': 1250, 'n_words': 237}