<commit_before>"""
Assertion helpers.
"""

import datetime
import email.utils
import json
from string import hexdigits
from typing import Optional

import pytz
from requests import Response, codes

from mock_vws._constants import ResultCodes
from tests.mock_vws.utils.authorization import (
    VuforiaDatabaseKeys,
    authorization_header,
    rfc_1123_date,
)


def assert_vws_failure(
    response: Response,
    status_code: int,
    result_code: ResultCodes,
) -> None:<commit_msg>Remove unused imports [skip ci]<commit_after>"""
Assertion helpers.
"""

import datetime
import email.utils
import json
from string import hexdigits
from typing import Optional

import pytz
from requests import Response, codes

from mock_vws._constants import ResultCodes


def assert_vws_failure(
    response: Response,
    status_code: int,
    result_code: ResultCodes,
) -> None:
{'fraction_non_alphanumeric': 0.06659012629161883, 'fraction_numerical': 0.004592422502870264, 'mean_word_length': 4.891891891891892, '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': '801808', 'n_tokens_mistral': 260, 'n_tokens_neox': 262, 'n_words': 83}