<commit_before>%h2 Listing students by Name

%table#students
  %tr
    %td{:style=>"width: 150px"} <b>Student</b>
    %th
    %th{:style=>"width: 100px"}
    %td <b>Classroom</b>


    - Student.order(:Student_Name).each do |student|
      %tr
        %td= link_to "#{student.Student_Name}", student
        %td= link_to 'Edit', edit_student_path(student), class: "btn"
        %td= link_to 'Delete', student, :method => :delete, :data => { :confirm => 'Are you sure?' }
        - student.classroom_ids.each do |classroom_ids|
          %td= " | " + Classroom.find_by_id(classroom_ids).name
        %td= " | "

%h2 Listing students by Classroom
- Classroom.order(:name).each do |room|
  %h3 #{room.name}
  %table.classes
    %tr
      %td{:style=>"width: 150px"} <b>Student</b>
      %th
      %th
      - room.students.order(:Student_Name).each do |student|
        %tr
          %td= link_to "#{student.Student_Name}", student
          %td= link_to 'Edit', edit_student_path(student)
          %td= link_to 'Delete', student, :method => :delete, :data => { :confirm => 'Are you sure?' }
      %tr
-#    - else
-#      - current_user.classrooms.each do |room|
-#        %tr
-#          %th{:colspan => 8}= room.name
-#        - room.students.each do |student|
-#          %tr
-#            %td= student.Student_Name
-#            %td= link_to "Show #{student.Student_Name}", student


  
%br
= link_to 'Add New Student', new_student_path<commit_msg>try lower case students index<commit_after>%h2 Listing students by Name

%table#students
  %tr
    %td{:style=>"width: 150px"} <b>Student</b>
    %th
    %th{:style=>"width: 100px"}
    %td <b>Classroom</b>


    - Student.order(:student_name).each do |student|
      %tr
        %td= link_to "#{student.Student_Name}", student
        %td= link_to 'Edit', edit_student_path(student), class: "btn"
        %td= link_to 'Delete', student, :method => :delete, :data => { :confirm => 'Are you sure?' }
        - student.classroom_ids.each do |classroom_ids|
          %td= " | " + Classroom.find_by_id(classroom_ids).name
        %td= " | "

%h2 Listing students by Classroom
- Classroom.order(:name).each do |room|
  %h3 #{room.name}
  %table.classes
    %tr
      %td{:style=>"width: 150px"} <b>Student</b>
      %th
      %th
      - room.students.order(:student_name).each do |student|
        %tr
          %td= link_to "#{student.Student_Name}", student
          %td= link_to 'Edit', edit_student_path(student)
          %td= link_to 'Delete', student, :method => :delete, :data => { :confirm => 'Are you sure?' }
      %tr
-#    - else
-#      - current_user.classrooms.each do |room|
-#        %tr
-#          %th{:colspan => 8}= room.name
-#        - room.students.each do |student|
-#          %tr
-#            %td= student.Student_Name
-#            %td= link_to "Show #{student.Student_Name}", student


  
%br
= link_to 'Add New Student', new_student_path
{'fraction_non_alphanumeric': 0.16723783413296778, 'fraction_numerical': 0.008910212474297465, 'mean_word_length': 2.538181818181818, 'pattern_counts': {'":': 0, '<': 15, '<?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': '3291257', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1020, 'n_words': 227}