<commit_before><div class="rs-margin-lr rs-margin-top">
  <% if @context.is_a?(Course) %>
    <% if can_do(@context, @current_user, :read_roster) %>
      <% sidebar_button context_url(@context, :context_groups_url),
                        t('links.view_user_groups', 'View User Groups'),
                        'group' %>
    <% end %>

    <% if can_do(@context, @current_user, :manage_students && @context.enable_user_notes) %>
      <% sidebar_button course_user_notes_path(@context),
                        t('links.view_faculty_journals', 'View Faculty Journals') %>
    <% end %>

    <% if can_do(@context, @current_user, :manage_admin_users, :manage_students, :read_prior_roster) %>
      <% sidebar_button course_prior_users_path(@context),
                        t('links.view_prior_enrollments', 'View Prior Enrollments'),
                        'clock' %>
    <% end %>
  <% end %>

  <% if can_do(@context, @current_user, :read_roster) %>
    <% sidebar_button context_url(@context, :context_user_services_url),
                      t('links.view_services', 'View Registered Services'),
                      'link' %>
  <% end %>

  <% if can_do(@context, @current_user, :manage_students) %><commit_msg>fixed people management page bugs<commit_after><div class="rs-margin-lr rs-margin-top">
  <% if @context.is_a?(Course) %>
    <% if can_do(@context, @current_user, :read_roster) %>
      <% sidebar_button context_url(@context, :context_groups_url),
                        t('links.view_user_groups', 'View User Groups'),
                        'group' %>
    <% end %>

    <% if can_do(@context, @current_user, :manage_students && @context.enable_user_notes) %>
      <% sidebar_button course_user_notes_path(@context),
                        t('links.view_faculty_journals', 'View Faculty Journals') %>
    <% end %>

    <% if can_do(@context, @current_user, :manage_admin_users, :manage_students, :read_prior_roster) %>
      <% sidebar_button course_prior_users_path(@context),
                        t('links.view_prior_enrollments', 'View Prior Enrollments'),
                        'clock' %>
    <% end %>
  <% end %>

  <% if can_do(@context, @current_user, :read_roster) %>
    <% sidebar_button context_url(@context, :context_user_services_url),
                      t('links.view_services', 'View Registered Services'),
                      'link' %>
  <% end %>

  <% if (!@context.is_a?(Course)) && can_do(@context, @current_user, :manage_students) %>
{'fraction_non_alphanumeric': 0.1489787745294353, 'fraction_numerical': 0.0, 'mean_word_length': 2.7848484848484847, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, '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': '4143615', 'n_tokens_mistral': 846, 'n_tokens_neox': 736, 'n_words': 129}