<commit_before>import abc
import logging
import inspect
from urllib.parse import urlparse, parse_qsl
from itertools import zip_longest
from collections import OrderedDict
from functools import partial

from .util import cached_property


log = logging.getLogger(__name__)
sentinel = object()

_PAGE_METHOD = object()
_RESOURCE_METHOD = object()
_RESOURCE = object()
_FORM_CTYPE = b'application/x-www-form-urlencoded'


class LegacyMultiDict(object):
    """Utilitary class which wrap dict to make it suitable for old utilities
    like wtforms"""

    def __init__(self, dic):
        self._dic = dic

    def getlist(self, k):
        return [self._dic[k]]<commit_msg>Fix cookie parsing<commit_after>import abc
import logging
import inspect
from http.cookies import SimpleCookie
from urllib.parse import urlparse, parse_qsl
from itertools import zip_longest
from collections import OrderedDict
from functools import partial

from .util import cached_property


log = logging.getLogger(__name__)
sentinel = object()

_PAGE_METHOD = object()
_RESOURCE_METHOD = object()
_RESOURCE = object()
_FORM_CTYPE = b'application/x-www-form-urlencoded'


class LegacyMultiDict(object):
    """Utilitary class which wrap dict to make it suitable for old utilities
    like wtforms"""

    def __init__(self, dic):
        self._dic = dic

    def getlist(self, k):
        return [self._dic[k]]
{'fraction_non_alphanumeric': 0.0774800868935554, 'fraction_numerical': 0.0, 'mean_word_length': 4.57258064516129, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '290914', 'n_tokens_mistral': 419, 'n_tokens_neox': 403, 'n_words': 135}