<commit_before>import numpy as np 
import json
import sys

def run(filepath):
	data = np.load(filepath)['data']
	data_subset = data[:1000000, :4]
	json.dump(data_subset.tolist(), open('datafile.json', 'w'))

if __name__ == '__main__':
	run(sys.argv[1])<commit_msg>adds gps conversion<commit_after>import numpy as np 
import json
import sys

def runData(filepath):
	data = np.load(filepath)['data']
	data_subset = data[:1000000, :4]
	json.dump(data_subset.tolist(), open('datafile.json', 'w'))

def runGps(filepath):
	data = np.load(filepath)['data'];
	data_subset = data[:data.shape[0]/5, :3]
	json.dump(data_subset.tolist(), open('gpsfile.json', 'w'))

if __name__ == '__main__':
	runGps(sys.argv[1])
{'fraction_non_alphanumeric': 0.181169757489301, 'fraction_numerical': 0.029957203994293864, 'mean_word_length': 6.237113402061856, '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': '736138', 'n_tokens_mistral': 285, 'n_tokens_neox': 274, 'n_words': 55}