<commit_before>import re
import time
import dateutil
import xml.dom.minidom
import oauth2 as oauth
import oauth2.clients.imap as imaplib
from datetime import datetime
from email import message_from_string
from worker import delayable
from helper import send_email
try:
    from bundle_config import config
except:
    config = None
if config and 'postgres' not in config:
    print '***WARNING*** Expected bundle_config.config to include postgres settings but they are missing.'

# TODO: Handle bad resp values and exceptions

<commit_msg>Fixed dateutil misuse.<commit_after>import re
import time
import dateutil.parser
import xml.dom.minidom
import oauth2 as oauth
import oauth2.clients.imap as imaplib
from datetime import datetime
from email import message_from_string
from worker import delayable
from helper import send_email
try:
    from bundle_config import config
except:
    config = None
if config and 'postgres' not in config:
    print '***WARNING*** Expected bundle_config.config to include postgres settings but they are missing.'

# TODO: Handle bad resp values and exceptions


{'fraction_non_alphanumeric': 0.04753199268738574, 'fraction_numerical': 0.003656307129798903, 'mean_word_length': 5.0497237569060776, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1575969', 'n_tokens_mistral': 295, 'n_tokens_neox': 294, 'n_words': 134}