Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult BinOpAdd NameLoad Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMult Num Num Num Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr Num BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr Num Num Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr Num Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpMult Num Num BinOpMult Num Num BinOpMult Num Num keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad Num Call NameLoad BinOpMult Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad Num Call NameLoad BinOpMult Num Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num ListLoad Num Call NameLoad BinOpMult Num Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult BinOpAdd NameLoad Num Num For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult BinOpAdd NameLoad Num Num Expr Call AttributeLoad NameLoad attr BinOpMult Num Num BinOpMult Num Num BinOpMult Num Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr ListLoad NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Num For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult BinOpAdd NameLoad Num Num Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr ListLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr BinOpMult Num NameLoad BinOpMult NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr BinOpMult Num NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Expr Call AttributeLoad NameLoad attr BinOpDiv Num Num For NameStore Call NameLoad Num Num body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A Tests for grr.lib.timeseries. grr.lib flags grr.lib test_lib grr.lib timeseries TimeseriesTest N/A N/A test_lib GRRBaseTest N/A makeSeries N/A N/A self N/A N/A N/A s N/A N/A timeseries Timeseries N/A i N/A range 1 101 N/A N/A N/A N/A s Append i N/A N/A i 5 10000 N/A s N/A testAppendFilterRange N/A N/A self N/A N/A N/A s N/A N/A self makeSeries N/A N/A N/A self assertEqual 100 N/A len N/A s data N/A N/A N/A self assertEqual N/A 1 60000 N/A N/A s data N/A 0 N/A N/A N/A self assertEqual N/A 100 1050000 N/A N/A s data N/A -1 N/A N/A N/A s FilterRange 100000 200000 N/A N/A N/A self assertEqual 10 N/A len N/A s data N/A N/A N/A self assertEqual N/A 5 100000 N/A N/A s data N/A 0 N/A N/A N/A self assertEqual N/A 14 190000 N/A N/A s data N/A -1 N/A testNormalize N/A N/A self N/A N/A N/A s N/A N/A self makeSeries N/A N/A N/A s Normalize N/A 10 10000 100000 600000 N/A N/A N/A self assertEqual 5 N/A len N/A s data N/A N/A N/A self assertEqual N/A 9.5 100000 N/A N/A s data N/A 0 N/A N/A N/A self assertEqual N/A 49.5 500000 N/A N/A s data N/A -1 N/A s N/A N/A timeseries Timeseries N/A i N/A range 0 1000 N/A N/A N/A N/A s Append 0.5 N/A i 10 N/A N/A N/A s Normalize 200 5000 10000 N/A N/A N/A self assertEqual 25 N/A len N/A s data N/A N/A N/A self assertListEqual N/A N/A s data N/A 0 N/A 0.5 5000 N/A N/A N/A self assertListEqual N/A N/A s data N/A 24 N/A 0.5 9800 N/A s N/A N/A timeseries Timeseries N/A i N/A range 0 1000 N/A N/A N/A N/A s Append i N/A i 10 N/A N/A N/A s Normalize 200 5000 10000 mode N/A timeseries NORMALIZE_MODE_COUNTER N/A N/A N/A self assertEqual 25 N/A len N/A s data N/A N/A N/A self assertListEqual N/A N/A s data N/A 0 N/A 519 5000 N/A N/A N/A self assertListEqual N/A N/A s data N/A 24 N/A 999 9800 N/A testToDeltas N/A N/A self N/A N/A N/A s N/A N/A self makeSeries N/A N/A N/A self assertEqual 100 N/A len N/A s data N/A N/A N/A s ToDeltas N/A N/A N/A self assertEqual 99 N/A len N/A s data N/A N/A N/A self assertEqual N/A 1 60000 N/A N/A s data N/A 0 N/A N/A N/A self assertEqual N/A 1 1040000 N/A N/A s data N/A -1 N/A s N/A N/A timeseries Timeseries N/A i N/A range 0 1000 N/A N/A N/A N/A s Append i N/A i 1000000.0 N/A N/A N/A s Normalize N/A 20 1000000.0 N/A 500 1000000.0 N/A 1000 1000000.0 mode N/A timeseries NORMALIZE_MODE_COUNTER N/A N/A N/A self assertEqual 25 N/A len N/A s data N/A N/A N/A self assertListEqual N/A N/A s data N/A 0 N/A 519 N/A int N/A 500 1000000.0 N/A N/A N/A s ToDeltas N/A N/A N/A self assertEqual 24 N/A len N/A s data N/A N/A N/A self assertListEqual N/A N/A s data N/A 0 N/A 20 N/A int N/A 500 1000000.0 N/A N/A N/A self assertListEqual N/A N/A s data N/A 23 N/A 20 N/A int N/A 960 1000000.0 N/A testNormalizeFillsGapsWithNone N/A N/A self N/A N/A N/A s N/A N/A timeseries Timeseries N/A i N/A range 21 51 N/A N/A N/A N/A s Append i N/A N/A i 5 10000 N/A i N/A range 81 101 N/A N/A N/A N/A s Append i N/A N/A i 5 10000 N/A N/A N/A s Normalize N/A 10 10000 N/A 10 10000 N/A 120 10000 N/A N/A N/A self assertEqual 11 N/A len N/A s data N/A N/A N/A self assertEqual N/A None 100000 N/A N/A s data N/A 0 N/A N/A N/A self assertEqual N/A 22.5 200000 N/A N/A s data N/A 1 N/A N/A N/A self assertEqual N/A None 600000 N/A N/A s data N/A 5 N/A N/A N/A self assertEqual N/A None 1100000 N/A N/A s data N/A -1 N/A testMakeIncreasing N/A N/A self N/A N/A N/A s N/A N/A timeseries Timeseries N/A i N/A range 0 5 N/A N/A N/A N/A s Append i N/A i 1000 N/A i N/A range 0 5 N/A N/A N/A N/A s Append i N/A N/A i 6 1000 N/A N/A N/A self assertEqual 10 N/A len N/A s data N/A N/A N/A self assertEqual N/A 4 10000 N/A N/A s data N/A -1 N/A N/A N/A s MakeIncreasing N/A N/A N/A self assertEqual 10 N/A len N/A s data N/A N/A N/A self assertEqual N/A 8 10000 N/A N/A s data N/A -1 N/A testAddRescale N/A N/A self N/A N/A N/A s1 N/A N/A timeseries Timeseries N/A i N/A range 0 5 N/A N/A N/A N/A s1 Append i N/A i 1000 N/A s2 N/A N/A timeseries Timeseries N/A i N/A range 0 5 N/A N/A N/A N/A s2 Append N/A 2 i N/A i 1000 N/A N/A N/A s1 Add s2 N/A i N/A range 0 5 N/A N/A N/A N/A self assertEqual N/A 3 i N/A N/A N/A s1 data N/A i N/A 0 N/A N/A N/A s1 Rescale N/A 1 3.0 N/A i N/A range 0 5 N/A N/A N/A N/A self assertEqual i N/A N/A N/A s1 data N/A i N/A 0 N/A testMean N/A N/A self N/A N/A N/A s N/A N/A timeseries Timeseries N/A N/A N/A self assertEqual None N/A N/A s Mean N/A s N/A N/A self makeSeries N/A N/A N/A self assertEqual 100 N/A len N/A s data N/A N/A N/A self assertEqual 50 N/A N/A s Mean N/A N/A main N/A N/A argv N/A N/A N/A N/A N/A test_lib main argv N/A N/A N/A __name__ __main__ N/A N/A N/A N/A flags StartMain main