<commit_before>module Merb
  module GlobalHelpers    
    def tag_cloud(tags, classes)
      return "" if tags.nil? || tags.empty?
      max, min = 0, 0
      tags.each do |t|
        count = Article.tagged_with(t.name).count.to_i
        max = count if count > max
        min = count if count < min
      end
      divisor = ((max - min) / classes.size) + 1
      tags.each do |t|
        count = Article.tagged_with(t.name).count.to_i
        yield t, classes[count / divisor]
      end
    end
  end
end<commit_msg>Bah, '.count'? wtf am I on about<commit_after>module Merb
  module GlobalHelpers    
    def tag_cloud(tags, classes)
      return "" if tags.nil? || tags.empty?
      max, min = 0, 0
      tags.each do |t|
        count = Article.tagged_with(t.name).size.to_i
        max = count if count > max
        min = count if count < min
      end
      divisor = ((max - min) / classes.size) + 1
      tags.each do |t|
        count = Article.tagged_with(t.name).size.to_i
        yield t, classes[count / divisor]
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.10710900473933649, 'fraction_numerical': 0.005687203791469194, 'mean_word_length': 1.9333333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5509734', 'n_tokens_mistral': 359, 'n_tokens_neox': 347, 'n_words': 103}