<commit_before>= page_header(t('.heading'))

= form_tag generate_report_timesheet_entries_path do
  .form-group
    label
      = t('.organisation')
      = select :report, :organisation_id, Organisation.order('name').map {|o| [ o.name, o.id ] }, {selected: params[:report] ? params[:report][:organisation_id] : nil}, class: 'form-control'
  .form-group
    label
      = t('.start_date')
      = date_select :report, :start
  .form-group
    label
      = t('.end_date')
      = date_select :report, :end
  = submit_tag t('.generate_report'), class: 'btn btn-primary'

- if @timesheet_entries
  = "Total invoiced: #{number_to_currency(@timesheet_entries.map{|e| e.invoice_value }.reduce(:+), unit: '£')}"
  = render 'timesheet_entries/table'<commit_msg>Better year ranges for report<commit_after>= page_header(t('.heading'))

= form_tag generate_report_timesheet_entries_path do
  .form-group
    label
      = t('.organisation')
      = select :report, :organisation_id, Organisation.order('name').map {|o| [ o.name, o.id ] }, {selected: params[:report] ? params[:report][:organisation_id] : nil}, class: 'form-control'
  .form-group
    label
      = t('.start_date')
      = date_select :report, :start, start_year: Date.today.year - 15, end_year: Date.today.year
  .form-group
    label
      = t('.end_date')
      = date_select :report, :end, start_year: Date.today.year - 15, end_year: Date.today.year
  = submit_tag t('.generate_report'), class: 'btn btn-primary'

- if @timesheet_entries
  = "Total invoiced: #{number_to_currency(@timesheet_entries.map{|e| e.invoice_value }.reduce(:+), unit: '£')}"
  = render 'timesheet_entries/table'
{'fraction_non_alphanumeric': 0.1652490886998785, 'fraction_numerical': 0.002430133657351154, 'mean_word_length': 4.099071207430341, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6950313', 'n_tokens_mistral': 570, 'n_tokens_neox': 556, 'n_words': 111}