<commit_before>aside class="pinfo-inner-aside"
  - @video.legislators.each do |l|
    .pinfo.pinfo-inner
      = render partial: 'shared/legislator_info', locals: { l: l }

section class="single-page-inner"
  header
    h3 = @video.title
  - @video.legislators.each do |l|
    = render partial: 'shared/legislator_short_info', locals: { l: l }
  ul id="sinner-src-list"
    - if @video.video_type == 'news'
      li 
        | 電視出處：
        = @video.source_name
        - unless @video.source_url.empty?
          = link_to @video.source_url, @video.source_url, target: "_blank"
    - elsif @video.video_type == 'ivod'
      li 
        | ivod出處：
        = link_to @video.ivod_url, @video.ivod_url, target: "_blank"
      - if @video.time_start or @video.time_end
        li ivod時間區間：#{@video.time_start.try(:strftime, '%H:%M:%S')}～#{@video.time_end.try(:strftime, '%H:%M:%S')}
      - else
        li ivod時間區間：無指定
      li 
        | 會期：
        = @video.ad_session.try(:ad).try(:name)
        = @video.ad_session.try(:name)
      li 
        | 會議時間：
        = @video.date.try(:strftime, '%Y年%m月%d日')
      li 
        | 會議別：
        = @video.committee.try(:name)
      li 
        | 會議簡介：
        br
        = @video.meeting_description
      li 
        | 質詢對象：
        = @video.target
  .inner-content-txt
    .vidoe-inner-show
      iframe src="https://www.youtube.com/embed/#{@video.youtube_id}" frameborder="0" class="video-play" allowfullscreen="1"
    .video-inner-txt
      = @video.content.try(:html_safe)
  .writer
    span 資料回報者
    = @video.user.try(:name)
    | &nbsp;
    time class="time"
      = @video.created_at.strftime('%Y-%m-%d')
  - if user_signed_in? and (@video.user == current_user or current_user.admin?)
    .edit-block
      ul class="edit-btn"
        li = link_to '修改編輯', edit_video_path(@video)
        li = link_to '刪除', video_path(@video), method: :delete, data: { confirm: '確認要刪除嗎？' }
  aside id="aside-info"
    #accordion
      - @video.legislators.each do |l|
        - if l.videos.published.created_after(@video.created_at).any?
          h3 = l.name
          div
            ul class="video-other-list"
              - l.videos.published.created_after(@video.created_at).first(6).each do |v|
                li 
                  = link_to image_tag(v.image, width: "135", height: "102"), video_path(v)
                  = link_to v.title, video_path(v)
<commit_msg>fix video show error<commit_after>aside class="pinfo-inner-aside"
  - @video.legislators.each do |l|
    .pinfo.pinfo-inner
      = render partial: 'shared/legislator_info', locals: { l: l }

section class="single-page-inner"
  header
    h3 = @video.title
  - @video.legislators.each do |l|
    = render partial: 'shared/legislator_short_info', locals: { l: l }
  ul id="sinner-src-list"
    - if @video.video_type == 'news'
      li 
        | 電視出處：
        = @video.source_name
        - unless @video.source_url.empty?
          = link_to @video.source_url, @video.source_url, target: "_blank"
    - elsif @video.video_type == 'ivod'
      li 
        | ivod出處：
        = link_to @video.ivod_url, @video.ivod_url, target: "_blank"
      - if @video.time_start or @video.time_end
        li ivod時間區間：#{@video.time_start.try(:strftime, '%H:%M:%S')}～#{@video.time_end.try(:strftime, '%H:%M:%S')}
      - else
        li ivod時間區間：無指定
      li 
        | 會期：
        = @video.ad_session.try(:ad).try(:name)
        = @video.ad_session.try(:name)
      li 
        | 會議時間：
        = @video.date.try(:strftime, '%Y年%m月%d日')
      li 
        | 會議別：
        = @video.committee.try(:name)
      li 
        | 會議簡介：
        br
        = @video.meeting_description
      li 
        | 質詢對象：
        = @video.target
  .inner-content-txt
    .vidoe-inner-show
      iframe src="https://www.youtube.com/embed/#{@video.youtube_id}" frameborder="0" class="video-play" allowfullscreen="1"
    .video-inner-txt
      = @video.content.try(:html_safe)
  .writer
    span 資料回報者
    = @video.user.try(:name)
    | &nbsp;
    time class="time"
      = @video.created_at.strftime('%Y-%m-%d')
  - if user_signed_in? and (@video.user == current_user or current_user.admin?)
    .edit-block
      ul class="edit-btn"
        li = link_to '修改編輯', edit_video_path(@video)
        li = link_to '刪除', video_path(@video), method: :delete, data: { confirm: '確認要刪除嗎？' }
  aside id="aside-info"
    #accordion
      - @video.legislators.each do |l|
        - if l.videos.published.created_after(@video.created_at).any?
          h3 = l.name
          div
            ul class="video-other-list"
              - l.videos.published.created_after(@video.created_at).first(6).each do |v|
                li 
                  = link_to image_tag(v.image, width: "135", height: "102"), video_path(v), class: "vo-img"
                  = link_to v.title, video_path(v), class: "vo-title"

{'fraction_non_alphanumeric': 0.15435274747890512, 'fraction_numerical': 0.00452768059271455, 'mean_word_length': 2.222811671087533, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '101591', 'n_tokens_mistral': 1888, 'n_tokens_neox': 1859, 'n_words': 301}