<commit_before>
from MessengerGlobal import *
from DirectNotifyGlobal import *

class DirectObject:
    """
    This is the class that all Direct/SAL classes should inherit from
    """
    def __del__(self):
	"""__del__(self)
	"""
	try: 
	    self.cleanup()
	except AttributeError:
	    # No cleanup() method defined
            pass

    # Event Handling

    # object.accept('mouse', object.handleMouse)
    # object.accept('mouse', object.handleMouse, [1,2])
    
    def accept(self, event, method, extraArgs=[]):
        messenger.accept(event, self, method, extraArgs, 1)
    def acceptOnce(self, event, method, extraArgs=[]):<commit_msg>*** empty log message ***<commit_after>
from MessengerGlobal import *
from DirectNotifyGlobal import *

class DirectObject:
    """
    This is the class that all Direct/SAL classes should inherit from
    """
    def __del__(self):
	"""__del__(self)
	"""
        print "Destructing: ", self.__class__.__name__
	try: 
	    self.cleanup()
	except AttributeError:
	    # No cleanup() method defined
            pass

    # Event Handling

    # object.accept('mouse', object.handleMouse)
    # object.accept('mouse', object.handleMouse, [1,2])
    
    def accept(self, event, method, extraArgs=[]):
        messenger.accept(event, self, method, extraArgs, 1)
    def acceptOnce(self, event, method, extraArgs=[]):
{'fraction_non_alphanumeric': 0.12380250552689757, 'fraction_numerical': 0.004421518054532056, 'mean_word_length': 3.311111111111111, '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': '5983102', 'n_tokens_mistral': 409, 'n_tokens_neox': 394, 'n_words': 114}