Module Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Str Assign NameStore ListLoad Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Str Assign NameStore ListLoad Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num keyword Num Assign NameStore Str Assign NameStore ListLoad Str Str Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad BinOpSub NameLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad NameLoad For NameStore Call NameLoad Num body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad ListLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A numpy N/A scipy N/A unittest mockredis MockRedis Redis nearpy.storage MemoryStorage RedisStorage TestStorage N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self memory N/A MemoryStorage N/A N/A self redis_object N/A Redis N/A N/A self redis_storage N/A RedisStorage N/A self redis_object N/A test_memory_storage N/A N/A self N/A N/A N/A x N/A N/A N/A numpy random randn 100 1 N/A bucket_key 23749283743928748 N/A x_data N/A one two three N/A N/A N/A N/A self memory store_vector testHash bucket_key x x_data N/A X N/A N/A N/A self memory get_bucket testHash bucket_key N/A N/A N/A self assertEqual N/A len X 1 N/A y N/A N/A X N/A 0 N/A 0 N/A y_data N/A N/A X N/A 0 N/A 1 N/A N/A N/A self assertEqual N/A len y N/A len x N/A N/A N/A self assertEqual N/A type x N/A type y N/A k N/A range 100 N/A N/A N/A N/A self assertEqual N/A y N/A k N/A x N/A k N/A N/A N/A self assertEqual N/A type y_data N/A type x_data N/A N/A N/A self assertEqual N/A len y_data N/A len x_data N/A k N/A range 3 N/A N/A N/A N/A self assertEqual N/A y_data N/A k N/A x_data N/A k N/A N/A N/A N/A self memory clean_all_buckets N/A N/A N/A self assertEqual N/A N/A N/A self memory get_bucket testHash bucket_key N/A N/A test_redis_storage N/A N/A self N/A N/A N/A N/A N/A N/A self redis_storage clean_all_buckets N/A x N/A N/A N/A numpy random randn 100 1 N/A bucket_key 23749283743928748 N/A x_data N/A one two three N/A N/A N/A N/A self redis_storage store_vector testHash bucket_key x x_data N/A X N/A N/A N/A self redis_storage get_bucket testHash bucket_key N/A N/A N/A self assertEqual N/A len X 1 N/A y N/A N/A X N/A 0 N/A 0 N/A y_data N/A N/A X N/A 0 N/A 1 N/A N/A N/A self assertEqual N/A len y N/A len x N/A N/A N/A self assertEqual N/A type x N/A type y N/A k N/A range 100 N/A N/A N/A N/A self assertEqual N/A y N/A k N/A x N/A k N/A N/A N/A self assertEqual N/A type y_data N/A type x_data N/A N/A N/A self assertEqual N/A len y_data N/A len x_data N/A k N/A range 3 N/A N/A N/A N/A self assertEqual N/A y_data N/A k N/A x_data N/A k N/A N/A N/A N/A self redis_storage clean_all_buckets N/A N/A N/A self assertEqual N/A N/A N/A self redis_storage get_bucket testHash bucket_key N/A N/A test_redis_storage_sparse N/A N/A self N/A N/A N/A N/A N/A N/A self redis_storage clean_all_buckets N/A x N/A N/A N/A scipy sparse rand 100 1 density 0.1 N/A bucket_key 23749283743928748 N/A x_data N/A one two three N/A N/A N/A N/A self redis_storage store_vector testHash bucket_key x x_data N/A X N/A N/A N/A self redis_storage get_bucket testHash bucket_key N/A N/A N/A self assertEqual N/A len X 1 N/A y N/A N/A X N/A 0 N/A 0 N/A y_data N/A N/A X N/A 0 N/A 1 N/A N/A N/A self assertEqual N/A type x N/A type y N/A N/A N/A self assertEqual N/A N/A x shape N/A 0 N/A N/A y shape N/A 0 N/A N/A N/A self assertEqual N/A N/A x shape N/A 1 N/A N/A y shape N/A 1 N/A N/A N/A self assertTrue N/A N/A N/A N/A y x sum 0.0 N/A N/A N/A self assertEqual N/A type y_data N/A type x_data N/A N/A N/A self assertEqual N/A len y_data N/A len x_data N/A k N/A range 3 N/A N/A N/A N/A self assertEqual N/A y_data N/A k N/A x_data N/A k N/A N/A N/A N/A self redis_storage clean_all_buckets N/A N/A N/A self assertEqual N/A N/A N/A self redis_storage get_bucket testHash bucket_key N/A N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main