Module Import alias Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Import alias Import alias Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Str Assign NameStore Dict Str Str Str Num Num Num If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad Return TupleLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword Num attr NameLoad attr Num Print Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body For TupleStore NameStore NameStore NameLoad body Assign SubscriptStore Call AttributeLoad NameLoad attr NameLoad Dict Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareLt Call NameLoad NameLoad Call NameLoad NameLoad body Assign TupleStore NameStore NameStore TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Num For TupleStore NameStore NameStore NameLoad body AugAssignAdd NameStore BinOpMult NameLoad Call AttributeLoad NameLoad attr NameLoad Num Return NameLoad decorator_list FunctionDef arguments args TupleStore NameStore NameStore defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body If CompareIn NameLoad NameLoad body For NameStore SubscriptLoad NameLoad Index NameLoad body If CompareNotIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad TupleLoad Call NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad NameLoad Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr keyword NameLoad Slice Num Expr Yield TupleLoad NameLoad NameLoad decorator_list Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Print Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Lambda arguments args NameParam NameParam defaults BinOpAdd NameLoad NameLoad attr Lambda arguments args NameParam defaults SubscriptLoad Call NameLoad NameLoad keyword NameLoad Slice Num Print Str Call AttributeLoad NameLoad attr
N/A N/A sys N/A N/A N/A N/A sys path append ../ N/A logging N/A dpark N/A name rating.txt parse N/A N/A line N/A N/A N/A N/A sid uid r f N/A N/A N/A N/A line strip split N/A defaults N/A F P N 4.5 3.7 4.0 N/A N/A r None N/A N/A r N/A defaults N/A f N/A N/A sid N/A uid N/A float r N/A N/A rating N/A N/A N/A N/A N/A N/A dpark textFile name numSplits 2 map parse groupByKey 2 N/A N/A N/A rating count reverse N/A N/A it N/A N/A N/A s N/A N/A N/A k us it N/A N/A N/A u r us N/A N/A N/A N/A N/A s setdefault u N/A N/A k r N/A s N/A vsum N/A N/A a b N/A N/A N/A N/A N/A len a N/A len b N/A N/A N/A a b N/A b a N/A d N/A dict a N/A s 0 N/A N/A u r b N/A N/A s N/A r N/A N/A d get u 0 N/A s N/A cos N/A N/A N/A l1 l2 N/A N/A N/A l1 N/A list l1 N/A l2 N/A list l2 N/A d2 N/A dict l2 N/A u2 N/A reverse l2 N/A N/A sid1 us1 l1 N/A N/A s N/A N/A N/A u r us1 N/A N/A N/A u u2 N/A N/A sid2 N/A u2 N/A u N/A N/A N/A sid2 s N/A N/A N/A s N/A sid2 N/A N/A vsum us1 N/A d2 N/A sid2 sid2 N/A sim N/A N/A sorted N/A N/A s values reverse True N/A 5 N/A N/A N/A sid1 sim N/A N/A final N/A N/A N/A N/A rating glom cartesian N/A N/A rating glom N/A N/A N/A final count N/A final N/A N/A final flatMap cos N/A final N/A N/A N/A N/A final reduceByKey N/A N/A N/A x y N/A N/A x y mapValue N/A N/A N/A x N/A N/A N/A sorted x reverse True N/A 5 N/A final N/A N/A final count