Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr IfExp UnaryOpNot CompareEq NameLoad Str NameLoad Str Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIn AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults CompareIn AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body AugAssignAdd NameStore NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Str Assign NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore BinOpAdd Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num orelse AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return TupleLoad ListLoad ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If UnaryOpNot NameLoad body Continue Expr Str If Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Lambda arguments args NameParam NameParam defaults IfExp UnaryOpNot CompareIn NameLoad NameLoad BinOpAdd NameLoad NameLoad NameLoad Assign NameStore IfExp NameLoad NameLoad ListLoad Str For NameStore NameLoad body If BoolOpAnd CompareEq NameLoad Str CompareGt Call NameLoad NameLoad Num body Continue Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad SubscriptLoad NameLoad Slice Num NameLoad Return Call NameLoad Lambda arguments args NameParam defaults CompareNotIn NameLoad ListLoad Str Str Str NameLoad NameLoad Assign NameStore Call NameLoad Expr Call NameLoad Str For NameStore IfExp NameLoad NameLoad ListLoad Str body For NameStore IfExp NameLoad NameLoad ListLoad Str body If BoolOpAnd CompareEq NameLoad Str CompareGt Call NameLoad NameLoad Num body Continue Assign NameStore NameLoad If UnaryOpNot CompareIn SubscriptLoad NameLoad Slice Num NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Slice Num If UnaryOpNot CompareIn NameLoad ListLoad Str Str Str body Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr TryExcept body If CompareEq AttributeLoad NameLoad attr Str body Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr SubscriptLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults CompareEq AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Index Num Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Return TupleLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad If UnaryOpNot CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Return TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num UnaryOpNot CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call NameLoad NameLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign AttributeStore NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Return SubscriptLoad NameLoad Index Num handlers ExceptHandler body Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Str For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If SubscriptLoad NameLoad Index Num body AugAssignAdd NameStore Call AttributeLoad NameLoad attr orelse AugAssignAdd NameStore BinOpAdd Str Call AttributeLoad NameLoad attr If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore SubscriptLoad NameLoad Index Num If CompareIn SubscriptLoad AttributeLoad NameLoad attr Slice Num ListLoad Str Str Str body AugAssignAdd NameStore BinOpAdd Str AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore NameLoad TryExcept body For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore ListLoad Assign NameStore Str For NameStore NameLoad body If CompareIn SubscriptLoad NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad Index Num Call NameLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num orelse Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse If CompareEq Call NameLoad NameLoad Num body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str body If CompareLt NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num body Assign NameStore SubscriptLoad NameLoad Index Num orelse If CompareGtE NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num body Assign NameStore SubscriptLoad NameLoad Index Num orelse If CompareLt NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body If CompareGtE NameLoad Call NameLoad SubscriptLoad NameLoad Index Num body Assign NameStore SubscriptLoad NameLoad Index Num If NameLoad body Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body If BoolOpAnd NameLoad CompareIn SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num BinOpAdd NameLoad Num BinOpAdd BinOpAdd NameLoad Str SubscriptLoad NameLoad Index Num If NameLoad body Return NameLoad If CompareIn Str NameLoad body If Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If UnaryOpNot CompareIs NameLoad NameLoad body Expr Str Return TupleLoad ListLoad NameLoad NameLoad NameLoad ListLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Num orelse Return TupleLoad ListLoad SubscriptLoad NameLoad Index Str NameLoad NameLoad Return NameLoad decorator_list Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr AugAssignAdd NameStore SubscriptLoad NameLoad Index Num orelse If CompareIn SubscriptLoad AttributeLoad NameLoad attr Slice Num ListLoad Str Str Str body AugAssignAdd NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If SubscriptLoad NameLoad Index Num body AugAssignAdd NameStore Call AttributeLoad NameLoad attr orelse AugAssignAdd NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num If SubscriptLoad NameLoad Index Num body AugAssignAdd NameStore Call AttributeLoad NameLoad attr orelse Pass orelse If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore BoolOpOr Call AttributeLoad AttributeLoad NameLoad attr attr Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore NameLoad While BoolOpAnd NameLoad AttributeLoad NameLoad attr body If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Break If BoolOpAnd NameLoad CompareIn AttributeLoad NameLoad attr ListLoad Str Str body Assign NameStore NameLoad Assign NameStore AttributeLoad NameLoad attr Continue If BoolOpOr UnaryOpNot NameLoad BoolOpAnd NameLoad NameLoad body For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If Call NameLoad NameLoad NameLoad body If UnaryOpNot CompareEq Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Break Assign NameStore AttributeLoad NameLoad attr Assign NameStore Num While CompareLt NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Num If NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore ListLoad SubscriptLoad NameLoad Index Num Continue Assign NameStore Call NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad Num If NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore ListLoad ListLoad Str AugAssignAdd NameStore SubscriptLoad NameLoad Index Num AugAssignAdd NameStore ListLoad SubscriptLoad NameLoad Index Num Expr Str Continue AugAssignAdd NameStore Num Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Str If NameLoad body AugAssignAdd SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str ListLoad TupleLoad NameLoad AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Call NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad Assign AttributeStore NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Num NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr If BoolOpAnd CompareGt Call NameLoad AttributeLoad NameLoad attr Num UnaryOpNot AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr body If BoolOpAnd Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad CompareGt Call NameLoad SubscriptLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num Num body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr orelse Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Index Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body If CompareEq AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str body Assign NameStore ListLoad Str Str Str Str If BoolOpAnd UnaryOpNot BoolOpOr CompareIn SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num NameLoad CompareIn AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num attr NameLoad CompareLtE Call NameLoad Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num UnaryOpNot Call AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr NameLoad Delete NameDel Assign NameStore NameLoad Return NameLoad Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Return ListLoad SubscriptLoad NameLoad Index Num If CompareEq SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Str body Return SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Return ListLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareIn AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign TupleStore NameStore NameStore NameStore ListLoad NameLoad Str Str If UnaryOpNot BoolOpOr NameLoad NameLoad body Return ListLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad If NameLoad body For NameStore NameLoad body Assign NameStore TupleLoad ListLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad NameLoad ListLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore TupleLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad NameLoad ListLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore Str orelse If UnaryOpNot CompareIn SubscriptLoad NameLoad Index Num ListLoad Str ListLoad ListLoad Str ListLoad Str ListLoad Str body Assign NameStore NameLoad Assign NameStore NameLoad orelse Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Num Assign NameStore TupleLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Num Return BinOpAdd NameLoad ListLoad NameLoad decorator_list Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr Call AttributeLoad NameLoad attr BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign NameStore ListLoad Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str Str body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr orelse If CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str Str Str body AugAssignAdd NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore ListLoad Str If BoolOpOr NameLoad NameLoad body For NameStore NameLoad body Assign NameStore TupleLoad NameLoad NameLoad IfExp Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad NameLoad ListLoad NameLoad NameLoad NameLoad Num Assign AttributeStore NameLoad attr NameLoad Return NameLoad Assign NameStore IfExp CompareIn NameLoad ListLoad Str ListLoad ListLoad Str ListLoad Str ListLoad Str Str NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore Str If NameLoad body Assign NameStore Num If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body AugAssignAdd NameStore Call NameLoad NameLoad orelse If UnaryOpNot NameLoad body If BoolOpOr NameLoad NameLoad body Assign NameStore TupleLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad NameLoad ListLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For NameStore NameLoad body AugAssignAdd NameStore NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body For NameStore NameLoad body If BoolOpAnd Call NameLoad NameLoad NameLoad BoolOpOr SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body For NameStore Call NameLoad NameLoad body If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body For NameStore SubscriptLoad NameLoad Index Num body Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad NameLoad ListLoad NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad orelse AugAssignAdd NameStore Call NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body For NameStore SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Call NameLoad NameLoad ListLoad NameLoad SubscriptLoad NameLoad Index Num Num orelse AugAssignAdd NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If NameLoad body If CompareIn AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr ListLoad Str Str body Assign NameStore AttributeLoad NameLoad attr If CompareEq AttributeLoad NameLoad attr Str body Assign AttributeStore NameLoad attr NameLoad Return NameLoad For NameStore Call NameLoad Num body If BoolOpAnd NameLoad Call NameLoad NameLoad NameLoad body If CompareIn AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr ListLoad Str Str Str Str Str Str Str Str body Assign AttributeStore NameLoad attr NameLoad Return NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Break orelse Expr Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad While BoolOpAnd NameLoad UnaryOpNot CompareIs AttributeLoad NameLoad attr NameLoad body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str body If BoolOpAnd CompareEq AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str CompareEq AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad NameLoad attr Continue Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr orelse Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If BoolOpAnd Call NameLoad NameLoad NameLoad UnaryOpNot CompareEq Call AttributeLoad NameLoad attr ListLoad Str body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Call NameLoad Lambda arguments args NameParam defaults BoolOpAnd Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore CompareEq BoolOpAnd NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str orelse Assign NameStore NameLoad For NameStore NameLoad body If NameLoad body Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpSub SubscriptLoad NameLoad Index Num Num orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad AugAssignAdd NameStore NameLoad If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr orelse If BoolOpAnd NameLoad CompareIn AttributeLoad NameLoad attr Str body For NameStore IfExp CompareEq AttributeLoad NameLoad attr Str AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore SubscriptLoad Call AttributeLoad NameLoad attr Index Num Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad If UnaryOpNot NameLoad body AugAssignAdd NameStore NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Return TupleLoad AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareIn Str Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return TupleLoad Num Num ListLoad Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore IfExp CompareEq AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str Str SubscriptLoad Call AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Assign NameStore Num Assign NameStore SubscriptLoad NameLoad Index NameLoad If CompareEq ListLoad Str Call AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index Str If BoolOpOr NameLoad CompareEq Call AttributeLoad NameLoad attr ListLoad Str body TryExcept body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign AttributeStore NameLoad attr IfExp UnaryOpNot CompareEq NameLoad Str NameLoad NameLoad If UnaryOpNot CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Assign AttributeStore NameLoad attr TupleLoad Num Num ListLoad orelse For NameStore AttributeLoad NameLoad attr body If CompareIn AttributeLoad NameLoad attr ListLoad Str Str body If CompareIn AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Assign NameStore SubscriptLoad NameLoad Index AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr If CompareIn Str NameLoad body TryExcept body Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Index Str Assign AttributeStore NameLoad attr IfExp UnaryOpNot CompareEq NameLoad Str NameLoad NameLoad If UnaryOpNot CompareEq NameLoad Str body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Pass Assign NameStore Call AttributeLoad NameLoad attr If NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr Lambda arguments args defaults NameLoad Assign AttributeStore NameLoad attr NameLoad Return TupleLoad AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Dict Dict body Assign NameStore NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore IfExp UnaryOpNot CompareEq SubscriptLoad NameLoad Index Num Str SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Str If Call NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr TupleLoad Call NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num NameLoad NameLoad Return TupleLoad NameLoad NameLoad Return TupleLoad ListLoad TupleLoad Call NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore IfExp UnaryOpNot SubscriptLoad NameLoad Index Num NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Lambda arguments args NameParam defaults CompareIn NameLoad NameLoad ListLoad SubscriptLoad NameLoad Index Num BinOpSub SubscriptLoad NameLoad Index Num BinOpMod SubscriptLoad NameLoad Index Num Num BinOpSub SubscriptLoad NameLoad Index Num BinOpMod SubscriptLoad NameLoad Index Num Num BinOpSub SubscriptLoad NameLoad Index Num BinOpMod SubscriptLoad NameLoad Index Num Num If NameLoad body Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num orelse If CompareIn Num NameLoad body Assign SubscriptStore NameLoad Index Str SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num orelse Return NameLoad orelse Assign NameStore NameLoad If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If UnaryOpNot NameLoad body Assign NameStore Str If CompareIn NameLoad NameLoad body Return Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad orelse If UnaryOpNot CompareEq NameLoad Str body For NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Slice Num body If CompareIn NameLoad NameLoad body Continue If UnaryOpNot CompareEq NameLoad Str body Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return Call NameLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index Num NameLoad NameLoad Return NameLoad decorator_list TryExcept body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad If NameLoad body Return NameLoad orelse If BoolOpAnd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num UnaryOpNot BinOpDiv SubscriptLoad SubscriptLoad NameLoad Index Num Index Num BinOpPow Num Num body If Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Index Num NameLoad body Assign NameStore ListLoad For NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num body Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num NameLoad Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Num Index Num SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Return ListLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Pass Return ListLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot NameLoad body Return NameLoad For NameStore Call NameLoad Lambda arguments args NameParam defaults CompareIn AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad NameLoad Index AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad AttributeLoad NameLoad attr If NameLoad body Assign AttributeStore NameLoad attr NameLoad Return NameLoad Return Call NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults IfExp UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Num body Assign NameStore ListLoad If UnaryOpNot NameLoad body Return NameLoad If NameLoad body For NameStore AttributeLoad NameLoad attr body If BoolOpAnd Call NameLoad NameLoad NameLoad CompareGt Call NameLoad AttributeLoad NameLoad attr Num CompareIn Call AttributeLoad NameLoad attr ListLoad Str Str body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num orelse For NameStore AttributeLoad NameLoad attr body If CompareIn AttributeLoad NameLoad attr TupleLoad Str Str body Expr Call AttributeLoad NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Lambda arguments args NameParam defaults NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad NameLoad Num If NameLoad body Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad Return NameLoad Assign NameStore Call NameLoad NameLoad IfExp Call NameLoad NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad If NameLoad body Assign AttributeStore SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad Return NameLoad If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad SubscriptLoad NameLoad Index Str Lambda arguments args NameParam defaults Call NameLoad NameLoad AttributeLoad NameLoad attr Return Call NameLoad NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body For NameStore Call NameLoad Lambda arguments args NameParam defaults Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad Lambda arguments args NameParam defaults IfExp CompareGt Call NameLoad AttributeLoad NameLoad attr Num Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad NameLoad If NameLoad body Return NameLoad Return Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Num body If UnaryOpNot NameLoad body Return NameLoad If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If NameLoad body Return NameLoad If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If NameLoad body Return NameLoad If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If NameLoad body Return NameLoad If CompareIn Str NameLoad body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str If NameLoad body Return NameLoad If BoolOpAnd CompareIn Str NameLoad NameLoad body Return SubscriptLoad NameLoad Index Str Return NameLoad decorator_list If CompareIn NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index NameLoad If Call AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Num orelse Return Call NameLoad NameLoad Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr TupleLoad Num Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Dict Str ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad SubscriptLoad SubscriptLoad NameLoad Index Num Slice Num AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad NameLoad Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Slice Num body If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Num If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Num Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Expr Call AttributeLoad AttributeLoad SubscriptLoad NameLoad Index Num attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr Str body TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler body Break orelse Assign AttributeStore SubscriptLoad NameLoad Index Num attr NameLoad AugAssignAdd AttributeStore NameLoad attr BinOpAdd Str NameLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad NameLoad For NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore Str Assign NameStore ListLoad While CompareIn Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Return Call NameLoad Lambda arguments args NameParam defaults IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Slice Num decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr Call NameLoad Lambda arguments args NameParam defaults CompareIn AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Dict Str SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Str Assign NameStore ListLoad TryExcept body For NameStore NameLoad body For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore TupleLoad SubscriptLoad NameLoad Index Num NameLoad SubscriptLoad NameLoad Index Num If BoolOpAnd Call NameLoad NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Num Expr Call NameLoad Str NameLoad Call NameLoad SubscriptLoad NameLoad Index Num If BoolOpAnd SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num NameLoad body For NameStore SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str NameLoad Assign SubscriptStore NameLoad Index TupleLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str NameLoad Call AttributeLoad NameLoad attr NameLoad orelse If BoolOpAnd UnaryOpNot NameLoad SubscriptLoad NameLoad Index Num NameLoad UnaryOpNot SubscriptLoad NameLoad Index Num body For NameStore SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Str Str Str NameLoad orelse If BoolOpAnd UnaryOpNot NameLoad SubscriptLoad NameLoad Index Num NameLoad UnaryOpNot SubscriptLoad NameLoad Index Num body Expr Call AttributeLoad NameLoad attr TupleLoad Str Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str Str NameLoad If BoolOpAnd CompareGt Call NameLoad SubscriptLoad NameLoad Index Num Num UnaryOpNot SubscriptLoad NameLoad Index Num NameLoad CompareIn SubscriptLoad NameLoad Slice Num ListLoad Str Str Str Str body For NameStore SubscriptLoad NameLoad Index Num body For NameStore SubscriptLoad NameLoad Index Num body If UnaryOpNot CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr TupleLoad Call AttributeLoad NameLoad attr Str Str Call AttributeLoad NameLoad attr Str Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call NameLoad Str NameLoad Return TupleLoad NameLoad NameLoad decorator_list Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Expr Call NameLoad Str Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Str attr Str Expr Call NameLoad Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Expr Call NameLoad BinOpAdd Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str IfExp UnaryOpNot CompareEq AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Str If CompareIn AttributeLoad NameLoad attr ListLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str For NameStore NameLoad body AugAssignAdd NameStore BinOpAdd Str NameLoad Expr Call NameLoad BinOpAdd BinOpAdd Str NameLoad Str keyword NameLoad keyword Str orelse If CompareIn AttributeLoad NameLoad attr ListLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad BinOpAdd NameLoad Str NameLoad If CompareIn AttributeLoad NameLoad attr ListLoad Str Str body Expr Call NameLoad Str keyword NameLoad keyword Str orelse Expr Call NameLoad Str keyword NameLoad keyword Str decorator_list decorator_list
N/A __future__ print_function __future__ unicode_literals N/A PETRglobals N/A PETRreader N/A time N/A utilities N/A types Phrase N/A N/A N/A 
    This is a general class for all Phrase instances, which make up the nodes in the syntactic tree.
    The three subtypes are below.
    
     __init__ N/A N/A self label date sentence N/A N/A N/A 
        Initialization for Phrase classes. 
        
        
        Parameters
        -----------
    
        label: list
                Label for the phrase type, date
        
        Returns
        -------
        An instantiated Phrase object

         N/A N/A self label N/A N/A N/A label MD label VB N/A N/A self children N/A N/A N/A self phrasetype N/A label N/A 0 N/A N/A self annotation N/A N/A self text N/A N/A self parent None N/A N/A self meaning N/A N/A self verbclass N/A N/A self date date N/A N/A self index -1 N/A N/A self head None N/A N/A self head_phrase None N/A N/A self color False N/A N/A self sentence sentence N/A get_meaning N/A N/A self N/A N/A N/A 
        Method for returning the meaning of the subtree rooted by this phrase,
        is overwritten by all subclasses, so this works primarily for
        S and S-Bar phrases.
        
        
        
        Parameters
        -----------
        self: Phrase object that called the method
        
        
        Returns
        -------
        
        events: list
                Combined meanings of the phrases children
         N/A N/A N/A self label SBAR N/A N/A lower N/A map N/A N/A N/A b N/A N/A N/A b get_meaning N/A filter N/A N/A N/A a N/A N/A N/A a label SBARVP N/A self children N/A events N/A N/A item lower N/A N/A events item N/A events N/A N/A N/A self meaning events N/A events N/A N/A self meaning N/A get_text N/A N/A self N/A N/A N/A N/A self color N/A N/A N/A text N/A self text N/A child N/A self children N/A N/A N/A isinstance child NounPhrase N/A N/A text N/A N/A N/A N/A child get_text N/A 0 N/A N/A text N/A N/A N/A child get_text N/A text N/A resolve_codes N/A N/A self codes N/A N/A N/A 
        Method that divides a list of mixed codes into actor and agent codes
        
        Parameters
        -----------
        codes: list
               Mixed list of codes
        
        Returns
        -------
        actorcodes: list
                    List of actor codes
                    
        agentcodes: list
                    List of actor codes
        
         N/A N/A codes N/A N/A N/A N/A N/A N/A actorcodes N/A N/A agentcodes N/A N/A code codes N/A N/A N/A code N/A N/A N/A if isinstance(code,tuple):
                actorcodes.append(code)
            else:
                agentcodes.append(code) N/A N/A N/A code startswith ~ N/A N/A N/A N/A agentcodes append code N/A N/A N/A N/A actorcodes append code N/A N/A actorcodes agentcodes N/A mix_codes N/A N/A self agents actors N/A N/A N/A 
        Combine the actor codes and agent codes addressing duplicates
        and removing the general "~PPL" if there's a better option.
        
        Parameters
        -----------
        agents, actors : Lists of their respective codes
        
        
        Returns
        -------
        codes: list
               [Agent codes] x [Actor codes]
        
         N/A codes N/A set N/A mix N/A N/A N/A a b N/A N/A N/A N/A b a N/A a b a N/A actors N/A actors actors N/A ~ N/A ag agents N/A N/A N/A N/A ag ~PPL N/A N/A len agents 1 N/A N/A N/A actors N/A map N/A N/A N/A a N/A N/A mix a N/A ag N/A 1 actors N/A N/A filter N/A N/A N/A a N/A N/A a N/A ~ ~~ None actors N/A codes N/A set N/A N/A print WTF-1 N/A act N/A actors actors N/A ~ N/A N/A ag N/A agents agents N/A ~ N/A N/A N/A N/A ag ~PPL N/A N/A len agents 1 N/A N/A N/A code act N/A N/A N/A N/A ag N/A 1 act N/A N/A code N/A ag N/A 1 N/A N/A N/A code N/A ~ ~~ N/A N/A N/A N/A codes add code N/A N/A list codes N/A return_head N/A N/A self N/A N/A N/A N/A N/A self head N/A self head_phrase N/A get_head N/A N/A self N/A N/A N/A 
        Method for finding the head of a phrase. The head of a phrase is the rightmost
        word-level constituent such that the path from root to head consists only of similarly-labeled
        phrases.
        
        Parameters
        -----------
        self: Phrase object that called the method
        
        Returns
        -------
        possibilities[-1]: tuple (string,NounPhrase)
                (The text of the head of the phrase, the NounPhrase object whose rightmost child is the
                head).
                
        
         N/A N/A self get_head N/A self return_head N/A N/A N/A N/A N/A self label S N/A N/A N/A N/A self head N/A self head_phrase N/A N/A map N/A N/A N/A b N/A N/A N/A b get_head N/A filter N/A N/A N/A a N/A N/A N/A a label VP N/A self children N/A 0 N/A N/A N/A self head N/A self head_phrase N/A N/A N/A N/A self label ADVP N/A N/A N/A N/A N/A N/A self children N/A 0 text self N/A N/A N/A N/A N/A self label N/A 1 P N/A N/A N/A N/A self text N/A self parent N/A head_children N/A filter N/A N/A N/A child N/A N/A N/A N/A N/A child label startswith N/A N/A self label N/A 0 N/A N/A N/A N/A child label N/A 1 P N/A self children N/A head_children N/A N/A possibilities N/A filter None N/A map N/A N/A N/A a N/A N/A N/A a get_head head_children N/A N/A other_children N/A filter N/A N/A N/A child N/A N/A N/A N/A child label startswith N/A N/A self label N/A 0 N/A self children N/A possibilities N/A filter None N/A map N/A N/A N/A a N/A N/A N/A a get_head other_children N/A N/A self head_phrase N/A N/A possibilities N/A -1 N/A 1 N/A N/A self head N/A N/A possibilities N/A -1 N/A 0 N/A N/A possibilities N/A -1 N/A N/A N/A N/A N/A None None N/A print_to_stdout N/A N/A self indent N/A N/A N/A N/A print indent N/A self label N/A self text N/A N/A self get_meaning N/A child N/A self children N/A N/A N/A N/A child print_to_stdout N/A indent N/A N/A NounPhrase N/A Phrase N/A N/A 
    Class specific to noun phrases. 
    
    Methods: get_meaning()  -   specific version of the super's method
             check_date()   -   find the date-specific version of an actor
             
     __init__ N/A N/A self label date sentence N/A N/A N/A N/A N/A Phrase __init__ self label date sentence N/A return_meaning N/A N/A self N/A N/A N/A N/A self meaning N/A get_text N/A N/A self N/A N/A N/A 
        Noun-specific get text method
         N/A PPcodes N/A N/A text N/A child N/A self children N/A N/A N/A isinstance child PrepPhrase N/A N/A m N/A N/A self resolve_codes N/A N/A child get_meaning N/A N/A m N/A 0 N/A N/A PPcodes N/A N/A child get_meaning N/A N/A text N/A N/A N/A child get_text N/A N/A isinstance child NounPhrase N/A N/A value N/A N/A child get_text N/A text N/A value N/A 0 N/A PPcodes N/A value N/A 1 N/A N/A N/A N/A child label N/A 2 N/A JJ NN DT N/A N/A text N/A N/A child text N/A N/A text PPcodes N/A check_date N/A N/A self match N/A N/A N/A 
        Method for resolving date restrictions on actor codes. 
        
        Parameters
        -----------
        match: list
               Dates and codes from the dictionary
        
        Returns
        -------
        code: string
              The code corresponding to how the actor should be coded given the date
         N/A code None N/A N/A N/A j match N/A N/A dates N/A j N/A 1 N/A date N/A N/A code N/A d dates N/A N/A N/A N/A d N/A 0 <> N/A N/A N/A N/A date append N/A N/A d N/A 0 N/A str N/A N/A PETRreader dstr_to_ordate N/A d N/A 1 N/A N/A N/A N/A date append N/A str N/A N/A PETRreader dstr_to_ordate d N/A curdate N/A self date N/A N/A date N/A N/A code N/A j N/A 0 N/A N/A N/A N/A len date 1 N/A N/A N/A N/A N/A date N/A 0 N/A 0 < N/A N/A N/A curdate N/A int N/A N/A date N/A 0 N/A 1 N/A N/A code N/A j N/A 0 N/A N/A N/A curdate N/A int N/A N/A date N/A 0 N/A 1 N/A N/A code N/A j N/A 0 N/A N/A N/A curdate N/A int N/A date N/A 1 N/A N/A N/A curdate N/A int N/A date N/A 0 N/A N/A code N/A j N/A 0 N/A code N/A N/A code N/A N/A N/A Exception N/A e N/A N/A code N/A code N/A get_meaning N/A N/A self N/A N/A recurse N/A N/A path words length so_far N/A N/A N/A N/A words N/A N/A words N/A 0 path N/A N/A match N/A recurse N/A path N/A N/A words N/A 0 N/A words N/A 1 N/A length 1 N/A N/A so_far N/A words N/A 0 N/A match N/A N/A match N/A N/A # path N/A N/A N/A isinstance N/A path N/A # list N/A N/A code N/A N/A self check_date N/A path N/A # N/A N/A N/A code None N/A N/A print('NPgm-rec-1:',code)  # --
                        print('NPgm-rec-1.1:',path['#'][-1]) N/A N/A N/A code so_far length N/A N/A N/A path N/A # N/A -1 N/A N/A N/A N/A N/A path N/A # so_far length N/A False N/A N/A text_children N/A N/A PPcodes N/A N/A VPcodes N/A N/A NPcodes N/A N/A codes N/A N/A roots N/A N/A matched_txt N/A N/A child N/A self children N/A N/A N/A isinstance child NounPhrase N/A N/A value N/A N/A child get_text N/A text_children N/A N/A N/A value N/A 0 split N/A NPcodes N/A value N/A 1 N/A N/A N/A N/A N/A child label N/A 2 N/A JJ DT NN N/A N/A text_children N/A N/A N/A N/A child get_text split N/A N/A N/A N/A child label PP N/A N/A m N/A N/A self resolve_codes N/A N/A child get_meaning N/A N/A m N/A 0 N/A N/A PPcodes N/A N/A child get_meaning N/A N/A text_children N/A N/A N/A N/A child get_text split N/A N/A N/A N/A child label VP N/A N/A m N/A N/A child get_meaning N/A N/A m N/A isinstance N/A N/A m N/A 0 N/A 1 basestring N/A N/A m N/A N/A self resolve_codes N/A N/A m N/A 0 N/A 1 N/A N/A m N/A 0 N/A N/A VPcodes N/A N/A child get_theme N/A N/A N/A N/A N/A N/A child label PRP N/A N/A not_found True N/A level N/A self parent N/A reflexive N/A N/A N/A N/A child text endswith SELF N/A N/A N/A child text endswith SELVES N/A local True N/A N/A not_found N/A level parent N/A N/A N/A N/A N/A N/A level label startswith NP reflexive N/A N/A N/A N/A local N/A N/A level label N/A S SBAR N/A N/A local False N/A level N/A level parent N/A N/A N/A N/A local N/A reflexive local N/A N/A child N/A N/A level parent children N/A N/A N/A isinstance child NounPhrase N/A N/A N/A N/A N/A N/A child get_meaning ~ N/A N/A not_found False N/A codes N/A N/A child get_meaning N/A N/A level N/A level parent N/A index 0 N/A N/A index N/A len text_children N/A N/A match N/A recurse N/A PETRglobals ActorDict N/A text_children N/A index 0 N/A match N/A N/A codes N/A match N/A 0 N/A roots N/A match N/A 3 N/A index N/A match N/A 2 N/A matched_txt N/A N/A match N/A 1 N/A N/A match N/A recurse N/A PETRglobals AgentDict N/A text_children N/A index 0 N/A match N/A N/A codes N/A match N/A 0 N/A roots N/A N/A ~ N/A index N/A match N/A 2 N/A matched_txt N/A N/A match N/A 1 N/A print('NPgm-2:',matched_txt) # --
                print('NPgm-2.1:',roots) N/A N/A index 1 N/A print('NPgm-m-lev:',len(getouterframes(currentframe(1))))   # --            
        print('NPgm-m-codes:',codes)
        print('NPgm-m-roots:',roots) N/A N/A actorcodes agentcodes N/A N/A self resolve_codes codes N/A N/A PPactor PPagent N/A N/A self resolve_codes PPcodes N/A N/A NPactor NPagent N/A N/A self resolve_codes NPcodes N/A N/A VPactor VPagent N/A N/A self resolve_codes VPcodes N/A N/A actorcodes N/A N/A actorcodes NPactor N/A N/A actorcodes N/A N/A actorcodes PPactor N/A N/A actorcodes N/A N/A actorcodes VPactor N/A N/A agentcodes N/A N/A agentcodes NPagent N/A N/A agentcodes N/A N/A agentcodes PPagent N/A N/A agentcodes N/A N/A agentcodes VPagent N/A if len(actorcodes) > 0:
            print('NPgm-m-actorcodes:',actorcodes)
            print('NPgm-m-roots     :',roots) N/A N/A self meaning N/A N/A self mix_codes agentcodes actorcodes N/A N/A self get_meaning N/A self return_meaning N/A print('NPgm-3:',self.meaning)
        print('NPgm-4:',matched_txt) N/A matched_txt N/A N/A N/A N/A N/A self sentence metadata N/A nouns N/A N/A matched_txt N/A self meaning N/A roots N/A N/A len matched_txt N/A N/A self meaning N/A convert_existential N/A N/A self N/A N/A N/A parent N/A self parent N/A sister N/A N/A parent children N/A 1 N/A neice N/A N/A sister children N/A 1 N/A subject N/A N/A neice children N/A 0 N/A predicate N/A N/A neice children N/A 1 N/A N/A N/A parent children N/A 0 subject N/A N/A subject parent parent N/A N/A N/A sister children N/A 1 predicate N/A N/A predicate parent sister N/A N/A self parent None N/A subject N/A N/A PrepPhrase N/A Phrase N/A __init__ N/A N/A self label date sentence N/A N/A N/A N/A N/A Phrase __init__ self label date sentence N/A N/A self meaning N/A N/A self prep N/A N/A self head N/A get_meaning N/A N/A self N/A N/A N/A 
        Return the meaning of the non-preposition constituent, and store the
        preposition.
        
        Note: pas 16.04.22
        Add this len() > 0 check to get around a very rare (about 0.001% of LN sentences) cases where a (PP (PRP structure
        caused an infinite recursion between NounPhrase.get_meaning() and PrepPhrase.get_meaning() in circumstances where
        self.children[1].get_text() gave an empty string. This solves the problem but I'm not completely confident this is 
        the right place to trap it: in the process of debugging I noticed that there were cases where this recursion 
        seemed to go a lot deeper than necessary, continuing with the same string, on some non-empty strings, though it 
        did not crash.  
         N/A N/A self prep N/A N/A N/A self children N/A 0 text N/A N/A N/A N/A len N/A self children 1 N/A N/A N/A N/A self children N/A 1 color N/A N/A N/A N/A isinstance N/A N/A self children N/A 1 NounPhrase N/A N/A len N/A N/A N/A N/A N/A self children N/A 1 get_text N/A 0 0 N/A N/A N/A self meaning N/A N/A N/A N/A self children N/A 1 get_meaning N/A N/A N/A self meaning N/A N/A self head N/A N/A N/A N/A N/A self children N/A 1 get_head N/A 0 N/A N/A self meaning N/A get_prep N/A N/A self N/A N/A N/A N/A N/A N/A self children N/A 0 text N/A N/A VerbPhrase N/A Phrase N/A N/A 
    Subclass specific to Verb Phrases
    
    Methods
    -------
    __init__: Initialization and Instatiation
    
    is_valid: Corrects a known stanford error regarding miscoded noun phrases
    
    get_theme: Returns the coded target of the VP
    
    get_meaning: Returns event coding described by the verb phrase
    
    get_lower: Finds meanings of children
    
    get_upper: Finds grammatical subject
    
    get_code: Finds base verb code and calls match_pattern
    
    match_pattern: Matches the tree to a pattern in the Verb Dictionary
    
    get_S: Finds the closest S-level phrase above the verb
    
    match_transform: Matches an event code against transformation patterns in the dictionary
    
     __init__ N/A N/A self label date sentence N/A N/A N/A N/A N/A Phrase __init__ self label date sentence N/A N/A self meaning N/A N/A self upper N/A N/A self lower N/A N/A self passive False N/A N/A self code 0 N/A N/A self valid N/A N/A self is_valid N/A N/A self S None N/A is_valid N/A N/A self N/A N/A N/A 
        This method is largely to overcome frequently made Stanford errors, where phrases like "exiled dissidents" were
        marked as verb phrases, and treating them as such would yield weird parses.
        
        Once such a phrase is identified because of its weird distribution, it is converted to 
        a NounPhrase object
        
         N/A N/A N/A N/A N/A N/A N/A self children N/A 0 label VBN N/A N/A helping N/A HAVE HAD HAVING HAS N/A N/A N/A N/A N/A N/A N/A N/A N/A self parent get_head N/A 0 helping N/A N/A N/A N/A N/A self parent children N/A 0 text helping N/A N/A len N/A filter N/A N/A N/A a N/A N/A isinstance a VerbPhrase N/A N/A self parent children 1 N/A N/A N/A self check_passive N/A N/A N/A self valid False N/A np_replacement N/A NounPhrase NP N/A self date N/A self sentence N/A N/A np_replacement children N/A self children N/A N/A np_replacement parent N/A self parent N/A N/A np_replacement index N/A self index N/A N/A N/A N/A N/A self parent children remove self N/A N/A N/A N/A N/A self parent children insert N/A self index np_replacement N/A self N/A self np_replacement N/A False N/A N/A self valid True N/A N/A N/A IndexError N/A e N/A N/A N/A self valid True N/A True N/A get_theme N/A N/A self N/A N/A N/A 
        This is used by the NounPhrase.get_meaning() method to determine relevant
        information in the VerbPhrase.
         N/A m N/A N/A self get_meaning N/A N/A isinstance N/A m N/A 0 basestring N/A N/A N/A N/A m N/A 0 N/A N/A N/A N/A m N/A 0 N/A 1 passive N/A N/A N/A N/A m N/A 0 N/A 0 N/A N/A N/A N/A m N/A 0 N/A 1 N/A return_meaning N/A N/A self N/A N/A N/A N/A self meaning N/A get_meaning N/A N/A self N/A N/A N/A 
        This determines the event coding of the subtree rooted in this verb phrase.
        
        Four methods are key in this process: get_upper(), get_lower(), get_code() 
        and match_transform().
        
        First, get_meaning() gets the verb code from get_code()
        
        Then, it checks passivity. If the verb is passive, then it looks within 
        verb phrases headed by [by, from, in] for the source, and for an explicit target
        in verb phrases headed by [at,against,into,towards]. If no target is found,
        this space is filled with 'passive', a flag used later to assign a target
        if it is in the grammatical subject position. 
        
        If the verb is not passive, then the process goes:
        
        1) call get_upper() and get_lower() to check for a grammatical subject 
        and find the coding of the subtree and children, respectively.
        
        2) If get_lower returned a list of events, combine those events with
        the upper and code, add to event list.
        
        3) Otherwise, combine upper, lower, and code  and add to event list
        
        4) Check to see if there are S-level children, if so, combine with
        upper and code, add to list. 
        
        5) call match_transform() on all events in the list
        
        
        Parameters
        ----------
        self: VerbPhrase object that called the method
       
        Returns
        -------
        events: list
                List of events coded by the subtree rooted in this phrase.
        
         N/A time1 N/A N/A time time N/A N/A self get_meaning N/A self return_meaning N/A N/A c passive meta N/A N/A self get_code N/A s_options N/A filter N/A N/A N/A a N/A N/A N/A a label SBAR N/A self children resolve_events N/A N/A event N/A N/A N/A 
            Helper method to combine events, accounting for 
            missing sources, and  targets, passives, multiple-
            target passives, and codeless verbs.
            
            Parameters
            ----------
            event: tuple
                   (source, target, code) of lower event
            
            Returns
            -------
            returns: [tuple]
                     list of resolved event tuples
             N/A returns N/A N/A N/A first second third N/A up N/A N/A N/A up c N/A N/A N/A event N/A N/A N/A isinstance event tuple N/A N/A second event N/A third c N/A passive N/A N/A item first N/A N/A e2 N/A N/A second item passive N/A N/A N/A N/A self sentence metadata N/A N/A id e2 N/A event meta 7 N/A N/A N/A returns append e2 N/A N/A N/A N/A event N/A 1 passive N/A N/A first N/A event N/A 0 N/A third N/A N/A utilities combine_code c N/A event N/A 2 N/A up N/A N/A returns N/A N/A source up N/A N/A e N/A first source third N/A N/A N/A N/A self sentence metadata N/A N/A id e N/A event up 1 N/A N/A N/A returns append e N/A returns N/A second passive N/A N/A N/A N/A N/A event N/A 0 N/A N/A N/A N/A ~ N/A ~~ N/A N/A second event N/A third c N/A N/A second N/A event N/A 1 N/A third N/A N/A utilities combine_code c N/A event N/A 2 N/A e N/A first second third N/A N/A N/A N/A self sentence metadata N/A N/A id e N/A event c meta 2 N/A N/A returns N/A e N/A N/A events N/A N/A up N/A N/A self get_upper N/A N/A N/A N/A self check_passive N/A passive N/A c N/A N/A source_options N/A N/A target_options up N/A child N/A self children N/A N/A N/A isinstance child PrepPhrase N/A N/A N/A N/A N/A child get_prep N/A BY FROM IN N/A N/A source_options N/A N/A child get_meaning N/A N/A N/A meta append N/A N/A child prep N/A N/A child get_meaning N/A N/A N/A N/A N/A child get_prep N/A AT AGAINST INTO TOWARDS N/A N/A target_options N/A N/A child get_meaning N/A N/A N/A meta append N/A N/A child prep N/A N/A child get_meaning N/A N/A target_options N/A N/A target_options N/A passive N/A N/A source_options c N/A N/A i target_options N/A N/A e N/A source_options i N/A N/A N/A self check_passive c passive N/A N/A N/A events append e N/A N/A N/A N/A self sentence metadata N/A N/A id e N/A None e meta 3 N/A N/A self meaning events N/A events N/A up N/A N/A up N/A N/A N/A N/A ~ N/A ~~ up N/A N/A low neg N/A N/A self get_lower N/A N/A low N/A N/A low N/A neg N/A N/A c 0 N/A N/A isinstance low list N/A N/A event low N/A N/A events N/A resolve_events event N/A N/A N/A s_options N/A N/A N/A up c N/A N/A e N/A up low c N/A N/A N/A N/A self sentence metadata N/A N/A id e N/A None e 4 N/A N/A N/A events append e N/A N/A low N/A N/A N/A N/A events append low N/A lower N/A map N/A N/A N/A a N/A N/A N/A a get_meaning s_options N/A sents N/A N/A item lower N/A N/A sents item N/A N/A sents N/A events N/A N/A event sents N/A N/A N/A N/A isinstance event tuple N/A N/A event N/A 1 N/A event N/A 2 N/A N/A ev N/A resolve_events event N/A N/A N/A isinstance N/A ev N/A 1 list N/A N/A item N/A ev N/A 1 N/A N/A local N/A N/A ev N/A 0 item N/A ev N/A 2 N/A N/A N/A N/A self sentence metadata N/A N/A id local N/A ev item 5 N/A N/A N/A events append local N/A N/A events N/A resolve_events event N/A maps N/A N/A i events N/A N/A evs N/A N/A self match_transform i N/A N/A isinstance evs tuple N/A N/A j N/A evs N/A 0 N/A N/A N/A N/A maps append j N/A N/A N/A N/A self sentence metadata N/A N/A id j N/A i N/A evs N/A 1 6 N/A N/A maps evs N/A N/A self meaning maps N/A maps N/A return_upper N/A N/A self N/A N/A N/A N/A self upper N/A return_passive N/A N/A self N/A N/A N/A N/A self passive N/A check_passive N/A N/A self N/A N/A N/A 
        Check if the verb is passive under these conditions:
            1) Verb is -ed form, which is notated by stanford as VBD or VBN
            2) Verb has a form of "be" as its next highest verb 
            
        Parameters
        ----------
        self: VerbPhrase object calling the method
        
        Returns
        -------
        self.passive: boolean
                      Whether or not it is passive
         N/A N/A self check_passive N/A self return_passive N/A True N/A N/A N/A N/A N/A N/A self children N/A 0 label N/A VBD VBN N/A N/A level N/A self parent N/A N/A N/A level label NP N/A N/A N/A self passive True N/A True N/A i N/A range 2 N/A N/A N/A level N/A isinstance level VerbPhrase N/A N/A N/A N/A N/A N/A level children N/A 0 text N/A AM IS ARE WAS WERE BE BEEN BEING N/A N/A N/A self passive True N/A True N/A level N/A level parent N/A N/A level N/A N/A N/A N/A N/A print Error in passive check N/A N/A self passive False N/A False N/A return_S N/A N/A self N/A N/A N/A N/A self S N/A get_S N/A N/A self N/A N/A N/A 
        Navigate up the tree following a VP path to find the closest s-level phrase. 
        There is the extra condition that if the S-level phrase is a "TO"-phrase 
        without a second subject specified, just so that "A wants to help B" will
        navigate all the way up to "A wants" rather than stopping at "to"
        
        Parameters
        -----------
        self: VerbPhrase object that called the method
        
        Returns
        -------
        level: VerbPhrase object
               Lowest non-TO S-level phrase object above the verb
         N/A N/A self get_S N/A self return_S N/A not_found True N/A level self N/A N/A not_found N/A N/A N/A level parent None N/A N/A N/A isinstance N/A level parent VerbPhrase N/A N/A level N/A level parent N/A N/A N/A N/A N/A level parent label S N/A N/A N/A N/A N/A N/A N/A level children N/A 0 label TO N/A N/A level index 0 N/A N/A level N/A level parent N/A N/A N/A self S N/A level parent N/A N/A level parent N/A N/A level N/A None N/A get_upper N/A N/A self N/A N/A N/A 
        Finds the meaning of the specifier (NP sibling) of the VP. 
        
        Parameters
        -----------
        self: VerbPhrase object that called the method
        
        Returns
        -------
        self.upper: List 
                    Actor codes of spec-VP
         N/A N/A self get_upper N/A self return_upper N/A child N/A N/A self parent children N/A N/A N/A N/A isinstance child NounPhrase N/A N/A N/A N/A child get_meaning N/A ~ N/A N/A N/A self upper N/A N/A child get_meaning N/A N/A self upper N/A N/A N/A return_lower N/A N/A self N/A N/A N/A N/A self lower N/A get_lower N/A N/A self N/A N/A N/A 
        Find the meaning of the children of the VP, and whether or not there is a "not" in the VP.
        
        If the VP has VP children, look only at these.
        
        Otherwise, this function pretty much is identical to the NounPhrase.get_meaning() 
        method, except that it doesn't look at word-level children, because it shouldn't
        have any. 
        
        Parameters
        -----------
        self: VerbPhrase object that called the method
        
        Returns
        -------
        self.lower: list
                    Actor codes or Event codes, depending on situation
        
        negated: boolean
                 Whether a "not" is present
        
         N/A N/A self get_lower N/A self return_lower N/A lower N/A N/A v_options N/A filter N/A N/A N/A a N/A N/A N/A isinstance a VerbPhrase N/A N/A a is_valid N/A self children N/A lower N/A map N/A N/A N/A a N/A N/A N/A a get_meaning v_options N/A events N/A N/A N/A N/A len N/A self children 1 N/A N/A negated N/A N/A lower N/A N/A N/A self children N/A 1 text NOT N/A N/A negated False N/A item lower N/A N/A negated N/A N/A adjusted N/A N/A event item N/A N/A N/A isinstance event tuple N/A N/A N/A N/A adjusted append N/A N/A event N/A 0 N/A event N/A 1 N/A N/A event N/A 2 65535 N/A N/A N/A N/A adjusted append event N/A item adjusted N/A events item N/A events N/A N/A N/A self lower events N/A N/A events negated N/A NPcodes N/A N/A PPcodes N/A N/A VPcodes N/A N/A child N/A self children N/A N/A N/A isinstance child NounPhrase N/A N/A NPcodes N/A N/A child get_meaning N/A N/A N/A isinstance child PrepPhrase N/A N/A PPcodes N/A N/A child get_meaning N/A N/A N/A False N/A N/A child label SBAR N/A N/A ch N/A N/A N/A child label SBAR N/A N/A N/A child children N/A -1 children N/A child children N/A N/A N/A isinstance ch NounPhrase N/A N/A Scodes N/A N/A ch get_meaning N/A N/A N/A isinstance ch PrepPhrase N/A N/A Scodes N/A N/A ch get_meaning N/A N/A N/A isinstance ch VerbPhrase N/A N/A Scodes N/A N/A N/A ch get_meaning N/A 1 N/A N/A actorcodes agentcodes N/A N/A N/A N/A N/A NPactor NPagent N/A N/A self resolve_codes NPcodes N/A N/A PPactor PPagent N/A N/A self resolve_codes PPcodes N/A N/A VPactor VPagent N/A N/A self resolve_codes VPcodes N/A actorcodes NPactor N/A N/A actorcodes N/A N/A actorcodes PPactor N/A N/A actorcodes N/A N/A actorcodes VPactor N/A agentcodes NPagent N/A N/A agentcodes N/A N/A agentcodes PPagent N/A N/A agentcodes N/A N/A agentcodes VPagent N/A N/A self lower N/A N/A self mix_codes agentcodes actorcodes N/A N/A N/A self lower negated N/A return_code N/A N/A self N/A N/A N/A N/A self code N/A get_code N/A N/A self N/A N/A N/A 
        Match the codes from the Verb Dictionary.
        
        Step 1.  Check for compound verb matches
        
        Step 2.  Check for pattern matches via match_pattern() method
        
        
        Parameters
        -----------
        self: VerbPhrase object that called the method
        
        Returns
        -------
        code:   int
                Code described by this verb, best read in hex
         N/A N/A self get_code N/A self return_code N/A meta N/A N/A dict N/A N/A PETRglobals VerbDict N/A verbs N/A N/A AND N/A map N/A N/A N/A a N/A N/A a text N/A self children N/A N/A N/A 0 0 N/A and N/A patterns N/A N/A PETRglobals VerbDict N/A phrases N/A verb N/A N/A N/A N/A N/A self children N/A 0 label TO TO N/A N/A N/A self get_head N/A 0 N/A N/A N/A meta append verb N/A meaning N/A path dict N/A passive False N/A N/A verb dict N/A N/A code 0 N/A path N/A dict N/A verb N/A N/A N/A # N/A N/A path keys N/A N/A path N/A path N/A # N/A N/A True N/A N/A N/A path keys N/A # N/A N/A N/A N/A code N/A N/A path N/A # N/A code N/A meaning N/A N/A path N/A # N/A meaning N/A N/A self verbclass N/A N/A N/A meaning meaning verb N/A N/A N/A code N/A N/A N/A active passive N/A N/A utilities convert_code code N/A N/A self code active N/A N/A N/A N/A N/A self code N/A 0 0 N/A N/A N/A child N/A self children N/A N/A N/A N/A child label N/A PRT ADVP N/A N/A N/A N/A N/A N/A child children N/A 0 text path N/A N/A N/A N/A meta append N/A N/A N/A child children N/A 0 text N/A path N/A path N/A N/A N/A N/A child children N/A 0 text N/A N/A # path N/A N/A N/A N/A code N/A N/A N/A path N/A # N/A # N/A code N/A meaning N/A N/A N/A path N/A # N/A # N/A meaning N/A N/A self verbclass N/A N/A N/A meaning meaning verb N/A N/A N/A code N/A N/A N/A active passive N/A N/A utilities convert_code code N/A N/A self code active N/A N/A N/A N/A N/A match N/A N/A self match_pattern N/A match N/A N/A N/A N/A meta append N/A match N/A line N/A N/A active passive N/A N/A utilities convert_code N/A match N/A code N/A N/A self code active N/A N/A passive N/A active N/A N/A N/A self check_passive N/A N/A N/A N/A True N/A N/A self code passive N/A N/A N/A self code passive meta N/A match_transform N/A N/A self e N/A N/A N/A 
        Check to see if the event e follows one of the verb transformation patterns
        specified at the bottom of the Verb Dictionary file.
        
        If the transformation is present, adjust the event accordingly. 
        If no transformation is present, check if the event is of the form:
        
                    a ( b . Q ) P , where Q is not a top-level verb. 
           
            and then convert this to ( a b P+Q )
        
        Otherwise, return the event as-is.
        
        Parameters
        -----------
        e: tuple
           Event to be transformed
        
        Returns
        -------
        t: list of tuples
           List of modified events, since multiple events can come from one single event
         recurse N/A N/A pdict event a2v v2a N/A N/A N/A N/A N/A path pdict N/A N/A isinstance pdict list N/A N/A line N/A pdict N/A 1 N/A path N/A pdict N/A 0 N/A verb N/A N/A N/A N/A path N/A 2 Q N/A N/A N/A utilities convert_code N/A path N/A 2 N/A 0 N/A v2a N/A Q N/A N/A isinstance N/A v2a N/A N/A path N/A 1 tuple N/A N/A results N/A N/A item N/A v2a N/A N/A path N/A 1 N/A N/A N/A N/A results append N/A N/A list N/A v2a N/A N/A path N/A 0 item verb N/A N/A results line N/A N/A N/A N/A N/A list N/A v2a N/A N/A path N/A 0 N/A v2a N/A N/A path N/A 1 verb line N/A N/A isinstance event tuple N/A N/A actor N/A N/A N/A event N/A 0 None N/A tuple N/A event N/A 0 N/A masks N/A filter N/A N/A N/A a N/A N/A a pdict N/A N/A event N/A 2 N/A N/A event N/A 2 N/A N/A event N/A 2 16 N/A N/A event N/A 2 N/A N/A event N/A 2 256 N/A N/A event N/A 2 N/A N/A event N/A 2 4096 N/A masks N/A N/A path N/A pdict N/A N/A masks N/A 0 N/A N/A N/A -1 pdict N/A N/A N/A v2a N/A Q N/A event N/A 2 N/A path N/A pdict N/A -1 N/A N/A False N/A N/A actor event N/A N/A actor a2v N/A N/A actor N/A a2v N/A actor N/A N/A actor N/A N/A actor _ N/A N/A actor path N/A N/A N/A recurse N/A path N/A actor N/A event N/A 1 a2v v2a N/A N/A N/A N/A actor _ N/A N/A var N/A N/A sorted N/A N/A path keys N/A -1 N/A N/A N/A var v2a N/A N/A N/A N/A N/A var . N/A N/A N/A v2a N/A var actor N/A N/A a2v N/A actor var N/A N/A recurse N/A path N/A var N/A event N/A 1 a2v v2a N/A False N/A N/A N/A N/A t N/A recurse N/A N/A PETRglobals VerbDict N/A transformations e N/A t N/A N/A t N/A N/A N/A N/A e N/A 0 N/A e N/A 2 N/A isinstance N/A e N/A 1 tuple N/A N/A e N/A 1 N/A 0 N/A N/A N/A N/A e N/A 1 N/A 2 N/A 16 3 N/A N/A N/A isinstance N/A N/A e N/A 1 N/A 0 list N/A N/A results N/A N/A item N/A N/A e N/A 1 N/A 0 N/A N/A event N/A N/A e N/A 0 item N/A N/A utilities combine_code N/A N/A e N/A 1 N/A 2 N/A e N/A 2 N/A N/A N/A results append event N/A results N/A event N/A N/A e N/A 0 N/A N/A e N/A 1 N/A 0 N/A N/A utilities combine_code N/A e N/A 2 N/A N/A e N/A 1 N/A 2 N/A N/A event N/A N/A N/A Exception N/A ex N/A N/A N/A N/A e N/A match_pattern N/A N/A self N/A N/A N/A  
        Match the tree against patterns specified in the dictionary. For a more illustrated explanation
        of how this process works, see the Petrarch2.pdf file in the documentation. 
        
        
        Parameters
        -----------
        self: VerbPhrase object that called the method
        
        Returns
        -------
        False if no match, dict of match if present.
        
         N/A meaning N/A self verbclass N/A code N/A self code match_phrase N/A N/A path phrase N/A N/A N/A N/A phrase N/A N/A False N/A item N/A filter N/A N/A N/A b N/A N/A N/A b text path N/A phrase children N/A N/A subpath N/A path N/A N/A item text N/A match N/A reroute subpath N/A N/A N/A a N/A N/A match_phrase a N/A item head_phrase N/A match N/A N/A N/A item color True N/A match N/A N/A reroute path N/A N/A N/A a N/A N/A match_phrase a N/A phrase head_phrase N/A match_noun N/A N/A path phrase preplimit N/A N/A N/A N/A N/A self check_passive self N/A N/A self get_S 0 N/A N/A noun_phrases N/A N/A N/A phrase N/A N/A False N/A preplimit N/A N/A sib N/A phrase children N/A N/A N/A N/A isinstance sib PrepPhrase N/A N/A len N/A sib children 1 N/A N/A N/A sib get_prep N/A BY FROM N/A N/A N/A N/A noun_phrases append N/A N/A sib children N/A 1 N/A N/A child N/A phrase children N/A N/A N/A N/A child label N/A NP ADVP N/A N/A N/A N/A noun_phrases append child N/A N/A isinstance phrase NounPhrase N/A N/A N/A N/A noun_phrases append phrase N/A item noun_phrases N/A N/A N/A head headphrase N/A N/A item get_head N/A N/A head N/A head path N/A N/A subpath N/A path N/A head N/A skip N/A N/A N/A a N/A False N/A match N/A reroute subpath skip skip N/A N/A N/A a N/A N/A match_prep a item skip 0 N/A match N/A N/A N/A N/A N/A headphrase children N/A -1 color True N/A match N/A match N/A reroute subpath N/A N/A isinstance item NounPhrase N/A N/A N/A a N/A N/A match_phrase a N/A item head_phrase None N/A match N/A N/A N/A N/A N/A headphrase children N/A -1 color True N/A match N/A N/A ^ path N/A N/A N/A phrase color True N/A N/A reroute N/A path N/A ^ N/A N/A N/A a N/A N/A match_phrase a N/A phrase head_phrase N/A N/A reroute path N/A N/A N/A a N/A N/A match_phrase a N/A phrase head_phrase N/A match_prep N/A N/A path phrase N/A self N/A N/A item N/A filter N/A N/A N/A b N/A N/A isinstance b PrepPhrase N/A phrase children N/A N/A prep N/A N/A N/A item children N/A 0 text N/A N/A prep path N/A N/A subpath N/A path N/A prep N/A match N/A reroute subpath N/A N/A N/A a N/A N/A N/A N/A len N/A item children 1 N/A match_noun a N/A N/A item children N/A 1 False match_prep N/A match N/A N/A match N/A N/A reroute path o2 match_prep N/A reroute N/A N/A subpath o1 o2 o3 o4 exit N/A match_noun match_noun match_prep match_noun 1 N/A N/A N/A o1 N/A N/A False N/A N/A - subpath N/A N/A match N/A o1 N/A subpath N/A - N/A match N/A N/A match N/A N/A , subpath N/A N/A match N/A o2 N/A subpath N/A , N/A match N/A N/A match N/A N/A | subpath N/A N/A match N/A o3 N/A subpath N/A | N/A match N/A N/A match N/A N/A * subpath N/A N/A match N/A o4 N/A subpath N/A * N/A match N/A N/A match N/A N/A N/A # subpath exit N/A N/A N/A subpath N/A # N/A False N/A N/A N/A meaning N/A N/A PETRglobals VerbDict N/A phrases N/A N/A path N/A N/A N/A PETRglobals VerbDict N/A phrases N/A meaning N/A N/A N/A self check_passive N/A N/A N/A match_noun path self 1 N/A N/A N/A match_noun path N/A N/A self get_S N/A False N/A N/A Sentence N/A N/A N/A 
    Holds the information of a sentence and its tree.
    
    Methods
    -------
    
    __init__ : Initialization and instantiation
    
    str_to_tree: Reads CoreNLP parse into memory
    
    get_events: Extracts events from sentence tree
    
    print_tree: Prints tree to a LaTeX file
    
    
    
    
    Metadata
    --------
    
    The sentence will return with a "metadata" dict. This has two parts.
    
        - sent.metadata['nouns'] will be a list of pairs of the form
                
                    ( [Words that were coded], [Codes produced])
                
                Each list in the tuple usually only has one element, but sometimes multiple can occur
                
        - The other elements of sent.metadata have the key as the event, and
                the value as a list of lists. Each element of the value list contains
                some information about verbs that combined to form that event. The first
                element usually contains the primary verb and pattern that was matched on, and the latter
                elements are helping verbs that were combined with it.
        
        
        For example, the metadata for the sentence 
            
                 BOKO HARAM HAS LAUNCHED MANY SIMILAR ATTACKS DURING ITS SIX-YEAR CAMPAIGN FOR A STRICT ISLAMIC STATE IN NORTHEASTERN NIGERIA .
                 
                 
        Looks like:
        
         {
            (u'NGAREB', u'NGAMUS', u'190'): [[u'LAUNCHED', '- * ATTACKS [190]'],
                                             [u'HAS']],
            
            u'nouns':                        [([u'BOKO HARAM'], [u'NGAREB']),
                                              ([u'NIGERIA'], [u'NGA']),
                                              ([u'ISLAMIC'], [u'NGAMUS'])]}
         }
    
    
     __init__ N/A N/A self parse text date N/A N/A N/A N/A self treestr N/A N/A parse replace )  ) N/A N/A self parse parse N/A N/A self agent N/A N/A self ID -1 N/A N/A self actor N/A N/A self date date N/A N/A self longlat N/A -1 -1 N/A N/A self verbs N/A N/A N/A self txt N/A N/A self tree N/A N/A self str_to_tree N/A N/A parse strip N/A N/A self verb_analysis N/A N/A N/A self events N/A N/A N/A self metadata N/A nouns N/A N/A str_to_tree N/A N/A self str N/A N/A N/A 
        Take the Stanford CoreNLP parse and convert it to an object/pointer tree.
        
        Parameters
        -----------
        str: string 
             Pre-processed CoreNLP parse, needs to be formated by utilities.format_parsed_str
             before being passed.
        
        Returns
        -------
        root: Phrase object
              Top level of the tree that represents the sentence
         N/A segs N/A N/A str split N/A root N/A Phrase N/A N/A segs N/A 0 N/A 1 N/A self date self N/A level_stack N/A root N/A existentials N/A N/A element N/A segs N/A 1 N/A N/A N/A N/A element startswith ( N/A N/A lab N/A element N/A 1 N/A N/A lab NP N/A N/A new N/A NounPhrase lab N/A self date self N/A N/A N/A lab VP N/A N/A new N/A VerbPhrase lab N/A self date self N/A N/A N/A N/A self verbs append new N/A N/A N/A lab PP N/A N/A new N/A PrepPhrase lab N/A self date self N/A N/A new N/A Phrase lab N/A self date self N/A N/A lab EX N/A N/A N/A N/A existentials append new N/A N/A new parent N/A level_stack N/A -1 N/A N/A new index N/A len N/A N/A level_stack N/A -1 children N/A N/A N/A N/A N/A level_stack N/A -1 children append new N/A N/A N/A level_stack append new N/A N/A N/A N/A element endswith ) N/A N/A N/A N/A N/A N/A level_stack pop N/A N/A N/A N/A N/A N/A N/A N/A level_stack N/A -1 text element N/A N/A self txt N/A element N/A element existentials N/A N/A N/A N/A N/A N/A N/A element parent convert_existential N/A N/A N/A N/A N/A root N/A print_nouns N/A N/A self label N/A N/A N/A  Debugging print  N/A N/A print label N/A la N/A N/A self metadata N/A nouns N/A N/A N/A print la N/A get_metadata N/A N/A self entry N/A N/A N/A metadict N/A self metadata N/A next entry N/A store N/A meta_total N/A N/A N/A N/A id next metadict N/A N/A store N/A metadict N/A N/A id next N/A N/A N/A meta_total append store N/A next N/A store N/A 0 N/A N/A map N/A N/A N/A a N/A N/A N/A N/A len a 1 N/A a N/A -2 N/A a N/A 0 N/A meta_total N/A -1 N/A return_events N/A N/A self N/A N/A N/A N/A self events N/A get_events N/A N/A self require_dyad N/A 1 N/A N/A 
        Take the coding of the highest verb phrase and return that, given:
                1) Target and source are both present
                2) Code is non-zero
                3) Target isn't another event
                
        Parameters
        -----------
        self: Sentence object calling the method
        
        Returns
        -------
        valid: list
               List of coded events that satisfy the above conditions, of form
               (source, target, code) where the code has been converted from an int
               back into CAMEO
        
         N/A events N/A map N/A N/A N/A a N/A N/A N/A a get_meaning N/A filter N/A N/A N/A b N/A N/A N/A b label SVP N/A N/A self tree children N/A meta N/A nouns N/A N/A self metadata N/A nouns N/A print('GF1',events) # --  
