<commit_before>- student_list = (students_in_class(portal_clazz.students)).sort { |a,b| (a.user.last_name <=> b.user.last_name) }
- if student_list.length > 0
  %table.teacher_class_table{:width=>"100%"}
    %tr
      %td.show_border
        %b Name
      %td.show_border 
        %b User Name
      %td.hide_in_print
       
    - student_list.each do |portal_student|
      - portal_student_clazz = portal_clazz.student_clazzes.find_by_student_id(portal_student.id)
      %tr{:id=>dom_id_for(portal_student_clazz)}
        %td.show_border
          - student_name = portal_student.user.last_name + ", " +portal_student.user.first_name
          = link_to student_name.truncate(33), portal_student,:title=>"#{student_name}"
        %td.show_border{:title=>"#{portal_student.user.login}"}
          = portal_student.user.login.truncate(20)
        %td.remove.hide_in_print.action_link_container
          - if portal_clazz.changeable?(current_user)
            = link_to_remote "Remove Student", :url => portal_clazz_student_clazz_url(portal_clazz, portal_student_clazz), :confirm => "This action will remove the student: '#{portal_student.name}' from the class: #{portal_clazz.name}. \nAre you sure you want to do this?", :method => :delete, :html => {:title => "Remove #{portal_student.name} from #{portal_clazz.name}" , :class => "change_password"}
          - if portal_student.user.changeable?(current_user)
            = link_to 'Change Password', reset_password_user_path(portal_student.user), :class => "change_password"
- else
  %br
  .message_text No students registered for this class yet.<commit_msg>Add tooltip to "Change Password" link<commit_after>- student_list = (students_in_class(portal_clazz.students)).sort { |a,b| (a.user.last_name <=> b.user.last_name) }
- if student_list.length > 0
  %table.teacher_class_table{:width=>"100%"}
    %tr
      %td.show_border
        %b Name
      %td.show_border 
        %b User Name
      %td.hide_in_print
       
    - student_list.each do |portal_student|
      - portal_student_clazz = portal_clazz.student_clazzes.find_by_student_id(portal_student.id)
      %tr{:id=>dom_id_for(portal_student_clazz)}
        %td.show_border
          - student_name = portal_student.user.last_name + ", " +portal_student.user.first_name
          = link_to student_name.truncate(33), portal_student,:title=>"#{student_name}"
        %td.show_border{:title=>"#{portal_student.user.login}"}
          = portal_student.user.login.truncate(20)
        %td.remove.hide_in_print.action_link_container
          - if portal_clazz.changeable?(current_user)
            = link_to_remote "Remove Student", :url => portal_clazz_student_clazz_url(portal_clazz, portal_student_clazz), :confirm => "This action will remove the student: '#{portal_student.name}' from the class: #{portal_clazz.name}. \nAre you sure you want to do this?", :method => :delete, :html => {:title => "Remove #{portal_student.name} from #{portal_clazz.name}" , :class => "change_password"}
          - if portal_student.user.changeable?(current_user)
            = link_to 'Change Password', reset_password_user_path(portal_student.user),:title => "Change Password",:class => "change_password"
- else
  %br
  .message_text No students registered for this class yet.
{'fraction_non_alphanumeric': 0.1282442748091603, 'fraction_numerical': 0.004885496183206107, 'mean_word_length': 3.8176470588235296, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 30, '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': '2008271', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1092, 'n_words': 187}