<commit_before>:ruby 
  def active_for_controller(*controllers)
    controllers.any?{|controller| params[:controller] == controller } ? "active" : nil
  end

.navbar.navbar-static-top.navbar-inverse
  .navbar-inner
    .container-fluid
      =link_to "Lit Social", root_url, :class => 'brand'
      %a.btn.btn-navbar{data:{toggle: 'collapse', target: '.nav-collapse'}}
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      .nav-collapse.collapse
        %ul.nav
          =nav_li("stories"){     link_to "Stories", stories_path }
          =nav_li("series"){      link_to "Series", series_index_path }
          =nav_li("forum_posts"){ link_to "The Forum", forum_posts_path }
          -if user_signed_in?
            -active = ["news_posts", "messages", "account#bookmarks", "account#watches", "account#favs", "account#notifications"]
            =nav_li(*active){ link_to "Message Center", news_posts_path }
            -active = ["account#show", "account#stories", "account#journals", "account#forums", "account#edit", "account#update",]
            =nav_li(*active){ link_to "My Account", account_path }
          -else
            =nav_li("news_posts"){ link_to "Site News", news_posts_path }
          -if admin?
            %li=link_to "Admin Panel", "/admin"

        %ul.nav.pull-right<commit_msg>Cleaning up top bar code.<commit_after>:ruby 
  def active_for_controller(*controllers)
    controllers.any?{|controller| params[:controller] == controller } ? "active" : nil
  end

  message_center = ["news_posts", "messages", "account#bookmarks", "account#watches", "account#favs", "account#notifications"]
  my_account = ["account#show", "account#stories", "account#journals", "account#forums", "account#edit", "account#update",]

.navbar.navbar-static-top.navbar-inverse
  .navbar-inner
    .container-fluid
      =link_to "Lit Social", root_url, :class => 'brand'
      %a.btn.btn-navbar{data:{toggle: 'collapse', target: '.nav-collapse'}}
        %span.icon-bar
        %span.icon-bar
        %span.icon-bar
      .nav-collapse.collapse
        %ul.nav
          =nav_li("stories"){     link_to "Stories", stories_path }
          =nav_li("series"){      link_to "Series", series_index_path }
          =nav_li("forum_posts"){ link_to "The Forum", forum_posts_path }
          -if user_signed_in?
            =nav_li(*message_center){ link_to "Message Center", news_posts_path }
            =nav_li(*my_account){ link_to "My Account", account_path }
          -else
            =nav_li(*message_center){ link_to "Site News", news_posts_path }
          -if admin?
            %li=link_to "Admin Panel", "/admin"

        %ul.nav.pull-right
{'fraction_non_alphanumeric': 0.1504491017964072, 'fraction_numerical': 0.0, 'mean_word_length': 2.995515695067265, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7041334', 'n_tokens_mistral': 874, 'n_tokens_neox': 833, 'n_words': 161}