<commit_before>module Endive
  module Server
    class HttpServer < Reel::Server::HTTP
      include Celluloid::Logger

      def initialize(app, options = {})
        options = options.merge({ip: '127.0.0.1', port: 3000, pool_size: 4 })

        @connectionPool = ConnectionHandler.pool(size: options[:pool_size], args: [app])

        info "listening on #{options[:ip]}:#{options[:port]}"
        super(options[:ip], options[:port], &method(:on_connection))
      end

      def on_connection(connection)
        connection.detach
        @connectionPool.async.handle_connection(connection)
      end
    end
  end
end<commit_msg>http remove predefined pool size<commit_after>module Endive
  module Server
    class HttpServer < Reel::Server::HTTP
      include Celluloid::Logger

      def initialize(app, options = {})
        options = options.merge({ip: '127.0.0.1', port: 3000})

        @connectionPool = ConnectionHandler.pool(args: [app])

        info "listening on #{options[:ip]}:#{options[:port]}"
        super(options[:ip], options[:port], &method(:on_connection))
      end

      def on_connection(connection)
        connection.detach
        @connectionPool.async.handle_connection(connection)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.12651087832393232, 'fraction_numerical': 0.016921837228041903, 'mean_word_length': 3.2244897959183674, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5427805', 'n_tokens_mistral': 371, 'n_tokens_neox': 352, 'n_words': 79}