<commit_before>- if cert_exists
  - att_record = award.audit_certificate

  - if att_record.attachment_scan_results.present?
    - if att_record.clean?
      = link_to "Download External Accountant's Report", att_record.attachment_url,
                target: "_blank", class: "js-audit-certificate-title"
    - elsif att_record.attachment_scan_results == "scanning"
      | Uploaded External Accountant's Report is being scanned for viruses.
    - elsif att_record.attachment_scan_results == "infected"
      | Uploaded file has been blocked (virus detected), please remove.
    - else
      = link_to "Download Verification of Commercial Figures", "",
                target: "_blank", class: "js-audit-certificate-title"
  - else
      | Uploaded External Accountant's Report is being scanned for viruses.

- else
  = link_to "Download Verification of Commercial Figures", "",
            target: "_blank", class: "js-audit-certificate-title"

small.pull-right.remove-verification-document
  = form_for(users_form_answer_audit_certificate_path, html: { method: :delete, class:"js-remove-verification-document-form", style: "display:inline-block;"}) do |f|

    = f.submit 'Remove', class: 'if-js-hide'

    = link_to "#", class: "text-danger if-no-js-hide js-remove-verification-document-link", data: {confirm: "Are you sure?"}
      span.glyphicon.glyphicon-remove
      span.visible-lg.visible-md
        ' Remove
<commit_msg>✨ Accountant's Report: Show filename in DL link<commit_after>- if cert_exists
  - att_record = award.audit_certificate

  - if att_record.attachment_scan_results.present?
    - if att_record.clean?
      = link_to att_record.attachment.file.filename, att_record.attachment_url,
                target: "_blank", class: "js-audit-certificate-title download-link"
    - elsif att_record.attachment_scan_results == "scanning"
      | Uploaded External Accountant's Report is being scanned for viruses.
    - elsif att_record.attachment_scan_results == "infected"
      | Uploaded file has been blocked (virus detected), please remove.
    - else
      = link_to att_record.attachment.file.filename, "",
                target: "_blank", class: "js-audit-certificate-title download-link"
  - else
      | Uploaded External Accountant's Report is being scanned for viruses.

- else # The below link gets displayed by javascript when the user uploads a file (no page reload)
  = link_to "Download Verification of Commercial Figures", "",
            target: "_blank", class: "js-audit-certificate-title download-link"

small.pull-right.remove-verification-document
  = form_for(users_form_answer_audit_certificate_path, html: { method: :delete, class:"js-remove-verification-document-form", style: "display:inline-block;"}) do |f|

    = f.submit 'Remove', class: 'if-js-hide'

    = link_to "#", class: "text-danger if-no-js-hide js-remove-verification-document-link", data: {confirm: "Are you sure?"}
      span.glyphicon.glyphicon-remove
      span.visible-lg.visible-md
        ' Remove

{'fraction_non_alphanumeric': 0.11206896551724138, 'fraction_numerical': 0.0, 'mean_word_length': 3.5574018126888216, '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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1556398', 'n_tokens_mistral': 937, 'n_tokens_neox': 893, 'n_words': 223}