<commit_before>= tabs do
  = nav_to(t('.students'), course_users_students_path(current_course))
  = nav_to(t('.staff'), course_users_staff_path(current_course))
  = nav_to(course_enrol_requests_path(current_course)) do
    = t('.requests')
    - requests_count = current_course.enrol_requests.count
    =< badge(requests_count) if requests_count > 0
  = nav_to(t('.invite'), invite_course_users_path(current_course), class: 'dropdown')
  = nav_to(course_user_invitations_path(current_course)) do
    = t('.invitations')
    - invitations_count = current_course.invitations.unconfirmed.count
    =< badge(invitations_count) if invitations_count > 0
  - if current_course.show_personalized_timeline_features?
    = nav_to(t('.personal_times'), personal_times_course_users_path(current_course))
<commit_msg>Hide course_users tabs based on abilities<commit_after>= tabs do
  - if can?(:manage, CourseUser.new(course: current_course))
    = nav_to(t('.students'), course_users_students_path(current_course))
    = nav_to(t('.staff'), course_users_staff_path(current_course))
  - if can?(:manage, Course::EnrolRequest.new(course: current_course))
    = nav_to(course_enrol_requests_path(current_course)) do
      = t('.requests')
      - requests_count = current_course.enrol_requests.count
      =< badge(requests_count) if requests_count > 0
  = nav_to(t('.invite'), invite_course_users_path(current_course), class: 'dropdown')
  = nav_to(course_user_invitations_path(current_course)) do
    = t('.invitations')
    - invitations_count = current_course.invitations.unconfirmed.count
    =< badge(invitations_count) if invitations_count > 0
  - if current_course.show_personalized_timeline_features? && can?(:manage_personal_times, current_course)
    = nav_to(t('.personal_times'), personal_times_course_users_path(current_course))

{'fraction_non_alphanumeric': 0.12089715536105033, 'fraction_numerical': 0.002188183807439825, 'mean_word_length': 6.3453815261044175, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3853969', 'n_tokens_mistral': 601, 'n_tokens_neox': 584, 'n_words': 81}