<commit_before><% @student=Student.find(session[:student_id]) %>
<% @summary_guardian1=@student.contact_people[0]%>
<% @summary_guardian2=@student.contact_people[1]%>


<%= render 'enrollment/navigation' %>
<div class="enrollment-form">
  <div class="summary_table enableZindex">

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    <li class="active instructions"><a href="#summaryGuardian1" role="tab" data-toggle="tab">Review <%= @summary_guardian1.first_name %></a></li>
    <% if @summary_guardian2 %>
        <li class="instructions"><a href="#summaryGuardian2" role="tab" data-toggle="tab">Review <%= @summary_guardian2.first_name %></a></li>
    <% end %>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">

    <div class="tab-pane active" id="summaryGuardian1">
      <table class="summaryTable">
          <td class="summaryText section-break" colspan="2">
            Your name is <span class="summaryAnswers"><%= @summary_guardian1.first_name %> <%= @summary_guardian1.last_name %></span>, and you are <%= @student.first_name %>'s <span class="summaryAnswers"><%= @summary_guardian1.relationship %><span class="summaryAnswers">.</td>
            <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_name_and_address' %></div></td>
        </tr>
        <tr>
          <td class="summaryText" colspan="2">You and <%= @student.first_name %> live at <span class="summaryAnswers"><%= @summary_guardian1.home_street_address_1 %> <%= @summary_guardian1.home_street_address_2 %> in <%= @summary_guardian1.home_city %>, <%= @student.home_state %></span>.</td>
          <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_name_and_address' %></div></td>
        </tr>
        <tr>
          <td class="summaryText" colspan="2">Your primary phone number is <span class="summaryAnswers"><%= @summary_guardian1.main_phone %></span><!-- which <span class="summaryAnswers">receives text messages</span>-->.</td>
          <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_phone_and_email' %></div></td>
        </tr>

        <tr>
          <td class="summaryText" colspan="2">
            A second phone number for you is <!--TODO get this from database --><span class="summaryAnswers"><%= @summary_guardian1.secondary_phone %></span> <!-- which <span class="summaryAnswers">does not receive text messages</span>-->.</td>
            <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_phone_and_email' %></div></td>
          </tr>
          <td class="summaryText" colspan="2">
            Your work phone is <span class="summaryAnswers"><%= @summary_guardian1.work_phone %></span>.</td>
            <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_phone_and_email' %></div></td>
        </tr>
        <tr>
          <td class="summaryText" colspan="2">Your email is <span class="summaryAnswers"><%= @summary_guardian1.email %></span>.</td>
            <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_phone_and_email' %></div>
          </td>
        </tr>
        <% if @summary_guardian2 %>
        <tr>
          <td class="summaryText" colspan="2">Review <span class="summaryAnswers"><%= @summary_guardian2.first_name %></span> by clicking the tab above.</td>
            <td class="summaryEdit"></div>
          </td>
        </tr>
        <% end %>
      </div>
      </table>
 <commit_msg>Added conditional in case guardian 1 doesn't live with the student<commit_after><% @student=Student.find(session[:student_id]) %>
<% @summary_guardian1=@student.contact_people[0]%>
<% @summary_guardian2=@student.contact_people[1]%>


<%= render 'enrollment/navigation' %>
<div class="enrollment-form">
  <div class="summary_table enableZindex">

  <!-- Nav tabs -->
  <ul class="nav nav-tabs" role="tablist">
    <li class="active instructions"><a href="#summaryGuardian1" role="tab" data-toggle="tab">Review <%= @summary_guardian1.first_name %></a></li>
    <% if @summary_guardian2 %>
        <li class="instructions"><a href="#summaryGuardian2" role="tab" data-toggle="tab">Review <%= @summary_guardian2.first_name %></a></li>
    <% end %>
  </ul>

  <!-- Tab panes -->
  <div class="tab-content">

    <div class="tab-pane active" id="summaryGuardian1">
      <table class="summaryTable">
          <td class="summaryText section-break" colspan="2">
            Your name is <span class="summaryAnswers"><%= @summary_guardian1.first_name %> <%= @summary_guardian1.last_name %></span>, and you are <%= @student.first_name %>'s <span class="summaryAnswers"><%= @summary_guardian1.relationship %><span class="summaryAnswers">.</td>
            <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_name_and_address' %></div></td>
        </tr>
        <tr>

          <td class="summaryText" colspan="2">You live at <span class="summaryAnswers"><%= @summary_guardian1.home_street_address_1 %> <%= @summary_guardian1.home_street_address_2 %> in <%= @summary_guardian1.home_city %>, <%= @student.home_state %></span> <% if @summary_guardian1.lives_with_student == true %>with <%= @student.first_name %><% end %>.</td>
          <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_name_and_address' %></div></td>
        </tr>
        <tr>
          <td class="summaryText" colspan="2">Your primary phone number is <span class="summaryAnswers"><%= @summary_guardian1.main_phone %></span><!-- which <span class="summaryAnswers">receives text messages</span>-->.</td>
          <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_phone_and_email' %></div></td>
        </tr>

        <tr>
          <td class="summaryText" colspan="2">
            A second phone number for you is <!--TODO get this from database --><span class="summaryAnswers"><%= @summary_guardian1.secondary_phone %></span> <!-- which <span class="summaryAnswers">does not receive text messages</span>-->.</td>
            <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_phone_and_email' %></div></td>
          </tr>
          <td class="summaryText" colspan="2">
            Your work phone is <span class="summaryAnswers"><%= @summary_guardian1.work_phone %></span>.</td>
            <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_phone_and_email' %></div></td>
        </tr>
        <tr>
          <td class="summaryText" colspan="2">Your email is <span class="summaryAnswers"><%= @summary_guardian1.email %></span>.</td>
            <td class="summaryEdit"><div class="summaryEditBtn pull-right"><%= link_to "edit", '/enrollment/guardian_phone_and_email' %></div>
          </td>
        </tr>
        <% if @summary_guardian2 %>
        <tr>
          <td class="summaryText" colspan="2">Review <span class="summaryAnswers"><%= @summary_guardian2.first_name %></span> by clicking the tab above.</td>
            <td class="summaryEdit"></div>
          </td>
        </tr>
        <% end %>
      </div>
      </table>
 
{'fraction_non_alphanumeric': 0.18820831084727468, 'fraction_numerical': 0.008634646519158122, 'mean_word_length': 3.8514397905759163, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 255, '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': '7651736', 'n_tokens_mistral': 2412, 'n_tokens_neox': 2274, 'n_words': 467}