<commit_before># -*- coding: utf-8 -*-

require 'forwardable'

require 'hamster'
require 'concord'
require 'inflection'

module Yaks
  Undefined = Object.new

  module ClassMethods
    def default_serializer_lookup(obj = Undefined)
      return λ(:default_serializer_lookup) if obj == Undefined
      Object.const_get("#{obj.class.name}Serializer")
    end

    def dump(objects, options = {})
      Yaks::Pipeline.new(objects, options).call
    end
  end
  extend ClassMethods

end

require 'yaks/util'
require 'yaks/serializable_collection'
require 'yaks/serializable_object'
require 'yaks/serializable_association'
require 'yaks/fold_json_api'
require 'yaks/fold_ams_compat'
require 'yaks/serializer/class_methods'
require 'yaks/serializer/lookup'
require 'yaks/serializer'
require 'yaks/collection_serializer'
require 'yaks/primitivize'
require 'yaks/pipeline'<commit_msg>Stop trying to be so fancy, not including Util at the top level, and no benefit here from using curry_method<commit_after># -*- coding: utf-8 -*-

require 'forwardable'

require 'hamster'
require 'concord'
require 'inflection'

module Yaks
  Undefined = Object.new

  module ClassMethods
    def default_serializer_lookup(obj = Undefined)
      return method(:default_serializer_lookup) if obj == Undefined
      Object.const_get("#{obj.class.name}Serializer")
    end

    def dump(objects, options = {})
      Yaks::Pipeline.new(objects, options).call
    end
  end
  extend ClassMethods

end

require 'yaks/util'
require 'yaks/serializable_collection'
require 'yaks/serializable_object'
require 'yaks/serializable_association'
require 'yaks/fold_json_api'
require 'yaks/fold_ams_compat'
require 'yaks/serializer/class_methods'
require 'yaks/serializer/lookup'
require 'yaks/serializer'
require 'yaks/collection_serializer'
require 'yaks/primitivize'
require 'yaks/pipeline'
{'fraction_non_alphanumeric': 0.09935205183585313, 'fraction_numerical': 0.0010799136069114472, 'mean_word_length': 5.135761589403973, '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': '5057665', 'n_tokens_mistral': 590, 'n_tokens_neox': 587, 'n_words': 140}