<commit_before>import collections.abc
import event_model
import itertools
import intake
import intake.catalog
import intake.catalog.local
import intake.source.base
from mongoquery import Query

from .core import parse_handler_registry


class BlueskyInMemoryCatalog(intake.catalog.Catalog):
    name = 'bluesky-run-catalog'  # noqa

    def __init__(self, handler_registry=None, query=None, **kwargs):
        """
        This Catalog is backed by Python collections in memory.

        Subclasses should define a ``_load`` method (same as any intake
        Catalog) that calls this class's ``upsert`` method (which is particular
        to this class).

        Parameters
        ----------<commit_msg>CLN: Remove unused imports.<commit_after>import event_model
import intake
import intake.catalog
import intake.catalog.local
import intake.source.base
from mongoquery import Query

from .core import parse_handler_registry


class BlueskyInMemoryCatalog(intake.catalog.Catalog):
    name = 'bluesky-run-catalog'  # noqa

    def __init__(self, handler_registry=None, query=None, **kwargs):
        """
        This Catalog is backed by Python collections in memory.

        Subclasses should define a ``_load`` method (same as any intake
        Catalog) that calls this class's ``upsert`` method (which is particular
        to this class).

        Parameters
        ----------
{'fraction_non_alphanumeric': 0.08598265895953758, 'fraction_numerical': 0.0, 'mean_word_length': 3.2746913580246915, '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': '7219469', 'n_tokens_mistral': 375, 'n_tokens_neox': 357, 'n_words': 129}