<commit_before><!-- Render the sidebar partial -->
<%= render partial: "layouts/sidebar", locals: {cur_step: PermitStepsController::STEPS.index(:display_summary) + 1} %>

<!-- Begin step -->
<div class="col-sm-9">

  <!-- Intro text -->
  <div class="intro">
    <h1><%= t('views.permit_steps.display_summary.intro.heading') %></h1>
    <p><%= t('views.permit_steps.display_summary.intro.body') %></p>
  </div>

  <div class="panel panel-default">

    <div class="panel-heading">
      <h4><%= t('views.permit_steps.display_summary.permit.heading') %></h4>
    </div>

    <div class="panel-body container-fluid">
    
      <p><strong><%= t('views.permit_steps.display_summary.permit.congrat_text') %></strong></p>
      <p><%= t('views.permit_steps.display_summary.permit.download_instruction') %></p>
      
      <table class="table table-condensed">
        <thead>
          <tr>
            <th><%= t('views.permit_steps.display_summary.table.head.description') %></th>
            <th><%= t('views.permit_steps.display_summary.table.head.response') %></th>
          </tr>
        </thead>

        <tbody>

          <!-- Required permits -->
          <% if ! @permit_needs["permit_needed"].empty? %>
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.list') %></td>
              <td>
                <% @permit_needs["permit_needed"].each do |project| %>
                  <li><%= t(project) %></li>
                <% end %>
              </td>
            </tr>
          <% end %>

          <!-- Homeowner name -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.owner_name') %></td>
            <td><%= @permit.owner_name %></td>
          </tr>

          <!-- Project address -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.address') %></td>
            <td><%= @permit.owner_address %></td>
          </tr>

          <!-- Phone number -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.phone') %></td>
            <td><%= @permit.phone %></td>
          </tr>

          <!-- Email address -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.email') %></td>
            <td><%= @permit.email %></td>
          </tr>

          <% if @permit.addition %>
          <!-- House area -->
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.size') %></td>
              <td><%= @permit.house_area %> <%= t('views.permit_steps.display_summary.table.units') %></td>
            </tr>

          <!-- Addition area -->
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.added_size') %></td>
              <td><%= @permit.addition_area %> <%= t('views.permit_steps.display_summary.table.units') %></td>
            </tr>

          <!-- Air conditioning type -->
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.ac') %></td>
              <td><%= @permit.ac %></td>
            </tr>

          <% end %>

          <!-- Window count -->
          <% if @permit.window %>
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.number_windows') %></td>
              <td><%= @permit.window_count %></td>
            </tr>
          <% end %>

          <!-- Door count -->
          <% if @permit.door %>
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.number_doors') %></td>
              <td><%= @permit.door_count %></td>
            </tr>
          <% end %>

          <!-- Work summary -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.summary') %></td>
            <td><%= @permit.work_summary %></td>
          </tr>

          <!-- Job cost -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.cost') %></td>
            <td><%= number_to_currency(@permit.job_cost) %></td>
          </tr>

        </tbody>

      </table>

      <!-- Next button -->
      <%= link_to t('views.permit_steps.display_summary.permit.send_button'), next_wizard_path, class: "btn btn-danger btn-lg" %>
      <!-- Next button -->
      <%= link_to t('views.permit_steps.display_summary.permit.problem_button'), wizard_path(:enter_details), class: "btn btn-default btn-lg" %>
    </div><!-- ./panel_body -->
  </div><!-- ./panel -->
</div> <!-- ./col-sm-9 --><commit_msg>Change submit application button to blue instead of red<commit_after><!-- Render the sidebar partial -->
<%= render partial: "layouts/sidebar", locals: {cur_step: PermitStepsController::STEPS.index(:display_summary) + 1} %>

<!-- Begin step -->
<div class="col-sm-9">

  <!-- Intro text -->
  <div class="intro">
    <h1><%= t('views.permit_steps.display_summary.intro.heading') %></h1>
    <p><%= t('views.permit_steps.display_summary.intro.body') %></p>
  </div>

  <div class="panel panel-default">

    <div class="panel-heading">
      <h4><%= t('views.permit_steps.display_summary.permit.heading') %></h4>
    </div>

    <div class="panel-body container-fluid">
    
      <p><strong><%= t('views.permit_steps.display_summary.permit.congrat_text') %></strong></p>
      <p><%= t('views.permit_steps.display_summary.permit.download_instruction') %></p>
      
      <table class="table table-condensed">
        <thead>
          <tr>
            <th><%= t('views.permit_steps.display_summary.table.head.description') %></th>
            <th><%= t('views.permit_steps.display_summary.table.head.response') %></th>
          </tr>
        </thead>

        <tbody>

          <!-- Required permits -->
          <% if ! @permit_needs["permit_needed"].empty? %>
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.list') %></td>
              <td>
                <% @permit_needs["permit_needed"].each do |project| %>
                  <li><%= t(project) %></li>
                <% end %>
              </td>
            </tr>
          <% end %>

          <!-- Homeowner name -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.owner_name') %></td>
            <td><%= @permit.owner_name %></td>
          </tr>

          <!-- Project address -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.address') %></td>
            <td><%= @permit.owner_address %></td>
          </tr>

          <!-- Phone number -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.phone') %></td>
            <td><%= @permit.phone %></td>
          </tr>

          <!-- Email address -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.email') %></td>
            <td><%= @permit.email %></td>
          </tr>

          <% if @permit.addition %>
          <!-- House area -->
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.size') %></td>
              <td><%= @permit.house_area %> <%= t('views.permit_steps.display_summary.table.units') %></td>
            </tr>

          <!-- Addition area -->
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.added_size') %></td>
              <td><%= @permit.addition_area %> <%= t('views.permit_steps.display_summary.table.units') %></td>
            </tr>

          <!-- Air conditioning type -->
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.ac') %></td>
              <td><%= @permit.ac %></td>
            </tr>

          <% end %>

          <!-- Window count -->
          <% if @permit.window %>
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.number_windows') %></td>
              <td><%= @permit.window_count %></td>
            </tr>
          <% end %>

          <!-- Door count -->
          <% if @permit.door %>
            <tr>
              <td><%= t('views.permit_steps.display_summary.table.number_doors') %></td>
              <td><%= @permit.door_count %></td>
            </tr>
          <% end %>

          <!-- Work summary -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.summary') %></td>
            <td><%= @permit.work_summary %></td>
          </tr>

          <!-- Job cost -->
          <tr>
            <td><%= t('views.permit_steps.display_summary.table.cost') %></td>
            <td><%= number_to_currency(@permit.job_cost) %></td>
          </tr>

        </tbody>

      </table>

      <!-- Next button -->
      <%= link_to t('views.permit_steps.display_summary.permit.send_button'), next_wizard_path, class: "btn btn-primary btn-lg" %>
      <!-- Next button -->
      <%= link_to t('views.permit_steps.display_summary.permit.problem_button'), wizard_path(:enter_details), class: "btn btn-default btn-lg" %>
    </div><!-- ./panel_body -->
  </div><!-- ./panel -->
</div> <!-- ./col-sm-9 -->
{'fraction_non_alphanumeric': 0.2085149178679182, 'fraction_numerical': 0.001564420605654263, 'mean_word_length': 1.7942553855760224, 'pattern_counts': {'":': 0, '<': 351, '<?xml version=': 0, '>': 351, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5443118', 'n_tokens_mistral': 3016, 'n_tokens_neox': 2798, 'n_words': 460}