<commit_before>class Point:
    def __init__(self, lat, lon, time, acc):
        self.lat = lat
        self.lon = lon
        self.time = time
        self.acc = acc


def lerp(a, b, time):
	"""
	Takes two (lat, lon, time) tuples a and b, and a tmestamp between a and b
	and returns a tuple with the lat and lon at that new time.
	"""
	dlat = b.lat - a.lat
	dlon = b.lon - a.lon
	dt = (time - a.time) / (b.time - a.time)



	return (a.lat + dt * dlat, a.lon + dt * dlon, time)<commit_msg>Wrote CSV Wrapper. Will test in a sec.<commit_after>import csv
import sys

class Point:
    def __init__(self, lat, lon, time, acc):
        self.lat = lat
        self.lon = lon
        self.time = time
        self.acc = acc

class CsvWrapper:
	def __init__(self, file):
		with open(file) as csvfile:
			self.points = []
			self.itr = 0
			readCSV = csv.reader(csvfile, delimiter=',')
			for row in readCSV:
				if (len(row) != 4):
					print("error")
				else:
					points.append(Point(row[0],row[1],row[2],row[3]))

	def getPoint():
		itr+=1
		return points[itr-1]

def lerp(a, b, time):
	"""
	Takes two (lat, lon, time) tuples a and b, and a tmestamp between a and b
	and returns a tuple with the lat and lon at that new time.
	"""
	dlat = b.lat - a.lat
	dlon = b.lon - a.lon
	dt = (time - a.time) / (b.time - a.time)



	return (a.lat + dt * dlat, a.lon + dt * dlon, time)
{'fraction_non_alphanumeric': 0.14045354791514264, 'fraction_numerical': 0.005852231163130944, 'mean_word_length': 2.42, 'pattern_counts': {'":': 0, '<': 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': '1229898', 'n_tokens_mistral': 561, 'n_tokens_neox': 523, 'n_words': 176}