<commit_before>SimpleNavigation::Configuration.run do |navigation|
  navigation.selected_class = 'active'
  navigation.active_leaf_class = 'nav-active-leaf'
  navigation.items do |primary|

    primary.item :api, 
                 'API Access', nil, 
                 html: {class: "fancy-nav-header", 'data-icon': "api-icon"},
                 if: -> {services.available?(:webconsole)} do |api_nav|
      api_nav.item :web_console,
                   'Web Console', -> { plugin('webconsole').root_path}, 
                   if: -> { services.available?(:webconsole)},
                   highlights_on: Proc.new { params[:controller][/webconsole\/.*/] }
      api_nav.item :api_endpoints, 
                   'API Endpoints for Clients', -> { plugin('identity').projects_api_endpoints_path}
    end

    primary.item  :compute,
                  'Compute',
                  nil,
                  html: { class: 'fancy-nav-header', :'data-icon' => 'compute-icon' },
                  if: lambda {
                    services.available?(:image, :os_images)
                  } do |compute_nav|
      compute_nav.item  :images,
                        'Images',
                        -> { plugin('image').os_images_public_index_path },
                        highlights_on: -> { params[:controller][%r{image/?.*}] }
    end

    primary.item  :access_management,
                  "Authorizations for project #{@scoped_project_name}",
                  nil,
                  html: { class: 'fancy-nav-header', :'data-icon' => 'access_management-icon' },
                  if: lambda {
                    services.available?(:identity) &&
                      current_user                 &&
                      (
                        current_user.is_allowed?('identity:project_member_list') ||
                        current_user.is_allowed?('identity:project_group_list')
                      )
                  } do |access_management_nav|
      access_management_nav.item  :user_role_assignments,
                                  'User Role Assignments',
                                  -> { plugin('identity').projects_members_path },
                                  if: -> { current_user.is_allowed?('identity:project_member_list') },
                                  highlights_on: %r{identity/projects/members/?.*}
      access_management_nav.item  :group_management,
                                  'Group Role Assignments',
                                  -> { plugin('identity').projects_groups_path },
                                  if: -> { current_user.is_allowed?('identity:project_group_list') },
                                  highlights_on: %r{identity/projects/groups/?.*}
    end

    primary.dom_attributes = { class: 'fancy-nav', role: 'menu' }
  end
end<commit_msg>trigger tests<commit_after>SimpleNavigation::Configuration.run do |navigation|
  navigation.selected_class = 'active'
  navigation.active_leaf_class = 'nav-active-leaf'
  navigation.items do |primary|

    primary.item :api, 
                 'API Access', nil, 
                 html: {class: "fancy-nav-header", 'data-icon': "api-icon"},
                 if: -> {services.available?(:webconsole)} do |api_nav|
      api_nav.item :web_console,
                   'Web Console', -> { plugin('webconsole').root_path}, 
                   if: -> { services.available?(:webconsole)},
                   highlights_on: Proc.new { params[:controller][/webconsole\/.*/] }
      api_nav.item :api_endpoints, 
                   'API Endpoints for Clients', -> { plugin('identity').projects_api_endpoints_path}
    end

    primary.item  :compute,
                  'Compute',
                  nil,
                  html: { class: 'fancy-nav-header', :'data-icon' => 'compute-icon' },
                  if: lambda {
                    services.available?(:image, :os_images)
                  } do |compute_nav|
      compute_nav.item  :images,
                        'Images',
                        -> { plugin('image').os_images_public_index_path },
                        highlights_on: -> { params[:controller][%r{image/?.*}] }
    end

    primary.item  :access_management,
                  "Authorizations for project #{@scoped_project_name}",
                  nil,
                  html: { class: 'fancy-nav-header', :'data-icon' => 'access_management-icon' },
                  if: lambda {
                    services.available?(:identity) &&
                      current_user                 &&
                      (
                        current_user.is_allowed?('identity:project_member_list') ||
                        current_user.is_allowed?('identity:project_group_list')
                      )
                  } do |access_management_nav|
      access_management_nav.item  :user_role_assignments,
                                  'User Role Assignments',
                                  -> { plugin('identity').projects_members_path },
                                  if: -> { current_user.is_allowed?('identity:project_member_list') },
                                  highlights_on: %r{identity/projects/members/?.*}
      access_management_nav.item  :group_management,
                                  'Group Role Assignments',
                                  -> { plugin('identity').projects_groups_path },
                                  if: -> { current_user.is_allowed?('identity:project_group_list') },
                                  highlights_on: %r{identity/projects/groups/?.*}
    end

    primary.dom_attributes = { class: 'fancy-nav', role: 'menu' }
    
  end
end
{'fraction_non_alphanumeric': 0.11952473842879943, 'fraction_numerical': 0.0, 'mean_word_length': 1.4988923349579086, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3000987', 'n_tokens_mistral': 1480, 'n_tokens_neox': 1401, 'n_words': 224}