<commit_before>#!/usr/bin/env python

# This code was adapted from code written by <NAME>
# in his inspiring 2007 post on Monkey Patching
# http://www.psychicorigami.com/2007/09/20/monkey-patching-pythons-smtp-lib-for-unit-testing/

# monkey-patch smtplib so we don't send actual emails
import smtplib
smtp=None
inbox=[]


class Message(object):
    def __init__(self,from_address,to_address,fullmessage):
        self.from_address=from_address
        self.to_address=to_address
        self.fullmessage=fullmessage

class MonkeySMTP(object):
    def __init__(self,address,port):
        self.address=address
        self.port=port
        global smtp
        smtp=self
        
    def starttls(self):
        pass

    def login(self,username,password):
        self.username=username
        self.password=password

    def sendmail(self,from_address,to_address,fullmessage):<commit_msg>Cleaned up unnecessary code in testutil.<commit_after>#!/usr/bin/env python

# This code was adapted from code written by <NAME>
# in his inspiring 2007 post on Monkey Patching
# http://www.psychicorigami.com/2007/09/20/monkey-patching-pythons-smtp-lib-for-unit-testing/

# monkey-patch smtplib so we don't send actual emails
import smtplib

inbox=[]


class Message(object):
    def __init__(self,from_address,to_address,fullmessage):
        self.from_address=from_address
        self.to_address=to_address
        self.fullmessage=fullmessage

class MonkeySMTP(object):
    def __init__(self,address,port):
        self.address=address
        self.port=port
        
    def starttls(self):
        pass

    def login(self,username,password):
        self.username=username
        self.password=password

    def sendmail(self,from_address,to_address,fullmessage):
{'fraction_non_alphanumeric': 0.09364358683314415, 'fraction_numerical': 0.01362088535754824, 'mean_word_length': 3.4746192893401013, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4786384', 'n_tokens_mistral': 580, 'n_tokens_neox': 544, 'n_words': 114}