<commit_before># -*- coding: utf-8 -*-

"""
requests.structures
~~~~~~~~~~~~~~~~~~~

Datastructures that power Requests.

"""

from UserDict import DictMixin


class CaseInsensitiveDict(DictMixin):
    """docstring for CaseInsensitiveDict"""

    def __init__(self):
        # super(CaseInsensitiveDict, self).__init__()
        self.data = dict()

    def __repr__(self):
        return self.data.__repr__()

    def __getstate__(self):
        return self.data.copy()

    def __setstate__(self, d):
        self.data = d

    def _lower_keys(self):
        return map(str.lower, self.data.keys())


    def __contains__(self, key):
        return key.lower() in self._lower_keys()<commit_msg>pass things into the dict<commit_after># -*- coding: utf-8 -*-

"""
requests.structures
~~~~~~~~~~~~~~~~~~~

Datastructures that power Requests.

"""

from UserDict import DictMixin


class CaseInsensitiveDict(DictMixin):
    """docstring for CaseInsensitiveDict"""

    def __init__(self, *args, **kwargs):
        # super(CaseInsensitiveDict, self).__init__()
        self.data = dict(*args, **kwargs)

    def __repr__(self):
        return self.data.__repr__()

    def __getstate__(self):
        return self.data.copy()

    def __setstate__(self, d):
        self.data = d

    def _lower_keys(self):
        return map(str.lower, self.data.keys())


    def __contains__(self, key):
        return key.lower() in self._lower_keys()
{'fraction_non_alphanumeric': 0.1499302649930265, 'fraction_numerical': 0.001394700139470014, 'mean_word_length': 3.1, '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': '1840324', 'n_tokens_mistral': 458, 'n_tokens_neox': 433, 'n_words': 102}