<commit_before>require 'roar/decorator'
require 'roar/representer/json'
require 'roar/representer/feature/coercion'

module Napa
  class Representer < Roar::Decorator
    include Roar::Representer::JSON
    include Representable::Coercion

    property :object_type, getter: lambda { |*| self.class.name.underscore }
  end
end<commit_msg>include null keys<commit_after>require 'roar/decorator'
require 'roar/representer/json'
require 'roar/representer/feature/coercion'

module Napa
  class Representer < Roar::Decorator
    include Roar::Representer::JSON
    include Representable::Coercion
    def self.property(name, options={}, &block)
      super(name, options.merge(render_nil: true), &block)
    end

    property :object_type, getter: lambda { |*| self.class.name.underscore }
  end
end
{'fraction_non_alphanumeric': 0.11069182389937107, 'fraction_numerical': 0.0, 'mean_word_length': 5.03030303030303, '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': '810181', 'n_tokens_mistral': 266, 'n_tokens_neox': 255, 'n_words': 54}