<commit_before>"""
A module for deprecated AMC tier utilities.

TODO: Remove this module once AMC is shut down.
"""

import logging
import beeline

from tahoe_sites.api import get_uuid_by_organization

from django.utils import timezone
from django.db.models import Q, F

from tiers.models import Tier

log = logging.getLogger(__name__)


@beeline.traced('legacy_amc_helpers.get_amc_tier_info')
def get_amc_tier_info(site_uuid):  # pragma: no cover
    """
    Get TierInfo for an AMC-enabled (Tahoe 1.0) site.

    Hack: This queries the django-tier database in a rather hacky way.

    WARNING: !! This function is _not_ covered with tests. Please edit with caution and test manually. !!<commit_msg>Add comment for future work<commit_after>"""
A module for deprecated AMC tier utilities.

TODO: Remove this module once AMC is shut down. Related to RED-2845 too
"""

import logging
import beeline

from tahoe_sites.api import get_uuid_by_organization

from django.utils import timezone
from django.db.models import Q, F

from tiers.models import Tier

log = logging.getLogger(__name__)


@beeline.traced('legacy_amc_helpers.get_amc_tier_info')
def get_amc_tier_info(site_uuid):  # pragma: no cover
    """
    Get TierInfo for an AMC-enabled (Tahoe 1.0) site.

    Hack: This queries the django-tier database in a rather hacky way.

    WARNING: !! This function is _not_ covered with tests. Please edit with caution and test manually. !!
{'fraction_non_alphanumeric': 0.07301808066759388, 'fraction_numerical': 0.005563282336578581, 'mean_word_length': 4.369402985074627, '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': '7590628', 'n_tokens_mistral': 477, 'n_tokens_neox': 447, 'n_words': 168}