<commit_before>pub trait EventHandler<T: Event> {
    fn handle_event(&mut self, event: T);
    fn handler(&self) -> T::Handler;
}

pub trait EventDemultiplexer {
    type Event;
    fn select(&mut self) -> Option<Self::Event>;
}

pub trait Reactor {
    type Event: Event;
    type Handler;
    fn handle_events(&mut self);
    fn register_handler(&mut self, handler: Box<EventHandler<Self::Event>>);
    fn remove_handler_by_handler(&mut self, handler: &Self::Handler);
}

pub trait Event {
    type Handler;
    fn handler(&self) -> Self::Handler;
}
<commit_msg>EventDemultiplexer: add Event bound to the associated type<commit_after>pub trait EventHandler<T: Event> {
    fn handle_event(&mut self, event: T);
    fn handler(&self) -> T::Handler;
}

pub trait EventDemultiplexer {
    type Event: Event;
    fn select(&mut self) -> Option<Self::Event>;
}

pub trait Reactor {
    type Event: Event;
    type Handler;
    fn handle_events(&mut self);
    fn register_handler(&mut self, handler: Box<EventHandler<Self::Event>>);
    fn remove_handler_by_handler(&mut self, handler: &Self::Handler);
}

pub trait Event {
    type Handler;
    fn handler(&self) -> Self::Handler;
}

{'fraction_non_alphanumeric': 0.13028764805414553, 'fraction_numerical': 0.0, 'mean_word_length': 4.121212121212121, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 17, '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': '2304321', 'n_tokens_mistral': 376, 'n_tokens_neox': 370, 'n_words': 108}