<commit_before>require "em-synchrony/em-http"
require 'em-synchrony/thread'

module AWS 
  module Core
    module Http
      class EMConnectionPool
        # Since AWS connections may be to any number of urls, the connection
        # pool is a hash of connection arrays, instead of a simple array like
        # most connection pools
        
        @@pools = {}
        
        # OPTIONS
        # * :pool_size - number of connections for each pool
        # * :inactivity_timeout - number of seconds to wait before disconnecting, 
        # setting to 0 means the connection will not be closed
        # * :pool_timeout - the amount of seconds to block waiting for an availble connection, 
        # because this is blocking it should be an extremely short amount of 
        # time default to 0.5 seconds, if you need more consider enlarging your pool
        # instead of raising this number
        def initialize(options={})
          @pool_size = (options[:pool_size] || 5)
          @inactivity_timeout = (options[:inactivity_timeout] || 0)
          @pool_timeout = (options[:pool_timeout] || 0.5) <commit_msg>initialize @@pool_data<commit_after>require "em-synchrony/em-http"
require 'em-synchrony/thread'

module AWS 
  module Core
    module Http
      class EMConnectionPool
        # Since AWS connections may be to any number of urls, the connection
        # pool is a hash of connection arrays, instead of a simple array like
        # most connection pools
        
        @@pools = {}
        
        # Stores data concerning pools, like current size, last fetched
        @@pool_data = {}
        
        # OPTIONS
        # * :pool_size - number of connections for each pool
        # * :inactivity_timeout - number of seconds to wait before disconnecting, 
        # setting to 0 means the connection will not be closed
        # * :pool_timeout - the amount of seconds to block waiting for an availble connection, 
        # because this is blocking it should be an extremely short amount of 
        # time default to 0.5 seconds, if you need more consider enlarging your pool
        # instead of raising this number
        def initialize(options={})
          @pool_size = (options[:pool_size] || 5)
          @inactivity_timeout = (options[:inactivity_timeout] || 0)
          @pool_timeout = (options[:pool_timeout] || 0.5) 
{'fraction_non_alphanumeric': 0.06867316659601526, 'fraction_numerical': 0.005934718100890208, 'mean_word_length': 2.4302325581395348, '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': '2478887', 'n_tokens_mistral': 625, 'n_tokens_neox': 590, 'n_words': 251}