<commit_before>class Fraction:
	name = ""
	name_de = ""

	city_prefixes = None
	city_postfixes = None

	def __init__(self):
		pass

	def __repr__(self):
		return "<Fraction name=" + self.name + ">"<commit_msg>fraction: added method to generate a random city name; added basename property<commit_after>class Fraction:
	# engine properties
	_basename = None
	name = ""
	name_de = ""
	banner_image_path = None

	city_prefixes = None
	city_postfixes = None

	def __init__(self):
		pass

	# returns the name of this fraction
	def get_name(self):
		return self.name

	# returns a random city name for this fraction
	def get_random_city_name(self):
		prefix_rnd = randrange(0, len(self.city_prefixes) -1, 1)
		postfix_rnd = randrange(0, len(self.city_postfixes) -1, 1)

		city_name = self.city_prefixes[prefix_rnd] + self.city_postfixes[postfix_rnd]
		return city_name

	def __repr__(self):
		return "<Fraction name=" + self.name + ">"
{'fraction_non_alphanumeric': 0.10344827586206896, 'fraction_numerical': 0.00646551724137931, 'mean_word_length': 4.562874251497006, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3678892', 'n_tokens_mistral': 351, 'n_tokens_neox': 329, 'n_words': 86}