<commit_before>"""Provide the DomainListing class."""
from ...const import API_PATH
from .mixins import BaseListingMixin, RisingListingMixin


class DomainListing(BaseListingMixin, RisingListingMixin):
    """Provide a set of functions to interact with domain listings."""

    def __init__(self, reddit, domain):
        """Initialize a DomainListing instance.

        :param reddit: An instance of Reddit.
        :param domain: The domain for which to obtain listings.

        """
        super().__init__(reddit, _data=None)
        self._path = API_PATH["domain"].format(domain=domain)<commit_msg>(#1164) Add types to domain.py<commit_after>"""Provide the DomainListing class."""
from typing import TypeVar

from ...const import API_PATH
from .mixins import BaseListingMixin, RisingListingMixin

Reddit = TypeVar("Reddit")


class DomainListing(BaseListingMixin, RisingListingMixin):
    """Provide a set of functions to interact with domain listings."""

    def __init__(self, reddit: Reddit, domain: str):
        """Initialize a DomainListing instance.

        :param reddit: An instance of Reddit.
        :param domain: The domain for which to obtain listings.

        """
        super().__init__(reddit, _data=None)
        self._path = API_PATH["domain"].format(domain=domain)
{'fraction_non_alphanumeric': 0.10278207109737249, 'fraction_numerical': 0.0030911901081916537, 'mean_word_length': 3.7785977859778597, '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': '1980513', 'n_tokens_mistral': 372, 'n_tokens_neox': 354, 'n_words': 117}