コード例 #1
0
def main(input, output):
    with open(output, 'wb') as outfile:
        for fname in reader.smart_find_logs(input):
            print "Processing", fname
            with open(fname, 'rb') as f:
                results = pipeline.inline(f, filt)
                outfile.writelines(util.stringify(results))
コード例 #2
0
def main(input, output):
    for fname in reader.smart_find_logs(input):
        print "Processing", fname
        with open(fname, 'rb') as f:
            results = pipeline.inline(f, increment)
            util.exhaust(results)
    dump_counts(output)
コード例 #3
0
ファイル: basic_counts.py プロジェクト: urras/bluesmote
def main(input, output):
    for fname in reader.smart_find_logs(input):
        print "Processing", fname
        with open(fname, 'rb') as f:        
            results = pipeline.inline(f, increment)
            util.exhaust(results)
    dump_counts(output)