<commit_before>section
  .container
    h1.sr-only 自訂
    aside.col-md-2
      = render 'users/aside_tabs'
    article.col-md-10
      .jumbotron
        h2.m-title.text-center 已修過課程
        = form_for :passed_courses do |f|
          h4 登記已修過課程
          .input-group
            input.form-control name='passed_course' value="#{params[:passed_course]}" placeholder='課程名稱'
            span.input-group-btn
              = f.submit '登記', class: 'btn btn-default'
        hr
        table.table.table-condensed.table-hover.break-table
          h4 已修過課程列表
          thead
            tr
              th 課程名稱
              th 取消登記
          tbody
            - @list.each do |item|
              tr
                td data-title='課程名稱' = item
                td data-title='取消登記'
                  button.btn.btn-danger.btn-sm type='submit'
                    span.fa.fa-times
                    | 取消<commit_msg>Setup destroy link for passed_course in /users/passed_courses<commit_after>section
  .container
    h1.sr-only 自訂
    aside.col-md-2
      = render 'users/aside_tabs'
    article.col-md-10
      .jumbotron
        h2.m-title.text-center 已修過課程
        = form_for :passed_courses do |f|
          h4 登記已修過課程
          .input-group
            input.form-control name='passed_course' value="#{params[:passed_course]}" placeholder='課程名稱'
            span.input-group-btn
              = f.submit '登記', class: 'btn btn-default'
        hr
        table.table.table-condensed.table-hover.break-table
          h4 已修過課程列表
          thead
            tr
              th 課程名稱
              th 取消登記
          tbody
            - @list.each do |item|
              tr
                td data-title='課程名稱' = item
                td data-title='取消登記'
                  = link_to users_passed_courses_path(passed_course: item), class: 'btn btn-danger btn-sm', method: :delete do
                    span.fa.fa-times
                    | 取消
{'fraction_non_alphanumeric': 0.09536082474226804, 'fraction_numerical': 0.007216494845360825, 'mean_word_length': 1.36996336996337, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4323376', 'n_tokens_mistral': 688, 'n_tokens_neox': 676, 'n_words': 117}