<commit_before>require 'delegate'
require 'moneta'

module Tronprint
  class Aggregator < Delegator
    def initialize(options = {})
      adapter_underscored = options.delete :adapter
      adapter_underscored ||= :pstore
      require "moneta/adapters/#{adapter_underscored}"
      klass = Moneta::Adapters.const_get adapter_constant(adapter_underscored)
      args = adapter_underscored == :memory ? [] : [options]
      super klass.new(*args)
    end

    def __getobj__
      @delegate_sd_obj
    end
    def __setobj__(obj)<commit_msg>Apparently, bundler mucks up load paths, using std. gem paths<commit_after>require 'delegate'
require 'moneta'

module Tronprint
  class Aggregator < Delegator
    def initialize(options = {})
      adapter_underscored = options.delete :adapter
      adapter_underscored ||= :pstore
      require "moneta/#{adapter_underscored}"
      klass = Moneta.const_get adapter_constant(adapter_underscored)
      args = adapter_underscored == :memory ? [] : [options]
      super klass.new(*args)
    end

    def __getobj__
      @delegate_sd_obj
    end
    def __setobj__(obj)
{'fraction_non_alphanumeric': 0.09000900090009001, 'fraction_numerical': 0.0, 'mean_word_length': 3.6333333333333333, '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': '4710033', 'n_tokens_mistral': 352, 'n_tokens_neox': 341, 'n_words': 76}