<commit_before>%nav.navbar.navbar-static-top.navbar-inverse{role: :navigation}
  .container
    .navbar-header
      %a.navbar-brand(href="/") TimeOverflow

    %ul.nav.navbar-nav
      - if current_user and current_organization
        - [User, Offer, Inquiry].each do |item|
          - path = item == Offer ? dashboard_offers_path : send("#{item.to_s.downcase.pluralize}_path")
          %li{class: current_page?(path) && "active"}
            %a{href: path}
              = glyph(item)
              = item.model_name.human(count: :many)

        - if current_user.manages? current_organization
          %li.dropdown
            %a.dropdown-toggle{href: "#", data: {toggle: :dropdown}}
              = glyph("paperclip")
              = t ".reports"
              %b.caret
            %ul.dropdown-menu{role: :menu}
              %li
                %a{href: "/report/user_list", data: {popup: true}}
                  %span.glyphicon.glyphicon-list-alt
                  = User.model_name.human(count: :many)
              %li
                %a{href: "/report/offer_list", data: {popup: true}}
                  %span.glyphicon.glyphicon-list-alt
                  = Offer.model_name.human(count: :many)
              %li
                %a{href: "/report/inquiry_list", data: {popup: true}}
                  %span.glyphicon.glyphicon-list-alt
                  = Inquiry.model_name.human(count: :many)
          %li{class: current_page?('/report/statistics') && "active"}
            %a{href: '/report/statistics'}
              %span.glyphicon.glyphicon-stats
              = t ".statistics"
          %li.dropdown
            %a.dropdown-toggle{href: "#", data: {toggle: :dropdown}}
              = glyph("wrench")
              = t ".admin"
              %b.caret
            %ul.dropdown-menu{role: :menu}
              %li
                %a{href: "/tags/alpha_grouped_index?post_type=all" }
                  %span.glyphicon.glyphicon-tags
                  =t ".tags"
        - else
          - path = alpha_grouped_index_tags_path(post_type: "offer")
          %li{class: current_page?(path) && "active"}
            %a{href: path}
              = glyph("tags")
              = t ".tags"

    %ul.nav.navbar-nav.navbar-right
      - if current_user
        %li.dropdown
          %a.dropdown-toggle{href: "#", data: {toggle: :dropdown}}
            = image_tag avatar_url(current_user), style: "margin: -8px auto"
            = current_user.email
            %b.caret
          %ul.dropdown-menu{role: :menu}
            - if superadmin?
              %li{role: :presentation}
                = link_to admin_root_path do
                  = glyph(:cog)
                  Admin

            %li{role: :presentation}
              = link_to destroy_user_session_path, method: :delete  do
                = glyph("log-out")
                = t "Log out"
            %li.divider{role: :presentation}
            %li{role: :presentation}
              = link_to current_user do
                = glyph(:user)
                = t "layouts.application.edit_profile"<commit_msg>Apply default filter of offers for Admin-tags menu<commit_after>%nav.navbar.navbar-static-top.navbar-inverse{role: :navigation}
  .container
    .navbar-header
      %a.navbar-brand(href="/") TimeOverflow

    %ul.nav.navbar-nav
      - if current_user and current_organization
        - [User, Offer, Inquiry].each do |item|
          - path = item == Offer ? dashboard_offers_path : send("#{item.to_s.downcase.pluralize}_path")
          %li{class: current_page?(path) && "active"}
            %a{href: path}
              = glyph(item)
              = item.model_name.human(count: :many)

        - if current_user.manages? current_organization
          %li.dropdown
            %a.dropdown-toggle{href: "#", data: {toggle: :dropdown}}
              = glyph("paperclip")
              = t ".reports"
              %b.caret
            %ul.dropdown-menu{role: :menu}
              %li
                %a{href: "/report/user_list", data: {popup: true}}
                  %span.glyphicon.glyphicon-list-alt
                  = User.model_name.human(count: :many)
              %li
                %a{href: "/report/offer_list", data: {popup: true}}
                  %span.glyphicon.glyphicon-list-alt
                  = Offer.model_name.human(count: :many)
              %li
                %a{href: "/report/inquiry_list", data: {popup: true}}
                  %span.glyphicon.glyphicon-list-alt
                  = Inquiry.model_name.human(count: :many)
          %li{class: current_page?('/report/statistics') && "active"}
            %a{href: '/report/statistics'}
              %span.glyphicon.glyphicon-stats
              = t ".statistics"
          %li.dropdown
            %a.dropdown-toggle{href: "#", data: {toggle: :dropdown}}
              = glyph("wrench")
              = t ".admin"
              %b.caret
            %ul.dropdown-menu{role: :menu}
              %li
                - path = alpha_grouped_index_tags_path(post_type: "offer")
                %a{href: path }
                  = glyph("tags")
                  = t ".tags"
        - else
          - path = alpha_grouped_index_tags_path(post_type: "offer")
          %li{class: current_page?(path) && "active"}
            %a{href: path}
              = glyph("tags")
              = t ".tags"

    %ul.nav.navbar-nav.navbar-right
      - if current_user
        %li.dropdown
          %a.dropdown-toggle{href: "#", data: {toggle: :dropdown}}
            = image_tag avatar_url(current_user), style: "margin: -8px auto"
            = current_user.email
            %b.caret
          %ul.dropdown-menu{role: :menu}
            - if superadmin?
              %li{role: :presentation}
                = link_to admin_root_path do
                  = glyph(:cog)
                  Admin

            %li{role: :presentation}
              = link_to destroy_user_session_path, method: :delete  do
                = glyph("log-out")
                = t "Log out"
            %li.divider{role: :presentation}
            %li{role: :presentation}
              = link_to current_user do
                = glyph(:user)
                = t "layouts.application.edit_profile"
{'fraction_non_alphanumeric': 0.13131313131313133, 'fraction_numerical': 0.000320666987333654, 'mean_word_length': 1.5419722901385493, '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': '5886044', 'n_tokens_mistral': 1916, 'n_tokens_neox': 1794, 'n_words': 319}