<commit_before>import asyncio
import datetime
import itertools
import logging
from asyncio import AbstractEventLoop, StreamReader, StreamWriter
from typing import Any, Callable, Optional, Sequence, cast

from evtstrd.config import Config
from evtstrd.events import Event, JSONEvent, LogoutEvent, PingEvent
from evtstrd.exc import DisconnectedError
from evtstrd.filters import Filter
from evtstrd.http import write_chunk, write_last_chunk
from evtstrd.util import sleep_until


class Listener:
    _id_counter = itertools.count(1)

    def __init__(
        self,
        config: Config,
        reader: StreamReader,
        writer: StreamWriter,
        subsystem: str,
        filters: Sequence[Filter],
    ) -> None:
        self.id = next(self._id_counter)
        self._config = config
        self.subsystem = subsystem<commit_msg>Remove unused import<commit_after>import asyncio
import datetime
import itertools
import logging
from asyncio import StreamReader, StreamWriter
from typing import Any, Callable, Optional, Sequence, cast

from evtstrd.config import Config
from evtstrd.events import Event, JSONEvent, LogoutEvent, PingEvent
from evtstrd.exc import DisconnectedError
from evtstrd.filters import Filter
from evtstrd.http import write_chunk, write_last_chunk
from evtstrd.util import sleep_until


class Listener:
    _id_counter = itertools.count(1)

    def __init__(
        self,
        config: Config,
        reader: StreamReader,
        writer: StreamWriter,
        subsystem: str,
        filters: Sequence[Filter],
    ) -> None:
        self.id = next(self._id_counter)
        self._config = config
        self.subsystem = subsystem
{'fraction_non_alphanumeric': 0.060697115384615384, 'fraction_numerical': 0.001201923076923077, 'mean_word_length': 3.625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2181521', 'n_tokens_mistral': 463, 'n_tokens_neox': 468, 'n_words': 148}