Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 14 lines (10 sloc) 0.251 kb
"""
Counts how many times each word occurs.
"""
def mapper(key,value):
for word in value.split(): yield word,1
def reducer(key,values):
yield key,sum(values)
if __name__ == "__main__":
import dumbo
dumbo.run(mapper,reducer,reducer)
Jump to Line
Something went wrong with that request. Please try again.