<commit_before>
module DScript
  class Base
    include EventEmitter
    include DEmitter

    # d_emitter
    attr_accessor :pub_redis, :sub_redis, :base_name

    def initialize(name, opts)
      settings = { url: opts[:redis], db: 0, timeout: 0, driver: :ruby}
      @pub_redis = Redis.new(settings)
      @sub_redis = Redis.new(settings)
      @base_name = name
    end

    def ch_name(name, id = false)
      if id
        "#{base_name}-#{name}-#{id}"
      else
        "#{base_name}-#{name}"
      end
    end
  end
end<commit_msg>oops this should be using the url option<commit_after>
module DScript
  class Base
    include EventEmitter
    include DEmitter

    # d_emitter
    attr_accessor :pub_redis, :sub_redis, :base_name

    def initialize(name, opts)
      settings = { url: opts[:url], db: 0, timeout: 0, driver: :ruby}
      @pub_redis = Redis.new(settings)
      @sub_redis = Redis.new(settings)
      @base_name = name
    end

    def ch_name(name, id = false)
      if id
        "#{base_name}-#{name}-#{id}"
      else
        "#{base_name}-#{name}"
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11604714415231188, 'fraction_numerical': 0.003626473254759746, 'mean_word_length': 2.4936708860759493, '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': '2600852', 'n_tokens_mistral': 394, 'n_tokens_neox': 389, 'n_words': 98}