<commit_before>
- level = certificate.attained_level || 'none'
- image_level = level == 'basic' ? 'raw' : level == 'expert' ? 'exemplar' : level
%div.open-data-certificate
  %style="@import url(#{request.protocol}#{request.host_with_port}/assets/badge.css);"
  = link_to certificate_url(certificate) do image_tag("#{request.protocol}#{request.host_with_port}/assets/badges/#{image_level}_level_badge.png") end
  %ul.open-data-certificate-details
    %li
      %span="#{t("levels.#{level}.title")} Open Data Certificate (beta)"
    %li
      %span self-certified
    %li
      %span=certificate.response_set.title
    %li
      %span="awarded #{certificate.created_at.strftime("%-d %b %Y")}"<commit_msg>hardcoding https because behind firewall, requests are all http<commit_after>
- level = certificate.attained_level || 'none'
- image_level = level == 'basic' ? 'raw' : level == 'expert' ? 'exemplar' : level
%div.open-data-certificate
  %style="@import url(https://#{request.host_with_port}/assets/badge.css);"
  = link_to certificate_url(certificate) do image_tag("https://#{request.host_with_port}/assets/badges/#{image_level}_level_badge.png") end
  %ul.open-data-certificate-details
    %li
      %span="#{t("levels.#{level}.title")} Open Data Certificate (beta)"
    %li
      %span self-certified
    %li
      %span=certificate.response_set.title
    %li
      %span="awarded #{certificate.created_at.strftime("%-d %b %Y")}"
{'fraction_non_alphanumeric': 0.17108938547486033, 'fraction_numerical': 0.0, 'mean_word_length': 4.575875486381323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4654945', 'n_tokens_mistral': 497, 'n_tokens_neox': 492, 'n_words': 81}