<commit_before>#!/usr/bin/python
import os, glob

class main():

	def getFile(self):

		for file in glob.glob("*.c"):
			filename = file
		if (len(filename)) < 1:
			filename = glob.glob("*.py")
			return filename
		
	def enterCommand(self, filename):

		os.system("clear")
		filename = "".join(filename)
		newfilename = filename.strip('.c')
		os.system("gcc -o %s %s" %(newfilename, filename))
			
if __name__ == '__main__':
	filename = main().getFile()
	main().enterCommand(filename)<commit_msg>redid the finding methods<commit_after>#!/usr/bin/python
import os, glob

class main():

	def getFile(self):

		if (glob.glob("*.c") != []):
			return [x for x in glob.glob("*.c")]
		else:
			pass

		if (glob.glob("*.py") != []):
			return [x for x in glob.glob("*.py")]
		else:
			pass
		
	def enterCommand(self, filename):

		os.system("clear")
		filename = "".join(filename[0])

		if (filename[-2:] == ".c"):
			newfilename = filename.strip('.c')
			os.system("gcc -o %s %s" %(newfilename, filename))
		else:
			pass

		if (filename[-3:] == ".py"):
			os.system("python %s" %(filename))
		else:
			pass
			
if __name__ == '__main__':
	filename = main().getFile()
	main().enterCommand(filename)
{'fraction_non_alphanumeric': 0.1994970662196144, 'fraction_numerical': 0.003352891869237217, 'mean_word_length': 3.574712643678161, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2792679', 'n_tokens_mistral': 488, 'n_tokens_neox': 423, 'n_words': 104}