Module Assign NameStore Str Import alias Import alias ImportFrom alias If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Pass orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareLtLt Num NameLoad Num body Assign NameStore Str Assign NameStore Num orelse If CompareLtLt Num NameLoad Num body Assign NameStore Str Assign NameStore Num orelse If CompareLtELt Num NameLoad Num body Assign NameStore Str Assign NameStore Num orelse If CompareLtE Num NameLoad body Assign NameStore Str Assign NameStore Num Return Call AttributeLoad Str attr BinOpMult NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpSub Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Assign NameStore Str For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Slice NameLoad AugAssignAdd NameStore BinOpAdd NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad Call NameLoad NameLoad body Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index BinOpSub NameLoad NameLoad attr If BoolOpOr BoolOpAnd Call AttributeLoad NameLoad attr Str CompareIn Str NameLoad NameLoad body Delete SubscriptDel NameLoad Index BinOpSub NameLoad NameLoad AugAssignAdd NameStore Num If Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore Num With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If BoolOpOr NameLoad NameLoad body If BoolOpAnd NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad Assign NameStore NameLoad If NameLoad body Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareEq NameLoad NameLoad CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore Num If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad Assign NameStore BinOpSub Call NameLoad NameLoad Call NameLoad Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd Call AttributeLoad Str attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults vararg kwarg body If NameLoad body Assign NameStore BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str orelse Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str For NameStore NameLoad body AugAssignAdd NameStore BinOpAdd Call AttributeLoad NameLoad attr Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AugAssignAdd NameStore Str Return NameLoad decorator_list
N/A N/A __author__ calvin N/A sys N/A re math log10 N/A N/A N/A N/A sys version N/A 0 3 N/A N/A N/A N/A range xrange N/A classdef_regex N/A N/A re compile \S*def .*#!|class .*#! N/A tagged_line_regex N/A N/A re compile .*#! convert_time_units N/A N/A t N/A N/A N/A  Convert time in seconds into reasonable time units.  N/A order N/A log10 t N/A N/A -9 order -6 N/A N/A time_units ns N/A factor 1000000000 N/A N/A N/A -6 order -3 N/A N/A time_units us N/A factor 1000000 N/A N/A N/A -3 order -1 N/A N/A time_units ms N/A factor 1000.0 N/A N/A N/A -1 order N/A N/A time_units s N/A factor 1 N/A N/A N/A {:.3f} {} format N/A factor t time_units N/A globalize_indentation N/A N/A src N/A N/A N/A  Strip the indentation level so the code runs in the global scope.  N/A lines N/A N/A src splitlines N/A indent N/A N/A len N/A lines N/A 0 N/A len N/A N/A N/A lines N/A 0 strip N/A func_src N/A N/A ii l N/A enumerate N/A N/A src splitlines N/A N/A line N/A l N/A indent N/A func_src N/A line N/A func_src N/A remove_decorators N/A N/A src N/A N/A N/A  Remove decorators from the source code  N/A src N/A N/A src strip N/A src_lines N/A N/A src splitlines N/A multi_line False N/A n_deleted 0 N/A n N/A range N/A len src_lines N/A N/A line N/A N/A N/A src_lines N/A N/A n n_deleted strip N/A N/A N/A N/A N/A line startswith @ N/A Benchmark line multi_line N/A N/A N/A src_lines N/A N/A n n_deleted N/A n_deleted 1 N/A N/A N/A line endswith ) N/A N/A multi_line False N/A N/A multi_line True N/A setup_src N/A N/A join src_lines N/A setup_src N/A get_tagged_imports N/A N/A fp N/A N/A N/A imports N/A N/A inside_def False N/A def_lines N/A N/A def_indent 0 N/A N/A open fp r f N/A N/A lastLine N/A N/A f readline N/A line f N/A N/A tagged_class_or_def N/A N/A re findall classdef_regex lastLine N/A tagged_line N/A N/A re findall tagged_line_regex lastLine N/A N/A tagged_class_or_def inside_def N/A N/A N/A tagged_class_or_def def_lines N/A N/A N/A N/A imports append N/A N/A join def_lines N/A def_lines N/A N/A inside_def False N/A inside_def N/A N/A indent N/A N/A len lastLine N/A len N/A N/A lastLine lstrip N/A N/A N/A indent def_indent N/A lastLine N/A N/A N/A N/A imports append N/A N/A join def_lines N/A def_lines N/A N/A inside_def False N/A def_indent 0 N/A tagged_line N/A N/A N/A N/A imports append lastLine N/A N/A N/A lastLine N/A N/A N/A N/A def_lines append lastLine N/A N/A inside_def True N/A def_indent N/A N/A len lastLine N/A len N/A N/A lastLine lstrip N/A N/A N/A def_lines append lastLine N/A N/A tagged_line N/A N/A N/A N/A imports append lastLine N/A lastLine line N/A tagged_line N/A N/A re findall tagged_line_regex lastLine N/A inside_def N/A N/A N/A N/A def_lines append line N/A N/A N/A imports append N/A N/A join def_lines N/A N/A tagged_line N/A N/A N/A N/A imports append line N/A src N/A N/A N/A join imports N/A src N/A generate_call_statement N/A N/A func is_class_method N/A args kwargs N/A N/A is_class_method N/A N/A stmt N/A N/A instance. N/A func __name__ ( N/A N/A stmt N/A N/A func __name__ ( N/A arg args N/A N/A stmt N/A N/A N/A arg __repr__ ,  N/A N/A kw val N/A N/A kwargs items N/A N/A stmt N/A N/A {0}={1},  format kw N/A N/A val __repr__ N/A stmt N/A N/A stmt strip ,  N/A stmt ) N/A stmt N/A