<commit_before>module ActiveModel
  # DefaultSerializer
  #
  # Provides a constant interface for all items
  class DefaultSerializer
    attr_reader :object

    def initialize(object, options=nil)
      @object = object
    end

    def serializable_hash(*)
      @object.as_json
    end
    alias serializable_object serializable_hash<commit_msg>Make DefaultSerializer include AM::Serializable so embedded_in_root_associations is always defined also there<commit_after>require 'active_model/serializable'

module ActiveModel
  # DefaultSerializer
  #
  # Provides a constant interface for all items
  class DefaultSerializer
    include ActiveModel::Serializable

    attr_reader :object

    def initialize(object, options=nil)
      @object = object
    end

    def as_json(options={})
      @object.as_json
    end
    alias serializable_hash as_json
    alias serializable_object as_json
{'fraction_non_alphanumeric': 0.05027932960893855, 'fraction_numerical': 0.0, 'mean_word_length': 3.8961748633879782, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3090344', 'n_tokens_mistral': 242, 'n_tokens_neox': 236, 'n_words': 70}