<commit_before>require 'uri'
require 'net/http'
require 'net/https'
require 'hessian2'

module Hessian2
  class Client
    attr_accessor :user, :password
    attr_reader :scheme, :host, :port, :path, :proxy

    def initialize(url, proxy = {})
      uri = URI.parse(url)
      @scheme, @host, @port, @path = uri.scheme, uri.host, uri.port, uri.path
      raise "Unsupported Hessian protocol: #{@scheme}" unless %w(http https).include?(@scheme)<commit_msg>Accept query parameters for hessian rpc endpoints<commit_after>require 'uri'
require 'net/http'
require 'net/https'
require 'hessian2'

module Hessian2
  class Client
    attr_accessor :user, :password
    attr_reader :scheme, :host, :port, :path, :proxy

    def initialize(url, proxy = {})
      uri = URI.parse(url)
      @scheme, @host, @port, @path = uri.scheme, uri.host, uri.port, uri.path
      @path += "?#{uri.query}" if uri.query
      raise "Unsupported Hessian protocol: #{@scheme}" unless %w(http https).include?(@scheme)
{'fraction_non_alphanumeric': 0.14242424242424243, 'fraction_numerical': 0.00404040404040404, 'mean_word_length': 4.108247422680412, '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': '5072984', 'n_tokens_mistral': 331, 'n_tokens_neox': 325, 'n_words': 93}