<commit_before>.sidebar-info-box
  .sidebar-header
    %h3.title Dartmouth Group Directory
  .sidebar-content
    %p Welcome to the Dartmouth Group Directory, where your dreams come true. For real. This site is actually amazing beyond all belief.
.sidebar-info-box
  .sidebar-header
    %h3.title Recently Updated
  .sidebar-content
    - Group.recently_updated(5).each do |group|
      =link_to group.name, group_path(group)
.sidebar-info-box
  .sidebar-header
    %h3.title Leaderboards
  .sidebar-content
    %p Welcome to the Dartmouth Group Directory, where your dreams come true. For real. This site is actually amazing beyond all belief.
.sidebar-info-box
  .sidebar-header
    %h3.title Editing Policy
  .sidebar-content
    %p DGD is a community directory, which means for example, if you know the names of the five execs of a group, you should add that information even if you are not a member of the organization yourself.
- if @current_user.try(:admin)
  .sidebar-info-box
    .sidebar-header
      %h3.title Admin Section
    .sidebar-content
      = link_to "Categories", admin_category_index_path
      = link_to "Groups", admin_group_index_path
      = link_to "Pages", admin_description_index_path<commit_msg>#21 add leaderboard to directory sidebar<commit_after>.sidebar-info-box
  .sidebar-header
    %h3.title Dartmouth Group Directory
  .sidebar-content
    %p Welcome to the Dartmouth Group Directory, where your dreams come true. For real. This site is actually amazing beyond all belief.

.sidebar-info-box
  .sidebar-header
    %h3.title Recently Updated
  .sidebar-content
    - Group.recently_updated(5).each do |group|
      =link_to group.name, group_path(group)

.sidebar-info-box
  .sidebar-header
    %h3.title Leaderboard
  .sidebar-content
    %ol.leaderboard
      - Leaderboard.query.second[0..4].each do |individual|
        %li= individual[1]

.sidebar-info-box
  .sidebar-header
    %h3.title Editing Policy
  .sidebar-content
    %p DGD is a community directory, which means for example, if you know the names of the five execs of a group, you should add that information even if you are not a member of the organization yourself.

- if @current_user.try(:admin)
  .sidebar-info-box
    .sidebar-header
      %h3.title Admin Section
    .sidebar-content
      = link_to "Categories", admin_category_index_path
      = link_to "Groups", admin_group_index_path
      = link_to "Pages", admin_description_index_path
{'fraction_non_alphanumeric': 0.08075040783034258, 'fraction_numerical': 0.006933115823817292, 'mean_word_length': 3.372549019607843, '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': '6934655', 'n_tokens_mistral': 736, 'n_tokens_neox': 716, 'n_words': 246}