<commit_before><% content_for :body_id do %>
index<% end %>

<%= provide(:title, 'Results' ) %>
<h1>Results</h1>
<p id="notice"><%= notice %></p>
<table class="table">
  <caption></caption>
  <colgroup>
    <col id="column1" />
    <col id="column2" />
  </colgroup>
  <tbody>
    <tr>
      <td>Postcode:</td>
      <td><%= @pv_query.postcode.pcode %></td>
    </tr>
    <% @pv_query.panels.each_with_index do |panel, index| %>
      <tr>
        <td>Panel <%= index + 1 %></td>
        <td></td>
      </tr>
      <tr>
        <td>Tilt:</td>
        <td><%= panel.tilt %>&deg;</td>
      </tr>
      <tr>
        <td>Bearing:</td>
        <td><%= panel.bearing %>&deg;</td>
      </tr>
      <tr>
        <td>Size:</td>
        <td><%= panel.panel_size %> m<sup>2</sup></td>
      </tr>
    <% end %>
  </tbody>
</table>
<p>@output_pa: <%= @output_pa %></p>
<table class="table table-striped table-condensed">
  <caption>Avg output (kW)</caption>
  <colgroup>
    <col />
    <col />
  </colgroup>
  <thead>
    <tr>
      <th scope="col">Time</th>
      <th scope="col">Jan</th>
      <th scope="col">Feb</th>
      <th scope="col">Mar</th>
      <th scope="col">Apr</th>
      <th scope="col">May</th>
      <th scope="col">Jun</th>
      <th scope="col">Jul</th>
      <th scope="col">Aug</th>
      <th scope="col">Sep</th>
      <th scope="col">Oct</th>
      <th scope="col">Nov</th>
      <th scope="col">Dec</th>
    </tr>
  </thead>
  <tbody>
    <% @output_pa_array.each_with_index do |day_array, i| %>
      <tr>
        <td><%= 6 + i %></td>
        <% day_array.each do |value| %>
          <td><%= value %></td>
        <% end %>
      </tr>
    <% end %>
  </tbody>
</table>
<h3>Total panel output per annum, averaged over the panel's lifetime</h3>
<%= content_tag :div, id: "output_pa", data: {datapoints: @output_pa} do %>
  <p class="alert alert-warning">Oops. There should be a pretty graph here.</p>
<% end %><commit_msg>remove debug tables from results page...<commit_after><% content_for :body_id do %>
index<% end %>

<%= provide(:title, 'Results' ) %>
<h1>Results</h1>
<p id="notice"><%= notice %></p>
<h3>Total panel output per annum, averaged over the panel's lifetime</h3>
<%= content_tag :div, id: "output_pa", data: {datapoints: @output_pa} do %>
  <p class="alert alert-warning">Oops. There should be a pretty graph here.</p>
<% end %>
{'fraction_non_alphanumeric': 0.22813688212927757, 'fraction_numerical': 0.005492184199408534, 'mean_word_length': 2.6942277691107646, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 135, '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': '2962669', 'n_tokens_mistral': 952, 'n_tokens_neox': 897, 'n_words': 202}