<commit_before>.container
  .row.col-lg-10.col-lg-offset-1
    .owl-carousel.content-slider-with-controls-autoplay
      - if @keyword.slides.present?
        - @keyword.slides.each do |slide|
          = image_tag(slide.image, class: "embed-responsive-item", alt: "", width: "100%")
      - elsif @keyword.image.present?
        = image_tag(@keyword.image.banner, class: "embed-responsive-item", alt: "", width: "100%")
    h1.title.text-center = @keyword.title
    .separator
    = @keyword.content.try(:html_safe)


- if @keyword.faqs.any?
  .container
    .row.col-lg-10.col-lg-offset-1
      .panel-group#accordion-faq
        - num = 0
        - @keyword.faqs.each do |faq|
          - num += 1
          .panel.panel-default
            .panel-heading
              h4.panel-title
                = link_to "#collapse#{num}", data: { toggle: "collapse", parent: "#accordion-faq" }, class: "collapsed" do
                  i.fa.fa-question-circle.pr-10
                  = faq.question
            .panel-collapse.collapse id="collapse#{num}"
              .panel-body
                = faq.answer.try(:html_safe)

- if @keyword.articles.any?
  .container
    .col-lg-10.col-lg-offset-1
      .row.hidden-xs
        .container.section
          ul.nav.nav-tabs.nav-justified
            - if @kind.blank?
              li.active
                = link_to "所有", url_for(params.merge({k: nil, anchor: 'more'}))
              li
                = link_to "新聞稿", url_for(params.merge({k: "presses", page: nil, anchor: 'more'}))
              li
                = link_to "活動", url_for(params.merge({k: "activities", page: nil, anchor: 'more'}))
              li
                = link_to "評論", url_for(params.merge({k: "comments", page: nil, anchor: 'more'}))
              li
                = link_to "電子報", url_for(params.merge({k: "epapers", page: nil, anchor: 'more'}))
              li
                = link_to "書籍", url_for(params.merge({k: "books", page: nil, anchor: 'more'}))
            - else
              li
                = link_to "所有", url_for(params.merge({k: nil, page: nil, anchor: 'more'}))
              - if @kind == 'presses'
                li.active
                  = link_to "新聞稿", url_for(params.merge({k: "presses", anchor: 'more'}))
              - else
                li
                  = link_to "新聞稿", url_for(params.merge({k: "presses", page: nil, anchor: 'more'}))
              - if @kind == 'activities'
                li.active
                  = link_to "活動", url_for(params.merge({k: "activities", anchor: 'more'}))
              - else
                li
                  = link_to "活動", url_for(params.merge({k: "activities", page: nil, anchor: 'more'}))
              - if @kind == 'comments'
                li.active
                 = link_to "評論", url_for(params.merge({k: "comments", anchor: 'more'}))
              - else
                li
                  = link_to "評論", url_for(params.merge({k: "comments", page: nil, anchor: 'more'}))
              - if @kind == 'epapers'
                li.active
                  = link_to "電子報", url_for(params.merge({k: "epapers", anchor: 'more'}))
              - else
                li
                  = link_to "電子報", url_for(params.merge({k: "epapers", page: nil, anchor: 'more'}))
              - if @kind == 'books'
                li.active
                  = link_to "書籍", url_for(params.merge({k: "books", anchor: 'more'}))
              - else
                li
                  = link_to "書籍", url_for(params.merge({k: "books", page: nil, anchor: 'more'}))
      .row
        .isotope-container
          - @articles.each do |a|
            .list-with-image.isotope-item.col-sm-6 class="jrf-#{a.kind}"
              .overlay-container
                - if a.image.blank?
                  = image_tag("jrf-img.png", alt: "")
                - else
                  = image_tag(a.image.thumb, alt: "")
                = link_to article_path(a), class: "overlay small" do
                  i.fa.fa-link
                  - if a.kind == 'press'
                    span 新聞稿
                  - elsif a.kind == 'activity'
                    span 活動
                  - elsif a.kind == 'comment'
                    span 評論
                  - elsif a.kind == 'epaper'
                    span 電子報
                  - elsif a.kind == 'book'
                    span 書籍
                  - else
                    span 不明
              h2
                = link_to a.title, article_path(a)
              p.small = a.published_at.try(:strftime, '%Y-%m-%d')
        .text-center
          = paginate @articles, params: { anchor: 'more' }
