<commit_before>def usage():
	print("usage: " + sys.argv[0] + " -d dictionary-file -p postings-file -q file-of-queries -o output-file-of-results")

if __name__ == '__main__':
	dict_file = postings_file = query_file = output_file = None
	try:
		opts, args = getopt.getopt(sys.argv[1:], 'd:p:q:o:')
	except getopt.GetoptError as err:
		usage()
		sys.exit(2)
	for o, a in opts:
		if o == '-d':
			dict_file = a
		elif o == '-p':
			postings_file = a
		elif o == '-q':
			query_file = a
		elif o == '-o':
			output_file = a
		else:
			assert False, "unhandled option"
	if dir_doc == None or dict_file == None or postings_file == None:
		usage()
		sys.exit(2)
<commit_msg>Correct usage None checks<commit_after>def usage():
	print("usage: " + sys.argv[0] + " -d dictionary-file -p postings-file -q file-of-queries -o output-file-of-results")

if __name__ == '__main__':
	dict_file = postings_file = query_file = output_file = None
	try:
		opts, args = getopt.getopt(sys.argv[1:], 'd:p:q:o:')
	except getopt.GetoptError as err:
		usage()
		sys.exit(2)
	for o, a in opts:
		if o == '-d':
			dict_file = a
		elif o == '-p':
			postings_file = a
		elif o == '-q':
			query_file = a
		elif o == '-o':
			output_file = a
		else:
			assert False, "unhandled option"
	if dict_file == None or postings_file == None or query_file == None or output_file == None:
		usage()
		sys.exit(2)

{'fraction_non_alphanumeric': 0.1591240875912409, 'fraction_numerical': 0.00583941605839416, 'mean_word_length': 3.284375, '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': '1711327', 'n_tokens_mistral': 581, 'n_tokens_neox': 539, 'n_words': 150}