<commit_before>import requests
import json

class exampleREST():
	
	def __init__(self, url):
		self.url = url 
		self.session = requests.Session()

	def makeRequest (self, method, data, header):
		request = requests.Request(method,
				self.url,
				data = data,
				headers = header
		)
		return request.prepare()
	
	def getResponse(self, request):
		return self.session.send(request,
			verify=True	
		)

if __name__ == '__main__':
	google = exampleREST('https://www.google.com/')
	
	#your mom is a json object
	robertsMom = dict()

	#She's also good
	robertsMom = {'State' : 'Good'}

	#Your mom can have an array
	robertsMom['likes'] = [0, 1 , 2 , 3]
	
	#I'm googling your mom, Make your own header
	robertsRealMom = google.makeRequest('POST',
		json.dumps(robertsMom),
		robertsMom
	)
	
	responseFromGoogle = google.getResponse(robertsRealMom)
	
	print(responseFromGoogle.status_code) <commit_msg>Initial Commit with files for Robert...and his mom<commit_after>import requests
import json

class exampleREST():
	
	def __init__(self, url):
		self.url = url 
		self.session = requests.Session()

	def makeRequest (self, method, data, header):
		request = requests.Request(method,
				self.url,
				data = data,
				headers = header
		)
		return request.prepare()
	
	def getResponse(self, request):
		return self.session.send(request,
			verify=True	
		)

if __name__ == '__main__':
	google = exampleREST('https://www.google.com/')
	
	#your mom is a json object
	robertsMom = dict()

	#She's also good
	robertsMom = {'State' : 'Good'}

	#Your mom can have an array
	robertsMom['likes'] = [0, 1 , 2 , 3]
	robertsMom['hates'] = 'Yes She does'
	
	#your mom gives a good header
	header['token'] = 'blah'
	header['username'] = 'robertsmom'

	#I'm googling your mom, Make your own header
	robertsRealMom = google.makeRequest('POST',
		json.dumps(robertsMom),
		header
	)
	
	responseFromGoogle = google.getResponse(robertsRealMom)
	
	print(responseFromGoogle.status_code) 
{'fraction_non_alphanumeric': 0.12258392675483215, 'fraction_numerical': 0.004069175991861648, 'mean_word_length': 3.979746835443038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '849134', 'n_tokens_mistral': 763, 'n_tokens_neox': 660, 'n_words': 179}