<commit_before>require 'spec_helper'
require 'realweb'
require 'unnamed/connector'

describe Unnamed::Connector do
  before :all do
    fake_server = File.expand_path('./spec/support/fake_working_service.ru')
    @server = RealWeb.start_server(fake_server)
  end

  after :all do
    @server.stop
  end

  it 'handles 500'
  it 'handles Errno::ECONNRESET'
end
<commit_msg>oosp. no fork() in jruby. trying threaded realweb.<commit_after>require 'spec_helper'
require 'realweb'
require 'unnamed/connector'

describe Unnamed::Connector do
  before :all do
    fake_server = File.expand_path('./spec/support/fake_working_service.ru')
    @server = RealWeb.start_server_in_thread(fake_server)
  end

  after :all do
    @server.stop
  end

  it 'handles 500'
  it 'handles Errno::ECONNRESET'
end

{'fraction_non_alphanumeric': 0.10240202275600506, 'fraction_numerical': 0.007585335018963337, 'mean_word_length': 4.462068965517242, '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': '3499337', 'n_tokens_mistral': 282, 'n_tokens_neox': 271, 'n_words': 65}