Module Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Expr Call AttributeLoad NameLoad attr Str Assign NameStore Num ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str ListLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Dict Str Str NameLoad NameLoad ImportFrom alias ImportFrom alias Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListComp Call AttributeLoad BinOpSub Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str NameLoad attr comprehension NameStore NameLoad Import alias identifier Import alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad keyword Str keyword TupleLoad Num Num Expr Call AttributeLoad NameLoad attr NameLoad Call NameLoad BinOpAdd Num BinOpMult Num Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr ListLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore UnaryOpUSub Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Dict Str Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Num For NameStore NameLoad body AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad Call NameLoad SubscriptLoad NameLoad Index Str Slice Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp BinOpDiv BinOpMult NameLoad NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad Slice Num NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad handlers ExceptHandler body Pass Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Import alias identifier Import alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad keyword Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str NameLoad Str For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Dict Str Str NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr Str Num Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore ListComp BinOpDiv BinOpMult NameLoad NameLoad NameLoad comprehension NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad Call AttributeLoad NameLoad attr UnaryOpUSub NameLoad Slice Num NameLoad Assign NameStore Call NameLoad Call NameLoad BinOpAdd NameLoad NameLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore ListLoad Assign NameStore Num Assign NameStore Call NameLoad Str For NameStore NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Num Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareGt BinOpAdd NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad If CompareLt BinOpAdd NameLoad NameLoad NameLoad body Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpSub BinOpSub NameLoad NameLoad NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad handlers ExceptHandler body Assign NameStore Num Assign NameStore Num Import alias identifier Import alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad keyword Num Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Num NameLoad Expr Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad keyword Num Assign NameStore ListComp Call AttributeLoad NameLoad attr TupleLoad Num Num Num Num keyword Num keyword SubscriptLoad Call AttributeLoad NameLoad attr Index Num comprehension NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad ListLoad Str Str Str Str Str keyword Num keyword Num keyword Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str NameLoad Str For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Dict Str Str NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler body Pass Import alias identifier Import alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword TupleLoad Num Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str NameLoad Str For NameStore NameLoad body If CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign TupleStore NameStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpAdd NameLoad Str Dict Str Str NameLoad NameLoad Assign NameStore ListLoad For NameStore NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str handlers ExceptHandler body Pass Import alias identifier Import alias Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword TupleLoad Num Num keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A N/A json N/A numpy N/A numpy.random datetime datetime datetime timedelta next.utils utils N/A matplotlib N/A N/A N/A matplotlib use Agg N/A MAX_SAMPLES_PER_PLOT 100 AppDashboard N/A object N/A __init__ N/A N/A self db ell N/A N/A N/A N/A self db db N/A N/A self ell ell N/A get_supported_stats N/A N/A self N/A N/A N/A 
    Returns a list of dictionaries describing the identifier (stat_id) and 
    necessary params inputs to be used when calling getStats

    Expected output (list of dicts, each with fields):
      (string) stat_id : the identiifer of the statistic
      (string) description : docstring of describing outputs
      (list of string) necessary_params : list where each string describes the type of param input like 'alg_label' or 'task'
     N/A stat_list N/A N/A stat N/A N/A N/A stat N/A stat_id api_activity_histogram N/A N/A stat N/A description N/A N/A self api_activity_histogram __doc__ N/A N/A stat N/A necessary_params N/A task N/A N/A N/A stat_list append stat N/A stat N/A N/A N/A stat N/A stat_id compute_duration_multiline_plot N/A N/A stat N/A description N/A N/A self compute_duration_multiline_plot __doc__ N/A N/A stat N/A necessary_params N/A task N/A N/A N/A stat_list append stat N/A stat N/A N/A N/A stat N/A stat_id compute_duration_detailed_stacked_area_plot N/A N/A stat N/A description N/A N/A self compute_duration_detailed_stacked_area_plot __doc__ N/A N/A stat N/A necessary_params N/A task alg_label N/A N/A N/A stat_list append stat N/A stat N/A N/A N/A stat N/A stat_id response_time_histogram N/A N/A stat N/A description N/A N/A self response_time_histogram __doc__ N/A N/A stat N/A necessary_params N/A alg_label N/A N/A N/A stat_list append stat N/A stat N/A N/A N/A stat N/A stat_id network_time_histogram N/A N/A stat N/A description N/A N/A self response_time_histogram __doc__ N/A N/A stat N/A necessary_params N/A alg_label N/A N/A N/A stat_list append stat N/A stat_list N/A api_activity_histogram N/A N/A self app_id exp_uid task N/A N/A N/A 
    Description: returns the data to plot all API activity (for all algorithms) in a histogram with respect to time for any task in {getQuery,processAnswer,predict} 

    Expected input:
      (string) task :  must be in {'getQuery','processAnswer','predict'}

    Expected output (in dict):
      (dict) MPLD3 plot dictionary
     N/A N/A list_of_log_dict didSucceed message N/A N/A N/A self ell get_logs_with_filter N/A app_id :APP-CALL N/A exp_uid task exp_uid task datetime datetime datetime timedelta N/A N/A start_date_str didSucceed message N/A N/A N/A self db get experiments_admin exp_uid start_date N/A start_date N/A N/A utils str2datetime start_date_str N/A numerical_timestamps N/A N/A N/A N/A N/A N/A utils str2datetime N/A item N/A timestamp start_date total_seconds N/A item list_of_log_dict N/A matplotlib.pyplot plt N/A mpld3 N/A N/A fig ax N/A N/A plt subplots subplot_kw N/A dict axisbg #FFFFFF figsize N/A 12 1.5 N/A N/A N/A ax hist numerical_timestamps N/A int N/A 1 N/A 4 N/A N/A numpy sqrt N/A len numerical_timestamps alpha 0.5 color black N/A N/A N/A ax set_frame_on False N/A N/A N/A N/A N/A ax get_xaxis set_ticks N/A N/A N/A N/A N/A N/A ax get_yaxis set_ticks N/A N/A N/A N/A N/A N/A ax get_yaxis set_visible False N/A N/A N/A ax set_xlim 0 N/A max numerical_timestamps N/A plot_dict N/A N/A mpld3 fig_to_dict fig N/A plot_dict N/A compute_duration_multiline_plot N/A N/A self app_id exp_uid task N/A N/A N/A 
    Description: Returns multiline plot where there is a one-to-one mapping lines to 
    algorithms and each line indicates the durations to complete the task (wrt to the api call) 

    Expected input:
      (string) task :  must be in {'getQuery','processAnswer','predict'}

    Expected output (in dict):
      (dict) MPLD3 plot dictionary
     N/A N/A alg_list didSucceed message N/A N/A N/A self db get N/A app_id :experiments exp_uid alg_list N/A x_min N/A N/A numpy float inf N/A x_max N/A N/A N/A numpy float inf N/A y_min N/A N/A numpy float inf N/A y_max N/A N/A N/A numpy float inf N/A list_of_alg_dicts N/A N/A algorithm alg_list N/A N/A alg_id N/A algorithm N/A alg_id N/A alg_uid N/A algorithm N/A alg_uid N/A alg_label N/A algorithm N/A alg_label N/A N/A list_of_log_dict didSucceed message N/A N/A N/A self ell get_logs_with_filter N/A app_id :ALG-DURATION N/A alg_uid task alg_uid task N/A list_of_log_dict N/A sorted list_of_log_dict key N/A N/A N/A item N/A N/A N/A utils str2datetime N/A item N/A timestamp N/A x N/A N/A y N/A N/A t N/A N/A k 0 N/A item list_of_log_dict N/A N/A k 1 N/A N/A N/A x append k N/A N/A N/A y append N/A N/A N/A item get app_duration 0.0 N/A N/A item get duration_enqueued 0.0 N/A N/A N/A t append N/A N/A str N/A item N/A timestamp N/A -3 N/A x N/A N/A numpy array x N/A y N/A N/A numpy array y N/A t N/A N/A numpy array t N/A num_items N/A len list_of_log_dict N/A multiplier N/A min num_items MAX_SAMPLES_PER_PLOT N/A incr_inds N/A N/A N/A k num_items multiplier N/A k N/A range multiplier N/A max_inds N/A list N/A N/A N/A numpy argsort N/A y N/A 0 multiplier N/A final_inds N/A sorted N/A set N/A incr_inds max_inds N/A x N/A list N/A x N/A final_inds N/A y N/A list N/A y N/A final_inds N/A t N/A list N/A t N/A final_inds N/A alg_dict N/A N/A N/A alg_dict N/A legend_label alg_label N/A N/A alg_dict N/A x x N/A N/A alg_dict N/A y y N/A N/A alg_dict N/A t t N/A N/A N/A x_min N/A min x_min N/A min x N/A x_max N/A max x_max N/A max x N/A y_min N/A min y_min N/A min y N/A y_max N/A max y_max N/A max y N/A N/A N/A N/A N/A N/A N/A list_of_alg_dicts append alg_dict N/A return_dict N/A N/A N/A return_dict N/A data list_of_alg_dicts N/A N/A return_dict N/A plot_type multi_line_plot N/A N/A return_dict N/A x_label API Call N/A N/A return_dict N/A x_min x_min N/A N/A return_dict N/A x_max x_max N/A N/A return_dict N/A y_label Duration (s) N/A N/A return_dict N/A y_min y_min N/A N/A return_dict N/A y_max y_max N/A matplotlib.pyplot plt N/A mpld3 N/A N/A fig ax N/A N/A plt subplots subplot_kw N/A dict axisbg #EEEEEE N/A alg_dict list_of_alg_dicts N/A N/A N/A N/A ax plot N/A alg_dict N/A x N/A alg_dict N/A y label N/A alg_dict N/A legend_label N/A N/A N/A ax set_xlabel API Call N/A N/A N/A ax set_ylabel Duration (s) N/A N/A N/A ax set_xlim N/A x_min x_max N/A N/A N/A ax set_ylim N/A y_min y_max N/A N/A N/A ax grid color white linestyle solid N/A N/A N/A ax set_title task size 14 N/A legend N/A N/A ax legend loc 2 ncol 3 mode expand N/A label N/A N/A legend get_texts N/A N/A N/A N/A label set_fontsize small N/A plot_dict N/A N/A mpld3 fig_to_dict fig N/A plot_dict N/A compute_duration_detailed_stacked_area_plot N/A N/A self app_id exp_uid task alg_label detailedDB N/A False N/A N/A 
    Description: Returns stacked area plot for a particular algorithm and task where the durations
    are broken down into compute,db_set,db_get (for cpu, database_set, database_get)

    Expected input:
      (string) task :  must be in {'getQuery','processAnswer','predict'}
      (string) alg_label : must be a valid alg_label contained in alg_list list of dicts 

    Expected output (in dict):
      (dict) MPLD3 plot dictionary
     N/A N/A alg_list didSucceed message N/A N/A N/A self db get N/A app_id :experiments exp_uid alg_list N/A algorithm alg_list N/A N/A N/A N/A algorithm N/A alg_label alg_label N/A N/A alg_id N/A algorithm N/A alg_id N/A alg_uid N/A algorithm N/A alg_uid N/A N/A list_of_log_dict didSucceed message N/A N/A N/A self ell get_logs_with_filter N/A app_id :ALG-DURATION N/A alg_uid task alg_uid task N/A list_of_log_dict N/A sorted list_of_log_dict key N/A N/A N/A item N/A N/A N/A utils str2datetime N/A item N/A timestamp N/A y N/A N/A item list_of_log_dict N/A N/A N/A N/A y append N/A N/A N/A item get app_duration 0.0 N/A N/A item get duration_enqueued 0.0 N/A y N/A N/A numpy array y N/A num_items N/A len list_of_log_dict N/A multiplier N/A min num_items MAX_SAMPLES_PER_PLOT N/A incr_inds N/A N/A N/A k num_items multiplier N/A k N/A range multiplier N/A max_inds N/A list N/A N/A N/A numpy argsort N/A y N/A 0 multiplier N/A final_inds N/A sorted N/A set N/A incr_inds max_inds N/A x N/A N/A t N/A N/A enqueued N/A N/A admin N/A N/A dbOverhead N/A N/A dbGet N/A N/A dbSet N/A N/A compute N/A N/A max_y_value 0.0 N/A min_y_value N/A float inf N/A idx final_inds N/A N/A item N/A list_of_log_dict N/A idx N/A N/A N/A x append N/A idx 1 N/A N/A N/A t append N/A str N/A N/A item get timestamp N/A _alg_duration N/A N/A item get duration 0.0 N/A _alg_duration_dbGet N/A N/A item get duration_dbGet 0.0 N/A _alg_duration_dbSet N/A N/A item get duration_dbSet 0.0 N/A _duration_enqueued N/A N/A item get duration_enqueued 0.0 N/A _app_duration N/A N/A item get app_duration 0.0 N/A N/A N/A _app_duration _duration_enqueued max_y_value N/A N/A max_y_value N/A _app_duration _duration_enqueued N/A N/A N/A _app_duration _duration_enqueued min_y_value N/A N/A min_y_value N/A _app_duration _duration_enqueued N/A N/A N/A enqueued append _duration_enqueued N/A N/A N/A admin append N/A _app_duration _alg_duration N/A N/A N/A dbSet append _alg_duration_dbSet N/A N/A N/A dbGet append _alg_duration_dbGet N/A N/A N/A compute append N/A N/A _alg_duration _alg_duration_dbSet _alg_duration_dbGet N/A N/A N/A min_x N/A min x N/A max_x N/A max x N/A N/A N/A N/A min_x 0.0 N/A max_x 0.0 N/A matplotlib.pyplot plt N/A mpld3 N/A N/A fig ax N/A N/A plt subplots subplot_kw N/A dict axisbg #EEEEEE N/A stack_coll N/A N/A ax stackplot x compute dbGet dbSet admin enqueued alpha 0.5 N/A N/A N/A ax set_xlabel API Call N/A N/A N/A ax set_ylabel Duration (s) N/A N/A N/A ax set_xlim N/A min_x max_x N/A N/A N/A ax set_ylim N/A 0.0 max_y_value N/A N/A N/A ax grid color white linestyle solid N/A N/A N/A ax set_title N/A N/A alg_label  -  task size 14 N/A proxy_rects N/A N/A N/A plt Rectangle N/A 0 0 1 1 alpha 0.5 fc N/A N/A N/A pc get_facecolor N/A 0 N/A pc stack_coll N/A legend N/A N/A ax legend proxy_rects N/A compute dbGet dbSet admin enqueued loc 2 ncol 3 mode expand N/A label N/A N/A legend get_texts N/A N/A N/A N/A label set_fontsize small N/A plot_dict N/A N/A mpld3 fig_to_dict fig N/A plot_dict N/A response_time_histogram N/A N/A self app_id exp_uid alg_label N/A N/A N/A 
    Description: returns the data to plot response time histogram of processAnswer for each algorithm  

    Expected input:
      (string) alg_label : must be a valid alg_label contained in alg_list list of dicts 

    Expected output (in dict):
      (dict) MPLD3 plot dictionary
     N/A N/A alg_list didSucceed message N/A N/A N/A self db get N/A app_id :experiments exp_uid alg_list N/A algorithm alg_list N/A N/A N/A N/A algorithm N/A alg_label alg_label N/A N/A alg_id N/A algorithm N/A alg_id N/A alg_uid N/A algorithm N/A alg_uid N/A N/A list_of_query_dict didSucceed message N/A N/A N/A self db get_docs_with_filter N/A app_id :queries N/A exp_uid alg_uid exp_uid alg_uid N/A t N/A N/A item list_of_query_dict N/A N/A N/A N/A N/A N/A t append N/A item N/A response_time N/A N/A N/A N/A N/A matplotlib.pyplot plt N/A mpld3 N/A N/A fig ax N/A N/A plt subplots subplot_kw N/A dict axisbg #FFFFFF N/A N/A N/A ax hist t MAX_SAMPLES_PER_PLOT range N/A 0 30 alpha 0.5 color black N/A N/A N/A ax set_xlim 0 30 N/A N/A N/A ax set_axis_off N/A N/A N/A ax set_xlabel Durations (s) N/A N/A N/A ax set_ylabel Count N/A N/A N/A ax set_title N/A alg_label  - response time size 14 N/A plot_dict N/A N/A mpld3 fig_to_dict fig N/A plot_dict N/A network_delay_histogram N/A N/A self app_id exp_uid alg_label N/A N/A N/A 
    Description: returns the data to network delay histogram of the time it takes to getQuery+processAnswer for each algorithm  

    Expected input:
      (string) alg_label : must be a valid alg_label contained in alg_list list of dicts 

    Expected output (in dict):
      (dict) MPLD3 plot dictionary
     N/A N/A alg_list didSucceed message N/A N/A N/A self db get N/A app_id :experiments exp_uid alg_list N/A algorithm alg_list N/A N/A N/A N/A algorithm N/A alg_label alg_label N/A N/A alg_id N/A algorithm N/A alg_id N/A alg_uid N/A algorithm N/A alg_uid N/A N/A list_of_query_dict didSucceed message N/A N/A N/A self db get_docs_with_filter N/A app_id :queries N/A exp_uid alg_uid exp_uid alg_uid N/A t N/A N/A item list_of_query_dict N/A N/A N/A N/A N/A N/A t append N/A item N/A network_delay N/A N/A N/A N/A N/A matplotlib.pyplot plt N/A mpld3 N/A N/A fig ax N/A N/A plt subplots subplot_kw N/A dict axisbg #FFFFFF N/A N/A N/A ax hist t MAX_SAMPLES_PER_PLOT range N/A 0 5 alpha 0.5 color black N/A N/A N/A ax set_xlim 0 5 N/A N/A N/A ax set_axis_off N/A N/A N/A ax set_xlabel Durations (s) N/A N/A N/A ax set_ylabel Count N/A N/A N/A ax set_title N/A alg_label  - network delay size 14 N/A plot_dict N/A N/A mpld3 fig_to_dict fig N/A plot_dict N/A N/A