<commit_before>import os

# static class for accessing game paths and os methods
class FileManager(object):
	game_root = ""
	img_basepath = ""
	mods_basepath = ""

	# set the game root folder path
	@classmethod
	def set_game_root(self, path):
		self.game_root = path
		self.img_basepath = path + "/img/"
		self.mods_basepath = path + "/mods/"

	def check_if_initialized(self):
		if (game_root == ""):
			return None

	@classmethod
	def game_root(self):
		check_if_initialized()
		return self.game_root

	# returns the image resource folder path
	@classmethod
	def image_path(self):
		check_if_initialized()
		return self.img_basepath

	# returns the mod folder path
	@classmethod
	def mod_path(self):
		check_if_initialized()
		return self.mods_basepath<commit_msg>filemanager.py: bugfixes for static methods<commit_after>import os

# static class for accessing game paths and os methods
class FileManager(object):
	game_root = ""
	img_basepath = ""
	mods_basepath = ""

	# set the game root folder path
	@classmethod
	def set_game_root(self, path):
		self.game_root = path
		self.img_basepath = path + "/img/"
		self.mods_basepath = path + "/mods/"

	@classmethod
	def check_if_initialized(self):
		if (self.game_root == ""):
			return None

	@classmethod
	def game_root(self):
		check_if_initialized()
		return self.game_root

	# returns the image resource folder path
	@classmethod
	def image_path(self):
		check_if_initialized()
		return self.img_basepath

	# returns the mod folder path
	@classmethod
	def mod_path(self):
		self.check_if_initialized()
		return self.mods_basepath
{'fraction_non_alphanumeric': 0.0928030303030303, 'fraction_numerical': 0.0, 'mean_word_length': 4.503472222222222, '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': '7631473', 'n_tokens_mistral': 564, 'n_tokens_neox': 535, 'n_words': 142}