<commit_before># -*- coding: utf-8 -*-
"""
    Wrappers, similar on HTTP requests/responses.
"""
__all__ = ('Request', 'Response', )


class Request(object):

    def __init__(self, kwargs):
        super(Request, self).__init__()
        self._method = kwargs.get('method', None)
        self._url = kwargs.get('url', None)<commit_msg>Added type checking for passed argument<commit_after># -*- coding: utf-8 -*-
"""
    Wrappers, similar on HTTP requests/responses.
"""
__all__ = ('Request', 'Response', )
from .exceptions import NotSupportedArgumentType


class Request(object):

    def __init__(self, kwargs):
        super(Request, self).__init__()
        if type(kwargs) is not dict:
            raise NotSupportedArgumentType('kwargs argument should be a dict.')
        self._method = kwargs.get('method', None)
        self._url = kwargs.get('url', None)
{'fraction_non_alphanumeric': 0.14699074074074073, 'fraction_numerical': 0.0023148148148148147, 'mean_word_length': 3.325, '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': '1320115', 'n_tokens_mistral': 251, 'n_tokens_neox': 253, 'n_words': 68}