<commit_before><% content_for :title do %>Calculate your annual leave<% end %>
<% content_for :section_name do %>Section<% end %>
	
<section class="calculator" id="content">
  <header class="page-header group">
    <hgroup>
      <h1>
        <span>Calculator </span>
        Calculate your annual leave
      </h1>

    </hgroup>
  </header>

  <div class="article-container group">
    <article role="article" class="group">
      <div class="inner">
        <div class="summary"><p>You are entitled to 5.6 weeks paid annual leave. This starts from your first day of employment.</p></div>
      </div>
    </article>

    <div class="current-question"> 
      <%= form_tag "", :method => :get  do %>
        <fieldset class="question">
          <legend>Calculate your annual leave based on:</legend>
          
          <li>
            <label for="period_full_year">
              <%= radio_button_tag 'period', 'full_year', ( { :checked => true } unless @options[:period] == :leaving || @options[:period] == :joining ) %> A full year            
            </label>
          </li>     
          
          <li>
            <label for="period_part_year">
              <%= radio_button_tag 'period', 'part_year', ( { :checked => true } if @options[:period] == :leaving || @options[:period] == :joining ) %> Part of a year            
            </label>
            <label for="leave_join">someone is 
              <%= select_tag "leave_join", options_for_select(["leaving","joining"], @options[:period] || "leaving") %>
            </label>
            <label for="leave_join_date">on
              <%= date_select("leave_join_date", nil, :order => [:day, :month, :year], :default => { :day => @options[:date].day, :month => @options[:date].month, :year => @options[:date].year })%>
            </label>
          </li>              
        </fieldset>

        <fieldset class="question">
          <legend>Are you paid hourly or daily?</legend>
          
          <li>
            <label for="pay_period_daily">
              <%= radio_button_tag 'pay_period', 'daily', ( { :checked => true } unless @options[:pay_period] == :hours ) %> Daily            
            </label>&mdash;
            <label for="days_per_week">
              <%= select_tag "days_per_week", options_for_select(1..5, @options[:days_per_week]) %> days a week
            </label>
          </li>     

          <li>
            <label for="pay_period_hourly">
              <%= radio_button_tag 'pay_period', 'hourly', ( { :checked => true } if @options[:pay_period] == :hours )   %> Hourly            
            </label>&mdash;
            <label for="hours_per_week">
              <%= text_field_tag "hours_per_week", params[:hours_per_week] || 35, :size => 3 %> hours a week
            </label>
          </li>                   
        </fieldset>

        <fieldset class="question">
          <legend>When does your holiday year start?</legend>
          
          <li>
            <label for="start_date">
              <%= date_select("start_date", nil, :order => [:day, :month], :default => { :day => @options[:start_date].day, :month => @options[:start_date].month } ) %>            
            </label>
          </li>                 
        </fieldset>

        <p><%= submit_tag "Calculate annual leave", :class => "button medium" %></p>
      <% end %>
    </div>

      <% if @result.present? -%>
      <article id="holidays-answer">
        <div class="inner">
          <div class="summary"><h2>Your annual leave would be <%= pluralize(@result[:final_amount], @result[:pay_period].to_s) %></h2></div>
          <h2 id="result"></h2>
          <p><%= @result[:workings] %></p>
        </div>
      </article>
      <% end %>

      <div class="meta-data">

        <p>Re-use this data:</p>
        
        <ul class="api-links">
          <li class="json"><a href="registrars-offices.json">JSON</a></li>
        </ul>
      </div>

  </div>
</section><commit_msg>Changed format title to Quick Answer, rather than Calculator<commit_after><% content_for :title do %>Calculate your annual leave<% end %>
<% content_for :section_name do %>Section<% end %>

<section class="calculator" id="content">
  <header class="page-header group">
    <hgroup>
      <h1>
        <span>Quick answer </span>
        Calculate your annual leave
      </h1>

    </hgroup>
  </header>

  <div class="article-container group">
    <article role="article" class="group">
      <div class="inner">
        <div class="summary"><p>You are entitled to 5.6 weeks paid annual leave. This starts from your first day of employment.</p></div>
      </div>
    </article>

    <div class="current-question">
      <%= form_tag "", :method => :get  do %>
        <fieldset class="question">
          <legend>Calculate your annual leave based on:</legend>

          <li>
            <label for="period_full_year">
              <%= radio_button_tag 'period', 'full_year', ( { :checked => true } unless @options[:period] == :leaving || @options[:period] == :joining ) %> A full year
            </label>
          </li>

          <li>
            <label for="period_part_year">
              <%= radio_button_tag 'period', 'part_year', ( { :checked => true } if @options[:period] == :leaving || @options[:period] == :joining ) %> Part of a year
            </label>
            <label for="leave_join">someone is
              <%= select_tag "leave_join", options_for_select(["leaving","joining"], @options[:period] || "leaving") %>
            </label>
            <label for="leave_join_date">on
              <%= date_select("leave_join_date", nil, :order => [:day, :month, :year], :default => { :day => @options[:date].day, :month => @options[:date].month, :year => @options[:date].year })%>
            </label>
          </li>
        </fieldset>

        <fieldset class="question">
          <legend>Are you paid hourly or daily?</legend>

          <li>
            <label for="pay_period_daily">
              <%= radio_button_tag 'pay_period', 'daily', ( { :checked => true } unless @options[:pay_period] == :hours ) %> Daily
            </label>&mdash;
            <label for="days_per_week">
              <%= select_tag "days_per_week", options_for_select(1..5, @options[:days_per_week]) %> days a week
            </label>
          </li>

          <li>
            <label for="pay_period_hourly">
              <%= radio_button_tag 'pay_period', 'hourly', ( { :checked => true } if @options[:pay_period] == :hours )   %> Hourly
            </label>&mdash;
            <label for="hours_per_week">
              <%= text_field_tag "hours_per_week", params[:hours_per_week] || 35, :size => 3 %> hours a week
            </label>
          </li>
        </fieldset>

        <fieldset class="question">
          <legend>When does your holiday year start?</legend>

          <li>
            <label for="start_date">
              <%= date_select("start_date", nil, :order => [:day, :month], :default => { :day => @options[:start_date].day, :month => @options[:start_date].month } ) %>
            </label>
          </li>
        </fieldset>

        <p><%= submit_tag "Calculate annual leave", :class => "button medium" %></p>
      <% end %>
    </div>

      <% if @result.present? -%>
      <article id="holidays-answer">
        <div class="inner">
          <div class="summary"><h2>Your annual leave would be <%= pluralize(@result[:final_amount], @result[:pay_period].to_s) %></h2></div>
          <h2 id="result"></h2>
          <p><%= @result[:workings] %></p>
        </div>
      </article>
      <% end %>

      <div class="meta-data">

        <p>Re-use this data:</p>

        <ul class="api-links">
          <li class="json"><a href="registrars-offices.json">JSON</a></li>
        </ul>
      </div>

  </div>
</section>
{'fraction_non_alphanumeric': 0.17431777607753124, 'fraction_numerical': 0.0033154807447079828, 'mean_word_length': 2.125946592267836, 'pattern_counts': {'":': 0, '<': 215, '<?xml version=': 0, '>': 247, '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': '5611633', 'n_tokens_mistral': 2470, 'n_tokens_neox': 2321, 'n_words': 542}