<commit_before>- issues_count = group_issues_count(state: 'opened')
- merge_requests_count = group_merge_requests_count(state: 'opened')
- issues_sub_menu_items = ['groups#issues', 'labels#index', 'milestones#index', 'boards#index', 'boards#show']

.nav-sidebar{ class: ("sidebar-collapsed-desktop" if collapsed_sidebar?) }
  .nav-sidebar-inner-scroll
    .context-header
      = link_to group_path(@group), title: @group.name do
        .avatar-container.rect-avatar.s40.group-avatar
          = group_icon(@group, class: "avatar s40 avatar-tile")
        .sidebar-context-title
          = @group.name
    %ul.sidebar-top-level-items.qa-group-sidebar
      - if group_sidebar_link?(:overview)
        = nav_link(path: group_overview_nav_link_paths, html_options: { class: 'home' }) do
          = link_to group_path(@group) do
            .nav-icon-container
              = sprite_icon('home')
            %span.nav-item-name
              = _('Overview')

          %ul.sidebar-sub-level-items
            = nav_link(path: ['groups#show', 'groups#details', 'groups#activity', 'groups#subgroups'], html_options: { class: "fly-out-top-item" } ) do
              = link_to group_path(@group) do
                %strong.fly-out-top-item-name
                  = _('Overview')
            %li.divider.fly-out-top-item

            = nav_link(path: ['groups#show', 'groups#details', 'groups#subgroups'], html_options: { class: 'home' }) do
              = link_to details_group_path(@group), title: _('Group details') do
                %span
                  = _('Details')

            - if group_sidebar_link?(:activity)
              = nav_link(path: 'groups#activity') do
                = link_to activity_group_path(@group), title: _('Activity') do
                  %span
                    = _('Activity')

            = render_if_exists 'groups/sidebar/security_dashboard' # EE-specific

            - if group_sidebar_link?(:contribution_analytics)
              = nav_link(path: 'analytics#show') do
                = link_to group_analytics_path(@group), title: _('Contribution Analytics'), data: { placement: 'right' } do
                  %span
                    = _('Contribution Analytics')

            = render_if_exists 'layouts/nav/group_insights_link'<commit_msg>Backport change to group sidebar<commit_after>- issues_count = group_issues_count(state: 'opened')
- merge_requests_count = group_merge_requests_count(state: 'opened')
- issues_sub_menu_items = ['groups#issues', 'labels#index', 'milestones#index', 'boards#index', 'boards#show']

.nav-sidebar{ class: ("sidebar-collapsed-desktop" if collapsed_sidebar?) }
  .nav-sidebar-inner-scroll
    .context-header
      = link_to group_path(@group), title: @group.name do
        .avatar-container.rect-avatar.s40.group-avatar
          = group_icon(@group, class: "avatar s40 avatar-tile")
        .sidebar-context-title
          = @group.name
    %ul.sidebar-top-level-items.qa-group-sidebar
      - if group_sidebar_link?(:overview)
        = nav_link(path: group_overview_nav_link_paths, html_options: { class: 'home' }) do
          = link_to group_path(@group) do
            .nav-icon-container
              = sprite_icon('home')
            %span.nav-item-name
              = _('Overview')

          %ul.sidebar-sub-level-items
            = nav_link(path: ['groups#show', 'groups#details', 'groups#activity', 'groups#subgroups'], html_options: { class: "fly-out-top-item" } ) do
              = link_to group_path(@group) do
                %strong.fly-out-top-item-name
                  = _('Overview')
            %li.divider.fly-out-top-item

            = nav_link(path: ['groups#show', 'groups#details', 'groups#subgroups'], html_options: { class: 'home' }) do
              = link_to details_group_path(@group), title: _('Group details') do
                %span
                  = _('Details')

            - if group_sidebar_link?(:activity)
              = nav_link(path: 'groups#activity') do
                = link_to activity_group_path(@group), title: _('Activity') do
                  %span
                    = _('Activity')

            = render_if_exists 'groups/sidebar/security_dashboard' # EE-specific

            - if group_sidebar_link?(:contribution_analytics)
              = nav_link(path: 'analytics#show') do
                = link_to group_analytics_path(@group), title: _('Contribution Analytics'), data: { placement: 'right' } do
                  %span
                    = _('Contribution Analytics')

            = render_if_exists 'layouts/nav/group_insights_link'
            = render_if_exists 'groups/sidebar/dependency_proxy' # EE-specific
{'fraction_non_alphanumeric': 0.13206335616438356, 'fraction_numerical': 0.0017123287671232876, 'mean_word_length': 2.3788864786695587, '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': '5620240', 'n_tokens_mistral': 1426, 'n_tokens_neox': 1354, 'n_words': 236}