<commit_before>import select

from exaproxy.util.log.logger import Logger
from exaproxy.configuration import load

configuration = load()
log = Logger('supervisor', configuration.log.supervisor)

def Poller (configuration, speed=None):
	reactor = configuration.reactor
	timeout = speed if speed is not None else configuration.speed
	if reactor not in ('epoll','kqueue','select'):
		log.warning('unknown reactor %s' % reactor)
	if reactor == 'epoll' and hasattr(select, 'epoll'):
		from epoll import EPoller as Poller
		return Poller(timeout)
	if reactor == 'kqueue' and hasattr(select, 'kqueue'):
		from kqueue import KQuuePoller as Poller
		return Poller(timeout)
	from selectpoll import SelectPoller as Poller
	return Poller(timeout)<commit_msg>fix typo<commit_after>import select

from exaproxy.util.log.logger import Logger
from exaproxy.configuration import load

configuration = load()
log = Logger('supervisor', configuration.log.supervisor)

def Poller (configuration, speed=None):
	reactor = configuration.reactor
	timeout = speed if speed is not None else configuration.speed
	if reactor not in ('epoll','kqueue','select'):
		log.warning('unknown reactor %s' % reactor)
	if reactor == 'epoll' and hasattr(select, 'epoll'):
		from epoll import EPoller as Poller
		return Poller(timeout)
	if reactor == 'kqueue' and hasattr(select, 'kqueue'):
		from kqueue import KQueuePoller as Poller
		return Poller(timeout)
	from selectpoll import SelectPoller as Poller
	return Poller(timeout)
{'fraction_non_alphanumeric': 0.0953020134228188, 'fraction_numerical': 0.0, 'mean_word_length': 5.716216216216216, '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': '1995353', 'n_tokens_mistral': 466, 'n_tokens_neox': 440, 'n_words': 150}