<commit_before>"""EventInterval module: contains the EventInterval class"""

from PandaModules import *
from Interval import *
from MessengerGlobal import *

class EventInterval(Interval):

    # special methods
    
    def __init__(self, name):
        """__init__(name)
        """
	duration = 0.0
	self.prevt = 0.0
	Interval.__init__(self, name, duration)

    def setT(self, t, entry=0):
	""" setT(t, entry)
	    Go to time t
	"""
	if (t < 0):
	    self.prevt = t
	    return
	elif (t == 0) or (self.prevt < 0):
	    messenger.send(self.name)
	    self.prevt = 0.0
	    <commit_msg>*** empty log message ***<commit_after>"""EventInterval module: contains the EventInterval class"""

from PandaModules import *
from Interval import *
from MessengerGlobal import *

class EventInterval(Interval):

    # special methods
    
    def __init__(self, name, sentArgs=[]):
        """__init__(name, sentArgs)
        """
	duration = 0.0
	self.prevt = 0.0
	self.sentArgs = sentArgs
	Interval.__init__(self, name, duration)

    def setT(self, t, entry=0):
	""" setT(t, entry)
	    Go to time t
	"""
	if (t < 0):
	    self.prevt = t
	    return
	elif (t == 0) or (self.prevt < 0):
	    messenger.send(self.name, self.sentArgs)
	    self.prevt = 0.0
	    
{'fraction_non_alphanumeric': 0.1336, 'fraction_numerical': 0.016, 'mean_word_length': 2.909375, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7540467', 'n_tokens_mistral': 449, 'n_tokens_neox': 420, 'n_words': 119}