<commit_before>module IslayShop::Admin::OrdersHelper
  def with_count(s, n)
    if n > 0
      "#{content_tag(:span, s, :class => 'link')} #{content_tag(:span, n, :class => 'count')}".html_safe
    else
      s
    end
  end
end
<commit_msg>Document #with_count helper.<commit_after>module IslayShop::Admin::OrdersHelper
  # For counts over 0, adds an annotating span with the count.
  #
  # @param String title
  # @param Integer count
  #
  # @return String
  def with_count(title, n)
    if n > 0
      "#{content_tag(:span, title, :class => 'link')} #{content_tag(:span, n, :class => 'count')}".html_safe
    else
      title
    end
  end
end

{'fraction_non_alphanumeric': 0.14351851851851852, 'fraction_numerical': 0.004629629629629629, 'mean_word_length': 3.385135135135135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4033261', 'n_tokens_mistral': 231, 'n_tokens_neox': 228, 'n_words': 63}