<commit_before>import time
from networktables import NetworkTables

rioIP = '10.58.06.2' # this shouldn't change
tableName = 'JetsonToRio' # should be same in rio's java NT program

def initTable():
	NetworkTables.initialize(server=rioIP)
	return NetworkTables.getTable(tableName)

def pushVals(table, jetsonVals):
	table.putNumberArray(jetsonVals)
	
	<commit_msg>Put network table interface in class format<commit_after>import time
from networktables import NetworkTables



def initTable():
	NetworkTables.initialize(server=rioIP)
	return NetworkTables.getTable(tableName)

def pushVals(table, jetsonVals):
	table.putNumberArray(jetsonVals)


class NetworkInterface(object):
	"""docstring for NetworkInterface."""
	rioIP = '10.58.06.2' # this shouldn't change
	tableName = 'SmartDashboard' # should be same in rio's java NT program
	table = None

	def __init__(self):
		super(NetworkInterface, self).__init__()
		NetworkTables.initialize(server=rioIP)
		self.table = NetworkTables.getTable(tableName)

	def pushVals(jetsonVals):
		table.putNumberArray("JetsonVals",jetsonVals)
{'fraction_non_alphanumeric': 0.09647495361781076, 'fraction_numerical': 0.012987012987012988, 'mean_word_length': 6.441379310344828, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5072905', 'n_tokens_mistral': 362, 'n_tokens_neox': 340, 'n_words': 83}