<commit_before>"""
parsedatetime

Parse human-readable date/time text.

Requires Python 2.6 or later
"""

__author__       = '<NAME> (<EMAIL>)'
__copyright__    = 'Copyright (c) 2004 Mike Taylor'
__license__      = 'Apache v2.0'
__version__      = '1.2'
__contributors__ = [ '<NAME>',
                     '<NAME> (<EMAIL>)',
                     '<NAME> (<EMAIL>)',
                   ]

import re
import time
import datetime
import calendar
import logging
import email.utils

from itertools import imap, chain

from . import pdt_locales

# as a library, do *not* setup logging
# see http://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library
# Set default logging handler to avoid "No handler found" warnings.
import logging

try:  # Python 2.7+
    from logging import NullHandler
except ImportError:
    class NullHandler(logging.Handler):<commit_msg>fix import error on itertools.imap with Python 3<commit_after>"""
parsedatetime

Parse human-readable date/time text.

Requires Python 2.6 or later
"""

__author__       = '<NAME> (<EMAIL>)'
__copyright__    = 'Copyright (c) 2004 Mike Taylor'
__license__      = 'Apache v2.0'
__version__      = '1.2'
__contributors__ = [ '<NAME>',
                     '<NAME> (<EMAIL>)',
                     '<NAME> (<EMAIL>)',
                   ]

import re
import time
import datetime
import calendar
import logging
import email.utils

try:
    from itertools import imap
except ImportError:
    imap = map
from itertools import chain

from . import pdt_locales

# as a library, do *not* setup logging
# see http://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library
# Set default logging handler to avoid "No handler found" warnings.
import logging

try:  # Python 2.7+
    from logging import NullHandler
except ImportError:
    class NullHandler(logging.Handler):
{'fraction_non_alphanumeric': 0.10551948051948051, 'fraction_numerical': 0.01461038961038961, 'mean_word_length': 3.0548245614035086, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1429462', 'n_tokens_mistral': 578, 'n_tokens_neox': 560, 'n_words': 180}