<commit_before>- content_for(:sub_nav) do
  %ul
    %li{active_page_class(admissions_path)}
      = link_to admissions_path do
        %span.bullet
        = t 'navigation.admission.all'

    - unless current_user.is_a? Applicant
      %li{active_page_class(new_applicant_path)}
        = link_to new_applicant_path do
          %span.bullet
          = t 'navigation.admission.register'

    - if current_user.is_a? Applicant
      %li{active_page_class(job_applications_path)}
        = link_to job_applications_path do
          %span.bullet
          = t 'navigation.admission.show_applications'
      %li{active_page_class(edit_applicant_path(current_user))}
        = link_to edit_applicant_path(current_user) do
          %span.bullet
          = t 'navigation.admission.edit'

    - if AdmissionsAdminAbility.new(current_user).can?(:show, Admission) && !Admission.current.empty?
      %li{active_page_class(my_group_path(Admission.current.first, @group))}
        - unless Admission.current.empty?
          = link_to admissions_admin_admission_path(Admission.current.first) do
            %span.bullet
            = t 'navigation.admission.my_group'<commit_msg>Remove reduntant check of admission is empty<commit_after>- content_for(:sub_nav) do
  %ul
    %li{active_page_class(admissions_path)}
      = link_to admissions_path do
        %span.bullet
        = t 'navigation.admission.all'

    - unless current_user.is_a? Applicant
      %li{active_page_class(new_applicant_path)}
        = link_to new_applicant_path do
          %span.bullet
          = t 'navigation.admission.register'

    - if current_user.is_a? Applicant
      %li{active_page_class(job_applications_path)}
        = link_to job_applications_path do
          %span.bullet
          = t 'navigation.admission.show_applications'
      %li{active_page_class(edit_applicant_path(current_user))}
        = link_to edit_applicant_path(current_user) do
          %span.bullet
          = t 'navigation.admission.edit'

    - if AdmissionsAdminAbility.new(current_user).can?(:show, Admission) && !Admission.current.empty?
      %li{active_page_class(my_group_path(Admission.current.first, @group))}
        = link_to admissions_admin_admission_path(Admission.current.first) do
          %span.bullet
          = t 'navigation.admission.my_group'
{'fraction_non_alphanumeric': 0.09556607834696514, 'fraction_numerical': 0.0, 'mean_word_length': 3.0843585237258346, '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': '656672', 'n_tokens_mistral': 760, 'n_tokens_neox': 733, 'n_words': 107}