<commit_before><%=  form_tag controller: 'user_leave_reports', action: 'report' do %>
  <table>
    <tr align="left">
      <th><%= l(:label_date_from) %></th>
    </tr>  
    <tr align="left">
      <td><%= text_field_tag "user_leave_report[date_from]", params[:user_leave_report] && params[:user_leave_report][:date_from] %>
        <%= calendar_for 'user_leave_report_date_from' %>
      </td>    
    </tr>
    <tr align="left">
      <th><%= l(:label_date_to) %></th>
    </tr>
    <tr align="left">
      <td> <%= text_field_tag "user_leave_report[date_to]", params[:user_leave_report] && params[:user_leave_report][:date_to] %> 
        <%= calendar_for 'user_leave_report_date_to' %>
      </td>    
    </tr>


    <tr align="left">
      <th><%= l(:label_sortby) %></th>
    </tr>
    <tr align="left">
      <td>
        <%= select_tag("user_leave_report[selected_group_by]",<commit_msg>sets default date values in leave summary<commit_after><%=  form_tag controller: 'user_leave_reports', action: 'report' do %>
  <table>
    <tr align="left">
      <th><%= l(:label_date_from) %></th>
    </tr>  
    <tr align="left">
      <td><%= text_field_tag "user_leave_report[date_from]",
          (params[:user_leave_report] && params[:user_leave_report][:date_from]) || Date.today - 1.month %>
        <%= calendar_for 'user_leave_report_date_from' %>
      </td>    
    </tr>
    <tr align="left">
      <th><%= l(:label_date_to) %></th>
    </tr>
    <tr align="left">
      <td> <%= text_field_tag "user_leave_report[date_to]",
           (params[:user_leave_report] && params[:user_leave_report][:date_to]) || Date.today %> 
        <%= calendar_for 'user_leave_report_date_to' %>
      </td>    
    </tr>


    <tr align="left">
      <th><%= l(:label_sortby) %></th>
    </tr>
    <tr align="left">
      <td>
        <%= select_tag("user_leave_report[selected_group_by]",
{'fraction_non_alphanumeric': 0.19501854795972443, 'fraction_numerical': 0.0005299417064122947, 'mean_word_length': 3.233183856502242, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 65, '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': '6638152', 'n_tokens_mistral': 718, 'n_tokens_neox': 676, 'n_words': 112}