Source

ski / process_all.py

Full commit
#!/usr/bin/env python

import reduce
import sys

if __name__ == "__main__":
	reduce.CACHE_THRESHOLD = int(sys.argv[2])
	f = open(sys.argv[1])
	for num, line in enumerate(f):
		start, end, count = line.split('\t')
		result = reduce.reduce_ski(start)
		if result != end:
			print start, end, result
		
		if num % 1000 == 0:
			print 'done', num