<commit_before>import time
import json
from collections import namedtuple
from datetime import datetime

from moto.core import DEFAULT_ACCOUNT_ID
from moto.core import BaseBackend, BaseModel
from moto.core.responses import BaseResponse
from moto.core.models import base_decorator
from moto.core.utils import BackendDict

SageMakerResourceWithArn = namedtuple("SageMakerResourceWithArn", ["resource", "arn"])


class SageMakerResponse(BaseResponse):
    """
    A collection of handlers for SageMaker API calls that produce API-conforming
    JSON responses.
    """

    @property
    def sagemaker_backend(self):
        return sagemaker_backends[DEFAULT_ACCOUNT_ID][self.region]

    @property
    def request_params(self):
        return json.loads(self.body)

    def create_endpoint_config(self):
        """
        Handler for the SageMaker "CreateEndpointConfig" API call documented here:
        https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html.
        """<commit_msg>Backenddict (#7373)<commit_after>import time
import json
from collections import namedtuple
from datetime import datetime

from moto.core import DEFAULT_ACCOUNT_ID
from moto.core import BaseBackend, BaseModel
from moto.core.responses import BaseResponse
from moto.core.models import base_decorator
from moto.core import BackendDict

SageMakerResourceWithArn = namedtuple("SageMakerResourceWithArn", ["resource", "arn"])


class SageMakerResponse(BaseResponse):
    """
    A collection of handlers for SageMaker API calls that produce API-conforming
    JSON responses.
    """

    @property
    def sagemaker_backend(self):
        return sagemaker_backends[DEFAULT_ACCOUNT_ID][self.region]

    @property
    def request_params(self):
        return json.loads(self.body)

    def create_endpoint_config(self):
        """
        Handler for the SageMaker "CreateEndpointConfig" API call documented here:
        https://docs.aws.amazon.com/sagemaker/latest/dg/API_CreateEndpointConfig.html.
        """
{'fraction_non_alphanumeric': 0.07745779543197617, 'fraction_numerical': 0.0019860973187686196, 'mean_word_length': 4.20671834625323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3724505', 'n_tokens_mistral': 585, 'n_tokens_neox': 563, 'n_words': 149}