<commit_before>.row.home-page-block.full
  %h2 Course Details
  //#top_button= button_to "#{@user.my_courses.try("include?",@topic.id) ? "Remove from" : "Add to"} My Courses", add_course_url(@course)
  %dl.span5.dl-horizontal
    %dt Course Title:
    %dd= @topic.title
    %dt Course Date:
    %dd.last= @topic.year
  %dl.span5.dl-horizontal
    %dt Course Code:
    %dd.last= @topic.code

.row.home-page-block.full
  %h2 Class List
  = render :partial => "person", :collection => @topic.person_courses, :as => "pc"
  //- if @topic.person_courses.count > 12
  //  #expand_students{:style => "cursor:pointer"} See all students...
//.block.left{:load_block => moodle_block_course_url(@topic)}= image_tag "ajax-loader.gif"
//.block.right{:load_block => next_lesson_block_course_url(@topic)}= image_tag "ajax-loader.gif"<commit_msg>New improved My Courses button<commit_after>.row.home-page-block.full
  %h2 
    Course Details
    .pull-right{style: "margin-right:20px"}
      = link_to add_course_url(@course), :method => :post do
        .btn.btn-info
          - if @user.my_courses.try("include?",@topic.id)
            %i.icon-white.icon-remove-sign
            Remove from My Courses
          - else
            %i.icon-white.icon-plus-sign
            Add to My Courses
  %dl.span5.dl-horizontal
    %dt Course Title:
    %dd= @topic.title
    %dt Course Date:
    %dd.last= @topic.year
  %dl.span5.dl-horizontal
    %dt Course Code:
    %dd.last= @topic.code

.row.home-page-block.full
  %h2 Class List
  = render :partial => "person", :collection => @topic.person_courses, :as => "pc"
  //- if @topic.person_courses.count > 12
  //  #expand_students{:style => "cursor:pointer"} See all students...
//.block.left{:load_block => moodle_block_course_url(@topic)}= image_tag "ajax-loader.gif"
//.block.right{:load_block => next_lesson_block_course_url(@topic)}= image_tag "ajax-loader.gif"
{'fraction_non_alphanumeric': 0.16270470153195984, 'fraction_numerical': 0.007395668251452721, 'mean_word_length': 3.275395033860045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '905441', 'n_tokens_mistral': 684, 'n_tokens_neox': 671, 'n_words': 130}