<commit_before>= setup_page 'categories', @title, 'time/nav'
= render 'filters'

- if managing?
  - if @record_category.activity?
    - after_title do
      = link_to(t('.start_activity'), track_record_category_path(:id => @record_category.id), :class => 'btn', :style => 'margin-left: 5px', :method => :post)
      = link_to(t('goal.set'), new_goal_path(record_category_id: @record_category.id), class: 'btn', style: 'margin-left: 5px')
  - if @record_category.record?
    - after_title link_to(t('.record'), track_record_category_path(:id => @record_category.id), :class => 'btn', :style => 'margin-left: 5px', :method => :post)
  
%p
  = record_category_breadcrumbs(@record_category)
  - if managing?
    \|
    = link_to t('app.general.edit'), edit_record_category_path(@record_category)
    - if @record_category.list?
      \|
      = link_to t('.add_child'), new_record_category_path(:parent_id => @record_category.id)
  - unless @record_category.record?
    \|
    = link_to t('.review'), time_review_path(:parent_id => @record_category.id)
  \|
  = link_to t('app.general.back'), record_categories_path

Total:
= duration @total
= "- #{pluralize @count_activities, 'activity'} (#{pluralize @total_entries, 'entry'} in total)"
  
#cal-heatmap
- if @record_category.category_type == 'list'
  - if @record_category.children.length > 0
    = render 'list', :list => @record_category.children

- if @records
  = render 'records/summary', :records => @records, :show_duration => !@record_category.record?
  = will_paginate @records, :renderer => PaginationListLinkRenderer
  
:javascript
  var calHeatmapData = #{@heatmap.to_json};
  var cal = new CalHeatMap();
  cal.init({data: calHeatmapData, domain: 'month', subDomain: 'day',
     start: new Date(#{@summary_start.to_i * 1000}),
     itemName: ["hour", "hours"],
     scale: [0, #{@min_duration}, #{@min_duration + @step}, #{@min_duration + @step * 2}],
     range: #{@count_domain}});<commit_msg>Show message only if they differ<commit_after>= setup_page 'categories', @title, 'time/nav'
= render 'filters'

- if managing?
  - if @record_category.activity?
    - after_title do
      = link_to(t('.start_activity'), track_record_category_path(:id => @record_category.id), :class => 'btn', :style => 'margin-left: 5px', :method => :post)
      = link_to(t('goal.set'), new_goal_path(record_category_id: @record_category.id), class: 'btn', style: 'margin-left: 5px')
  - if @record_category.record?
    - after_title link_to(t('.record'), track_record_category_path(:id => @record_category.id), :class => 'btn', :style => 'margin-left: 5px', :method => :post)
  
%p
  = record_category_breadcrumbs(@record_category)
  - if managing?
    \|
    = link_to t('app.general.edit'), edit_record_category_path(@record_category)
    - if @record_category.list?
      \|
      = link_to t('.add_child'), new_record_category_path(:parent_id => @record_category.id)
  - unless @record_category.record?
    \|
    = link_to t('.review'), time_review_path(:parent_id => @record_category.id)
  \|
  = link_to t('app.general.back'), record_categories_path

Total:
= duration @total
- if @count_activities == @total_entries
  = "- #{pluralize @count_activities, 'activity'}"
- else
  = "- #{pluralize @count_activities, 'activity'} (#{pluralize @total_entries, 'entry'} in total)"
  
#cal-heatmap
- if @record_category.category_type == 'list'
  - if @record_category.children.length > 0
    = render 'list', :list => @record_category.children

- if @records
  = render 'records/summary', :records => @records, :show_duration => !@record_category.record?
  = will_paginate @records, :renderer => PaginationListLinkRenderer
  
:javascript
  var calHeatmapData = #{@heatmap.to_json};
  var cal = new CalHeatMap();
  cal.init({data: calHeatmapData, domain: 'month', subDomain: 'day',
     start: new Date(#{@summary_start.to_i * 1000}),
     itemName: ["hour", "hours"],
     scale: [0, #{@min_duration}, #{@min_duration + @step}, #{@min_duration + @step * 2}],
     range: #{@count_domain}});
{'fraction_non_alphanumeric': 0.17146401985111662, 'fraction_numerical': 0.004962779156327543, 'mean_word_length': 4.669479606188467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '965219', 'n_tokens_mistral': 1391, 'n_tokens_neox': 1358, 'n_words': 273}