<commit_before><form name="first_id_doc" action="/documents/<%= @token %>/<%= @number_of_docs %>/create" method="post" enctype="multipart/form-data" class="form col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-10 col-xs-offset-1">
  <h3>Add a document to send</h3>
  <div class="form-group">
    <p>To be approved for CalFresh, you will need to send in documentation of a few things:
    <ul>
      <li><strong>Identification (ID)</strong> for each person you cook and prepare food with (for example, a driver's license or passport)</li>
      <li><strong>Income</strong> (for example, a bank statement)</li>
      <li><strong>Expenses</strong> (for example, a rental lease and a utility bill)</li>
    </ul>
    <p>If you don't have a document, you can write down your information and sign your name below to state it's true.</p>
  </div>
  <div class="form-group file-group">
    <label for="identification">Add Document</label>
    <p>(If you're on a phone, click the button to take a picture!)</p>
    <input type="file" name="identification" autofocus="autofocus"></input>
  </div>
  <div class="page-footer" style="display:none">
    <input class="btn next-step" type="submit" value="Add This Document">
  </div>
</form>

<% if @number_of_docs.to_i > 0 %>
<form name="send" action="/documents/<%= @token %>/<%= @number_of_docs %>/submit" method="post" class="form col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-10 col-xs-offset-1">
  <div class="page-footer" id="done-partial">
    <h3 class="or" style="text-align:center">or</h5>
    <input class="btn next-step" type="submit" value="I'm Done! Submit My Documents">
  </div>
</form>
<% end %>

<script>
  $('.btn').button();
  $(function() {
     $("input:file").change(function () {
       $(".page-footer").removeAttr("style");
       $(".or").hide();
       $(".skip").hide();
       $("#done-partial").hide();
     });
  });
</script><commit_msg>set doc submit button to loading state on click to prevent multiple verification doc submission<commit_after><form name="first_id_doc" action="/documents/<%= @token %>/<%= @number_of_docs %>/create" method="post" enctype="multipart/form-data" class="form col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-10 col-xs-offset-1">
  <h3>Add a document to send</h3>
  <div class="form-group">
    <p>To be approved for CalFresh, you will need to send in documentation of a few things:
    <ul>
      <li><strong>Identification (ID)</strong> for each person you cook and prepare food with (for example, a driver's license or passport)</li>
      <li><strong>Income</strong> (for example, a bank statement)</li>
      <li><strong>Expenses</strong> (for example, a rental lease and a utility bill)</li>
    </ul>
    <p>If you don't have a document, you can write down your information and sign your name below to state it's true.</p>
  </div>
  <div class="form-group file-group">
    <label for="identification">Add Document</label>
    <p>(If you're on a phone, click the button to take a picture!)</p>
    <input type="file" name="identification" autofocus="autofocus"></input>
  </div>
  <div class="page-footer" style="display:none">
    <input class="btn next-step" type="submit" value="Add This Document">
  </div>
</form>

<% if @number_of_docs.to_i > 0 %>
<form name="send" action="/documents/<%= @token %>/<%= @number_of_docs %>/submit" method="post" class="form col-lg-4 col-lg-offset-4 col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2 col-xs-10 col-xs-offset-1">
  <div class="page-footer" id="done-partial">
    <h3 class="or" style="text-align:center">or</h5>
    <button id="submit_button" class="btn next-step" type="submit" value="I'm Done! Submit My Documents" data-loading-text="Sending in your documents...">I'm Done! Submit My Documents</button>
  </div>
</form>
<% end %>

<script>
  $('.btn').button();
  $(function() {
     $("input:file").change(function () {
       $(".page-footer").removeAttr("style");
       $(".or").hide();
       $(".skip").hide();
       $("#done-partial").hide();
     });
  });

  // Switch submit button to loading state on click
  $( "#submit_button" ).click(function() {
    $('#submit_button').button('loading');
  });
</script>
{'fraction_non_alphanumeric': 0.19094304388422034, 'fraction_numerical': 0.010737628384687208, 'mean_word_length': 3.925287356321839, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 104, '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': '4847755', 'n_tokens_mistral': 1469, 'n_tokens_neox': 1421, 'n_words': 391}