<commit_before>
= admin_widget_box "#{@verdict.story.identity} - 判決書", icon: :th do
  table.table.table-bordered.table-striped.table-hover
    tbody
      tr
        td 所屬法院
        td= link_to "#{@verdict.story.court.full_name}", admin_court_path(@verdict.story.court)
      tr
        td 案件
        td= link_to "#{@verdict.story.identity}", admin_story_path(@verdict.story)
      tr
        td 宣判日期
        td= @verdict.adjudge_date
      tr
        td 是否為判決
        td= @verdict.is_judgment ? "是" : "否"
      tr
        td 審判長法官
        td= link_to "#{@verdict.story.main_judge.name}", admin_judge_path(@verdict.story.main_judge) if @verdict.story.main_judge
      tr
        td 參與檢察官
        td= link_to "TODO 檢察官資訊頁面", "#"
      tr
        td 參與律師
        td
          - @verdict.lawyers.each do |lawyer|
            = link_to "#{lawyer.name} ", admin_lawyer_path(lawyer)
      tr
        td 參與法官
        td
          - @verdict.judges.each do |judge|
            = link_to "#{judge.name} ", admin_judge_path(judge)
      tr
        td 參與當事人
        - @verdict.defendants.each do |defendant|
            = link_to "#{defendant.name} ", admin_defendant_path(judge)
      tr
        td 文件下載
        td= link_to "點我下載", download_file_admin_verdict_path(@verdict) if @verdict.file
      tr
        td 新增時間
        td= @verdict.created_at
      tr
        td 最後修改時間
        td= @verdict.updated_at<commit_msg>判決書 show 顯示分析結果, 並且將關聯換成 判決書與人的關聯<commit_after>
= admin_widget_box "#{@verdict.story.identity} - 判決書", icon: :th do
  table.table.table-bordered.table-striped.table-hover
    tbody
      tr
        td 所屬法院
        td= link_to "#{@verdict.story.court.full_name}", admin_court_path(@verdict.story.court)
      tr
        td 案件
        td= link_to "#{@verdict.story.identity}", admin_story_path(@verdict.story)
      tr
        td 宣判日期
        td= @verdict.adjudge_date
      tr
        td 是否為判決
        td= @verdict.is_judgment ? "是" : "否"
      tr
        td 審判長法官
        td= link_to "#{@verdict.story.main_judge.name}", admin_judge_path(@verdict.story.main_judge) if @verdict.story.main_judge
      tr
        td 分析檢察官結果
        td= @verdict.prosecutor_names.join(",")
      tr
        td 參與檢察官
        td= link_to "TODO 檢察官資訊頁面", "#"
      tr
        td 分析律師結果
        td= @verdict.lawyer_names.join(",")
      tr
        td 參與律師
        td
          - @verdict.lawyers.each do |lawyer|
            = link_to "#{lawyer.name} ", admin_lawyer_path(lawyer)
            = " "
      tr
        td 分析法官結果
        td= @verdict.judges_names.join(",")
      tr
        td 參與法官
        td
          - @verdict.judges.each do |judge|
            = link_to "#{judge.name} ", admin_judge_path(judge)
            = " "
      tr
        td 分析當事人結果
        td= @verdict.defendant_names.join(",")
      tr
        td 參與當事人
        td
          - @verdict.defendants.each do |defendant|
            = link_to "#{defendant.name} ", admin_defendant_path(defendant)
            = " "
      tr
        td 文件下載
        td= link_to "點我下載", download_file_admin_verdict_path(@verdict) if @verdict.file
      tr
        td 新增時間
        td= @verdict.created_at
      tr
        td 最後修改時間
        td= @verdict.updated_at
{'fraction_non_alphanumeric': 0.11055590256089944, 'fraction_numerical': 0.0, 'mean_word_length': 1.8170624450307828, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4611963', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1336, 'n_words': 222}