<commit_before>class FakeRPCServer < Rack::RPC::Server
  def initialize(options = {}, &block)
    super(options, &block)
  end

  def test
    'ok'
  end
  rpc 'fakerpcserver.test' => :test

  def test_env
    puts "Request: #{request.inspect}"
    puts "Params: #{request.params.inspect}"
    result = request.params['test']
    puts "Result: = #{result}"
    result
  end
  rpc 'fakerpcserver.test_env' => :test_env
end<commit_msg>show on stderr...<commit_after>class FakeRPCServer < Rack::RPC::Server
  def initialize(options = {}, &block)
    super(options, &block)
  end

  def test
    'ok'
  end
  rpc 'fakerpcserver.test' => :test

  def test_env
    STDERR.puts "Request: #{request.inspect}"
    STDERR.puts "Params: #{request.params.inspect}"
    result = request.params['test']
    STDERR.puts "Result: = #{result}"
    result
  end
  rpc 'fakerpcserver.test_env' => :test_env
end
{'fraction_non_alphanumeric': 0.143658810325477, 'fraction_numerical': 0.0, 'mean_word_length': 3.5743589743589745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2341801', 'n_tokens_mistral': 322, 'n_tokens_neox': 313, 'n_words': 71}