<commit_before><commit_msg>custom player class idea<commit_after>from helpers import *

players = []

class py_player:

	def __init__(player):
		self.player = player

	#Properties TODO
	#Example:
	self.logging_in = False

def get_py_player(player):
	py_player = players[players.index(player)]
	return py_player


@hook.event("player.PlayerJoinEvent","highest")
def on_join(event):
	player = py_player(event.getPlayer())
	players.append(player)


@hook.event("player.PlayerQuitEvent","highest")
def on_leave(event):
	players.remove(get_py_player(event.getPlayer()))

{'fraction_non_alphanumeric': 0.12920353982300886, 'fraction_numerical': 0.0, 'mean_word_length': 6.7534246575342465, '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': '3330840', 'n_tokens_mistral': 200, 'n_tokens_neox': 190, 'n_words': 34}