<commit_before>%div{ style: 'margin-top:30px;margin-bottom: 30px' }
  = link_to dashboard_path do
    = image_tag 'pats-logo-transparent.png', alt: '', class: 'img-responsive'
%ul.left-menu
  %li.left-menu-header Dashboard
  %li
    = link_to 'Home', dashboard_path, class: (current_page?(dashboard_path) ? 'active' : nil)
  %li
    = link_to 'Directory', directory_path, class: (current_page?(directory_path) ? 'active' : nil)
  %li.left-menu-header Documents
  - Category.current.where(archived: false).each do |category|
    - if category.documents.where(archived: false).present?
      %li= link_to category.name, internal_category_path(category.slug)
  - if current_user.admin?
    %li.left-menu-header Admin
    %li= link_to 'Dashboard', admin_root_path
  - if current_user.editor?
    %li.left-menu-header Editor
    %li= link_to 'Dashboard', editor_path
<commit_msg>Set active class for category menu items<commit_after>%div{ style: 'margin-top:30px;margin-bottom: 30px' }
  = link_to dashboard_path do
    = image_tag 'pats-logo-transparent.png', alt: '', class: 'img-responsive'
%ul.left-menu
  %li.left-menu-header Dashboard
  %li
    = link_to 'Home', dashboard_path, class: (current_page?(dashboard_path) ? 'active' : nil)
  %li
    = link_to 'Directory', directory_path, class: (current_page?(directory_path) ? 'active' : nil)
  %li.left-menu-header Documents
  - Category.current.where(archived: false).each do |category|
    - if category.documents.where(archived: false).present?
      %li
        = link_to category.name, internal_category_path(category.slug), class: (current_page?(internal_category_path(category.slug)) ? 'active' : nil)
  - if current_user.admin?
    %li.left-menu-header Admin
    %li= link_to 'Dashboard', admin_root_path
  - if current_user.editor?
    %li.left-menu-header Editor
    %li= link_to 'Dashboard', editor_path

{'fraction_non_alphanumeric': 0.13733905579399142, 'fraction_numerical': 0.004291845493562232, 'mean_word_length': 4.3746397694524495, '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': '2995238', 'n_tokens_mistral': 645, 'n_tokens_neox': 644, 'n_words': 130}