<commit_before><%= form_for(@fruit_tree, :html => {:class => 'form-horizontal'}) do |f| %>
  <% if @fruit_tree.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@fruit_tree.errors.count, "error") %> prohibited this fruit_tree from being saved:</h2>

      <ul>
      <% @fruit_tree.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :site_id, :class => 'control-label' %>
    <div class="controls"><%= f.collection_select :site_id, Site.all, :id, :site_name %>
      <%= link_to 'Add a new site', new_site_path, :class => 'btn'%></div>
  </div>
  <div class="control-group">
    <%= f.label :fruit_id, :class => 'control-label' %>
     <div class="controls"><%= f.collection_select(:fruit_id, Fruit.all, :id, :name) %></div>
  </div>
  <div class="control_group">
    <%= f.label :pruning_candidate, :class => 'control-label' %>
    <div class="controls">yes: <%= f.radio_button :pruning_candidate, "true" %> no: <%= f.radio_button :pruning_candidate, "false" %></div><br />
  </div>
  <div class="control_group">
    <%= f.label :pruning_permission, :class => 'control-label' %>
    <div class="controls">yes: <%= f.radio_button :pruning_candidate, "true" %>
                          no: <%= f.radio_button :pruning_candidate, "false" %></div><br />
  </div>
  <div class="control-group">
    <%= f.label 'Season Start', :class => 'control-label' %>
    <div class="controls"><%= f.select(:season_start_month, MONTHS, :include_blank => true ) %>  
    <%= f.select(:season_start_day, (1..31).to_a, :include_blank => true ) %>
    <% if !@fruit_tree.fruit.nil? %>
      <span class="inline-help">Default fruit start date is <%= @fruit_tree.fruit.season_start_month %> <%= @fruit_tree.fruit.season_start_day %></span>
    <% end %></div>
  </div>
  <div class="control-group">
    <%= f.label 'Season End', :class => 'control-label' %>
    <div class="controls"><%= f.select(:season_end_month, MONTHS, :include_blank => true ) %>
    <%= f.select(:season_end_day, (1..31).to_a, :include_blank => true ) %>
    <% if !@fruit_tree.fruit.nil? %>
      <span class="inline-help">Default fruit end date is <%= @fruit_tree.fruit.season_end_month %> <%= @fruit_tree.fruit.season_end_day %></span>
    <% end %></div>
  </div>
  <div class="controls">
    <%= f.submit :class => 'btn btn-primary' %>
  </div>
<% end %><commit_msg>fixing bug in fruit tree form<commit_after><%= form_for(@fruit_tree, :html => {:class => 'form-horizontal'}) do |f| %>
  <% if @fruit_tree.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@fruit_tree.errors.count, "error") %> prohibited this fruit_tree from being saved:</h2>

      <ul>
      <% @fruit_tree.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :site_id, :class => 'control-label' %>
    <div class="controls"><%= f.collection_select :site_id, Site.all, :id, :site_name %>
      <%= link_to 'Add a new site', new_site_path, :class => 'btn'%></div>
  </div>
  <div class="control-group">
    <%= f.label :fruit_id, :class => 'control-label' %>
     <div class="controls"><%= f.collection_select(:fruit_id, Fruit.all, :id, :name) %></div>
  </div>
  <div class="control_group">
    <%= f.label :pruning_candidate, :class => 'control-label' %>
    <div class="controls">yes: <%= f.radio_button :pruning_candidate, "true" %> no: <%= f.radio_button :pruning_candidate, "false" %></div><br />
  </div>
  <div class="control_group">
    <%= f.label :pruning_permission, :class => 'control-label' %>
    <div class="controls">yes: <%= f.radio_button :pruning_permission, "true" %>
                          no: <%= f.radio_button :pruning_permission, "false" %></div><br />
  </div>
  <div class="control-group">
    <%= f.label 'Season Start', :class => 'control-label' %>
    <div class="controls"><%= f.select(:season_start_month, MONTHS, :include_blank => true ) %>  
    <%= f.select(:season_start_day, (1..31).to_a, :include_blank => true ) %>
    <% if !@fruit_tree.fruit.nil? %>
      <span class="inline-help">Default fruit start date is <%= @fruit_tree.fruit.season_start_month %> <%= @fruit_tree.fruit.season_start_day %></span>
    <% end %></div>
  </div>
  <div class="control-group">
    <%= f.label 'Season End', :class => 'control-label' %>
    <div class="controls"><%= f.select(:season_end_month, MONTHS, :include_blank => true ) %>
    <%= f.select(:season_end_day, (1..31).to_a, :include_blank => true ) %>
    <% if !@fruit_tree.fruit.nil? %>
      <span class="inline-help">Default fruit end date is <%= @fruit_tree.fruit.season_end_month %> <%= @fruit_tree.fruit.season_end_day %></span>
    <% end %></div>
  </div>
  <div class="controls">
    <%= f.submit :class => 'btn btn-primary' %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.21776155717761558, 'fraction_numerical': 0.0032441200324412004, 'mean_word_length': 3.6802656546489563, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 179, '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': '1768968', 'n_tokens_mistral': 1916, 'n_tokens_neox': 1726, 'n_words': 347}