<commit_before><% form_for payform_item do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :date %><br />
    <%= f.collection_select :date, days_in_period(@payform), :to_s, :to_s, {:selected => (@payform_item.date ||= Date.today).to_s} %>
  </p>
  <p>
    <%= f.label :hours %><br />
    <%= radio_button_tag "calculate_hours", "user_input", true %><strong>Input</strong>
    <%= select_integer(:other, :hours, 0, 15, selected_hours(@payform_item) )%> hrs
    <%= select_integer(:other, :minutes, 0, 59, selected_min(@payform_item) )%> min<br />
    <%= radio_button_tag "calculate_hours", "time_input", false %><strong>Compute</strong>
    <%= time_select "time_input", "start", {:twelve_hour => true}, {:value => 1.hour.ago} %> to 
    <%= time_select "time_input", "end", {:twelve_hour => true} %>
  </p>
  <p>
    <%= f.label :category %><br />
    <%= f.collection_select :category_id, @department.categories.active, :id, :name, {:prompt => "Select a category"} %>
  </p>
  <p><commit_msg>fixes as described.<commit_after><% form_for payform_item do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :date %><br />
    <%= f.collection_select :date, days_in_period(@payform), :to_s, :to_s, {:selected => (@payform_item.date || Date.today).to_s} %>
  </p>
  <p>
    <%= f.label :hours %><br />
    <%= radio_button_tag "calculate_hours", "user_input", true %><strong>Input</strong>
    <%= select_integer(:other, :hours, 0, 15, selected_hours(@payform_item) )%> hrs
    <%= select_integer(:other, :minutes, 0, 59, selected_min(@payform_item) )%> min<br />
    <%= radio_button_tag "calculate_hours", "time_input", false %><strong>Compute</strong>
    <%= time_select "time_input", "start", {:twelve_hour => true}, {:value => 1.hour.ago} %> to 
    <%= time_select "time_input", "end", {:twelve_hour => true} %>
  </p>
  <p>
    <%= f.label :category %><br />
    <%= f.collection_select :category_id, @department.categories.active, :id, :name, {:prompt => "Select a category"} %>
  </p>
  <p>
{'fraction_non_alphanumeric': 0.22100547536087606, 'fraction_numerical': 0.006968641114982578, 'mean_word_length': 4.345744680851064, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 69, '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': '510186', 'n_tokens_mistral': 830, 'n_tokens_neox': 749, 'n_words': 149}