Module Import alias Import alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub BinOpMult Call AttributeLoad NameLoad attr Num Num Assign NameStore BinOpSub BinOpMult Call AttributeLoad NameLoad attr Num Num Return IfExp CompareLt BinOpAdd BinOpMult NameLoad NameLoad BinOpMult NameLoad NameLoad Num Num Num decorator_list FunctionDef arguments args NameParam defaults vararg body Assign NameStore IfExp CompareGt Call NameLoad NameLoad Num Call NameLoad SubscriptLoad NameLoad Index Num Num Assign NameStore BinOpMult Num NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Print BinOpMod Str BinOpDiv BinOpMult Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad Call NameLoad attr Str Assign NameStore Call NameLoad keyword NameLoad Expr Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num
N/A N/A sys N/A random operator add pyspark SparkConf SparkContext estimate N/A N/A idx N/A N/A N/A x N/A N/A N/A N/A random random 2 1 N/A y N/A N/A N/A N/A random random 2 1 N/A N/A N/A N/A N/A x x N/A y y 1 1 0 N/A main N/A N/A sc N/A args N/A N/A slices N/A N/A N/A len args 0 N/A int N/A args N/A 0 2 N/A N N/A 100000 slices N/A count N/A N/A N/A N/A sc parallelize N/A xrange N slices map estimate N/A count N/A N/A count reduce add N/A N/A Pi is roughly %0.5f N/A N/A 4.0 count N N/A N/A N/A sc stop N/A N/A N/A __name__ __main__ N/A N/A conf N/A N/A N/A SparkConf setAppName Estimate Pi N/A sc N/A SparkContext conf conf N/A N/A main sc N/A N/A sys argv N/A 1