<commit_before>class XMPPModule():
	xmpp = None
	threadfunc = None
	priority = 0
	terminate = False


	# Default constructor. Try to avoid overriding __init__, use init() instead
	def __init__(self, xmpp):
		self.xmpp = xmpp

	# Initialize the module. Use this, do not override __init__
	def init(self):
		pass

	# User-implemented deconstructor called when a module is unloaded
	def deinit(self):
		pass

	# Start the passive thread if one is set
	def start(self):
		pass

	# Stop the passive thread
	def stop(self):
		pass

	# Called when a message is received. Passes in whole message object
	def recvMsg(self, msg):
		self.handleMessage(msg)

	# Called when a group message is received, useful for early separation
	def recvGroupMsg(self, msg):
		self.handleMessage(msg)

	# Default, handle all messages the same
	def handleMessage(self, msg):
		pass<commit_msg>Removed start() and stop() methods, as they are never used<commit_after>class XMPPModule():
	xmpp = None
	threadfunc = None
	priority = 0
	terminate = False


	# Default constructor. Try to avoid overriding __init__, use init() instead
	def __init__(self, xmpp):
		self.xmpp = xmpp

	# Initialize the module. Use this, do not override __init__
	def init(self):
		pass

	# User-implemented deconstructor called when a module is unloaded
	def deinit(self):
		pass

	# Called when a message is received. Passes in whole message object
	def recvMsg(self, msg):
		self.handleMessage(msg)

	# Called when a group message is received, useful for early separation
	def recvGroupMsg(self, msg):
		self.handleMessage(msg)

	# Default, handle all messages the same
	def handleMessage(self, msg):
		pass
{'fraction_non_alphanumeric': 0.07543753771876886, 'fraction_numerical': 0.0012070006035003018, 'mean_word_length': 4.18125, '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': '5651159', 'n_tokens_mistral': 544, 'n_tokens_neox': 503, 'n_words': 202}