<commit_before>"""OpenAPI core contrib requests responses module"""
from openapi_core.validation.response.datatypes import OpenAPIResponse


class RequestsOpenAPIResponseFactory(object):

    @classmethod
    def create(cls, response):
        mimetype = response.headers.get('Content-Type')
        return OpenAPIResponse(
            data=response.raw,
            status_code=response.status_code,
            mimetype=mimetype,
        )<commit_msg>Update responses.py<commit_after>"""OpenAPI core contrib requests responses module"""
from openapi_core.validation.response.datatypes import OpenAPIResponse


class RequestsOpenAPIResponseFactory(object):

    @classmethod
    def create(cls, response):
        mimetype = response.headers.get('Content-Type')
        return OpenAPIResponse(
            data=response.content,
            status_code=response.status_code,
            mimetype=mimetype,
        )
{'fraction_non_alphanumeric': 0.08406113537117904, 'fraction_numerical': 0.0, 'mean_word_length': 3.38755980861244, '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': '2389988', 'n_tokens_mistral': 244, 'n_tokens_neox': 238, 'n_words': 47}