<commit_before>describe "standard_client_tcp" do
  before :all do
    start_server(Moneta::Adapters::Memory.new)
  end

  moneta_store :Client
  moneta_specs STANDARD_SPECS

  it 'supports multiple clients' do
    client = Moneta.new(:Client)
    client['shared_key'] = 'shared_val'
    threads = (1..100).map do |i|
      Thread.new do
        client = Moneta.new(:Client)
        (1..100).each do |j|
          client['shared_key'].should == 'shared_val'
          client["<KEY>"] = "<KEY>}"
          client["key-\<KEY>}"].should == "val-\#{j}-\#{i}"
        end
      end
    end
    threads.map(&:join)
  end
end<commit_msg>specs: fix threading issue in TCP client test<commit_after>describe "standard_client_tcp" do
  before :all do
    start_server(Moneta::Adapters::Memory.new)
  end

  moneta_store :Client
  moneta_specs STANDARD_SPECS

  it 'supports multiple clients', multiple: true do
    store['shared_key'] = 'shared_val'
    threads = (1..100).map do |i|
      Thread.new do
        client = new_store
        (1..100).each do |j|
          client['shared_key'].should == 'shared_val'
          client["key-\<KEY>"] = "<KEY>}"
          client["key-\#{j}-\#{i}"].should == "val-\#{j}-\#{i}"
        end
      end
    end
    threads.map(&:join)
  end
end
{'fraction_non_alphanumeric': 0.15656963021243114, 'fraction_numerical': 0.012588512981904013, 'mean_word_length': 2.623931623931624, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '4138733', 'n_tokens_mistral': 447, 'n_tokens_neox': 436, 'n_words': 94}