<commit_before>module JanusGateway
  class Transport::Http < Transport
    attr_reader :transaction_queue

    # @param [String] url
    def initialize(url)
      @url = url
      @transaction_queue = {}
    end

    # @param [Hash] data
    def send(data)
      Thread.new do
        response = _send(JSON.generate(data))

        transaction_list = @transaction_queue.clone<commit_msg>Send data to _send() as ruby hash<commit_after>module JanusGateway
  class Transport::Http < Transport
    attr_reader :transaction_queue

    # @param [String] url
    def initialize(url)
      @url = url
      @transaction_queue = {}
    end

    # @param [Hash] data
    def send(data)
      Thread.new do
        response = _send(data)

        transaction_list = @transaction_queue.clone
{'fraction_non_alphanumeric': 0.08857509627727857, 'fraction_numerical': 0.0, 'mean_word_length': 2.7864077669902914, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3934417', 'n_tokens_mistral': 230, 'n_tokens_neox': 224, 'n_words': 59}