<commit_msg>nav container delete<commit_after>.container
  .row.col-lg-10.col-lg-offset-1
    .owl-carousel.content-slider-with-controls-autoplay
      - if @keyword.slides.present?
        - @keyword.slides.each do |slide|
          = image_tag(slide.image, class: "embed-responsive-item", alt: "", width: "100%")
      - elsif @keyword.image.present?
        = image_tag(@keyword.image.banner, class: "embed-responsive-item", alt: "", width: "100%")
    h1.title.text-center = @keyword.title
    .separator
    = @keyword.content.try(:html_safe)


- if @keyword.faqs.any?
  .container
    .row.col-lg-10.col-lg-offset-1
      .panel-group#accordion-faq
        - num = 0
        - @keyword.faqs.each do |faq|
          - num += 1
          .panel.panel-default
            .panel-heading
              h4.panel-title
                = link_to "#collapse#{num}", data: { toggle: "collapse", parent: "#accordion-faq" }, class: "collapsed" do
                  i.fa.fa-question-circle.pr-10
                  = faq.question
            .panel-collapse.collapse id="collapse#{num}"
              .panel-body
                = faq.answer.try(:html_safe)

- if @keyword.articles.any?
  .container
    .col-lg-10.col-lg-offset-1
      .row.hidden-xs
        .section
          ul.nav.nav-tabs.nav-justified
            - if @kind.blank?
              li.active
                = link_to "所有", url_for(params.merge({k: nil, anchor: 'more'}))
              li
                = link_to "新聞稿", url_for(params.merge({k: "presses", page: nil, anchor: 'more'}))
              li
                = link_to "活動", url_for(params.merge({k: "activities", page: nil, anchor: 'more'}))
              li
                = link_to "評論", url_for(params.merge({k: "comments", page: nil, anchor: 'more'}))
              li
                = link_to "電子報", url_for(params.merge({k: "epapers", page: nil, anchor: 'more'}))
              li
                = link_to "書籍", url_for(params.merge({k: "books", page: nil, anchor: 'more'}))
            - else
              li
                = link_to "所有", url_for(params.merge({k: nil, page: nil, anchor: 'more'}))
              - if @kind == 'presses'
                li.active
                  = link_to "新聞稿", url_for(params.merge({k: "presses", anchor: 'more'}))
              - else
                li
                  = link_to "新聞稿", url_for(params.merge({k: "presses", page: nil, anchor: 'more'}))
              - if @kind == 'activities'
                li.active
                  = link_to "活動", url_for(params.merge({k: "activities", anchor: 'more'}))
              - else
                li
                  = link_to "活動", url_for(params.merge({k: "activities", page: nil, anchor: 'more'}))
              - if @kind == 'comments'
                li.active
                 = link_to "評論", url_for(params.merge({k: "comments", anchor: 'more'}))
              - else
                li
                  = link_to "評論", url_for(params.merge({k: "comments", page: nil, anchor: 'more'}))
              - if @kind == 'epapers'
                li.active
                  = link_to "電子報", url_for(params.merge({k: "epapers", anchor: 'more'}))
              - else
                li
                  = link_to "電子報", url_for(params.merge({k: "epapers", page: nil, anchor: 'more'}))
              - if @kind == 'books'
                li.active
                  = link_to "書籍", url_for(params.merge({k: "books", anchor: 'more'}))
              - else
                li
                  = link_to "書籍", url_for(params.merge({k: "books", page: nil, anchor: 'more'}))
      .row
        .isotope-container
          - @articles.each do |a|
            .list-with-image.isotope-item.col-sm-6 class="jrf-#{a.kind}"
              .overlay-container
                - if a.image.blank?
                  = image_tag("jrf-img.png", alt: "")
                - else
                  = image_tag(a.image.thumb, alt: "")
                = link_to article_path(a), class: "overlay small" do
                  i.fa.fa-link
                  - if a.kind == 'press'
                    span 新聞稿
                  - elsif a.kind == 'activity'
                    span 活動
                  - elsif a.kind == 'comment'
                    span 評論
                  - elsif a.kind == 'epaper'
                    span 電子報
                  - elsif a.kind == 'book'
                    span 書籍
                  - else
                    span 不明
              h2
                = link_to a.title, article_path(a)
              p.small = a.published_at.try(:strftime, '%Y-%m-%d')
        .text-center
          = paginate @articles, params: { anchor: 'more' }

{'fraction_non_alphanumeric': 0.14775527697417765, 'fraction_numerical': 0.004928747455266259, 'mean_word_length': 1.3714430894308942, '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': '6253849', 'n_tokens_mistral': 3043, 'n_tokens_neox': 2914, 'n_words': 584}