Module Expr Str ImportFrom alias Import alias identifier Import alias ImportFrom alias ImportFrom alias alias alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Import alias identifier Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore 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 Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return ListLoad AttributeLoad NameLoad attr decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad BinOpDiv NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If CompareGt BinOpSub NameLoad NameLoad AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body AugAssignAdd SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad NameLoad AugAssignAdd SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num orelse Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad NameLoad Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index NameLoad Num orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad BinOpMult NameLoad AttributeLoad NameLoad attr orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Return TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Return Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return Assign NameStore Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Return If BoolOpAnd NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd NameLoad Num Assign NameStore BinOpSub BinOpDiv NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpSub Num NameLoad If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareIn NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad If CompareIn NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Return Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call 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 Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr TupleLoad NameLoad NameLoad If CompareGt NameLoad Num body AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num orelse AugAssignAdd SubscriptStore AttributeLoad NameLoad attr Index NameLoad Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad BinOpDiv Num AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr Num Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpAdd Call NameLoad BinOpDiv Num AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad For NameStore AttributeLoad NameLoad attr body If CompareIs NameLoad NameLoad body Continue Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad If BoolOpOr CompareEq NameLoad Num CompareEq NameLoad Num body Continue Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Num For TupleStore NameStore NameStore NameLoad body If CompareGt NameLoad Num body AugAssignAdd NameStore Num AugAssignSub NameStore Num orelse AugAssignAdd NameStore Num AugAssignSub NameStore Num Assign NameStore BinOpDiv Call NameLoad NameLoad Call NameLoad NameLoad If CompareEq BinOpAdd NameLoad NameLoad Num body Assign NameStore Num orelse Assign NameStore BinOpDiv Call NameLoad NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Assign NameStore BinOpDiv Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpDiv NameLoad AttributeLoad NameLoad attr AugAssignAdd SubscriptStore NameLoad Index NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Index NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad For NameStore Call NameLoad Call NameLoad BinOpSub NameLoad Num body If CompareEq SubscriptLoad NameLoad Index NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index BinOpAdd NameLoad Num orelse AugAssignDiv SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad For NameStore Call NameLoad Num NameLoad body If CompareEq SubscriptLoad NameLoad Index NameLoad Num body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index BinOpSub NameLoad Num orelse AugAssignDiv SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Return TryExcept body Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Str Return Assign NameStore Call AttributeLoad NameLoad attr Str If CompareNotIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return If CompareIn NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Str Return Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIn NameLoad AttributeLoad NameLoad attr NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list decorator_list Expr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If CompareIsNot NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index UnaryOpUSub BinOpAdd Num BinOpDiv NameLoad Num Assign NameStore SubscriptLoad NameLoad Index BinOpDiv NameLoad Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad BinOpDiv BinOpAdd NameLoad NameLoad Num BinOpDiv NameLoad Num Call NameLoad BinOpSub NameLoad NameLoad keyword NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad NameLoad If BoolOpAnd NameLoad CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad keyword Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Num Assign NameStore Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Str decorator_list decorator_list FunctionDef arguments args defaults body Global identifier Assign NameStore Str Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A 
Created on Tue Feb 11 09:09:06 2014
Build a report page to monitor different MONK services
@author: xm
 monk.roles.configuration get_config N/A monk.core.api monkapi N/A logging monk.network.broker KafkaBroker monk.network.server taskT Task MonkServer N/A sys N/A time collections deque tornado.web RequestHandler bokeh.resources INLINE bokeh.plotting figure file_html decode_utf8 N/A numpy np N/A logger N/A N/A logging getLogger monk.roles.monitor N/A DEFAULT_MONITOR_USER _monitor_ MonitorBroker N/A KafkaBroker N/A track N/A N/A self name value user N/A DEFAULT_MONITOR_USER N/A N/A N/A N/A self produce Track name user user value value time N/A N/A time time N/A aggregate N/A N/A self name value user N/A DEFAULT_MONITOR_USER N/A N/A N/A N/A self produce Aggregate name user user value value N/A measure N/A N/A self name value label user N/A 1 DEFAULT_MONITOR_USER N/A N/A N/A N/A self produce Measure name user user value value label label N/A reset_tracker N/A N/A self name N/A N/A N/A N/A N/A self produce ResetTracker name N/A reset_aggregator N/A N/A self name N/A N/A N/A N/A N/A self produce ResetAggregator name N/A reset_measurer N/A N/A self name N/A N/A N/A N/A N/A self produce ResetMeasurer name N/A rename_tracker N/A N/A self name newname N/A N/A N/A N/A N/A self produce RenameTracker name newname newname N/A rename_aggregator N/A N/A self name newname N/A N/A N/A N/A N/A self produce RenameAggregator name newname newname N/A rename_measurer N/A N/A self name newname N/A N/A N/A N/A N/A self produce RenameMeasurer name newname newname N/A annotate_tracker N/A N/A self name annotator N/A N/A N/A N/A N/A self produce AnnotateTracker name annotator annotator time N/A N/A time time N/A N/A MonkMonitor N/A MonkServer N/A init_brokers N/A N/A self config N/A N/A N/A N/A self trackers N/A N/A N/A self aggregators N/A N/A N/A self measurers N/A N/A N/A N/A monkapi initialize config N/A N/A self MAINTAIN_INTERVAL N/A config monitorMaintainInterval N/A N/A self POLL_INTERVAL N/A config monitorPollInterval N/A N/A self EXECUTE_INTERVAL N/A config monitorExecuteInterval N/A N/A self MAX_QUEUE_SIZE N/A config monitorMaxQueueSize N/A N/A self monitorBroker N/A MonitorBroker N/A config kafkaConnectionString N/A config monitorGroup N/A config monitorTopic N/A KafkaBroker SIMPLE_CONSUMER N/A N/A N/A self monitorBroker N/A N/A N/A monitor N/A MonkMonitor Tracker N/A object N/A __init__ N/A N/A self retireTime resolution N/A 7200 1 N/A N/A N/A self valuesTimed N/A dict N/A N/A self numTimed N/A dict N/A N/A self annotatorTimed N/A dict N/A N/A self queue N/A deque N/A N/A self resolution resolution N/A N/A self retiredTime N/A int N/A retireTime resolution N/A add N/A N/A self t value user N/A N/A N/A t N/A int N/A t N/A self resolution N/A firstTime N/A N/A self queue N/A 0 N/A N/A N/A t firstTime N/A self retiredTime N/A N/A N/A firstTime N/A self valuesTimed N/A N/A N/A N/A self valuesTimed N/A firstTime N/A N/A N/A self numTimed N/A firstTime N/A N/A N/A self annotatorTimed N/A firstTime N/A N/A N/A N/A self queue popleft N/A N/A N/A N/A self queue append t N/A N/A t N/A self valuesTimed N/A N/A N/A user N/A self valuesTimed N/A N/A N/A N/A N/A self valuesTimed N/A t N/A user value N/A N/A N/A N/A self numTimed N/A t N/A user 1.0 N/A N/A N/A N/A N/A self valuesTimed N/A t N/A user value N/A N/A N/A N/A self numTimed N/A t N/A user 1.0 N/A N/A N/A N/A self valuesTimed N/A t N/A user value N/A N/A N/A self numTimed N/A t N/A user 1.0 N/A annotate N/A N/A self t annotator N/A N/A N/A t N/A int N/A t N/A self resolution N/A N/A t N/A self annotatorTimed N/A N/A N/A N/A logger warning N/A N/A another annotator {} already at time {} format N/A N/A self annotatorTimed N/A t N/A t N/A self resolution N/A N/A N/A N/A self annotatorTimed N/A t annotator N/A clear N/A N/A self N/A N/A N/A N/A N/A N/A self queue clear N/A N/A N/A N/A self valuesTimed clear N/A N/A N/A N/A self numTimed clear N/A N/A Track N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid tracking name set N/A N/A N/A N/A value N/A float N/A N/A self get value N/A N/A N/A N/A N/A N/A self warning logger no valid value set N/A N/A N/A N/A t N/A float N/A N/A self get time N/A N/A N/A N/A N/A N/A self warning logger no valid time set N/A N/A user N/A N/A self get user N/A N/A key N/A monitor trackers N/A N/A N/A N/A monitor trackers N/A key N/A Tracker N/A tracker N/A N/A monitor trackers N/A key N/A N/A N/A tracker add t value user N/A N/A N/A N/A taskT Track ResetTracker N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid tracking name set N/A N/A N/A key N/A monitor trackers N/A N/A N/A N/A N/A N/A monitor trackers N/A key clear N/A N/A N/A N/A taskT ResetTracker RenameTracker N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid tracking name set N/A N/A newname N/A N/A self get newname N/A N/A N/A key N/A monitor trackers newname N/A N/A N/A N/A monitor trackers N/A newname N/A N/A monitor trackers N/A key N/A N/A N/A monitor trackers N/A key N/A N/A N/A N/A taskT RenameTracker AnnotateTracker N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid tracking name set N/A N/A annotator N/A N/A self get annotator N/A N/A N/A t N/A float N/A N/A self get time N/A N/A N/A N/A N/A N/A self warning logger no valid time set N/A N/A N/A annotator N/A key N/A monitor trackers N/A N/A tracker N/A N/A monitor trackers N/A key N/A N/A N/A tracker annotate t annotator N/A N/A N/A N/A taskT AnnotateTracker Aggregator N/A object N/A __init__ N/A N/A self resolution N/A 0.01 N/A N/A N/A self resolution resolution N/A N/A self hist N/A dict N/A N/A self num N/A dict N/A clear N/A N/A self N/A N/A N/A N/A N/A N/A self hist clear N/A N/A N/A N/A self num clear N/A add N/A N/A self value user N/A N/A N/A vL N/A int N/A value N/A self resolution N/A vH N/A vL 1 N/A wL N/A N/A value N/A self resolution vL N/A wH N/A 1.0 wL N/A N/A user N/A self hist N/A N/A hist N/A N/A self hist N/A user N/A N/A vL hist N/A N/A N/A hist N/A vL wL N/A N/A N/A hist N/A vL wL N/A N/A vH hist N/A N/A N/A hist N/A vH wH N/A N/A N/A hist N/A vH wH N/A N/A N/A self num N/A user 1.0 N/A N/A N/A N/A self hist N/A user N/A vL vH wL wH N/A N/A N/A self num N/A user 1.0 N/A N/A Aggregate N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid aggregator name set N/A N/A N/A N/A value N/A float N/A N/A self get value N/A N/A N/A N/A N/A N/A self warning logger no valid value set N/A N/A user N/A N/A self get user N/A N/A key N/A monitor aggregators N/A N/A N/A N/A monitor aggregators N/A key N/A Aggregator N/A aggregator N/A N/A monitor aggregators N/A key N/A N/A N/A aggregator add value user N/A N/A N/A N/A taskT Aggregate ResetAggregator N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid aggregator name set N/A N/A N/A key N/A monitor aggregators N/A N/A N/A N/A N/A N/A monitor aggregators N/A key clear N/A N/A N/A N/A taskT ResetAggregator RenameAggregator N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid aggregator name set N/A N/A newname N/A N/A self get newname N/A N/A N/A key N/A monitor aggregators newname N/A N/A N/A N/A monitor aggregators N/A newname N/A N/A monitor aggregators N/A key N/A N/A N/A monitor aggregators N/A key N/A N/A N/A N/A taskT RenameAggregator Measurer N/A object N/A __init__ N/A N/A self resolution N/A 0.01 N/A N/A N/A self resolution resolution N/A N/A self scores N/A dict N/A N/A self totalPos N/A dict N/A N/A self totalNeg N/A dict N/A N/A self PRCs None N/A N/A self ROCs None N/A N/A self invalid True N/A clear N/A N/A self N/A N/A N/A N/A N/A N/A self scores clear N/A N/A N/A N/A self totalPos clear N/A N/A N/A N/A self totalNeg clear N/A N/A self PRCs None N/A N/A self ROCs None N/A N/A self invalid True N/A add N/A N/A self value user label N/A N/A N/A N/A user N/A self scores N/A N/A N/A N/A self scores N/A user N/A N/A N/A N/A self totalNeg N/A user 0 N/A N/A N/A self totalPos N/A user 0 N/A N/A N/A N/A N/A self scores N/A user append N/A value label N/A N/A label 0 N/A N/A N/A N/A self totalPos N/A user 1 N/A N/A N/A N/A self totalNeg N/A user 1 N/A N/A self invalid True N/A intervals N/A N/A self N/A N/A N/A num N/A N/A int N/A 1.0 N/A self resolution 1 N/A N/A N/A np linspace 0.0 1.0 num N/A compute_metrics N/A N/A self N/A N/A N/A num N/A N/A int N/A 1.0 N/A self resolution 1 N/A N/A N/A logger debug N/A N/A num = {} format num N/A N/A self PRCs None N/A N/A self ROCs None N/A PRCn N/A N/A np zeros num dtype int N/A ROCn N/A N/A np zeros num dtype int N/A user N/A self scores N/A N/A N/A user DEFAULT_MONITOR_USER N/A N/A N/A tp N/A N/A self totalPos N/A user N/A tn 0 N/A fp N/A N/A self totalNeg N/A user N/A fn 0 N/A totalP tp N/A totalN fp N/A N/A N/A logger debug N/A N/A totalP={}, totalN={} format totalP totalN N/A N/A N/A totalP 0 N/A totalN 0 N/A N/A N/A score N/A N/A self scores N/A user N/A N/A N/A logger info N/A N/A scores for {} : {} format score user N/A N/A N/A score sort N/A N/A N/A logger info N/A N/A scores for {} : {} format score user N/A PRC N/A N/A np zeros num N/A ROC N/A N/A np zeros num N/A N/A N/A PRCn fill 0 N/A N/A N/A ROCn fill 0 N/A N/A s label score N/A N/A N/A label 0 N/A N/A fn 1 N/A tp 1 N/A N/A tn 1 N/A fp 1 N/A recall N/A N/A float tp N/A float totalP N/A N/A N/A tp fp 0 N/A N/A precision 1 N/A N/A precision N/A N/A float tp N/A float N/A tp fp N/A v N/A int N/A precision N/A self resolution N/A N/A PRC N/A v recall N/A N/A PRCn N/A v 1 N/A fpr N/A N/A float fp N/A float totalN N/A v N/A int N/A fpr N/A self resolution N/A N/A ROC N/A v recall N/A N/A ROCn N/A v 1 N/A N/A N/A logger info N/A N/A PRC {} format PRC N/A N/A N/A logger info N/A N/A PRCn {} format PRCn N/A N/A N/A logger info N/A N/A ROC {} format ROC N/A N/A N/A logger info N/A N/A ROCn {} format ROCn N/A v N/A reversed N/A range N/A num 1 N/A N/A N/A N/A PRCn N/A v 0 N/A N/A N/A PRC N/A v N/A PRC N/A N/A v 1 N/A N/A N/A PRC N/A v N/A PRCn N/A v N/A v N/A range 2 num N/A N/A N/A N/A ROCn N/A v 0 N/A N/A N/A ROC N/A v N/A ROC N/A N/A v 1 N/A N/A N/A ROC N/A v N/A ROCn N/A v N/A N/A N/A self ROCs None N/A N/A N/A self ROCs ROC N/A N/A N/A self ROCs N/A N/A np vstack N/A N/A self ROCs ROC N/A N/A N/A self PRCs None N/A N/A N/A self PRCs PRC N/A N/A N/A self PRCs N/A N/A np vstack N/A N/A self PRCs PRC N/A N/A N/A N/A self ROCs sort axis 0 N/A N/A N/A N/A self PRCs sort axis 0 N/A N/A N/A logger info N/A N/A ROCs {} format N/A self ROCs N/A N/A N/A logger info N/A N/A PRCs {} format N/A self PRCs N/A N/A self invalid False N/A set_resolution N/A N/A self resolution N/A N/A N/A N/A N/A N/A self resolution N/A float resolution N/A N/A self invalid True N/A N/A N/A N/A N/A N/A logger warning N/A N/A resolution can not be converted to a float {} format resolution N/A get_ROCs N/A N/A self N/A N/A N/A N/A self invalid N/A N/A N/A N/A self compute_metrics N/A N/A self ROCs N/A get_PRCs N/A N/A self N/A N/A N/A N/A self invalid N/A N/A N/A N/A self compute_metrics N/A N/A self PRCs N/A N/A Measure N/A Task N/A act N/A N/A self N/A N/A N/A N/A N/A logger info N/A N/A measure {} format N/A self decodedMessage N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid measurer name set N/A N/A N/A N/A value N/A float N/A N/A self get value N/A N/A N/A N/A N/A N/A self warning logger no valid value set N/A N/A N/A N/A pos N/A int N/A N/A self get label N/A N/A N/A N/A N/A N/A self warning logger no valid label N/A N/A user N/A N/A self get user N/A N/A key N/A monitor measurers N/A N/A N/A N/A monitor measurers N/A key N/A Measurer N/A measurer N/A N/A monitor measurers N/A key N/A N/A N/A measurer add value user pos N/A N/A N/A N/A taskT Measure ResetMeasurer N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid measurer name set N/A N/A N/A key N/A monitor measurers N/A N/A N/A N/A N/A N/A monitor measurers N/A key clear N/A N/A N/A N/A taskT ResetMeasurer RenameMeasurer N/A Task N/A act N/A N/A self N/A N/A N/A key N/A self name N/A N/A key N/A N/A N/A N/A self warning logger no valid measurer name set N/A N/A newname N/A N/A self get newname N/A N/A N/A key N/A monitor measurers newname N/A N/A N/A N/A monitor measurers N/A newname N/A N/A monitor measurers N/A key N/A N/A N/A monitor measurers N/A key N/A N/A N/A N/A taskT RenameMeasurer AccuracyHandler N/A RequestHandler N/A draw N/A N/A self p accuracies intervals resolution fillColor N/A N/A N/A N/A accuracies None N/A N/A m N/A N/A accuracies shape N/A 0 N/A N/A N/A logger debug N/A N/A m = {} format m N/A maxs N/A accuracies N/A -1 N/A mins N/A accuracies N/A 0 N/A uppers N/A accuracies N/A N/A N/A 1 N/A m 4 N/A lowers N/A accuracies N/A N/A m 4 N/A N/A N/A logger debug N/A N/A maxs = {} format maxs N/A N/A N/A logger debug N/A N/A mins = {} format mins N/A N/A N/A logger debug N/A N/A uppers = {} format uppers N/A N/A N/A logger debug N/A N/A lowers = {} format lowers N/A N/A N/A p segment intervals maxs intervals mins color black toolbar_location left N/A N/A N/A p rect intervals N/A N/A uppers lowers 2 N/A resolution 2 N/A abs N/A uppers lowers fill_color fillColor line_color black N/A get N/A N/A self N/A N/A N/A name N/A N/A self get_argument name None N/A fillColor N/A N/A self get_argument fillColor #F2583E N/A resolution N/A N/A self get_argument resolution None N/A accType N/A N/A self get_argument accType ROC N/A N/A N/A logger info N/A N/A request {} {} {} format name fillColor resolution N/A N/A name N/A name N/A monitor measurers N/A N/A measurer N/A N/A monitor measurers N/A name N/A N/A N/A logger debug N/A N/A set resolution {} format resolution N/A N/A N/A measurer set_resolution resolution N/A N/A accType ROC N/A N/A accuracies N/A N/A measurer get_ROCs N/A N/A N/A accType PRC N/A N/A accuracies N/A N/A measurer get_PRCs N/A N/A accuracies None N/A intervals N/A N/A measurer intervals N/A resolution N/A measurer resolution N/A N/A accuracies None N/A intervals None N/A resolution 0.01 N/A N/A N/A logger debug N/A N/A accuracies {} format accuracies N/A N/A N/A logger debug N/A N/A intervals {} format intervals N/A N/A N/A logger debug N/A N/A resolution {} format resolution N/A TOOLS pan,wheel_zoom,box_zoom,reset,save N/A p N/A figure tools TOOLS plot_width 1000 N/A N/A N/A self draw p accuracies intervals resolution fillColor N/A N/A p title N/A N/A {} for {} format accType name N/A N/A N/A p grid grid_line_alpha 0.3 N/A response N/A file_html p INLINE N/A p title N/A N/A N/A self write N/A decode_utf8 response N/A N/A N/A self set_header Content-Type text/html N/A N/A main N/A N/A N/A N/A N/A monitor N/A myname monitor N/A config N/A get_config N/A N/A sys argv N/A 1 myname monkmonitor.py N/A monitor N/A MonkMonitor myname config N/A N/A N/A monitor add_application /accuracy AccuracyHandler N/A N/A N/A monitor run N/A N/A N/A __name__ __main__ N/A N/A N/A main