<commit_before><% content_for :page_title do %><%= join_title t(:page_title, 'Course Groups'), @context.name %><% end %>

<% content_for :right_side do %>
  <div class="rs-margin-lr rs-margin-top">
    <% if @context.allow_student_organized_groups %>
      <% if can_do(@context, @current_user, :participate_in_groups) %>
        <a href="#" class="button button-sidebar-wide add add_group_link"><%= image_tag "add.png" %> <%= t 'actions.add', 'Start a New Group' %></a>
      <% end %>
    <% else %>
      <%= t :groups_disabled, 'Student-organized groups have been disabled for this course, so you\'ll have to be content with the groups the teacher makes for you.' %>
    <% end %>
    <a href="<%= context_url(@context, :context_users_url) %>" class="button button-sidebar-wide"><%= image_tag "group.png" %> <%= @context.is_a?(Account) ? t('#buttons.view_account_roster', 'View Account Roster') : t('#buttons.view_course_roster', 'View Course Roster') %></a>
  </div>
<% end %>

<% js_bundle :groups %>
<h2><%= @context.is_a?(Account) ? t('account_groups', 'Account Groups') : t('course_groups', 'Course Groups') %></h2>
<p>
<%= t 'group_explanation', <<-TEXT<commit_msg>get rid of double '+' icon on button, fixes: #9498<commit_after><% content_for :page_title do %><%= join_title t(:page_title, 'Course Groups'), @context.name %><% end %>

<% content_for :right_side do %>
  <div class="rs-margin-lr rs-margin-top">
    <% if @context.allow_student_organized_groups %>
      <% if can_do(@context, @current_user, :participate_in_groups) %>
        <a href="#" class="button button-sidebar-wide add_group_link"><%= image_tag "add.png" %> <%= t 'actions.add', 'Start a New Group' %></a>
      <% end %>
    <% else %>
      <%= t :groups_disabled, 'Student-organized groups have been disabled for this course, so you\'ll have to be content with the groups the teacher makes for you.' %>
    <% end %>
    <a href="<%= context_url(@context, :context_users_url) %>" class="button button-sidebar-wide"><%= image_tag "group.png" %> <%= @context.is_a?(Account) ? t('#buttons.view_account_roster', 'View Account Roster') : t('#buttons.view_course_roster', 'View Course Roster') %></a>
  </div>
<% end %>

<% js_bundle :groups %>
<h2><%= @context.is_a?(Account) ? t('account_groups', 'Account Groups') : t('course_groups', 'Course Groups') %></h2>
<p>
<%= t 'group_explanation', <<-TEXT
{'fraction_non_alphanumeric': 0.19639110365086027, 'fraction_numerical': 0.003357112882920688, 'mean_word_length': 4.772397094430993, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 57, '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': '5382341', 'n_tokens_mistral': 863, 'n_tokens_neox': 783, 'n_words': 204}