<commit_before><li class="<%= 'unpublished' if enrollment.course.created? || enrollment.course.claimed? %> <%= enrollment.state_based_on_date %> clearfix">

  <a href="<%= course_user_path(enrollment.course_id, enrollment.user_id) %>" style="float: left;">
    <span class="name ellipsis" title="<%= enrollment.long_name %>">
      <%= enrollment.long_name %>
      <% if enrollment.course.created? || enrollment.course.claimed? %>
        <%= image_tag "hammer.png", :title => t('course_not_published', "This course hasn't been published yet"), :alt => t('unpublished', "Unpublished"), :class => "unpublished_icon" %>
      <% end %>
    </span>

    <% unless enrollment.course.enrollment_term.default_term? %>
      <span class="subtitle ellipsis"><%= enrollment.course.enrollment_term.name %></span>
    <% end %>

    <span class="subtitle ellipsis">
      <%= Enrollment.workflow_readable_type(enrollment.state_based_on_date) %>,
      <%=
        case enrollment.class.to_s
        when 'TeacherEnrollment'
          t('roles_teacher', "Enrolled as a Teacher.")
        when 'StudentEnrollment'
          t('roles_student', "Enrolled as a Student.")
        when 'TaEnrollment'
          t('roles_ta', "Enrolled as a TA.")
        when 'ObserverEnrollment'
          t('roles_observer', "Enrolled as an Observer.")
        when 'DesignerEnrollment'
          t('roles_designer', "Enrolled as a Designer.")
        else
          t('roles_student', "Enrolled as a Student.")<commit_msg>wrap course name on users page<commit_after><li class="<%= 'unpublished' if enrollment.course.created? || enrollment.course.claimed? %> <%= enrollment.state_based_on_date %> clearfix">

  <a href="<%= course_user_path(enrollment.course_id, enrollment.user_id) %>" style="float: left; max-width: 800px;">
    <span class="name" title="<%= enrollment.long_name %>">
      <%= enrollment.long_name %>
      <% if enrollment.course.created? || enrollment.course.claimed? %>
        <%= image_tag "hammer.png", :title => t('course_not_published', "This course hasn't been published yet"), :alt => t('unpublished', "Unpublished"), :class => "unpublished_icon" %>
      <% end %>
    </span>

    <% unless enrollment.course.enrollment_term.default_term? %>
      <span class="subtitle ellipsis"><%= enrollment.course.enrollment_term.name %></span>
    <% end %>

    <span class="subtitle ellipsis">
      <%= Enrollment.workflow_readable_type(enrollment.state_based_on_date) %>,
      <%=
        case enrollment.class.to_s
        when 'TeacherEnrollment'
          t('roles_teacher', "Enrolled as a Teacher.")
        when 'StudentEnrollment'
          t('roles_student', "Enrolled as a Student.")
        when 'TaEnrollment'
          t('roles_ta', "Enrolled as a TA.")
        when 'ObserverEnrollment'
          t('roles_observer', "Enrolled as an Observer.")
        when 'DesignerEnrollment'
          t('roles_designer', "Enrolled as a Designer.")
        else
          t('roles_student', "Enrolled as a Student.")
{'fraction_non_alphanumeric': 0.15448504983388706, 'fraction_numerical': 0.0009966777408637873, 'mean_word_length': 3.427941176470588, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 47, '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': '6797872', 'n_tokens_mistral': 991, 'n_tokens_neox': 913, 'n_words': 195}