<commit_before>class Repo:
	# constructor:
	def __init__(self, name):
		self.stars = name.rstrip()
		self.contributors = 0
		self.watchers = 0
		self.issues = 0
		self.url = ""

	def get_name(self):
		return self.name

	def get_contributors(self):
		return self.contributors

	def get_watchers(self):
		return self.watchers

	def get_issues(self):
		return self.issues

	def get_url(self):
		return self.url

	def add_info(self, s, c, w, i, u):
		if((s is not None) and  (c is not None) and  (w is not None) and  (i is not None) and  (u is not None)):
			self.stars = int(s)
			self.contributors = int(c)
			self.watchers = int(w)
			self.issues = int(i)
			self.url = string(u)
			return True
		else:
			return False

	def format_output(self):
		output = self.name
		output += ":\n\tstars: "
		output += self.get_stars()
		output += "\n\tcontributors: "
		output += self.get_contributors()
		output += "\n\watchers: "
		output += self.get_watchers()
		output += "\n\turl: "
		output += self.get_url()
		return output

name = raw_input("Enter repo info in the format (name, stars, contributors, watchers, url: ")<commit_msg>actual working repo class<commit_after>class Repo:
	# constructor:
	def __init__(self, name):
		self.name = name.rstrip()
		self.stars = 0
		self.contributors = 0
		self.watchers = 0
		self.issues = 0
		self.url = ""

	def get_name(self):
		return self.name

	def get_stars(self):
		return self.stars

	def get_contributors(self):
		return self.contributors

	def get_watchers(self):
		return self.watchers

	def get_issues(self):
		return self.issues

	def get_url(self):
		return self.url

	def add_info(self, s, c, w, i, u):
		if((s is not None) and  (c is not None) and  (w is not None) and  (i is not None) and  (u is not None)):
			self.stars = int(s)
			self.contributors = int(c)
			self.watchers = int(w)
			self.issues = int(i)
			self.url = str(u)
			return True
		else:
			return False

	def format_output(self):
		output = self.get_name()
		output += ":\n\tstars: "
		output += str(self.get_stars())
		output += "\n\tcontributors: "
		output += str(self.get_contributors())
		output += "\n\twatchers: "
		output += str(self.get_watchers())
		output += "\n\tissues: "
		output += str(self.get_issues())
		output += "\n\turl: "
		output += str(self.get_url())
		return output

name = raw_input("Enter repo name: ")
stars = raw_input("Enter number of stars: ")
contributors = raw_input("Enter number of contributors: ")
watchers = raw_input("Enter number of watchers: ")
issues = raw_input("Enter number of issues: ")
url = raw_input("Enter number of url: ")
repo = Repo(name)
repo.add_info(stars, contributors, watchers, issues, url)
print repo.format_output()
{'fraction_non_alphanumeric': 0.13803339517625232, 'fraction_numerical': 0.0025974025974025974, 'mean_word_length': 3.6164383561643834, 'pattern_counts': {'":': 2, '<': 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': '5235243', 'n_tokens_mistral': 1084, 'n_tokens_neox': 960, 'n_words': 269}