<commit_before># Copyright (C) 2009 <NAME> <<EMAIL>>
# Copyright (C) 2009 <NAME> <<EMAIL>>
# Licenced under the txaws licence available at /LICENSE in the txaws source.

from txaws.credentials import AWSCredentials
from txaws import regions
from txaws.util import parse


__all__ = ["AWSServiceEndpoint", "AWSServiceRegion", "REGION_US", "REGION_EU"]


# These old variable names are maintained for backwards compatibility.
REGION_US = regions.REGION_US
REGION_EU = regions.REGION_EU
EC2_ENDPOINT_US = regions.EC2_ENDPOINT_US
EC2_ENDPOINT_EU = regions.EC2_ENDPOINT_EU
S3_ENDPOINT = regions.S3_ENDPOINT


class AWSServiceEndpoint(object):
    """
    @param uri: The URL for the service.
    @param method: The HTTP method used when accessing a service.
    @param ssl_hostname_verification: Whether or not SSL hotname verification
        will be done when connecting to the endpoint.
    """

    def __init__(self, uri="", method="GET", ssl_hostname_verification=False):<commit_msg>Define constants for several more regions.<commit_after># Copyright (C) 2009 <NAME> <<EMAIL>>
# Copyright (C) 2009 <NAME> <<EMAIL>>
# Licenced under the txaws licence available at /LICENSE in the txaws source.

from txaws.credentials import AWSCredentials
from txaws import regions
from txaws.util import parse


__all__ = ["AWSServiceEndpoint", "AWSServiceRegion", "REGION_US", "REGION_EU"]


REGION_US = "US"
REGION_EU = "EU"

REGION_US_EAST_1 = "us-east-1"
REGION_US_EAST_2 = "us-east-2"
REGION_US_WEST_1 = "us-west-1"
REGION_US_WEST_2 = "us-west-2"
REGION_CA_CENTRAL_1 = "ca-central-1"
REGION_AP_SOUTH_1 = "ap-south-1"
REGION_AP_NORTHEAST_1 = "ap-northeast-1"
REGION_AP_NORTHEAST_2 = "ap-northeast-2"
REGION_AP_SOUTHEAST_1 = "ap-southeast-1"
REGION_AP_SOUTHEAST_2 = "ap-southeast-2"
REGION_EU_CENTRAL_1 = "eu-central-1"
REGION_EU_WEST_1 = "eu-west-1"
REGION_EU_WEST_2 = "eu-west-2"
REGION_SA_EAST_1 = "sa-east-1"

EC2_ENDPOINT_US = "https://us-east-1.ec2.amazonaws.com/"
EC2_ENDPOINT_EU = "https://eu-west-1.ec2.amazonaws.com/"

S3_ENDPOINT = "https://s3.amazonaws.com/"


class AWSServiceEndpoint(object):
    """
    @param uri: The URL for the service.
    @param method: The HTTP method used when accessing a service.
    @param ssl_hostname_verification: Whether or not SSL hotname verification
        will be done when connecting to the endpoint.
    """

    def __init__(self, uri="", method="GET", ssl_hostname_verification=False):
{'fraction_non_alphanumeric': 0.10868670234664471, 'fraction_numerical': 0.02387813915191437, 'mean_word_length': 4.941320293398533, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 3, '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': '6153566', 'n_tokens_mistral': 897, 'n_tokens_neox': 877, 'n_words': 221}