<commit_before>"""Content Transcoders"""

import base64
import collections
import json
from urllib import parse
import uuid

from ietfparse import headers

try:
    import umsgpack
except ImportError:  # pragma: nocover
    umsgpack = None

try:
    import yaml
except ImportError:  # pragma: nocover
    yaml = None

from troika.http import escape

PACKABLE_TYPES = (bool, int, float)


def default():
    """Return default transcoders

    The default transcoders to use when creating an instance of
    :cls:`troika.http.Application`.

    :rtype: list

    """
    transcoders = [
        ('text/html', Text()),
        (Text.MIME_TYPE, Text()),
        (Binary.MIME_TYPE, Binary()),
        (FormURLEncoded.MIME_TYPE, FormURLEncoded()),
        (JSON.MIME_TYPE, JSON()),<commit_msg>Remove unused import<commit_after>"""Content Transcoders"""

import base64
import collections
import json
from urllib import parse
import uuid

from ietfparse import headers

try:
    import umsgpack
except ImportError:  # pragma: nocover
    umsgpack = None

try:
    import yaml
except ImportError:  # pragma: nocover
    yaml = None

PACKABLE_TYPES = (bool, int, float)


def default():
    """Return default transcoders

    The default transcoders to use when creating an instance of
    :cls:`troika.http.Application`.

    :rtype: list

    """
    transcoders = [
        ('text/html', Text()),
        (Text.MIME_TYPE, Text()),
        (Binary.MIME_TYPE, Binary()),
        (FormURLEncoded.MIME_TYPE, FormURLEncoded()),
        (JSON.MIME_TYPE, JSON()),
{'fraction_non_alphanumeric': 0.105229180116204, 'fraction_numerical': 0.0025823111684958036, 'mean_word_length': 3.293628808864266, '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': '1046060', 'n_tokens_mistral': 502, 'n_tokens_neox': 483, 'n_words': 143}