<commit_before>##
# NPR::Entity::Program
#
module NPR
  module Entity
    class Program < Base
      attr_reader :id, :code, :content

      #---------------------
    
      def initialize(json={})
        @content = json["$text"]
        @code    = json["code"]
        @content = json["content"]
      end

      #---------------------
    
      def to_s
        @content
      end
    end # Program
  end # Entity
end # NPR<commit_msg>Update Program initialize; require argument; id to_i<commit_after>##
# NPR::Entity::Program
#
module NPR
  module Entity
    class Program < Base
      attr_reader :id, :code, :content

      #---------------------
    
      def initialize(json)
        @id      = json["id"].to_i
        @content = json["$text"]
        @code    = json["code"]
      end

      #---------------------
    
      def to_s
        @content
      end
    end # Program
  end # Entity
end # NPR
{'fraction_non_alphanumeric': 0.1943231441048035, 'fraction_numerical': 0.0, 'mean_word_length': 1.3942558746736293, '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': '6405631', 'n_tokens_mistral': 270, 'n_tokens_neox': 259, 'n_words': 69}