<commit_before>module Spooky
  class Tag < Spooky::Base
    attr_reader :name, :description, :image, :hidden, :parent

    def initialize(attrs = {})
      @name = attrs["name"]
      @description = attrs["description"]
      @image = attrs["image"]
      @hidden = attrs["hidden"]
      @parent = attrs["parent"]

      super(attrs)
    end
  end
end
<commit_msg>:wrench: Add post_count attribute to Spooky::Tag<commit_after>module Spooky
  class Tag < Spooky::Base
    attr_reader :name, :description, :image, :hidden, :parent, :post_count

    def initialize(attrs = {})
      @name = attrs["name"]
      @description = attrs["description"]
      @image = attrs["image"]
      @hidden = attrs["hidden"]
      @parent = attrs["parent"]
      @post_count = attrs.dig("count", "posts")

      super(attrs)
    end
  end
end

{'fraction_non_alphanumeric': 0.14563106796116504, 'fraction_numerical': 0.0, 'mean_word_length': 3.2091836734693877, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5787505', 'n_tokens_mistral': 257, 'n_tokens_neox': 265, 'n_words': 63}