<commit_before>require 'funl/client'

module Tupelo
  class Client < Funl::Client
    require 'tupelo/client/worker'
    require 'tupelo/client/tuplespace'
    require 'tupelo/client/subspace'

    include Api

    attr_reader :worker
    attr_reader :tuplespace

    TUPELO_SUBSPACE_TAG = "tupelo subspace".freeze
    TUPELO_META_KEY = "__tupelo__".freeze

    def initialize(tuplespace: SimpleTuplespace, subscribe: :all, **opts)
      super **opts
      @tuplespace = tuplespace
      @worker = make_worker
      @initial_subscriptions = subscribe
    end<commit_msg>`subscribe: nil` means no subscriptions<commit_after>require 'funl/client'

module Tupelo
  class Client < Funl::Client
    require 'tupelo/client/worker'
    require 'tupelo/client/tuplespace'
    require 'tupelo/client/subspace'

    include Api

    attr_reader :worker
    attr_reader :tuplespace

    TUPELO_SUBSPACE_TAG = "tupelo subspace".freeze
    TUPELO_META_KEY = "__tupelo__".freeze

    def initialize(tuplespace: SimpleTuplespace, subscribe: :all, **opts)
      super **opts
      @tuplespace = tuplespace
      @worker = make_worker
      @initial_subscriptions = subscribe || []
    end
{'fraction_non_alphanumeric': 0.0878839590443686, 'fraction_numerical': 0.0, 'mean_word_length': 3.6, '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': '3668997', 'n_tokens_mistral': 399, 'n_tokens_neox': 383, 'n_words': 81}