<s> import mincemeat <EOL> data = [ "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> "<STR_LIT>" , <EOL> ] <EOL> datasource = dict ( enumerate ( data ) ) <EOL> def mapfn ( k , v ) : <EOL> for w in v . split ( ) : <EOL> yield w , <NUM_LIT:1> <EOL> def reducefn ( k , vs ) : <EOL> result = sum ( vs ) <EOL> return result <EOL> s = mincemeat . Server ( ) <EOL> s . datasource = datasource <EOL> s . mapfn = mapfn <EOL> s . reducefn = reducefn <EOL> results = s . run_server ( password = "<STR_LIT>" ) <EOL> print results </s>
