<commit_before>module ArtifactsHelper

  def display_license artifact, opt={}
    license = artifact.license.short_name

    # copyright is boring
    return I18n.t("licenses.text.copyright", author: artifact.author) if license == 'copyright'

    img = image_tag(artifact.license.image_url(opt[:small]))

    if 'public' == license
      link = I18n.t("licenses.link.public")
      text = I18n.t("licenses.text.public")
    else # cc licenses
      link = I18n.t("licenses.link.cc", type: license)
      text = I18n.t("licenses.text.cc")
      parts = license.split('-').map do |part|
        I18n.t("licenses.parts.#{part}")
      end
    end

    if opt[:small]
      content_tag :div, class: 'license' do |div|
        content_tag(:a, img, href: link) +
        content_tag(:a, text, href: link)
      end
    else
      content_tag :div, class: 'license' do |div|
        content = content_tag(:a, img, href: link)

        inner_content = content_tag(:a, text, href: link)
        inner_content += tag(:br)
        parts.each do |part|
          inner_content += content_tag(:span, part, class: 'label license-label label-default')
        end if parts.present?

        content += content_tag(:div, inner_content, class: 'license-terms')
        content
      end
    end
  end

end<commit_msg>Remove unused paramters in artifacts_helper<commit_after>module ArtifactsHelper

  def display_license artifact, opt={}
    license = artifact.license.short_name

    # copyright is boring
    return I18n.t("licenses.text.copyright", author: artifact.author) if license == 'copyright'

    img = image_tag(artifact.license.image_url(opt[:small]))

    if 'public' == license
      link = I18n.t("licenses.link.public")
      text = I18n.t("licenses.text.public")
    else # cc licenses
      link = I18n.t("licenses.link.cc", type: license)
      text = I18n.t("licenses.text.cc")
      parts = license.split('-').map do |part|
        I18n.t("licenses.parts.#{part}")
      end
    end

    if opt[:small]
      content_tag :div, class: 'license' do
        content_tag(:a, img, href: link) +
        content_tag(:a, text, href: link)
      end
    else
      content_tag :div, class: 'license' do
        content = content_tag(:a, img, href: link)

        inner_content = content_tag(:a, text, href: link)
        inner_content += tag(:br)
        parts.each do |part|
          inner_content += content_tag(:span, part, class: 'label license-label label-default')
        end if parts.present?

        content += content_tag(:div, inner_content, class: 'license-terms')
        content
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.12900763358778625, 'fraction_numerical': 0.00916030534351145, 'mean_word_length': 2.7177304964539006, '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': '4098668', 'n_tokens_mistral': 845, 'n_tokens_neox': 811, 'n_words': 205}