id: 1 unit: def lambda_handler() file: next_steps/operations/filter_rotator/src/filter_rotator_function/filter_rotator.py start line: 0 end line: 0 size: 85 LOC McCabe index: 13 number of parameters: 2 id: 2 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_create_personalize_role.py start line: 0 end line: 0 size: 54 LOC McCabe index: 6 number of parameters: 2 id: 3 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-campaign/campaign.py start line: 0 end line: 0 size: 38 LOC McCabe index: 5 number of parameters: 2 id: 4 unit: def compute_temporal_loss() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 35 LOC McCabe index: 7 number of parameters: 4 id: 5 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction-create-schema.py start line: 0 end line: 0 size: 32 LOC McCabe index: 1 number of parameters: 2 id: 6 unit: def create_filter() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-filters/filters.py start line: 0 end line: 0 size: 29 LOC McCabe index: 4 number of parameters: 3 id: 7 unit: def compute_distribution_shift() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 29 LOC McCabe index: 5 number of parameters: 8 id: 8 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/import-data/datasetimport.py start line: 0 end line: 0 size: 28 LOC McCabe index: 2 number of parameters: 2 id: 9 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-dataset/dataset.py start line: 0 end line: 0 size: 27 LOC McCabe index: 2 number of parameters: 2 id: 10 unit: def diagnose_items() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 27 LOC McCabe index: 4 number of parameters: 2 id: 11 unit: def create_schema() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-dataset/dataset.py start line: 0 end line: 0 size: 26 LOC McCabe index: 3 number of parameters: 2 id: 12 unit: def diagnose() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 26 LOC McCabe index: 3 number of parameters: 3 id: 13 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/event-tracker/eventTracker.py start line: 0 end line: 0 size: 23 LOC McCabe index: 2 number of parameters: 2 id: 14 unit: def eval_expression() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 21 LOC McCabe index: 2 number of parameters: 2 id: 15 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction-createdatasetimportjob.py start line: 0 end line: 0 size: 20 LOC McCabe index: 1 number of parameters: 2 id: 16 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-datasetgroup/datasetgroup.py start line: 0 end line: 0 size: 20 LOC McCabe index: 2 number of parameters: 2 id: 17 unit: def compute_bootstrap_loss() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 20 LOC McCabe index: 2 number of parameters: 3 id: 18 unit: def handler() file: next_steps/operations/streaming_events/lambdas/getRecommendations/getRecommendations.py start line: 0 end line: 0 size: 19 LOC McCabe index: 4 number of parameters: 2 id: 19 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunctioncreatedatasetimportjob.py start line: 0 end line: 0 size: 19 LOC McCabe index: 1 number of parameters: 2 id: 20 unit: def create_solution() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-solution/solution.py start line: 0 end line: 0 size: 19 LOC McCabe index: 4 number of parameters: 2 id: 21 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/s3lambda/parse.py start line: 0 end line: 0 size: 17 LOC McCabe index: 1 number of parameters: 2 id: 22 unit: def plot_loglog() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 17 LOC McCabe index: 2 number of parameters: 3 id: 23 unit: def diagnose_interactions() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 17 LOC McCabe index: 3 number of parameters: 1 id: 24 unit: def diagnose_users() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 25 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunctioncreatedataset.py start line: 0 end line: 0 size: 16 LOC McCabe index: 1 number of parameters: 2 id: 26 unit: def put_event() file: next_steps/operations/filter_rotator/src/filter_rotator_function/filter_rotator.py start line: 0 end line: 0 size: 16 LOC McCabe index: 1 number of parameters: 3 id: 27 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_getsolution_metric_create_campaign.py start line: 0 end line: 0 size: 15 LOC McCabe index: 1 number of parameters: 2 id: 28 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_select-recipe_create-solution.py start line: 0 end line: 0 size: 14 LOC McCabe index: 2 number of parameters: 2 id: 29 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_getRecommendations.py start line: 0 end line: 0 size: 14 LOC McCabe index: 1 number of parameters: 2 id: 30 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_waitforDatasetGroup.py start line: 0 end line: 0 size: 14 LOC McCabe index: 1 number of parameters: 2 id: 31 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-solution/solution.py start line: 0 end line: 0 size: 13 LOC McCabe index: 1 number of parameters: 2 id: 32 unit: def lambda_handler() file: next_steps/operations/lambda_examples/event_processor.py start line: 0 end line: 0 size: 12 LOC McCabe index: 3 number of parameters: 2 id: 33 unit: def describe_categorical() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 12 LOC McCabe index: 5 number of parameters: 2 id: 34 unit: def describe_dataframe() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 12 LOC McCabe index: 5 number of parameters: 2 id: 35 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_waitfordatasetimportjob.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 36 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunctioncreatedatagroup.py start line: 0 end line: 0 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 37 unit: def get_message() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/notify-delete/notify-delete.py start line: 0 end line: 0 size: 11 LOC McCabe index: 5 number of parameters: 1 id: 38 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_waitforCampaign.py start line: 0 end line: 0 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 39 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-solutions/list-solutions.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 40 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-solution-versions/list-solution-versions.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 41 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/create-filters/filters.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 42 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-datasets/list-datasets.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 43 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-campaigns/list-campaigns.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 44 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/list-trackers/list-trackers.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 45 unit: def average_precision() file: next_steps/data_science/offline_performance_evaluation/metrics.py start line: 0 end line: 0 size: 10 LOC McCabe index: 4 number of parameters: 1 id: 46 unit: def dcg_at_k() file: next_steps/data_science/offline_performance_evaluation/metrics.py start line: 0 end line: 0 size: 10 LOC McCabe index: 4 number of parameters: 3 id: 47 unit: def _normalize_distribution() file: next_steps/data_science/diagnose/diagnose.py start line: 0 end line: 0 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 48 unit: def push_event_to_Personalize() file: next_steps/operations/lambda_examples/event_processor.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 49 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_create_solution_version.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 50 unit: def lambda_handler() file: next_steps/operations/ml_ops_ds_sdk/lambda/stepfunction_waitforSolutionVersion.py start line: 0 end line: 0 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 51 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-campaign/delete-campaign.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 52 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-datasetgroup/delete-datasetgroup.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 53 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-solution/delete-solution.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 54 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-dataset/delete-dataset.py start line: 0 end line: 0 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 55 unit: def take_action() file: next_steps/operations/ml_ops/personalize-step-functions/shared/python/actions.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 56 unit: def get_params() file: next_steps/operations/ml_ops/personalize-step-functions/shared/python/parameters.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 57 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/wait-delete-datasetgroup/wait-delete-datasetgroup.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 58 unit: def get_params() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/s3lambda/parse.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 59 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/wait-delete-dataset/wait-delete-dataset.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 60 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/wait-delete-solution/wait-delete-solution.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 61 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/wait-delete-campaign/wait-delete-campaign.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 62 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/wait-solution-version/wait-solution-version.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 63 unit: def get_message() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/notify/notify.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 64 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/wait-delete-tracker/wait-delete-tracker.py start line: 0 end line: 0 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 65 unit: def precision_at_k() file: next_steps/data_science/offline_performance_evaluation/metrics.py start line: 0 end line: 0 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 66 unit: def __init__() file: next_steps/operations/ml_ops/personalize-step-functions/shared/python/loader.py start line: 0 end line: 0 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 67 unit: def ndcg_at_k() file: next_steps/data_science/offline_performance_evaluation/metrics.py start line: 0 end line: 0 size: 5 LOC McCabe index: 2 number of parameters: 3 id: 68 unit: def _unixtime() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 4 LOC McCabe index: 3 number of parameters: 1 id: 69 unit: def take_action_delete() file: next_steps/operations/ml_ops/personalize-step-functions/shared/python/actions.py start line: 0 end line: 0 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 70 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/notify-delete/notify-delete.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 71 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/delete-tracker/delete-tracker.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 72 unit: def lambda_handler() file: next_steps/operations/ml_ops/personalize-step-functions/lambdas/notify/notify.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 73 unit: def mean_reciprocal_rank() file: next_steps/data_science/offline_performance_evaluation/metrics.py start line: 0 end line: 0 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 74 unit: def _datetime_format() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 75 unit: def _starts_with() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 76 unit: def _ends_with() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 77 unit: def _timedelta_days() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 78 unit: def _timedelta_hours() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 79 unit: def _timedelta_minutes() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 80 unit: def _timedelta_seconds() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 81 unit: def _end() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 82 unit: def _start() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 83 unit: def eval_template() file: next_steps/operations/filter_rotator/src/filter_rotator_function/template_evaluation.py start line: 0 end line: 0 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 84 unit: def mean_average_precision() file: next_steps/data_science/offline_performance_evaluation/metrics.py start line: 0 end line: 0 size: 2 LOC McCabe index: 2 number of parameters: 1