<commit_before>from requirement import GenEd
from helpers import get_readable_list

class Standing:
	def __init__(self, credits_needed=35, credits_taken=0.0):
		self.credits_needed = credits_needed
		self.credits_taken = credits_taken

		self.list = [
			GenEd("FYW", 1),
			GenEd("WRI", 4),
			# TODO: Support requirements that have a variable number of courses needed.
			GenEd("FOL", 4),
			GenEd("ORC", 1),
			GenEd("AQR", 1),
			# TODO: support using 'number of courses' instead of 'number of credits'
			GenEd("SPM", 2),
			GenEd("HWC", 1),
			# TODO: support requiring that courses be from different departments
			GenEd("MCG", 1),
			GenEd("MCD", 1),
			GenEd("ALS-A", 1),
			GenEd("ALS-L", 1),
			GenEd("BTS-B", 1),
			GenEd("BTS-T", 1),
			GenEd("SED", 1),
			GenEd("IST", 1),
			GenEd("HBS", 1),
			GenEd("EIN", 1)
		]

	def increment(self, i=1.0):
		self.credits_taken += i

	def checkStanding(self):
		return self.credits_taken >= self.credits_needed

	def __str__(self):
		self.checkStanding()
		output = "You have " + str(self.credits_taken) + " credits "
		output += "out of " + str(self.credits_needed) + " credits needed."
		output += '\n'<commit_msg>Add text to Standing.__str__<commit_after>from requirement import GenEd
from helpers import get_readable_list

class Standing:
	def __init__(self, credits_needed=35, credits_taken=0.0):
		self.credits_needed = credits_needed
		self.credits_taken = credits_taken

		self.list = [
			GenEd("FYW", 1),
			GenEd("WRI", 4),
			# TODO: Support requirements that have a variable number of courses needed.
			GenEd("FOL", 4),
			GenEd("ORC", 1),
			GenEd("AQR", 1),
			# TODO: support using 'number of courses' instead of 'number of credits'
			GenEd("SPM", 2),
			GenEd("HWC", 1),
			# TODO: support requiring that courses be from different departments
			GenEd("MCG", 1),
			GenEd("MCD", 1),
			GenEd("ALS-A", 1),
			GenEd("ALS-L", 1),
			GenEd("BTS-B", 1),
			GenEd("BTS-T", 1),
			GenEd("SED", 1),
			GenEd("IST", 1),
			GenEd("HBS", 1),
			GenEd("EIN", 1)
		]

	def increment(self, i=1.0):
		self.credits_taken += i

	def checkStanding(self):
		return self.credits_taken >= self.credits_needed

	def __str__(self):
		self.checkStanding()
		output = "You have " + str(self.credits_taken) + " credits "
		output += "out of " + str(self.credits_needed) + " credits needed to graduate."
		output += '\n'
{'fraction_non_alphanumeric': 0.15687103594080337, 'fraction_numerical': 0.01945031712473573, 'mean_word_length': 3.898550724637681, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1912321', 'n_tokens_mistral': 1032, 'n_tokens_neox': 854, 'n_words': 224}