<commit_before>- if current_user
  .dropdown
    %a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
      = icon('globe')
      %span.light Visibility:
      - if params[:visibility_level].present?
        = visibility_level_label(params[:visibility_level].to_i)
      - else
        Any
      %b.caret
    %ul.dropdown-menu
      %li
        = link_to filter_projects_path(visibility_level: nil) do
          Any
      - Gitlab::VisibilityLevel.values.each do |level|
        %li{ class: (level.to_s == params[:visibility_level]) ? 'active' : 'light' }
          = link_to filter_projects_path(visibility_level: level) do
            = visibility_level_icon(level)
            = visibility_level_label(level)

- if @tags.present?
  .dropdown
    %a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
      = icon('tags')
      %span.light Tags:
      - if params[:tag].present?
        = params[:tag]
      - else
        Any
      %b.caret
    %ul.dropdown-menu
      %li
        = link_to filter_projects_path(tag: nil) do
          Any

      - @tags.each do |tag|
        %li{ class: (tag.name == params[:tag]) ? 'active' : 'light' }
          = link_to filter_projects_path(tag: tag.name) do
            = icon('tag')
            = tag.name
<commit_msg>right-align dropdown menus to prevent horizontal page overflow<commit_after>- if current_user
  .dropdown
    %a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
      = icon('globe')
      %span.light Visibility:
      - if params[:visibility_level].present?
        = visibility_level_label(params[:visibility_level].to_i)
      - else
        Any
      %b.caret
    %ul.dropdown-menu.dropdown-menu-align-right
      %li
        = link_to filter_projects_path(visibility_level: nil) do
          Any
      - Gitlab::VisibilityLevel.values.each do |level|
        %li{ class: (level.to_s == params[:visibility_level]) ? 'active' : 'light' }
          = link_to filter_projects_path(visibility_level: level) do
            = visibility_level_icon(level)
            = visibility_level_label(level)

- if @tags.present?
  .dropdown
    %a.dropdown-toggle.btn{href: '#', "data-toggle" => "dropdown"}
      = icon('tags')
      %span.light Tags:
      - if params[:tag].present?
        = params[:tag]
      - else
        Any
      %b.caret
    %ul.dropdown-menu.dropdown-menu-align-right
      %li
        = link_to filter_projects_path(tag: nil) do
          Any

      - @tags.each do |tag|
        %li{ class: (tag.name == params[:tag]) ? 'active' : 'light' }
          = link_to filter_projects_path(tag: tag.name) do
            = icon('tag')
            = tag.name

{'fraction_non_alphanumeric': 0.13641488162344984, 'fraction_numerical': 0.0, 'mean_word_length': 2.2503052503052503, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7049045', 'n_tokens_mistral': 856, 'n_tokens_neox': 839, 'n_words': 157}