<commit_before><% form_for(@school, :html => {:class => 'edit_school'}) do |f| %>
  <%= f.error_messages %>

  <% content_for :jstemplates do %>
    var proctor='<%= generate_template(f, :proctors) %>';
    var team='<%= generate_template(f, :teams) %>';
  <% end %>
  <% f.fields_for :teams, Team.new, :child_index => 'PARENT_ID' do |tf| %>
    <% content_for :jstemplates do %>
      var student='<%= generate_template(tf, :students) %>';
    <% end %>
  <% end %>

  <div class="clearfix" id="school-info">
    <div class="span-8">
      <fieldset>
        <legend>School</legend>
        <p>
          <%= f.label :name %><br />
          <%= f.text_field :name %>
        </p>

        <p>
          <%= f.label :enrollment, '9th grade school enrollment' %><br />
          <%= f.text_field :enrollment, :size => 4 %>
        </p>
      </fieldset>
    </div>
    <div class="span-7 payment outer tcenter">
      <div class="inner">
        The amount due for this team is
        <span style="color:#008000;font-weight:bold;"><%= number_to_currency @school.cost %></span>.
        <% if @school.cost > 0 %>
          Please bring a check payable to <em>GT Education</em> to the registration table.
        <% end %>
      </div>
    </div>
    <hr />
    <div class="span-8 colborder">
      <fieldset>
        <legend>School Contact</legend>
        <p>
          <%= f.label :contact_name, "Name" %><br />
          <%= f.text_field :contact_name %>
        </p>

        <p>
          <%= f.label :email %><br />
          <%= f.text_field :email %>
        </p>
        <p>
          <%= f.label :password %><br />
          <%= f.text_field :password %>
        </p>
        <p>
          <%= f.label :password_confirmation %><br />
          <%= f.text_field :password_confirmation %>
        </p>

        <p>
          <label>Phone</label><br />
          <% f.fields_for :phone, @school.phone do |pf| %>
            <%= pf.text_field :area_code, :size => 3, :maxlength => 3 %> &ndash;
            <%= pf.text_field :prefix, :size => 3, :maxlength => 3 %> &ndash;
            <%= pf.text_field :suffix, :size => 4, :maxlength => 4 %>
          <% end %>
        </p>
      </fieldset>
    </div>

    <div class="span-8 last">
      <% @school.proctors.build %>
      <%= small_errors(@school.proctors) %>
      <fieldset id="proctors">
        <legend>Proctors <%= add_link '[add]', '#proctors' %></legend>
        <p>We need proctors. Let us know if you can proctor.</p>
        <% f.fields_for :proctors do |pf| %>
          <%= render 'proctor', :f => pf %>
        <% end %>
      </fieldset>
    </div>
  </div>

  <div>
    <h3 style="font-weight:bold;text-align:center">Teams</h3>
    <% @school.teams.sorted.each do |team| %>

      <% next if team.is_exhibition %>
      <div class="span-8 <%= cycle 'colborder', 'last', :team_non_ex_class %>">
        <% f.fields_for :teams, team do |tf| %>
          <%= render 'team', :f => tf %>
        <% end %>
      </div>
    <% end %>
  </div>

  <hr />

  <div id="exhibition">
    <h3>Exhibition Teams <%= add_link '[add]', '#exhibition', :var => 'team' %></h3>

    <p>
      All Exhibition teams will still participate, although their scores will not count towards the school's total
      score. Once a team is created, it will be assigned an ID number to identify it.
    </p>
    <% @school.teams.each do |team| %>
      <% f.fields_for :teams, team do |etf| %>
        <%= render 'team', :f => etf %>
      <% end if team.is_exhibition %>
    <% end %>
  </div><commit_msg>Optimizations which obscure it too much and don't really add anything<commit_after><% form_for(@school, :html => {:class => 'edit_school'}) do |f| %>
  <%= f.error_messages %>

  <% content_for :jstemplates do %>
    var proctor='<%= generate_template(f, :proctors) %>';
    var team='<%= generate_template(f, :teams) %>';
  <% end %>
  <% f.fields_for :teams, Team.new, :child_index => 'PARENT_ID' do |tf| %>
    <% content_for :jstemplates do %>
      var student='<%= generate_template(tf, :students) %>';
    <% end %>
  <% end %>

  <div class="clearfix" id="school-info">
    <div class="span-8">
      <fieldset>
        <legend>School</legend>
        <p>
          <%= f.label :name %><br />
          <%= f.text_field :name %>
        </p>

        <p>
          <%= f.label :enrollment, '9th grade school enrollment' %><br />
          <%= f.text_field :enrollment, :size => 4 %>
        </p>
      </fieldset>
    </div>
    <div class="span-7 payment outer tcenter">
      <div class="inner">
        The amount due for this team is
        <span style="color:#008000;font-weight:bold;"><%= number_to_currency @school.cost %></span>.
        <% if @school.cost > 0 %>
          Please bring a check payable to <em>GT Education</em> to the registration table.
        <% end %>
      </div>
    </div>
    <hr />
    <div class="span-8 colborder">
      <fieldset>
        <legend>School Contact</legend>
        <p>
          <%= f.label :contact_name, "Name" %><br />
          <%= f.text_field :contact_name %>
        </p>

        <p>
          <%= f.label :email %><br />
          <%= f.text_field :email %>
        </p>
        <p>
          <%= f.label :password %><br />
          <%= f.text_field :password %>
        </p>
        <p>
          <%= f.label :password_confirmation %><br />
          <%= f.text_field :password_confirmation %>
        </p>

        <p>
          <label>Phone</label><br />
          <% f.fields_for :phone, @school.phone do |pf| %>
            <%= pf.text_field :area_code, :size => 3, :maxlength => 3 %> &ndash;
            <%= pf.text_field :prefix, :size => 3, :maxlength => 3 %> &ndash;
            <%= pf.text_field :suffix, :size => 4, :maxlength => 4 %>
          <% end %>
        </p>
      </fieldset>
    </div>

    <div class="span-8 last">
      <% @school.proctors.build %>
      <%= small_errors(@school.proctors) %>
      <fieldset id="proctors">
        <legend>Proctors <%= add_link '[add]', '#proctors' %></legend>
        <p>We need proctors. Let us know if you can proctor.</p>
        <% f.fields_for :proctors do |pf| %>
          <%= render 'proctor', :f => pf %>
        <% end %>
      </fieldset>
    </div>
  </div>

  <div>
    <h3 style="font-weight:bold;text-align:center">Teams</h3>
    <% @school.teams.non_exhibition.sorted.each do |team| %>
      <div class="span-8 <%= cycle 'colborder', 'last', :team_non_ex_class %>">
        <% f.fields_for :teams, team do |tf| %>
          <%= render 'team', :f => tf %>
        <% end %>
      </div>
    <% end %>
  </div>

  <hr />

  <div id="exhibition">
    <h3>Exhibition Teams <%= add_link '[add]', '#exhibition', :var => 'team' %></h3>

    <p>
      All Exhibition teams will still participate, although their scores will not count towards the school's total
      score. Once a team is created, it will be assigned an ID number to identify it.
    </p>
    <% @school.teams.exhibition.each do |team| %>
      <% f.fields_for :teams, team do |etf| %>
        <%= render 'team', :f => etf %>
      <% end %>
    <% end %>
  </div>
{'fraction_non_alphanumeric': 0.1906434391683057, 'fraction_numerical': 0.006743467266085979, 'mean_word_length': 2.1019607843137256, 'pattern_counts': {'":': 0, '<': 236, '<?xml version=': 0, '>': 266, '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': '1278161', 'n_tokens_mistral': 2653, 'n_tokens_neox': 2387, 'n_words': 590}