<commit_before>%section#plan-courses
  %h2.col-xs-12
    %span.glyphicon.glyphicon-calendar
    Planned Courses
    %a.toggle-section.pull-right{ type: "button", "data-toggle" => "collapse", href: "#plan-courses-content", "aria-expanded" => "false", "aria-controls" => "plan-courses-content" }
      %span.glyphicon.glyphicon-collapse-down
      %span.sr-only collapse Planned Courses Section
  #plan-courses-content.collapse.in
    .checkbox.col-xs-12.col-md-3.col-md-offset-9
      %label#show-taken-courses-label
        %input#show-taken-courses{ type: "checkbox", value: "show-taken", checked: "checked" }
        show taken courses
    #plan-taken-courses
      - @plan.taken_quarter_sections.each do |taken_quarter_section|
        %h3.col-xs-12= taken_quarter_section[:title]
        - taken_quarter_section[:courses].each do |taken_course|
          .col-xs-12.col-md-4.plan-taken-course
            %h4= taken_course.full_id
            %h5= taken_course.title
            %p.plan-course-description{ lang: "en" }= taken_course.description
    - @plan.planned_quarter_sections.each do |planned_quarter_section|
      %h3.col-xs-12= planned_quarter_section[:title]
      - planned_quarter_section[:courses].each do |planned_course|
        .col-xs-12.col-md-4.plan-planned-course
          %h4= planned_course.full_id
          %h5= planned_course.title
          %p.plan-course-description= planned_course.description
          - problems = @plan.get_problems_for(planned_course)
          - unless problems.size == 0
            .problems-found
              %span.glyphicon.glyphicon-warning-sign
              %span.sr-only Warning!
              - problems.each do |problem|
                = content_tag(:p, problem)<commit_msg>add "unplan" button, resolves #30<commit_after>%section#plan-courses
  %h2.col-xs-12
    %span.glyphicon.glyphicon-calendar
    Planned Courses
    %a.toggle-section.pull-right{ type: "button", "data-toggle" => "collapse", href: "#plan-courses-content", "aria-expanded" => "false", "aria-controls" => "plan-courses-content" }
      %span.glyphicon.glyphicon-collapse-down
      %span.sr-only collapse Planned Courses Section
  #plan-courses-content.collapse.in
    .checkbox.col-xs-12.col-md-3.col-md-offset-9
      %label#show-taken-courses-label
        %input#show-taken-courses{ type: "checkbox", value: "show-taken", checked: "checked" }
        show taken courses
    #plan-taken-courses
      - @plan.taken_quarter_sections.each do |taken_quarter_section|
        %h3.col-xs-12= taken_quarter_section[:title]
        - taken_quarter_section[:courses].each do |taken_course|
          .col-xs-12.col-md-4.plan-taken-course
            %h4= taken_course.full_id
            %h5= taken_course.title
            %p.plan-course-description{ lang: "en" }= taken_course.description
    - @plan.planned_quarter_sections.each do |planned_quarter_section|
      %h3.col-xs-12= planned_quarter_section[:title]
      - planned_quarter_section[:courses].each do |planned_course|
        .col-xs-12.col-md-4.plan-planned-course
          .row
            .col-xs-12.col-md-9
              %h4= planned_course.full_id
              %h5= planned_course.title
            .col-xs-12.col-md-3
              = button_to "unplan", planned_course_path(planned_course), method: :delete, class: "btn btn-default"
            .col-xs-12
              %p.plan-course-description= planned_course.description
              - problems = @plan.get_problems_for(planned_course)
              - unless problems.size == 0
                .problems-found
                  %span.glyphicon.glyphicon-warning-sign
                  %span.sr-only Warning!
                  - problems.each do |problem|
                    = content_tag(:p, problem)
{'fraction_non_alphanumeric': 0.12915227212330588, 'fraction_numerical': 0.015413234121711401, 'mean_word_length': 2.4755309325946446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4611986', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1190, 'n_words': 179}