Module Expr Str Import alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Print BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body AugAssignAdd AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call NameLoad NameLoad orelse If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad AttributeLoad NameLoad attr
N/A N/A Reducer sample.

The word is already sorted in the desirable order.
The reducer counts the occurrence of each word and outputs the word
and its occurrence.
 N/A sys Word N/A object N/A N/A Class to keep current word's occurrence. __init__ N/A N/A self word N/A N/A N/A N/A self word word N/A N/A self count 0 N/A Print N/A N/A self N/A N/A N/A N/A %s	%d N/A N/A self word N/A self count N/A Increment N/A N/A self count N/A 1 N/A N/A N/A self count count N/A N/A ShortestToLongestReducer N/A object N/A N/A Class to accumulate counts from reducer input lines. __init__ N/A N/A self N/A N/A N/A N/A self current_word None N/A PrintCurrentWord N/A N/A self N/A N/A N/A Outputs word count of the currently processing word. N/A N/A self current_word N/A N/A N/A N/A N/A self current_word Print N/A ProcessLine N/A N/A self line N/A N/A N/A Process an input line.

    Args:
      line: Input line.
     N/A key N/A N/A N/A line split 1 N/A 0 N/A word N/A N/A N/A key split : 1 N/A 1 N/A N/A N/A self current_word N/A N/A N/A self current_word N/A Word word N/A N/A N/A N/A N/A self current_word word word N/A N/A N/A N/A N/A self current_word Print N/A N/A self current_word N/A Word word N/A N/A N/A N/A self current_word Increment N/A N/A main N/A N/A input_lines N/A N/A N/A reducer N/A ShortestToLongestReducer N/A line input_lines N/A N/A N/A N/A reducer ProcessLine line N/A N/A N/A reducer PrintCurrentWord N/A N/A N/A __name__ __main__ N/A N/A N/A main N/A sys stdin