<commit_before>from .responses import handler


url_bases = [
    "https?://dynamodb.us-east-1.amazonaws.com",
]

url_paths = {
    "{0}/": handler,
}<commit_msg>add dynamo sts handler<commit_after>from .responses import handler


def sts_handler(uri, body, headers):
    return GET_SESSION_TOKEN_RESULT


url_bases = [
    "https?://dynamodb.us-east-1.amazonaws.com",
    "https?://sts.amazonaws.com",
]

url_paths = {
    "{0}/": handler,
}


GET_SESSION_TOKEN_RESULT = """
<GetSessionTokenResponse xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
 <GetSessionTokenResult>
 <Credentials>
 <SessionToken>
 <KEY>
 To6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3z
 rkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtp
 Z3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE
 </SessionToken>
 <SecretAccessKey>
 <KEY>
 </SecretAccessKey>
 <Expiration>2011-07-11T19:55:29.611Z</Expiration>
 <AccessKeyId>AKIAIOSFODNN7EXAMPLE</AccessKeyId>
 </Credentials>
 </GetSessionTokenResult>
 <ResponseMetadata>
 <RequestId>58c5dbae-abef-11e0-8cfe-09039844ac7d</RequestId>
 </ResponseMetadata>
</GetSessionTokenResponse>"""
{'fraction_non_alphanumeric': 0.13728963684676704, 'fraction_numerical': 0.06023029229406555, 'mean_word_length': 5.848484848484849, 'pattern_counts': {'":': 2, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '6848403', 'n_tokens_mistral': 516, 'n_tokens_neox': 479, 'n_words': 50}