<commit_before>from helpers import logHelper as log

class invalidArgumentsException(Exception):
	def __init__(self, handler):
		log.warning("{} - Invalid arguments".format(handler))

class loginFailedException(Exception):
	def __init__(self, handler, who):
		log.warning("{} - {}'s Login failed".format(handler, who))

class userBannedException(Exception):
	def __init__(self, handler, who):
		log.warning("{} - {} is banned".format(handler, who))

class noBanchoSessionException(Exception):
	def __init__(self, handler, who, ip):
		log.warning("{handler} - {username} has tried to submit a score from {ip} without an active bancho session from that ip. If this happens often, {username} is trying to use a score submitter.".format(handler=handler, ip=ip, username=who), True)

class osuApiFailException(Exception):
	def __init__(self):
		log.warning("{} - Invalid data from osu!api".format(handler))

class fileNotFoundException(Exception):
	def __init__(self, file):
		log.warning("{} - File not found ({})".format(handler, file))

class invalidBeatmapException(Exception):
	pass

class beatmapTooLongException(Exception):
	def __init__(self, handler):
		log.warning("{} - Requested beatmap is too long.".format(handler))

class need2FAException(Exception):
	def __init__(self, handler, who):
		log.warning("{} - 2FA check needed for user {}".format(handler, who))<commit_msg>.SCORES. .FIX. __init__() takes 2 positional arguments but 3 were given<commit_after>from helpers import logHelper as log

class invalidArgumentsException(Exception):
	def __init__(self, handler):
		log.warning("{} - Invalid arguments".format(handler))

class loginFailedException(Exception):
	def __init__(self, handler, who):
		log.warning("{} - {}'s Login failed".format(handler, who))

class userBannedException(Exception):
	def __init__(self, handler, who):
		log.warning("{} - {} is banned".format(handler, who))

class noBanchoSessionException(Exception):
	def __init__(self, handler, who, ip):
		log.warning("{handler} - {username} has tried to submit a score from {ip} without an active bancho session from that ip. If this happens often, {username} is trying to use a score submitter.".format(handler=handler, ip=ip, username=who), True)

class osuApiFailException(Exception):
	def __init__(self):
		log.warning("{} - Invalid data from osu!api".format(handler))

class fileNotFoundException(Exception):
	def __init__(self, handler, file):
		log.warning("{} - File not found ({})".format(handler, file))

class invalidBeatmapException(Exception):
	pass

class beatmapTooLongException(Exception):
	def __init__(self, handler):
		log.warning("{} - Requested beatmap is too long.".format(handler))

class need2FAException(Exception):
	def __init__(self, handler, who):
		log.warning("{} - 2FA check needed for user {}".format(handler, who))
{'fraction_non_alphanumeric': 0.13415929203539823, 'fraction_numerical': 0.0021238938053097347, 'mean_word_length': 6.065, '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': '5288857', 'n_tokens_mistral': 846, 'n_tokens_neox': 824, 'n_words': 256}