def __init__(self, max_simultaneous_requests=50,
                 max_requests_per_host_per_second=1,
                 max_simultaneous_requests_per_host=5): 
        """
        Set the maximum number of simultaneous requests for a particular host.
        
        **Keyword arguments:**
          * *max_simultaneous_requests* -- Maximum number of simultaneous
            requests RequestQueuer should make across all hosts. (Default 50)
          * *max_requests_per_host_per_second* -- Maximum number of requests 
            per host per second. If set to 1, RequestQueuer will not make more 
            than 1 request per second to a host. If set to 0, RequestQueuer 
            will not limit the request rate. Can be overridden for an 
            individual host using ``setHostMaxRequestsPerSecond()`` (Default 1)
          * *max_simultaneous_requests_per_host* -- Maximum number of 
            simultaneous requests per host. If set to 1, RequestQueuer will
            not make more than 1 simultaneous request per host. If set to 0,
            RequestQueuer will not limit the number of simultaneous requests.
            Can be overridden for an individual host using 
            ``setHostMaxSimultaneousRequests()`` (Default 5)
  
        """
        if max_simultaneous_requests == 0:
            self.max_simul_reqs = 100000
        else:
            self.max_simul_reqs = int(max_simultaneous_requests)
        # self.min_req_interval_per_host is the global minimum request
        # interval. Can be overridden by self.min_req_interval_per_hosts[].
        self.max_reqs_per_host_per_sec = max_requests_per_host_per_second
        if max_requests_per_host_per_second == 0:
            self.min_req_interval_per_host = 0
        else:
            max_req_per_host_per_sec = float(max_requests_per_host_per_second)
            self.min_req_interval_per_host = 1.0 / max_req_per_host_per_sec
        # self.max_simul_reqs_per_host is the global maximum simultaneous 
        # request count. Can be overridden by self.max_simul_reqs_per_hosts[].
        if max_simultaneous_requests_per_host == 0:
            self.max_simul_reqs_per_host = self.max_simul_reqs
        else:
            self.max_simul_reqs_per_host = int(max_simultaneous_requests_per_host)
dataset/ETHPy150Open wehriam/awspider/awspider/requestqueuer.py/RequestQueuer.__init__/original