<commit_before>.row
  .col-md-4
    .fixed-aside
      = render 'search_form'

  .col-md-8.search-result
    section.row.mg-lr-xs-2
      h1.m-title
        strong 課程查詢結果
      dl#courseInfoList.panel-group role='tablist' aria-multiselectable='true'
        - @courses.each do |course|
          dd.panel
            h1.sr-only = course.title
            section.panel-heading role='tab' id="heading_#{course.id}"
              header.panel-title
                ul.course-info.list-unstyled.mg-b-10.clearfix
                  li.col-xs-6.col-sm-3
                    i.fa.fa-star aria-hidden='true'
                    span.superscript-title Rank #
                    h2 id="rank_on_course_#{course.id}" = course.score
                  li.col-xs-6.col-sm-3
                    i.fa.fa-list-alt aria-hidden='true'
                    span.superscript-title 課程名稱
                    h2 = course.title
                  li.col-xs-6.col-sm-3
                    i.fa.fa-user aria-hidden='true'
                    span.superscript-title 授課教師
                    h2 = course.instructor
                  li.col-xs-6.col-sm-3
                    i.fa.fa-tag aria-hidden='true'
                    span.superscript-title 課程類別
                    h2 = course.category
                  ul
                    li.col-xs-6.col-sm-9
                      = link_to course_vote_path(course_id: course.id, upvote: true), class: 'btn btn-success mg-t-10 btn-vote-course', 'aria-label': '推', method: :post, remote: :true do
                        span.fa.fa-thumbs-o-up aria-hidden='true'
                        | &ensp;推
                      = link_to course_vote_path(course_id: course.id, upvote: 'nil'), class: 'btn btn-info mg-t-10 btn-vote-course', 'aria-label': '中立', method: :post, remote: :true do
                        | 中立
                      = link_to course_vote_path(course_id: course.id, upvote: false), class: 'btn btn-danger mg-t-10 btn-vote-course', 'aria-label': '噓', method: :post, remote: :true do |variable|
                        span.fa.fa-thumbs-o-down aria-hidden='true'
                        | &ensp;噓
                    li.col-xs-6.col-sm-3
                      a.btn.m-btn.mg-t-10 href="##{course.instructor}_#{course.id}" data-toggle='collapse' data-parent='#courseInfoList' aria-expanded='true' aria-controls="#{course.instructor}_#{course.id}"
                        | 開課資訊

            section.panel-collapse.collapse.in id="#{course.instructor}_#{course.id}" role='tabpanel' aria-labelledby="heading_#{course.id}"
              = render 'courses/entries/index', course: course
<commit_msg>Change courses/vote btn syntax to rocket hash to prevent unexpected errs<commit_after>.row
  .col-md-4
    .fixed-aside
      = render 'search_form'

  .col-md-8.search-result
    section.row.mg-lr-xs-2
      h1.m-title
        strong 課程查詢結果
      dl#courseInfoList.panel-group role='tablist' aria-multiselectable='true'
        - @courses.each do |course|
          dd.panel
            h1.sr-only = course.title
            section.panel-heading role='tab' id="heading_#{course.id}"
              header.panel-title
                ul.course-info.list-unstyled.mg-b-10.clearfix
                  li.col-xs-6.col-sm-3
                    i.fa.fa-star aria-hidden='true'
                    span.superscript-title Rank #
                    h2 id="rank_on_course_#{course.id}" = course.score
                  li.col-xs-6.col-sm-3
                    i.fa.fa-list-alt aria-hidden='true'
                    span.superscript-title 課程名稱
                    h2 = course.title
                  li.col-xs-6.col-sm-3
                    i.fa.fa-user aria-hidden='true'
                    span.superscript-title 授課教師
                    h2 = course.instructor
                  li.col-xs-6.col-sm-3
                    i.fa.fa-tag aria-hidden='true'
                    span.superscript-title 課程類別
                    h2 = course.category
                  ul
                    li.col-xs-6.col-sm-9
                      = link_to course_vote_path(course_id: course.id, upvote: true), :class => 'btn btn-success mg-t-10 btn-vote-course', :'aria-label' => '推', :method => :post, :remote => :true do
                        span.fa.fa-thumbs-o-up aria-hidden='true'
                        | &ensp;推
                      = link_to course_vote_path(course_id: course.id, upvote: 'nil'), :class => 'btn btn-info mg-t-10 btn-vote-course', :'aria-label' => '中立', :method => :post, :remote => :true do
                        | 中
                      = link_to course_vote_path(course_id: course.id, upvote: false), :class => 'btn btn-danger mg-t-10 btn-vote-course', :'aria-label' => '噓', :method => :post, :remote => :true do
                        span.fa.fa-thumbs-o-down aria-hidden='true'
                        | &ensp;噓
                    li.col-xs-6.col-sm-3
                      a.btn.m-btn.mg-t-10 href="##{course.instructor}_#{course.id}" data-toggle='collapse' data-parent='#courseInfoList' aria-expanded='true' aria-controls="#{course.instructor}_#{course.id}"
                        | 開課資訊

            section.panel-collapse.collapse.in id="#{course.instructor}_#{course.id}" role='tabpanel' aria-labelledby="heading_#{course.id}"
              = render 'courses/entries/index', course: course

{'fraction_non_alphanumeric': 0.13487150628399924, 'fraction_numerical': 0.011630088163571563, 'mean_word_length': 1.5139085337105138, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '2248908', 'n_tokens_mistral': 1766, 'n_tokens_neox': 1700, 'n_words': 269}