# --        print('GF2',meta) # --  
        self.print_nouns('GF2') # --  N/A valid N/A N/A N/A N/A sent events N/A N/A event sent N/A N/A N/A N/A event N/A 1 passive N/A N/A event N/A N/A event N/A 0 None N/A event N/A 2 N/A N/A N/A isinstance event tuple N/A isinstance N/A event N/A 1 basestring N/A N/A code N/A N/A utilities convert_code N/A event N/A 2 0 N/A N/A print checking event event N/A hex N/A event N/A 2 N/A N/A N/A event N/A 0 N/A event N/A 1 code N/A N/A source N/A event N/A 0 N/A N/A N/A N/A valid append N/A N/A N/A source replace ~ --- N/A N/A N/A event N/A 1 replace ~ --- code N/A N/A meta N/A N/A N/A N/A source replace ~ --- N/A N/A N/A event N/A 1 replace ~ --- code N/A N/A self get_metadata event N/A N/A N/A N/A require_dyad N/A event N/A 0 code N/A N/A event N/A 1 N/A N/A source N/A event N/A 0 N/A N/A N/A N/A valid append N/A N/A N/A source replace ~ --- --- code N/A N/A N/A N/A require_dyad N/A event N/A 1 code N/A N/A event N/A 0 N/A N/A N/A N/A valid append N/A --- N/A N/A N/A event N/A 1 replace ~ --- code N/A N/A N/A N/A len N/A event N/A 0 1 N/A N/A event N/A 1 code N/A N/A code N/A 2 N/A 03 04 05 06 N/A N/A source N/A event N/A 0 N/A N/A target N/A event N/A 0 N/A N/A N/A N/A source target N/A N/A N/A N/A valid append N/A N/A N/A source replace ~ --- N/A N/A target replace ~ --- code N/A N/A self events N/A list N/A set valid N/A N/A self get_events N/A self return_events N/A N/A valid meta N/A N/A N/A Exception N/A e N/A N/A N/A print Error in parsing: e N/A N/A None None N/A N/A def print_to_file(self,root,file = ""):

        """Prints a LaTeX representation of the tree to a file, calls the recursive method
        print_tree() on the tree to print all of it
        """
        print("""   
                    \resizebox{\textwidth}{250pt}{%
                    \begin{tikzpicture}
                    \Tree""", file=file, end=" ")

        self.print_tree(root, "", file)
        print("\end{tikzpicture}}

", file=file)
        print("EVENTS: ",self.get_events(), file = file)
        print("\\
TEXT: ", self.txt, file=file)
        print("\newpage",file=file) print_to_file N/A N/A self root file N/A N/A N/A 
        Simplified version of the above for GF
         N/A N/A print EVENTS:  N/A N/A self get_events file file N/A txtstrg N/A N/A N/A N/A N/A self txt encode ascii ignore decode ascii N/A N/A print TEXT:  txtstrg file file N/A print_tree N/A N/A self root indent f N/A N/A N/A 
        This prints a LaTeX formatted document of the tree. Calls on each of the children as well.
         N/A N/A print N/A [. N/A N/A N/A root label replace $ N/A N/A N/A N/A root text N/A N/A {\bf  N/A root text } file f end N/A N/A N/A root label N/A NP N/A N/A m N/A N/A root get_meaning N/A k N/A i m N/A N/A k N/A + i N/A N/A print N/A N/A [.{ k } file f end N/A N/A N/A N/A root label N/A VP N/A N/A m N/A N/A root get_meaning N/A N/A print N/A N/A [.{\it  N/A N/A utilities code_to_string m } file f end N/A child N/A root children N/A N/A N/A N/A self print_tree child N/A indent f N/A N/A N/A root label N/A NP VP N/A N/A N/A print  ] ] file f end N/A N/A N/A print  ] file f end N/A N/A