<commit_before>#!/usr/bin/env python3
import csv
import sys
import os
import getopt
import requests

def main(argv):
	# get args
	inputfile = ''
	outputfile = ''
	helpstring = 'geolocate.py -i <inputfile.csv> -o <outputfile.csv>\nInput file required\nOutput file optional and defaults to output.csv'
	try:
		opts, args = getopt.getopt(argv,"hi:o:",["infile=","outfile="])
	except getopt.GetoptError:
		print(helpstring)
		sys.exit(2)
	for opt, arg in opts:
		if opt == '-h':<commit_msg>Update geolocate.py<commit_after>#!/usr/bin/env python3
import csv
import sys
import os
import getopt
import requests

def main(argv):
	print('Requires python-requests. Install with "pip install requests"')
	# get args
	inputfile = ''
	outputfile = ''
	helpstring = 'geolocate.py -i <inputfile.csv> -o <outputfile.csv>\nInput file required\nOutput file optional and defaults to output.csv'
	try:
		opts, args = getopt.getopt(argv,"hi:o:",["infile=","outfile="])
	except getopt.GetoptError:
		print(helpstring)
		sys.exit(2)
	for opt, arg in opts:
		if opt == '-h':
{'fraction_non_alphanumeric': 0.14, 'fraction_numerical': 0.0038095238095238095, 'mean_word_length': 4.681081081081081, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '476082', 'n_tokens_mistral': 383, 'n_tokens_neox': 369, 'n_words': 103}