<commit_before>"""
JSON Web Token implementation

Minimum implementation based on this spec:
http://self-issued.info/docs/draft-jones-json-web-token-01.html
"""
from __future__ import unicode_literals

import base64
import binascii
import hashlib
import hmac
from datetime import datetime, timedelta
from calendar import timegm
from collections import Mapping

from .compat import (json, string_types, text_type, constant_time_compare,
                     timedelta_total_seconds)


__version__ = '0.4.0'
__all__ = [
    # Functions
    'encode',
    'decode',

    # Exceptions
    'InvalidTokenError',
    'DecodeError',
    'ExpiredSignatureError',
    'InvalidAudienceError',
    'InvalidIssuerError'

    # Deprecated aliases
    'ExpiredSignature',
    'InvalidAudience',
    'InvalidIssuer',
]


class InvalidTokenError(Exception):
    pass


class DecodeError(InvalidTokenError):<commit_msg>Fix missing comma in __all__<commit_after>"""
JSON Web Token implementation

Minimum implementation based on this spec:
http://self-issued.info/docs/draft-jones-json-web-token-01.html
"""
from __future__ import unicode_literals

import base64
import binascii
import hashlib
import hmac
from datetime import datetime, timedelta
from calendar import timegm
from collections import Mapping

from .compat import (json, string_types, text_type, constant_time_compare,
                     timedelta_total_seconds)


__version__ = '0.4.0'
__all__ = [
    # Functions
    'encode',
    'decode',

    # Exceptions
    'InvalidTokenError',
    'DecodeError',
    'ExpiredSignatureError',
    'InvalidAudienceError',
    'InvalidIssuerError',

    # Deprecated aliases
    'ExpiredSignature',
    'InvalidAudience',
    'InvalidIssuer',
]


class InvalidTokenError(Exception):
    pass


class DecodeError(InvalidTokenError):
{'fraction_non_alphanumeric': 0.08535242290748898, 'fraction_numerical': 0.007709251101321586, 'mean_word_length': 4.061281337047354, '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': '5474263', 'n_tokens_mistral': 554, 'n_tokens_neox': 524, 'n_words': 137}