<commit_before>.subnavbar
  .container.subnavbar-container
    .subnavbar-section.subnavbar-section-left
      = link_to 'Profile', current_user, class: (controller_name == 'profile' ? 'btn btn-primary' : 'btn btn-default')
      = link_to 'Settings', settings_path, class: (controller_name == 'settings' ? 'btn btn-primary' : 'btn btn-default')

    .subnavbar-section.subnavbar-section-center
      - if current_user.is_referee? || current_user.is_unique_referee? || current_user.has_role?(:superadmin)
        = link_to 'My labs', [:backstage, :my_labs], class: (controller_name == 'my_labs' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'My projects', [:backstage, :my_projects], class: (controller_name == 'my_projects' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Labs', backstage_labs_path, class: (controller_name == 'labs' ? 'btn btn-primary' : 'btn btn-default')

      - if current_user.has_role? :superadmin
        = link_to 'Projects', [:backstage, :projects], class: (controller_name == 'projects' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Orgs', backstage_organizations_path, class: (controller_name == 'organizations' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Employees', backstage_employees_path, class: (controller_name == 'employees' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Users', backstage_users_path, class: (controller_name == 'users' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Pages', backstage_pages_path, class: (controller_name == 'pages' ? 'btn btn-primary' : 'btn btn-default')

    .subnavbar-section.subnavbar-section-right
      - if current_user.is_referee? || current_user.is_unique_referee? || current_user.has_role?(:superadmin)<commit_msg>Add link to change_password and fix the hilight in section buttons in the user header<commit_after>.subnavbar
  .container.subnavbar-container
    .subnavbar-section.subnavbar-section-left
      = link_to 'Profile', current_user, class: (controller_name == 'users' && action_name == 'show' ? 'btn btn-primary' : 'btn btn-default')
      = link_to 'Settings', settings_path, class: (controller_name == 'users' && action_name == 'edit' ? 'btn btn-primary' : 'btn btn-default')
      = link_to 'Change password', password_path, class: (controller_name == 'users' && action_name =='change_password' ? 'btn btn-primary' : 'btn btn-default')

    .subnavbar-section.subnavbar-section-center
      - if current_user.is_referee? || current_user.is_unique_referee? || current_user.has_role?(:superadmin)
        = link_to 'My labs', [:backstage, :my_labs], class: (controller_name == 'my_labs' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'My projects', [:backstage, :my_projects], class: (controller_name == 'my_projects' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Labs', backstage_labs_path, class: (controller_name == 'labs' ? 'btn btn-primary' : 'btn btn-default')

      - if current_user.has_role? :superadmin
        = link_to 'Projects', [:backstage, :projects], class: (controller_name == 'projects' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Orgs', backstage_organizations_path, class: (controller_name == 'organizations' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Employees', backstage_employees_path, class: (controller_name == 'employees' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Users', backstage_users_path, class: (controller_name == 'users' ? 'btn btn-primary' : 'btn btn-default')
        = link_to 'Pages', backstage_pages_path, class: (controller_name == 'pages' ? 'btn btn-primary' : 'btn btn-default')

    .subnavbar-section.subnavbar-section-right
      - if current_user.is_referee? || current_user.is_unique_referee? || current_user.has_role?(:superadmin)
{'fraction_non_alphanumeric': 0.15023474178403756, 'fraction_numerical': 0.0, 'mean_word_length': 4.455192034139403, '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': '2540269', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1230, 'n_words': 272}