<commit_before>nav.navbar.navbar-inverse.navbar-fixed-top role="navigation"
  div.container-fluid
    div.navbar-header
      button.navbar-toggle.collapsed type="button" data-toggle="collapse" data-target="#site-navigation-navbar" aria-expanded="false" aria-controls="navbar"
        span.sr-only
          = t('layout.navbar.toggle_navigation')
        span.icon-bar
        span.icon-bar
        span.icon-bar
      a.navbar-brand href=root_path
        = t('layout.coursemology')
    div.collapse.navbar-collapse#site-navigation-navbar
      ul.nav.navbar-nav.pull-right
        li
          - my_courses = user_signed_in? && Course.containing_user(current_user).ordered_by_end_at
          - if my_courses.present?
            a.dropdown-toggle data-toggle="dropdown"
              => t('layout.navbar.courses')
              span.caret
            ul.dropdown-menu.pull-right.courses-menu
              - my_courses.each do |course|
                li = link_to(format_inline_text(course.title), course_path(course))
              li.divider role='separator'
              li = link_to(t('layout.navbar.all_courses'), courses_path)
          - else
            = link_to(t('layout.navbar.courses'), courses_path)
        li
          = link_to(t('layout.navbar.help'), '#')
        - if user_signed_in?
          li
            a.dropdown-toggle data-toggle="dropdown"
              => current_user.name
              span.caret
            ul.dropdown-menu
              li
                = link_to(t('user.admin.navbar.account_settings'), edit_user_registration_path)
              - if can?(:manage, :all)
                li
                  = link_to(t('layout.navbar.admin_panel'), admin_path)
              - if can?(:manage, current_tenant)
                li
                  = link_to(t('layout.navbar.instance_admin_panel'), admin_instance_admin_path)
              li
                = link_to(t('layout.navbar.sign_out'), destroy_user_session_path, method: :delete)
          - if user_masquerade?
            li = link_to t('layout.navbar.stop_masquerading'), back_masquerade_path(current_user)<commit_msg>fix(course topbar): Update my courses ordering by start date<commit_after>nav.navbar.navbar-inverse.navbar-fixed-top role="navigation"
  div.container-fluid
    div.navbar-header
      button.navbar-toggle.collapsed type="button" data-toggle="collapse" data-target="#site-navigation-navbar" aria-expanded="false" aria-controls="navbar"
        span.sr-only
          = t('layout.navbar.toggle_navigation')
        span.icon-bar
        span.icon-bar
        span.icon-bar
      a.navbar-brand href=root_path
        = t('layout.coursemology')
    div.collapse.navbar-collapse#site-navigation-navbar
      ul.nav.navbar-nav.pull-right
        li
          - my_courses = user_signed_in? && Course.containing_user(current_user).ordered_by_start_at
          - if my_courses.present?
            a.dropdown-toggle data-toggle="dropdown"
              => t('layout.navbar.courses')
              span.caret
            ul.dropdown-menu.pull-right.courses-menu
              - my_courses.each do |course|
                li = link_to(format_inline_text(course.title), course_path(course))
              li.divider role='separator'
              li = link_to(t('layout.navbar.all_courses'), courses_path)
          - else
            = link_to(t('layout.navbar.courses'), courses_path)
        li
          = link_to(t('layout.navbar.help'), '#')
        - if user_signed_in?
          li
            a.dropdown-toggle data-toggle="dropdown"
              => current_user.name
              span.caret
            ul.dropdown-menu
              li
                = link_to(t('user.admin.navbar.account_settings'), edit_user_registration_path)
              - if can?(:manage, :all)
                li
                  = link_to(t('layout.navbar.admin_panel'), admin_path)
              - if can?(:manage, current_tenant)
                li
                  = link_to(t('layout.navbar.instance_admin_panel'), admin_instance_admin_path)
              li
                = link_to(t('layout.navbar.sign_out'), destroy_user_session_path, method: :delete)
          - if user_masquerade?
            li = link_to t('layout.navbar.stop_masquerading'), back_masquerade_path(current_user)
{'fraction_non_alphanumeric': 0.11358885017421602, 'fraction_numerical': 0.0, 'mean_word_length': 2.056068133427963, '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': '5038394', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1237, 'n_words': 169}