project_name string | class_name string | class_modifiers string | class_implements int64 | class_extends int64 | function_name string | function_body string | cyclomatic_complexity int64 | NLOC int64 | num_parameter int64 | num_token int64 | num_variable int64 | start_line int64 | end_line int64 | function_index int64 | function_params string | function_variable string | function_return_type string | function_body_line_type string | function_num_functions int64 | function_num_lines int64 | outgoing_function_count int64 | outgoing_function_names string | incoming_function_count int64 | incoming_function_names string | lexical_representation string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aws-deadline_deadline-cloud | public | public | 0 | 0 | cli_fleet | def cli_fleet():"""Commands to work with fleets.""" | 1 | 1 | 0 | 5 | 0 | 19 | 22 | 19 | [] | None | {"Expr": 1} | 1 | 4 | 1 | ["main.group"] | 0 | [] | The function (cli_fleet) defined within the public class called public.The function start at line 19 and ends at 22. It contains 1 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called insi... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | fleet_list | def fleet_list(**args):"""Lists the available fleets."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id"}, **args)farm_id = config_file.get_setting("defaults.farm_id", config=config)try:response = api.list_fleets(farmId=farm_id, config=co... | 4 | 12 | 1 | 97 | 4 | 29 | 49 | 29 | **args | ['farm_id', 'config', 'structured_fleet_list', 'response'] | None | {"Assign": 4, "Expr": 2, "Try": 1} | 9 | 21 | 9 | ["_apply_cli_options_to_config", "config_file.get_setting", "api.list_fleets", "DeadlineOperationError", "click.echo", "_cli_object_repr", "cli_fleet.command", "click.option", "click.option"] | 0 | [] | The function (fleet_list) defined within the public class called public.The function start at line 29 and ends at 49. It contains 12 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | fleet_get | def fleet_get(fleet_id, queue_id, **args):"""Get the details of a fleet."""if fleet_id and queue_id:raise DeadlineOperationError("Only one of the --fleet-id and --queue-id options may be provided.")# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"... | 7 | 38 | 3 | 239 | 7 | 58 | 107 | 58 | fleet_id,queue_id,**args | ['config', 'farm_id', 'deadline', 'qfa_list', 'response', 'queue_name', 'queue_id'] | None | {"Assign": 11, "Expr": 8, "For": 1, "If": 4} | 25 | 50 | 25 | ["DeadlineOperationError", "_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "click.UsageError", "api.get_boto3_client", "deadline.get_fleet", "response.pop", "click.echo", "_cli_object_repr", "deadline.get_queue", "api._list_apis._call_paginated_deadline_list_api", "response.pop", "... | 0 | [] | The function (fleet_get) defined within the public class called public.The function start at line 58 and ends at 107. It contains 38 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [58.0] and does not return any value. It declares 25.0 functions, and It has 25.0 functions c... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | cli_handle_web_url | def cli_handle_web_url(ctx: click.Context,url: str,prompt_when_complete: bool,install: bool,uninstall: bool,all_users: bool,):"""Runs AWS Deadline Cloud commands sent from a web browser.Commands use the deadline:// URL scheme, with expectedformat deadline://<handle-web-url-command>?args=value&args=value.This function a... | 12 | 56 | 6 | 291 | 9 | 58 | 147 | 58 | ctx,url,prompt_when_complete,install,uninstall,all_users | ['config', 'task_id', 'farm_id', 'url_queries', 'job_id', 'aws_profile_name', 'step_id', 'split_url', 'queue_id'] | None | {"Assign": 10, "Expr": 8, "If": 7} | 29 | 90 | 29 | ["DeadlineOperationError", "urllib.parse.urlsplit", "DeadlineOperationError", "parse_query_string", "validate_resource_ids", "url_queries.keys", "url_queries.pop", "url_queries.pop", "url_queries.pop", "url_queries.pop", "url_queries.pop", "url_queries.pop", "config_file.get_best_profile_for_farm", "config_file.read_co... | 0 | [] | The function (cli_handle_web_url) defined within the public class called public.The function start at line 58 and ends at 147. It contains 56 lines of code and it has a cyclomatic complexity of 12. It takes 6 parameters, represented as [58.0] and does not return any value. It declares 29.0 functions, and It has 29.0 f... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _format_timestamp | def _format_timestamp(timestamp: datetime.datetime, use_local_time: bool = False) -> str:"""Format a timestamp in ISO 8601 format with timezone information.Args:timestamp: The datetime object to formatuse_local_time: If True, convert to local time; if False, keep as UTCReturns:Formatted timestamp string in ISO 8601 for... | 4 | 10 | 2 | 75 | 2 | 62 | 84 | 62 | timestamp,use_local_time | ['local_timestamp', 'utc_timestamp'] | str | {"Assign": 3, "Expr": 1, "If": 2, "Return": 2} | 4 | 23 | 4 | ["timestamp.astimezone", "local_timestamp.isoformat", "timestamp.replace", "utc_timestamp.isoformat"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py.job_logs"] | The function (_format_timestamp) defined within the public class called public.The function start at line 62 and ends at 84. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [62.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions c... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | cli_job | def cli_job():"""Commands to work with jobs.""" | 1 | 1 | 0 | 5 | 0 | 93 | 96 | 93 | [] | None | {"Expr": 1} | 1 | 4 | 1 | ["main.group"] | 0 | [] | The function (cli_job) defined within the public class called public.The function start at line 93 and ends at 96. It contains 1 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_list | def job_list(page_size, item_offset, **args):"""Lists the Jobs in a queue."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id", "queue_id"}, **args)farm_id = config_file.get_setting("defaults.farm_id", config=config)queue_id = config_file.... | 6 | 39 | 3 | 214 | 8 | 106 | 154 | 106 | page_size,item_offset,**args | ['config', 'name_field', 'farm_id', 'deadline', 'structured_job_list', 'response', 'total_results', 'queue_id'] | None | {"Assign": 9, "Expr": 4, "If": 1, "Try": 1} | 19 | 49 | 19 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "api.get_boto3_client", "deadline.search_jobs", "DeadlineOperationError", "len", "job.get", "click.echo", "len", "click.echo", "click.echo", "_cli_object_repr", "cli_job.command", "click.option", "click.option", "click.option", "clic... | 0 | [] | The function (job_list) defined within the public class called public.The function start at line 106 and ends at 154. It contains 39 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [106.0] and does not return any value. It declares 19.0 functions, and It has 19.0 functions ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_get | def job_get(**args):"""Get the details of a job."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id", "queue_id", "job_id"}, **args)farm_id = config_file.get_setting("defaults.farm_id", config=config)queue_id = config_file.get_setting("def... | 1 | 11 | 1 | 107 | 6 | 163 | 180 | 163 | **args | ['config', 'farm_id', 'deadline', 'job_id', 'response', 'queue_id'] | None | {"Assign": 6, "Expr": 3} | 14 | 18 | 14 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "config_file.get_setting", "api.get_boto3_client", "deadline.get_job", "response.pop", "click.echo", "_cli_object_repr", "cli_job.command", "click.option", "click.option", "click.option", "click.option"] | 0 | [] | The function (job_get) defined within the public class called public.The function start at line 163 and ends at 180. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 14.0 functions, and It has 14.0 functions calle... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_cancel | def job_cancel(mark_as: str, yes: bool, **args):"""Cancel job from running."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id", "queue_id", "job_id"}, **args)farm_id = config_file.get_setting("defaults.farm_id", config=config)queue_id = c... | 9 | 47 | 3 | 280 | 9 | 200 | 262 | 200 | mark_as,yes,**args | ['config', 'cancel_message', 'farm_id', 'filtered_job', 'deadline', 'mark_as', 'job_id', 'job', 'queue_id'] | None | {"Assign": 11, "Expr": 7, "If": 4} | 27 | 63 | 27 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "config_file.get_setting", "mark_as.upper", "api.get_boto3_client", "deadline.get_job", "items", "job.get", "click.echo", "_cli_object_repr", "config_file.str2bool", "config_file.get_setting", "click.confirm", "click.echo", "sys.exit... | 0 | [] | The function (job_cancel) defined within the public class called public.The function start at line 200 and ends at 262. It contains 47 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [200.0] and does not return any value. It declares 27.0 functions, and It has 27.0 function... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_requeue_tasks | def job_requeue_tasks(run_status: Optional[list[str]], **args):"""Requeue tasks of a job. By default, requeues all FAILED, CANCELED, and SUSPENDED tasks.Use the --run-status option to requeue tasks of different status."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_con... | 26 | 102 | 2 | 631 | 20 | 284 | 414 | 284 | run_status,**args | ['paginator', 'config', 'step_task_count_to_requeue', 'total_task_count_to_requeue', 'summary_task_count_by_status', 'summary_tasks_message', 'farm_id', 'run_status_set', 'deadline_client', 'task_run_status_counts', 'steps', 'total_count_requeued', 'requeues_client_config', 'task_summary', 'parameters', 'job_id', 'dead... | None | {"Assign": 25, "AugAssign": 1, "Expr": 17, "For": 4, "If": 7, "Return": 1} | 60 | 131 | 60 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "config_file.get_setting", "status.upper", "api.get_boto3_session", "api.get_boto3_client", "get_default_client_config", "dict", "session.client", "deadline_client.get_job", "click.echo", "name.upper", "items", "click.echo", "_cli_ob... | 0 | [] | The function (job_requeue_tasks) defined within the public class called public.The function start at line 284 and ends at 414. It contains 102 lines of code and it has a cyclomatic complexity of 26. It takes 2 parameters, represented as [284.0] and does not return any value. It declares 60.0 functions, and It has 60.0... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _download_job_output._check_and_warn_long_output_paths | def _check_and_warn_long_output_paths(output_paths_by_root: dict[str, list[str]],) -> None:if sys.platform == "win32" and not _is_windows_long_path_registry_enabled():for root, paths in output_paths_by_root.items():for output_path in paths:if len(root + output_path) >= WINDOWS_MAX_PATH_LENGTH:click.secho(_get_long_path... | 6 | 11 | 1 | 70 | 0 | 482 | 492 | 482 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_download_job_output._check_and_warn_long_output_paths) defined within the public class called public.The function start at line 482 and ends at 492. It contains 11 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _download_job_output._download_job_output | def _download_job_output(file_conflict_resolution: Optional[FileConflictResolution] = FileConflictResolution.CREATE_COPY,on_downloading_files: Optional[Callable[[ProgressReportMetadata], bool]] = None,) -> DownloadSummaryStatistics:return job_output_downloader.download_job_output(file_conflict_resolution=file_conflict_... | 1 | 10 | 3 | 47 | 0 | 626 | 635 | 626 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_download_job_output._download_job_output) defined within the public class called public.The function start at line 626 and ends at 635. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [626.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _download_job_output._update_download_progress | def _update_download_progress(download_metadata: ProgressReportMetadata,) -> bool:new_progress = int(download_metadata.progress) - download_progress.posif new_progress > 0:download_progress.update(new_progress)return sigint_handler.continue_operation | 2 | 7 | 1 | 37 | 0 | 642 | 648 | 642 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_download_job_output._update_download_progress) defined within the public class called public.The function start at line 642 and ends at 648. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _download_job_output._update_download_progress | def _update_download_progress(download_metadata: ProgressReportMetadata,) -> bool:click.echo(_get_json_line(JSON_MSG_TYPE_PROGRESS, str(int(download_metadata.progress))))# TODO: enable download cancellation for JSON formatreturn True | 1 | 7 | 1 | 31 | 0 | 656 | 663 | 656 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_download_job_output._update_download_progress) defined within the public class called public.The function start at line 656 and ends at 663. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _download_job_output | def _download_job_output(config: Optional[ConfigParser],farm_id: str,queue_id: str,job_id: str,step_id: Optional[str],task_id: Optional[str],is_json_format: bool = False,):"""Starts the download of job output and handles the progress reporting callback."""deadline = api.get_boto3_client("deadline", config=config)auto_a... | 26 | 176 | 7 | 1,059 | 24 | 417 | 671 | 417 | config,farm_id,queue_id,job_id,step_id,task_id,is_json_format | ['new_root', 'output_paths_by_root', 'new_progress', 'job_attachments_manifests', 'root_path_format', 'conflicting_filenames', 'user_choice', 'download_summary', 'job_attachments', 'step', 'conflict_resolution', 'queue', 'job_output_downloader', 'deadline', 'auto_accept', 'confirmed_asset_roots', 'file_conflict_resolut... | Returns | {"AnnAssign": 3, "Assign": 40, "Expr": 28, "For": 6, "If": 20, "Return": 6, "While": 1, "With": 2} | 111 | 255 | 111 | ["api.get_boto3_client", "config_file.str2bool", "config_file.get_setting", "config_file.get_setting", "deadline.get_job", "deadline.get_step", "deadline.get_task", "click.echo", "_get_start_message", "step.get", "task.get", "deadline.get_queue", "api.get_queue_user_boto3_session", "job.get", "OutputDownloader", "JobAt... | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline._mcp.tools.job_py.download_job_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.handle_web... | The function (_download_job_output) defined within the public class called public.The function start at line 417 and ends at 671. It contains 176 lines of code and it has a cyclomatic complexity of 26. It takes 7 parameters, represented as [417.0], and this function return a value. It declares 111.0 functions, It has 1... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_start_message | def _get_start_message(job_name: str,step_name: Optional[str],task_parameters: Optional[dict],is_json_format: bool,) -> str:if is_json_format:return _get_json_line(JSON_MSG_TYPE_TITLE, job_name)else:if step_name is None:return f"Downloading output from Job {job_name!r}"elif task_parameters is None:return f"Downloading ... | 6 | 24 | 4 | 92 | 1 | 674 | 697 | 674 | job_name,step_name,task_parameters,is_json_format | ['task_parameters_summary'] | str | {"Assign": 2, "If": 4, "Return": 4} | 5 | 24 | 5 | ["_get_json_line", "join", "list", "value.values", "task_parameters.items"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_get_start_message) defined within the public class called public.The function start at line 674 and ends at 697. It contains 24 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [674.0] and does not return any value. It declares 5.0 functions, It has 5.0 functio... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_no_output_message | def _get_no_output_message(is_json_format: bool) -> str:msg = ("There are no output files available for download at this moment. Please verify that"" the Job/Step/Task you are trying to download output from has completed successfully.")if is_json_format:return _get_json_line(JSON_MSG_TYPE_SUMMARY, msg)else:return msg | 2 | 9 | 1 | 29 | 1 | 700 | 708 | 700 | is_json_format | ['msg'] | str | {"Assign": 1, "If": 1, "Return": 2} | 1 | 9 | 1 | ["_get_json_line"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_get_no_output_message) defined within the public class called public.The function start at line 700 and ends at 708. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function c... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_mismatch_os_root_warning | def _get_mismatch_os_root_warning(root: str, root_path_format: str, is_json_format: bool) -> str:if is_json_format:return _get_json_line(JSON_MSG_TYPE_PATH, [root])else:path_format_capitalized_first_letter = root_path_format[0].upper() + root_path_format[1:]return ("This root path format does not match the operating sy... | 2 | 10 | 3 | 54 | 1 | 711 | 720 | 711 | root,root_path_format,is_json_format | ['path_format_capitalized_first_letter'] | str | {"Assign": 1, "If": 1, "Return": 2} | 2 | 10 | 2 | ["_get_json_line", "upper"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_get_mismatch_os_root_warning) defined within the public class called public.The function start at line 711 and ends at 720. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [711.0] and does not return any value. It declares 2.0 functions, It has ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_summary_of_files_to_download_message | def _get_summary_of_files_to_download_message(output_paths_by_root: dict[str, list[str]], is_json_format: bool) -> str:# Print some information about what we will downloadif is_json_format:return _get_json_line(JSON_MSG_TYPE_PRESUMMARY, output_paths_by_root)else:paths_message_joined = "" + "\n".join(f"{os.path.commonpa... | 3 | 11 | 2 | 57 | 1 | 723 | 734 | 723 | output_paths_by_root,is_json_format | ['paths_message_joined'] | str | {"Assign": 1, "If": 1, "Return": 2} | 7 | 12 | 7 | ["_get_json_line", "join", "os.path.commonpath", "os.path.join", "len", "len", "output_paths_by_root.items"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_client.c... | The function (_get_summary_of_files_to_download_message) defined within the public class called public.The function start at line 723 and ends at 734. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [723.0] and does not return any value. It declares 7.0 functi... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_roots_list_message | def _get_roots_list_message(asset_roots: list[str], is_json_format: bool) -> str:if is_json_format:return _get_json_line(JSON_MSG_TYPE_PATH, asset_roots)else:asset_roots_str = "\n".join([f"[{index}] {root}" for index, root in enumerate(asset_roots)])return (f"You are about to download files which may come from multiple... | 3 | 9 | 2 | 55 | 1 | 737 | 745 | 737 | asset_roots,is_json_format | ['asset_roots_str'] | str | {"Assign": 1, "If": 1, "Return": 2} | 3 | 9 | 3 | ["_get_json_line", "join", "enumerate"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_get_roots_list_message) defined within the public class called public.The function start at line 737 and ends at 745. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [737.0] and does not return any value. It declares 3.0 functions, It has 3.0 fun... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_conflict_resolution_selection_message | def _get_conflict_resolution_selection_message(conflicting_filenames: list[str]) -> str:conflicting_filenames_str = "\n".join(conflicting_filenames)return (f"The following files already exist in your local directory:\n{conflicting_filenames_str}\n"f"You have three options to choose from:\n"f"[1] Skip: Do not download t... | 1 | 9 | 1 | 33 | 1 | 748 | 756 | 748 | conflicting_filenames | ['conflicting_filenames_str'] | str | {"Assign": 1, "Return": 1} | 1 | 9 | 1 | ["join"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_get_conflict_resolution_selection_message) defined within the public class called public.The function start at line 748 and ends at 756. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, I... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_download_summary_message | def _get_download_summary_message(download_summary: DownloadSummaryStatistics, is_json_format: bool) -> str:if is_json_format:return _get_json_line(JSON_MSG_TYPE_SUMMARY,f"Downloaded {download_summary.processed_files} files",extra_properties={"fileCount": download_summary.processed_files},)else:paths_joined = "\n".join... | 3 | 22 | 2 | 72 | 1 | 759 | 780 | 759 | download_summary,is_json_format | ['paths_joined'] | str | {"Assign": 1, "If": 1, "Return": 2} | 7 | 22 | 7 | ["_get_json_line", "join", "download_summary.file_counts_by_root_directory.items", "human_readable_file_size", "round", "human_readable_file_size", "int"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_client.c... | The function (_get_download_summary_message) defined within the public class called public.The function start at line 759 and ends at 780. It contains 22 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [759.0] and does not return any value. It declares 7.0 functions, It has ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_long_path_found_message | def _get_long_path_found_message(is_json_format: bool) -> str:message = """WARNING: Found downloaded file paths that exceed Windows path length limit. This may cause unexpected issues.For details and a fix using the registry, see: https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation"""if ... | 2 | 9 | 1 | 26 | 1 | 783 | 792 | 783 | is_json_format | ['message'] | str | {"Assign": 1, "If": 1, "Return": 2} | 1 | 10 | 1 | ["_get_json_line"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_get_long_path_found_message) defined within the public class called public.The function start at line 783 and ends at 792. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 func... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_conflicting_filenames | def _get_conflicting_filenames(filenames_by_root: dict[str, list[str]]) -> list[str]:conflicting_filenames: list[str] = []for root, filenames in filenames_by_root.items():for filename in filenames:abs_path = Path(root).joinpath(filename).resolve()if abs_path.is_file():conflicting_filenames.append(str(abs_path))return c... | 4 | 8 | 1 | 78 | 1 | 795 | 804 | 795 | filenames_by_root | ['abs_path'] | list[str] | {"AnnAssign": 1, "Assign": 1, "Expr": 1, "For": 2, "If": 1, "Return": 1} | 7 | 10 | 7 | ["filenames_by_root.items", "resolve", "joinpath", "Path", "abs_path.is_file", "conflicting_filenames.append", "str"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_get_conflicting_filenames) defined within the public class called public.The function start at line 795 and ends at 804. It contains 8 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 7.0 functions, It has 7.0 func... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_json_line | def _get_json_line(messageType: str,value: Union[str, list[str], dict[str, Any]],extra_properties: Optional[dict[str, Any]] = None,) -> str:json_obj = {"messageType": messageType, "value": value}if extra_properties:json_obj.update(extra_properties)return json.dumps(json_obj, ensure_ascii=True) | 2 | 9 | 3 | 74 | 1 | 807 | 815 | 807 | messageType,value,extra_properties | ['json_obj'] | str | {"Assign": 1, "Expr": 1, "If": 1, "Return": 1} | 2 | 9 | 2 | ["json_obj.update", "json.dumps"] | 13 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._gr... | The function (_get_json_line) defined within the public class called public.The function start at line 807 and ends at 815. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [807.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions ca... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_value_from_json_line | def _get_value_from_json_line(json_line: str, message_type: str, expected_size: Optional[int] = None) -> Union[str, list[str]]:try:parsed_json = json.loads(json_line)if parsed_json["messageType"] != message_type:raise ValueError(f"Expected message type '{message_type}' but received '{parsed_json['messageType']}'")if ex... | 5 | 17 | 3 | 91 | 1 | 818 | 834 | 818 | json_line,message_type,expected_size | ['parsed_json'] | Union[str, list[str]] | {"Assign": 1, "If": 2, "Return": 1, "Try": 1} | 6 | 17 | 6 | ["json.loads", "ValueError", "len", "ValueError", "len", "ValueError"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_get_value_from_json_line) defined within the public class called public.The function start at line 818 and ends at 834. It contains 17 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [818.0] and does not return any value. It declares 6.0 functions, It has 6.0 ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _assert_valid_path | def _assert_valid_path(path: str) -> None:"""Validates that the path has the format of the OS currently running."""path_obj = Path(path)if not path_obj.is_absolute():raise ValueError(f"Path {path} is not an absolute path.") | 2 | 4 | 1 | 30 | 1 | 837 | 843 | 837 | path | ['path_obj'] | None | {"Assign": 1, "Expr": 1, "If": 1} | 3 | 7 | 3 | ["Path", "path_obj.is_absolute", "ValueError"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output"] | The function (_assert_valid_path) defined within the public class called public.The function start at line 837 and ends at 843. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions ca... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_download_output | def job_download_output(step_id, task_id, output, **args):"""Download a job's output."""if task_id and not step_id:raise click.UsageError("Missing option '--step-id' required with '--task-id'")# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_... | 7 | 21 | 4 | 171 | 6 | 885 | 911 | 885 | step_id,task_id,output,**args | ['config', 'farm_id', 'job_id', 'error_one_liner', 'queue_id', 'is_json_format'] | None | {"Assign": 6, "Expr": 5, "If": 3, "Try": 1} | 26 | 27 | 26 | ["click.UsageError", "_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "config_file.get_setting", "_download_job_output", "replace", "str", "click.echo", "_get_json_line", "sys.exit", "logger.getEffectiveLevel", "logger.exception", "DeadlineOperationError", "cli_job.command", "click.... | 0 | [] | The function (job_download_output) defined within the public class called public.The function start at line 885 and ends at 911. It contains 21 lines of code and it has a cyclomatic complexity of 7. It takes 4 parameters, represented as [885.0] and does not return any value. It declares 26.0 functions, and It has 26.0... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_wait_for_completion.status_callback | def status_callback(status, elapsed_time=0, total_timeout=0):if not is_json_output:timeout_info = ""if total_timeout > 0:remaining = max(0, total_timeout - elapsed_time)timeout_info = f" [{elapsed_time:.1f}s elapsed, {remaining:.1f}s remaining]"else:timeout_info = f" [{elapsed_time:.1f}s elapsed]"# Clear the current li... | 3 | 12 | 3 | 57 | 0 | 963 | 976 | 963 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (job_wait_for_completion.status_callback) defined within the public class called public.The function start at line 963 and ends at 976. It contains 12 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [963.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_wait_for_completion | def job_wait_for_completion(max_poll_interval, timeout, output, **args):"""Wait for a job to complete and return failed step-task IDs.This command blocks until the job's taskRunStatus reaches a terminal state (SUCCEEDED, FAILED, CANCELED, SUSPENDED, or NOT_COMPATIBLE),then returns a list of any failed step-task combina... | 18 | 103 | 4 | 564 | 15 | 928 | 1,078 | 928 | max_poll_interval,timeout,output,**args | ['config', 'remaining', 'timeout_info', 'error_response', 'is_json_output', 'farm_id', 'deadline', 'job_name', 'job_id', 'response', 'result', 'exit_code', 'failed_tasks_dict', 'job', 'queue_id'] | None | {"Assign": 25, "Expr": 22, "If": 13, "Try": 1} | 46 | 151 | 46 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "config_file.get_setting", "output.lower", "api.get_boto3_client", "deadline.get_job", "max", "click.echo", "click.echo", "api.wait_for_job_completion", "click.echo", "json.dumps", "click.echo", "click.echo", "click.echo", "click.ech... | 0 | [] | The function (job_wait_for_completion) defined within the public class called public.The function start at line 928 and ends at 1078. It contains 103 lines of code and it has a cyclomatic complexity of 18. It takes 4 parameters, represented as [928.0] and does not return any value. It declares 46.0 functions, and It h... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_logs | def job_logs(session_id, limit, start_time, end_time, next_token, output, timezone, **args):"""Get CloudWatch logs for a specific session.This command retrieves logs from CloudWatch for the specified session ID.By default, it returns the most recent 100 log lines, but this can beadjusted using the --limit parameter.If ... | 24 | 109 | 8 | 643 | 19 | 1,110 | 1,266 | 1,110 | session_id,limit,start_time,end_time,next_token,output,timezone,**args | ['paginator', 'config', 'completed_sessions', 'job_name', 'use_local_time', 'timestamp', 'is_json_output', 'farm_id', 'sessions', 'ongoing_sessions', 'session_id', 'deadline', 'latest_session', 'job_id', 'response', 'result', 'error_response', 'job', 'queue_id'] | None | {"Assign": 21, "Expr": 14, "For": 2, "If": 12, "Return": 1, "Try": 2} | 56 | 157 | 56 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "config_file.get_setting", "output.lower", "api.get_boto3_client", "deadline.get_job", "timezone.lower", "deadline.get_paginator", "paginator.paginate", "sessions.extend", "page.get", "DeadlineOperationError", "len", "click.echo", "m... | 0 | [] | The function (job_logs) defined within the public class called public.The function start at line 1110 and ends at 1266. It contains 109 lines of code and it has a cyclomatic complexity of 24. It takes 8 parameters, represented as [1110.0] and does not return any value. It declares 56.0 functions, and It has 56.0 funct... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_trace_schedule.time_int | def time_int(timestamp: datetime.datetime):return int((timestamp - started_at) / datetime.timedelta(microseconds=1)) | 1 | 2 | 1 | 27 | 0 | 1,409 | 1,410 | 1,409 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (job_trace_schedule.time_int) defined within the public class called public.The function start at line 1409 and ends at 1410. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_trace_schedule.duration_of | def duration_of(resource):try:return time_int(resource.get("endedAt", trace_end_utc)) - time_int(resource["startedAt"])except KeyError:return 0 | 2 | 7 | 1 | 32 | 0 | 1,412 | 1,418 | 1,412 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (job_trace_schedule.duration_of) defined within the public class called public.The function start at line 1412 and ends at 1418. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | job_trace_schedule | def job_trace_schedule(verbose, trace_format, trace_file, **args):"""EXPERIMENTAL - Generate statistics from a job.To visualize the trace output file when providing the options"--trace-format chrome --trace-file <output>.json", usethe https://ui.perfetto.dev Tracing UI and choose "Open trace file"."""# Get a temporary ... | 31 | 254 | 4 | 1,448 | 30 | 1,285 | 1,588 | 1,285 | verbose,trace_format,trace_file,**args | ['config', 'worker_ids', 'session_event_name', 'sync_job_attachments_total_duration', 'task_run_total_duration', 'env_action_total_duration', 'within_session_overhead_duration', 'trace_events', 'accumulators', 'farm_id', 'step', 'sessions', 'non_task_run_total_duration', 'parameters', 'old_list', 'deadline', 'pid', 'se... | Returns | {"AnnAssign": 3, "Assign": 53, "AugAssign": 10, "Expr": 38, "For": 5, "If": 18, "Return": 3, "Try": 1, "While": 2, "With": 2} | 106 | 304 | 106 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "config_file.get_setting", "DeadlineOperationError", "api.get_boto3_client", "datetime.datetime.now", "click.echo", "deadline.get_job", "job.pop", "DeadlineOperationError", "click.echo", "deadline.list_sessions", "deadline.list_sessi... | 0 | [] | The function (job_trace_schedule) defined within the public class called public.The function start at line 1285 and ends at 1588. It contains 254 lines of code and it has a cyclomatic complexity of 31. It takes 4 parameters, represented as [1285.0], and this function return a value. It declares 106.0 functions, and It... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | cli_manifest | def cli_manifest():"""Commands to work with AWS Deadline Cloud Job Attachments.""" | 1 | 1 | 0 | 5 | 0 | 50 | 53 | 50 | [] | None | {"Expr": 1} | 1 | 4 | 1 | ["main.group"] | 0 | [] | The function (cli_manifest) defined within the public class called public.The function start at line 50 and ends at 53. It contains 1 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called i... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | manifest_snapshot | def manifest_snapshot(root: str,destination: str,name: str,include: List[str],exclude: List[str],include_exclude_config: str,diff: str,force_rehash: bool,json: bool,**args,):"""Creates manifest of files specified by root directory."""logger: ClickLogger = ClickLogger(is_json=json)if not os.path.isdir(root):raise NonVal... | 9 | 48 | 10 | 232 | 3 | 103 | 157 | 103 | root,destination,name,include,exclude,include_exclude_config,diff,force_rehash,json,**args | ['destination', 'long_manifest_path_warning', 'manifest_out'] | None | {"AnnAssign": 1, "Assign": 3, "Expr": 5, "If": 5} | 26 | 55 | 26 | ["ClickLogger", "os.path.isdir", "NonValidInputError", "os.path.isdir", "NonValidInputError", "logger.echo", "_manifest_snapshot", "len", "_is_windows_long_path_registry_enabled", "logger.echo", "click.style", "logger.json", "dict", "dataclasses.asdict", "logger.json", "dataclasses.asdict", "cli_manifest.command", "cli... | 0 | [] | The function (manifest_snapshot) defined within the public class called public.The function start at line 103 and ends at 157. It contains 48 lines of code and it has a cyclomatic complexity of 9. It takes 10 parameters, represented as [103.0] and does not return any value. It declares 26.0 functions, and It has 26.0 ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | manifest_diff | def manifest_diff(root: str,manifest: str,include: List[str],exclude: List[str],include_exclude_config: str,force_rehash: bool,json: bool,**args,):"""Check file differences between a directory and specified manifest."""logger: ClickLogger = ClickLogger(is_json=json)if not os.path.isfile(manifest):raise NonValidInputErr... | 4 | 35 | 8 | 183 | 1 | 198 | 240 | 198 | root,manifest,include,exclude,include_exclude_config,force_rehash,json,**args | ['all_files'] | None | {"AnnAssign": 2, "Assign": 1, "Expr": 4, "If": 3} | 19 | 43 | 19 | ["ClickLogger", "os.path.isfile", "NonValidInputError", "os.path.isdir", "NonValidInputError", "_manifest_diff", "logger.json", "dataclasses.asdict", "logger.echo", "_glob_files", "pretty_print_cli", "cli_manifest.command", "click.option", "click.option", "click.option", "click.option", "click.option", "click.option", ... | 0 | [] | The function (manifest_diff) defined within the public class called public.The function start at line 198 and ends at 240. It contains 35 lines of code and it has a cyclomatic complexity of 4. It takes 8 parameters, represented as [198.0] and does not return any value. It declares 19.0 functions, and It has 19.0 funct... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | manifest_download | def manifest_download(download_dir: str,job_id: str,step_id: str,asset_type: str,json: bool,**args,):"""Downloads input/output manifests of a submitted job as per provided asset_type"""logger: ClickLogger = ClickLogger(is_json=json)if not os.path.isdir(download_dir):raise NonValidInputError(f"Specified destination dire... | 2 | 28 | 6 | 168 | 1 | 269 | 303 | 269 | download_dir,job_id,step_id,asset_type,json,**args | ['output'] | None | {"AnnAssign": 5, "Assign": 1, "Expr": 2, "If": 1} | 21 | 35 | 21 | ["ClickLogger", "os.path.isdir", "NonValidInputError", "_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "api.get_boto3_session", "_manifest_download", "AssetType", "logger.json", "dataclasses.asdict", "cli_manifest.command", "click.argument", "click.option", "click.option", "click.o... | 0 | [] | The function (manifest_download) defined within the public class called public.The function start at line 269 and ends at 303. It contains 28 lines of code and it has a cyclomatic complexity of 2. It takes 6 parameters, represented as [269.0] and does not return any value. It declares 21.0 functions, and It has 21.0 f... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | manifest_upload | def manifest_upload(manifest_file: str,s3_cas_uri: str,s3_manifest_prefix: str,json: bool,**args,):# Input checking.if not manifest_file or not os.path.isfile(manifest_file):raise NonValidInputError(f"Specified manifest {manifest_file} does not exist. ")# Where will we upload the manifest to?required: set[str] = set()i... | 5 | 54 | 5 | 278 | 8 | 324 | 390 | 324 | manifest_file,s3_cas_uri,s3_manifest_prefix,json,**args | ['queue', 'farm_id', 'deadline', 'cas_path', 'session', 'required', 'bucket_name', 'queue_id'] | None | {"AnnAssign": 7, "Assign": 10, "Expr": 3, "If": 3} | 24 | 67 | 24 | ["os.path.isfile", "NonValidInputError", "set", "_apply_cli_options_to_config", "ClickLogger", "api.get_boto3_session", "config_file.get_setting", "config_file.get_setting", "api.get_boto3_client", "deadline.get_queue", "JobAttachmentS3Settings", "api.get_queue_user_boto3_session", "JobAttachmentS3Settings.from_s3_root... | 0 | [] | The function (manifest_upload) defined within the public class called public.The function start at line 324 and ends at 390. It contains 54 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [324.0] and does not return any value. It declares 24.0 functions, and It has 24.0 fun... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | cli_queue | def cli_queue():"""Commands for queues.""" | 1 | 1 | 0 | 5 | 0 | 39 | 42 | 39 | [] | None | {"Expr": 1} | 1 | 4 | 1 | ["main.group"] | 0 | [] | The function (cli_queue) defined within the public class called public.The function start at line 39 and ends at 42. It contains 1 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called insi... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | queue_list | def queue_list(**args):"""Lists the available queues."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id"}, **args)farm_id = config_file.get_setting("defaults.farm_id", config=config)try:response = api.list_queues(farmId=farm_id, config=co... | 4 | 12 | 1 | 97 | 4 | 49 | 69 | 49 | **args | ['farm_id', 'config', 'structured_queue_list', 'response'] | None | {"Assign": 4, "Expr": 2, "Try": 1} | 9 | 21 | 9 | ["_apply_cli_options_to_config", "config_file.get_setting", "api.list_queues", "DeadlineOperationError", "click.echo", "_cli_object_repr", "cli_queue.command", "click.option", "click.option"] | 0 | [] | The function (queue_list) defined within the public class called public.The function start at line 49 and ends at 69. It contains 12 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | queue_export_credentials | def queue_export_credentials(mode, output_format, **args):"""Export queue credentials in a format compatible with AWS SDK credentials_process."""start_time = time.time()is_success = Trueerror_type = None# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_optio... | 9 | 62 | 3 | 337 | 8 | 89 | 162 | 89 | mode,output_format,**args | ['config', 'formatted_credentials', 'error_type', 'is_success', 'response', 'start_time', 'credentials', 'duration_ms'] | None | {"AnnAssign": 2, "Assign": 15, "Expr": 3, "If": 5, "Try": 1} | 31 | 74 | 31 | ["time.time", "_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "mode.upper", "api.assume_queue_role_for_user", "mode.upper", "api.assume_queue_role_for_read", "DeadlineOperationError", "output_format.lower", "isoformat", "click.echo", "json.dumps", "DeadlineOperationError", "str", "... | 0 | [] | The function (queue_export_credentials) defined within the public class called public.The function start at line 89 and ends at 162. It contains 62 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [89.0] and does not return any value. It declares 31.0 functions, and It has 3... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | queue_paramdefs | def queue_paramdefs(**args):"""Lists a Queue's Parameters Definitions."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id", "queue_id"}, **args)farm_id = config_file.get_setting("defaults.farm_id", config=config)queue_id = config_file.get_... | 2 | 11 | 1 | 84 | 4 | 170 | 187 | 170 | **args | ['farm_id', 'config', 'response', 'queue_id'] | None | {"Assign": 4, "Expr": 2, "Try": 1} | 11 | 18 | 11 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "api.get_queue_parameter_definitions", "DeadlineOperationError", "click.echo", "_cli_object_repr", "cli_queue.command", "click.option", "click.option", "click.option"] | 0 | [] | The function (queue_paramdefs) defined within the public class called public.The function start at line 170 and ends at 187. It contains 11 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 11.0 functions, and It has 11.0 functio... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | queue_get | def queue_get(**args):"""Get the details of a queue.If Queue ID is not provided, returns the configured default Queue."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id", "queue_id"}, **args)farm_id = config_file.get_setting("defaults.far... | 1 | 8 | 1 | 89 | 5 | 195 | 211 | 195 | **args | ['config', 'farm_id', 'deadline', 'response', 'queue_id'] | None | {"Assign": 5, "Expr": 3} | 12 | 17 | 12 | ["_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "api.get_boto3_client", "deadline.get_queue", "response.pop", "click.echo", "_cli_object_repr", "cli_queue.command", "click.option", "click.option", "click.option"] | 0 | [] | The function (queue_get) defined within the public class called public.The function start at line 195 and ends at 211. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0 functions, and It has 12.0 functions call... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | sync_output | def sync_output(json: bool,bootstrap_lookback_minutes: float,checkpoint_dir: str,force_bootstrap: bool,ignore_storage_profiles: bool,conflict_resolution: str,dry_run: bool,**args,):"""Downloads any new job attachments output for all jobs in a queue since the last run of the same command.When run for the first time or w... | 19 | 136 | 8 | 623 | 10 | 275 | 461 | 275 | json,bootstrap_lookback_minutes,checkpoint_dir,force_bootstrap,ignore_storage_profiles,conflict_resolution,dry_run,**args | ['queue', 'local_storage_profile_id', 'checkpoint_dir', 'checkpoint', 'local_storage_profile', 'farm_id', 'bootstrap_timestamp', 'deadline', 'id_source', 'queue_id'] | None | {"AnnAssign": 8, "Assign": 13, "Expr": 19, "For": 1, "If": 13, "Try": 1, "With": 1} | 68 | 187 | 68 | ["DeadlineOperationError", "args.get", "click.UsageError", "ClickLogger", "os.path.abspath", "os.path.expanduser", "os.makedirs", "os.access", "DeadlineOperationError", "_apply_cli_options_to_config", "config_file.get_setting", "config_file.get_setting", "api.get_boto3_session", "get_session_client", "logger.echo", "co... | 0 | [] | The function (sync_output) defined within the public class called public.The function start at line 275 and ends at 461. It contains 136 lines of code and it has a cyclomatic complexity of 19. It takes 8 parameters, represented as [275.0] and does not return any value. It declares 68.0 functions, and It has 68.0 funct... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | cli_worker | def cli_worker():"""Commands to work with workers.""" | 1 | 1 | 0 | 5 | 0 | 19 | 22 | 19 | [] | None | {"Expr": 1} | 1 | 4 | 1 | ["main.group"] | 0 | [] | The function (cli_worker) defined within the public class called public.The function start at line 19 and ends at 22. It contains 1 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called ins... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | worker_list | def worker_list(page_size, item_offset, fleet_id, **args):"""Lists the Workers in a fleet."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id"}, **args)farm_id = config_file.get_setting("defaults.farm_id", config=config)deadline = api.get_... | 4 | 20 | 4 | 145 | 6 | 32 | 61 | 32 | page_size,item_offset,fleet_id,**args | ['config', 'farm_id', 'deadline', 'response', 'total_results', 'structured_worker_list'] | None | {"Assign": 6, "Expr": 4, "Try": 1} | 16 | 30 | 16 | ["_apply_cli_options_to_config", "config_file.get_setting", "api.get_boto3_client", "deadline.search_workers", "DeadlineOperationError", "click.echo", "len", "click.echo", "click.echo", "_cli_object_repr", "cli_worker.command", "click.option", "click.option", "click.option", "click.option", "click.option"] | 0 | [] | The function (worker_list) defined within the public class called public.The function start at line 32 and ends at 61. It contains 20 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [32.0] and does not return any value. It declares 16.0 functions, and It has 16.0 functions ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | worker_get | def worker_get(fleet_id, worker_id, **args):"""Get the details of a worker."""# Get a temporary config object with the standard options handledconfig = _apply_cli_options_to_config(required_options={"farm_id"}, **args)farm_id = config_file.get_setting("defaults.farm_id", config=config)deadline = api.get_boto3_client("d... | 1 | 7 | 3 | 83 | 4 | 70 | 83 | 70 | fleet_id,worker_id,**args | ['farm_id', 'config', 'deadline', 'response'] | None | {"Assign": 4, "Expr": 3} | 12 | 14 | 12 | ["_apply_cli_options_to_config", "config_file.get_setting", "api.get_boto3_client", "deadline.get_worker", "response.pop", "click.echo", "_cli_object_repr", "cli_worker.command", "click.option", "click.option", "click.option", "click.option"] | 0 | [] | The function (worker_get) defined within the public class called public.The function start at line 70 and ends at 83. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [70.0] and does not return any value. It declares 12.0 functions, and It has 12.0 functions ca... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | get_config_file_path | def get_config_file_path() -> Path:"""Get the config file path from the environment variable, falling backto our default if it is not set."""return Path(os.environ.get(CONFIG_FILE_PATH_ENV_VAR) or CONFIG_FILE_PATH).expanduser() | 2 | 2 | 0 | 25 | 0 | 147 | 152 | 147 | [] | Path | {"Expr": 1, "Return": 1} | 3 | 6 | 3 | ["expanduser", "Path", "os.environ.get"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_py.read_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_... | The function (get_config_file_path) defined within the public class called public.The function start at line 147 and ends at 152. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions ... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | get_cache_directory | def get_cache_directory() -> str:"""Get the cache directory."""return os.path.expanduser(DEFAULT_CACHE_DIR) | 1 | 2 | 0 | 16 | 0 | 155 | 159 | 155 | [] | str | {"Expr": 1, "Return": 1} | 1 | 5 | 1 | ["os.path.expanduser"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.examples.submit_job_py.process_job_attachments"] | The function (get_cache_directory) defined within the public class called public.The function start at line 155 and ends at 159. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function call... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _should_read_config | def _should_read_config(config_file_path: Path) -> bool:global __config_file_pathglobal __config_mtimeif (__config_mtime is not Noneand config_file_path == __config_file_pathand config_file_path.is_file()):mtime = config_file_path.stat().st_mtimeif mtime == __config_mtime:return Falsereturn True | 5 | 12 | 1 | 49 | 1 | 162 | 174 | 162 | config_file_path | ['mtime'] | bool | {"Assign": 1, "If": 2, "Return": 2} | 2 | 13 | 2 | ["config_file_path.is_file", "config_file_path.stat"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_py.read_config"] | The function (_should_read_config) defined within the public class called public.The function start at line 162 and ends at 174. It contains 12 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | read_config | def read_config() -> ConfigParser:"""If the config hasn't been read yet, or was modified since it was lastread, reads the AWS Deadline Cloud configuration."""global __configglobal __config_file_pathglobal __config_mtimeconfig_file_path = get_config_file_path()if _should_read_config(config_file_path):# Read the config f... | 4 | 19 | 0 | 95 | 5 | 177 | 205 | 177 | ['config_file_path', '__config', '__config_file_path', '__config_mtime', 'config_contents'] | ConfigParser | {"Assign": 6, "Expr": 2, "If": 2, "Return": 1, "Try": 1, "With": 1} | 9 | 29 | 9 | ["get_config_file_path", "_should_read_config", "ConfigParser", "open", "fh.read", "__config.read_string", "str", "config_file_path.is_file", "config_file_path.stat"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_py.get_best_profile_for_farm", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.confi... | The function (read_config) defined within the public class called public.The function start at line 177 and ends at 205. It contains 19 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 9.0 functions, It has 9.0 functions called i... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _reset_directory_permissions_windows | def _reset_directory_permissions_windows(directory: Path) -> None:if platform.system() != "Windows":returnimport win32securityimport ntsecuritycon# We don't want to propagate existing permissions, so create a new DACLdacl = win32security.ACL()# On Windows, both SYSTEM and the Administrators group normally# have Full Ac... | 3 | 24 | 1 | 149 | 5 | 208 | 252 | 208 | directory | ['dacl', 'admin_sid', 'sd', 'username', 'system_sid'] | None | {"Assign": 6, "Expr": 3, "For": 1, "If": 1, "Return": 1} | 14 | 45 | 14 | ["platform.system", "win32security.ACL", "win32security.ConvertStringSidToSid", "win32security.ConvertStringSidToSid", "getpass.getuser", "win32security.LookupAccountName", "dacl.AddAccessAllowedAceEx", "win32security.GetFileSecurity", "str", "directory.resolve", "sd.SetSecurityDescriptorDacl", "win32security.SetFileSe... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_py.write_config"] | The function (_reset_directory_permissions_windows) defined within the public class called public.The function start at line 208 and ends at 252. It contains 24 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 14.0 functions, It ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | write_config | def write_config(config: ConfigParser) -> None:"""Writes the provided config to the AWS Deadline Cloud configuration.Args:config (ConfigParser): The config object to write. Generally this isa modified value from what `read_config` returns."""config_file_path = get_config_file_path()if not config_file_path.parent.exists... | 3 | 10 | 1 | 103 | 1 | 255 | 277 | 255 | config | ['config_file_path'] | None | {"Assign": 2, "Expr": 5, "If": 2, "With": 1} | 10 | 23 | 10 | ["get_config_file_path", "config_file_path.parent.exists", "config_file_path.parent.mkdir", "platform.system", "_reset_directory_permissions_windows", "tempfile.mkstemp", "str", "os.fdopen", "config.write", "os.replace"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_py.set_setting"] | The function (write_config) defined within the public class called public.The function start at line 255 and ends at 277. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 10.0 functions, It has 10.0 functions calle... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_setting_config | def _get_setting_config(setting_name: str) -> dict:"""Gets the setting configuration for the specified setting name,raising an error if it does not exist.Args:setting_name (str): The full setting name, like `section.setting`."""setting_config = SETTINGS.get(setting_name)if not setting_config:raise DeadlineOperationErro... | 2 | 7 | 1 | 30 | 1 | 280 | 293 | 280 | setting_name | ['setting_config'] | dict | {"Assign": 1, "Expr": 1, "If": 1, "Return": 1} | 2 | 14 | 2 | ["SETTINGS.get", "DeadlineOperationError"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_py.get_setting", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_... | The function (_get_setting_config) defined within the public class called public.The function start at line 280 and ends at 293. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions c... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_default_from_setting_config | def _get_default_from_setting_config(setting_config, config: Optional[ConfigParser]) -> str:"""Gets the default value from a setting_config entry, performing value substitutions.Currently the only substitution supported is `{aws_profile_name}`."""default_value = setting_config["default"]# Only do the substitution if we... | 2 | 7 | 2 | 45 | 1 | 296 | 308 | 296 | setting_config,config | ['default_value'] | str | {"Assign": 2, "Expr": 1, "If": 1, "Return": 1} | 2 | 13 | 2 | ["default_value.format", "get_setting"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_py._get_section_prefixes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.co... | The function (_get_default_from_setting_config) defined within the public class called public.The function start at line 296 and ends at 308. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [296.0] and does not return any value. It declares 2.0 functions, It ha... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | get_setting_default | def get_setting_default(setting_name: str, config: Optional[ConfigParser] = None) -> str:"""Gets the default value for the setting `setting_name`.Raises an exception if the setting does not exist.Args:setting_name (str): The full setting name, like `section.setting`.config: The config file read with `read_config()`."""... | 1 | 3 | 2 | 34 | 1 | 311 | 321 | 311 | setting_name,config | ['setting_config'] | str | {"Assign": 1, "Expr": 1, "Return": 1} | 2 | 11 | 2 | ["_get_setting_config", "_get_default_from_setting_config"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._main_py._get_default_log_level", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_fil... | The function (get_setting_default) defined within the public class called public.The function start at line 311 and ends at 321. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [311.0] and does not return any value. It declares 2.0 functions, It has 2.0 functio... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_section_prefixes | def _get_section_prefixes(setting_config: dict, config: ConfigParser) -> List[str]:"""Gets a list of the section name prefixes for the specified setting section + setting configArgs:setting_config: The setting config object from the SETTINGS dictionary.config: The config file read with `read_config()`."""if "depend" in... | 3 | 16 | 2 | 122 | 6 | 324 | 347 | 324 | setting_config,config | ['dep_section_format', 'dep_setting_name', 'dep_setting_config', 'formatted_section_value', 'dep_section_prefixes', 'dep_section_value'] | List[str] | {"AnnAssign": 1, "Assign": 7, "Expr": 1, "If": 2, "Return": 2} | 6 | 24 | 6 | ["dep_setting_name.split", "_get_section_prefixes", "config.get", "join", "_get_default_from_setting_config", "dep_section_format.format"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.config_file_py._get_section_prefixes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.config.co... | The function (_get_section_prefixes) defined within the public class called public.The function start at line 324 and ends at 347. It contains 16 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [324.0] and does not return any value. It declares 6.0 functions, It has 6.0 func... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | get_setting | def get_setting(setting_name: str, config: Optional[ConfigParser] = None) -> str:"""Gets the value of the specified setting, returning the default ifnot configured. Raises an exception if the setting does not exist.Args:setting_name (str): The full setting name, like `section.setting`.config (ConfigParser, optional): T... | 4 | 14 | 2 | 116 | 4 | 350 | 376 | 350 | setting_name,config | ['section_prefixes', 'config', 'section', 'setting_config'] | str | {"AnnAssign": 1, "Assign": 5, "Expr": 1, "If": 3, "Return": 2} | 8 | 27 | 8 | ["DeadlineOperationError", "setting_name.split", "read_config", "_get_setting_config", "_get_section_prefixes", "join", "config.get", "_get_default_from_setting_config"] | 26 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3667502_braver_sidebartools.SideBar_py.SideBarCommand.is_visible", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3667502_braver_sidebartools.SideBar_py.SideBarCompareCommand.is_enabled", "_.content.gdrive.MyDrive.Ph... | The function (get_setting) defined within the public class called public.The function start at line 350 and ends at 376. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [350.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions call... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | set_setting | def set_setting(setting_name: str, value: str, config: Optional[ConfigParser] = None):"""Sets the value of the specified setting, returning the default ifnot configured. Raises an exception if the setting does not exist.Args:setting_name (str): The full setting name, like `section.setting`.value (bool|int|float|str): T... | 5 | 17 | 3 | 118 | 5 | 379 | 409 | 379 | setting_name,value,config | ['config', 'save_config', 'section', 'setting_config', 'section_prefixes'] | None | {"Assign": 8, "Expr": 3, "If": 4} | 8 | 31 | 8 | ["DeadlineOperationError", "setting_name.split", "_get_setting_config", "read_config", "_get_section_prefixes", "join", "config.set", "write_config"] | 7 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (set_setting) defined within the public class called public.The function start at line 379 and ends at 409. It contains 17 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [379.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions call... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | clear_setting | def clear_setting(setting_name: str, config: Optional[ConfigParser] = None):"""Sets the value of the specified setting back to the default value.Args:setting_name (str): The full setting name, like `section.setting`.config (Optional[ConfigParser]): If provided clears the setting in the parser and does not save to disk.... | 2 | 4 | 2 | 46 | 0 | 412 | 423 | 412 | setting_name,config | [] | None | {"Expr": 2, "If": 1} | 3 | 12 | 3 | ["DeadlineOperationError", "set_setting", "get_setting_default"] | 0 | [] | The function (clear_setting) defined within the public class called public.The function start at line 412 and ends at 423. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [412.0] and does not return any value. It declares 3.0 functions, and It has 3.0 function... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | get_best_profile_for_farm | def get_best_profile_for_farm(farm_id: str, queue_id: Optional[str] = None) -> str:"""Finds the best AWS profile for the specified farm and queue IDs. Choosesthe first match from:1. The default AWS profile if its default farm matches.2. AWS profiles whose default farm and queue IDs match.3. AWS profiles whose default f... | 8 | 17 | 2 | 144 | 4 | 426 | 464 | 426 | farm_id,queue_id | ['aws_profile_names', 'config', 'first_farm_aws_profile_name', 'session'] | str | {"AnnAssign": 2, "Assign": 4, "Expr": 3, "For": 1, "If": 4, "Return": 3} | 11 | 39 | 11 | ["boto3.Session", "keys", "ConfigParser", "config.read_dict", "read_config", "str", "get_setting", "get_setting", "set_setting", "get_setting", "get_setting"] | 0 | [] | The function (get_best_profile_for_farm) defined within the public class called public.The function start at line 426 and ends at 464. It contains 17 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [426.0] and does not return any value. It declares 11.0 functions, and It ha... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | str2bool | def str2bool(value: str) -> bool:"""Converts a string to boolean, accepting a variety of on/off,true/false, 0/1 variants."""value = value.lower()if value in _BOOL_VALUES:return value in _TRUE_VALUESelse:raise ValueError(f"{value!r} is not a valid boolean string value") | 2 | 6 | 1 | 34 | 1 | 467 | 476 | 467 | value | ['value'] | bool | {"Assign": 1, "Expr": 1, "If": 1, "Return": 1} | 2 | 10 | 2 | ["value.lower", "ValueError"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_config_dialog_py.DeadlineWorkstationConfigWidget._init_checkbox_setting"] | The function (str2bool) defined within the public class called public.The function start at line 467 and ends at 476. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called insid... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | create_job_history_bundle_dir | def create_job_history_bundle_dir(submitter_name: str, job_name: str) -> str:"""Creates a new directory in the configured directorysettings.job_history_dir, in which to place a newjob bundle for submission.The directory will look like<job_history_dir>/YYYY-mm/YYYY-mm-ddTHH-##-<submitter_name>-<job_name>"""job_history_d... | 9 | 24 | 2 | 227 | 11 | 20 | 60 | 20 | submitter_name,job_name | ['timestamp', 'submitter_name_cleaned', 'job_name_cleaned', 'month_tag', 'month_dir', 'latest_dir', 'existing_dirs', 'job_history_dir', 'date_tag', 'result', 'number'] | str | {"Assign": 14, "Expr": 3, "If": 2, "Return": 1} | 22 | 41 | 22 | ["str", "get_setting", "os.path.expanduser", "join", "char.isalnum", "join", "char.isalnum", "datetime.datetime.now", "timestamp.strftime", "timestamp.strftime", "os.path.join", "os.path.isdir", "os.makedirs", "sorted", "glob.glob", "os.path.join", "int", "split", "os.path.basename", "len", "os.path.join", "os.makedirs... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.on_export_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_d... | The function (create_job_history_bundle_dir) defined within the public class called public.The function start at line 20 and ends at 60. It contains 24 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [20.0] and does not return any value. It declares 22.0 functions, It has 22... |
aws-deadline_deadline-cloud | DeadlineRepresenter | public | 0 | 1 | represent_str | def represent_str(self, data):if "\n" in data:return self.represent_scalar("tag:yaml.org,2002:str", data, style="|")else:return self.represent_scalar("tag:yaml.org,2002:str", data) | 2 | 5 | 2 | 36 | 0 | 21 | 25 | 21 | self,data | [] | Returns | {"If": 1, "Return": 2} | 2 | 5 | 2 | ["self.represent_scalar", "self.represent_scalar"] | 0 | [] | The function (represent_str) defined within the public class called DeadlineRepresenter, that inherit another class.The function start at line 21 and ends at 25. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [21.0], and this function return a value. It declar... |
aws-deadline_deadline-cloud | DeadlineDumper | public | 0 | 1 | __init__ | def __init__(self,stream,default_style=None,default_flow_style=False,canonical=None,indent=None,width=None,allow_unicode=None,line_break=None,encoding=None,explicit_start=None,explicit_end=None,version=None,tags=None,sort_keys=True,):Emitter.__init__(self,stream,canonical=canonical,indent=indent,width=width,allow_unico... | 1 | 41 | 15 | 141 | 0 | 32 | 72 | 32 | self,stream,default_style,default_flow_style,canonical,indent,width,allow_unicode,line_break,encoding,explicit_start,explicit_end,version,tags,sort_keys | [] | None | {"Expr": 4} | 4 | 41 | 4 | ["Emitter.__init__", "Serializer.__init__", "DeadlineRepresenter.__init__", "Resolver.__init__"] | 4,993 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_... | The function (__init__) defined within the public class called DeadlineDumper, that inherit another class.The function start at line 32 and ends at 72. It contains 41 lines of code and it has a cyclomatic complexity of 1. It takes 15 parameters, represented as [32.0] and does not return any value. It declares 4.0 funct... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | deadline_yaml_dump | def deadline_yaml_dump(data, stream=None, **kwds) -> str:"""Works like pyyaml's safe_dump, but saves multi-linestrings with the "|" style and defaults to sort_keys=False."""return yaml.dump_all([data], stream, Dumper=DeadlineDumper, sort_keys=False, **kwds) | 1 | 2 | 3 | 37 | 0 | 75 | 80 | 75 | data,stream,**kwds | [] | str | {"Expr": 1, "Return": 1} | 1 | 6 | 1 | ["yaml.dump_all"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (deadline_yaml_dump) defined within the public class called public.The function start at line 75 and ends at 80. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [75.0] and does not return any value. It declare 1.0 function, It has 1.0 function call... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | parse_frame_range | def parse_frame_range(frame_string: str) -> list[int]:framelist_re = re.compile(r"^(?P<start>-?\d+)(-(?P<stop>-?\d+)(:(?P<step>-?\d+))?)?$")match = framelist_re.match(frame_string)if not match:raise ValueError("Framelist not valid")start = int(match.group("start"))stop = int(match.group("stop")) if match.group("stop") ... | 11 | 17 | 1 | 165 | 5 | 7 | 26 | 7 | frame_string | ['start', 'framelist_re', 'frame_step', 'match', 'stop'] | list[int] | {"Assign": 5, "If": 4, "Return": 1} | 16 | 20 | 16 | ["re.compile", "framelist_re.match", "ValueError", "int", "match.group", "match.group", "int", "match.group", "match.group", "int", "match.group", "ValueError", "ValueError", "ValueError", "list", "range"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_client.job_bundle.test_adaptors_py.test_parse_frame_range"] | The function (parse_frame_range) defined within the public class called public.The function start at line 7 and ends at 26. It contains 17 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value. It declares 16.0 functions, It has 16.0 functions ca... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | validate_directory_symlink_containment | def validate_directory_symlink_containment(job_bundle_dir: str) -> None:"""Validates the integrity of the job bundle, validating that all filescontained in the job bundle resolve inside of the job bundle directory."""# The job bundle could itself be a symlink dirresolved_root = os.path.realpath(job_bundle_dir)if not os... | 5 | 15 | 1 | 115 | 4 | 22 | 41 | 22 | job_bundle_dir | ['resolved_path', 'norm_path', 'common_path', 'resolved_root'] | None | {"Assign": 4, "Expr": 1, "For": 2, "If": 2} | 10 | 20 | 10 | ["os.path.realpath", "os.path.isdir", "DeadlineOperationError", "os.walk", "chain", "os.path.normpath", "os.path.join", "os.path.realpath", "os.path.commonpath", "DeadlineOperationError"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (validate_directory_symlink_containment) defined within the public class called public.The function start at line 22 and ends at 41. It contains 15 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 10.0 functions, It ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | read_yaml_or_json | def read_yaml_or_json(job_bundle_dir: str, filename: str, required: bool) -> Tuple[str, str]:"""Checks whether {filename}.json or {filename}.yaml exist in the providedjob bundle directory, and returns a tuple (<file contents>, "YAML|JSON").Args:job_bundle_dir (str): The directory containing the job bundle.filename (str... | 6 | 21 | 3 | 143 | 3 | 44 | 74 | 44 | job_bundle_dir,filename,required | ['has_yaml', 'path_prefix', 'has_json'] | Tuple[str, str] | {"Assign": 3, "Expr": 1, "If": 4, "Return": 3, "With": 2} | 9 | 31 | 9 | ["os.path.join", "os.path.isfile", "os.path.isfile", "DeadlineOperationError", "open", "f.read", "open", "f.read", "DeadlineOperationError"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (read_yaml_or_json) defined within the public class called public.The function start at line 44 and ends at 74. It contains 21 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [44.0] and does not return any value. It declares 9.0 functions, It has 9.0 functions c... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | parse_yaml_or_json_content | def parse_yaml_or_json_content(file_contents: str, file_type: str, bundle_dir: str, filename: str):"""Parses a yaml or json file that was read by the `read_yaml_or_json` function.Args:file_contents: The contents of the file that was read.file_type: The type of the filefilename: The filename that was read, without exten... | 5 | 13 | 4 | 82 | 0 | 77 | 98 | 77 | file_contents,file_type,bundle_dir,filename | [] | Returns | {"Expr": 1, "If": 2, "Return": 2, "Try": 2} | 5 | 22 | 5 | ["json.loads", "DeadlineOperationError", "yaml.safe_load", "DeadlineOperationError", "RuntimeError"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (parse_yaml_or_json_content) defined within the public class called public.The function start at line 77 and ends at 98. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [77.0], and this function return a value. It declares 5.0 functions, It has 5.... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | read_yaml_or_json_object | def read_yaml_or_json_object(bundle_dir: str, filename: str, required: bool) -> Optional[Dict[str, Any]]:"""Checks whether {filename}.json or {filename}.yaml exist in the providedjob bundle directory, and returns the file parsed into an object.Args:job_bundle_dir (str): The directory containing the job bundle.filename ... | 3 | 8 | 3 | 58 | 0 | 101 | 118 | 101 | bundle_dir,filename,required | [] | Optional[Dict[str, Any]] | {"Assign": 1, "Expr": 1, "If": 1, "Return": 2} | 2 | 18 | 2 | ["read_yaml_or_json", "parse_yaml_or_json_content"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (read_yaml_or_json_object) defined within the public class called public.The function start at line 101 and ends at 118. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [101.0] and does not return any value. It declares 2.0 functions, It has 2.0 fu... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | validate_job_parameter | def validate_job_parameter(input: Any,*,type_required: bool = False,default_required: bool = False,) -> JobParameter:"""Validates a job parameter as defined by Open Job Description. The validation allows for theunion of all possible fields but does not do per-type validation (e.g. minValue only allowedon parameters of ... | 35 | 106 | 3 | 470 | 12 | 78 | 249 | 78 | input,type_required,default_required | ['data_flow', 'typ', 'allowed_values', 'min_length', 'default', 'description', 'max_length', 'min_value', 'quoted', 'max_value', 'object_type', 'name'] | JobParameter | {"Assign": 12, "Expr": 4, "If": 31, "Return": 1, "Try": 2} | 43 | 172 | 43 | ["isinstance", "TypeError", "type", "ValueError", "isinstance", "TypeError", "type", "ValueError", "isinstance", "TypeError", "type", "ValueError", "join", "ValueError", "ValueError", "ValueError", "isinstance", "TypeError", "type", "ValueError", "type", "TypeError", "type", "ValueError", "type", "TypeError", "type", "... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._queue_parameters_py.get_queue_parameter_definitions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.cli... | The function (validate_job_parameter) defined within the public class called public.The function start at line 78 and ends at 249. It contains 106 lines of code and it has a cyclomatic complexity of 35. It takes 3 parameters, represented as [78.0] and does not return any value. It declares 43.0 functions, It has 43.0 f... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | validate_job_parameter_value | def validate_job_parameter_value(job_parameter: JobParameter,value: str | int | float,) -> str | int | float:"""Validates a value for the specified parameter definition, returning the value with the correct type,e.g. a string "19" for an INT parameter is returned as the integer 19.Raises a ValueError if validation fail... | 20 | 67 | 2 | 284 | 9 | 252 | 344 | 252 | job_parameter,value | ['original_value', 'allowed_values', 'min_length', 'value', 'min_value', 'max_length', 'max_value', 'name', 'param_type'] | str | int | float | {"Assign": 12, "Expr": 1, "If": 16, "Return": 1, "Try": 2} | 25 | 93 | 25 | ["isinstance", "TypeError", "type", "isinstance", "int", "int", "isinstance", "ValueError", "ValueError", "float", "ValueError", "TypeError", "job_parameter.get", "len", "ValueError", "job_parameter.get", "len", "ValueError", "job_parameter.get", "ValueError", "job_parameter.get", "ValueError", "job_parameter.get", "Va... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.job_bundle_submitter_py.show_job_bundle_submitter"] | The function (validate_job_parameter_value) defined within the public class called public.The function start at line 252 and ends at 344. It contains 67 lines of code and it has a cyclomatic complexity of 20. It takes 2 parameters, represented as [252.0] and does not return any value. It declares 25.0 functions, It has... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | validate_user_interface_spec | def validate_user_interface_spec(input: Any, *, parameter_name: str) -> UserInterfaceSpec:"""Validates a job parameter's "userInterface" field as defined by Open Job Description. Thevalidation allows for the union of all possible parameter "type"s.Note that the validation does not currently handle per-type validation (... | 19 | 62 | 2 | 275 | 8 | 347 | 465 | 347 | input,parameter_name | ['file_filter_default', 'decimals', 'control', 'single_step_delta', 'quoted', 'file_filters', 'label', 'group_label'] | UserInterfaceSpec | {"Assign": 8, "Expr": 3, "For": 1, "If": 16, "Return": 1} | 26 | 119 | 26 | ["isinstance", "TypeError", "type", "ValueError", "join", "isinstance", "TypeError", "type", "isinstance", "TypeError", "type", "type", "TypeError", "type", "ValueError", "type", "TypeError", "type", "ValueError", "isinstance", "TypeError", "type", "enumerate", "validate_user_interface_file_filter", "validate_user_inte... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.job_bundle.parameters_py.validate_job_parameter"] | The function (validate_user_interface_spec) defined within the public class called public.The function start at line 347 and ends at 465. It contains 62 lines of code and it has a cyclomatic complexity of 19. It takes 2 parameters, represented as [347.0] and does not return any value. It declares 26.0 functions, It has... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | validate_user_interface_file_filter | def validate_user_interface_file_filter(input: Any,*,parameter_name: str,field_path: str,) -> UserInterfaceFileFilter:"""Validates values in a job parameter structure in the following object paths:1."userInterface" -> "fileFilters" -> []2."userInterface" -> "fileFilterDefault"The expected format is:label: strpatterns: ... | 9 | 40 | 3 | 157 | 2 | 468 | 549 | 468 | input,parameter_name,field_path | ['label', 'patterns'] | UserInterfaceFileFilter | {"Assign": 2, "Expr": 1, "For": 1, "If": 7, "Return": 1} | 18 | 82 | 18 | ["isinstance", "TypeError", "type", "ValueError", "isinstance", "TypeError", "type", "ValueError", "isinstance", "TypeError", "type", "enumerate", "isinstance", "TypeError", "repr", "len", "ValueError", "cast"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.job_bundle.parameters_py.validate_user_interface_spec"] | The function (validate_user_interface_file_filter) defined within the public class called public.The function start at line 468 and ends at 549. It contains 40 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [468.0] and does not return any value. It declares 18.0 functions, ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | merge_queue_job_parameters | def merge_queue_job_parameters(*,job_parameters: list[JobParameter],queue_parameters: list[JobParameter],queue_id: str | None = None,) -> list[JobParameter]:"""This function merges the queue environment parameters and the job bundle parameters. Thisprimarily functions as a set union operation with a few added semantics... | 15 | 44 | 3 | 265 | 6 | 552 | 639 | 552 | job_parameters,queue_parameters,queue_id | ['param_strs', 'job_parameter_name', 'collected_parameter', 'ParameterTypeMismatch', 'differences', 'queue_str'] | list[JobParameter] | {"AnnAssign": 2, "Assign": 10, "Expr": 2, "For": 1, "If": 7, "Return": 1} | 14 | 88 | 14 | ["param.copy", "namedtuple", "set", "job_parameter.keys", "parameter_definition_difference", "param_mismatches.append", "ParameterTypeMismatch", "job_parameter.keys", "DeadlineOperationError", "job_parameter.copy", "DeadlineOperationError", "join", "list", "collected_parameters.values"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (merge_queue_job_parameters) defined within the public class called public.The function start at line 552 and ends at 639. It contains 44 lines of code and it has a cyclomatic complexity of 15. It takes 3 parameters, represented as [552.0] and does not return any value. It declares 14.0 functions, It has 1... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | apply_job_parameters | def apply_job_parameters(job_parameters: list[dict[str, Any]],job_bundle_dir: str,parameters: list[JobParameter],asset_references: AssetReferences,) -> None:"""Modifies the provided parameters and asset_references to incorporatethe job_parameters and to resolve any relative paths in PATH parameters.The following action... | 17 | 49 | 4 | 289 | 5 | 642 | 720 | 642 | job_parameters,job_bundle_dir,parameters,asset_references | ['data_flow', 'parameter_type', 'parameter_name', 'parameter_value', 'object_type'] | None | {"AnnAssign": 1, "Assign": 8, "Expr": 6, "For": 1, "If": 13} | 15 | 79 | 15 | ["parameter.get", "param_dict.pop", "os.path.abspath", "parameter.get", "parameter.get", "DeadlineOperationError", "parameter.get", "DeadlineOperationError", "asset_references.referenced_paths.add", "parameter.get", "asset_references.input_filenames.add", "asset_references.input_directories.add", "asset_references.outp... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (apply_job_parameters) defined within the public class called public.The function start at line 642 and ends at 720. It contains 49 lines of code and it has a cyclomatic complexity of 17. It takes 4 parameters, represented as [642.0] and does not return any value. It declares 15.0 functions, It has 15.0 fu... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | read_job_bundle_parameters | def read_job_bundle_parameters(bundle_dir: str) -> list[JobParameter]:"""Reads the parameter definitions and parameter values from the job bundle. Forany relative PATH parameters with data flow where no parameter value is supplied,it sets the value to that path relative to the job bundle directory.Return format:[{"name... | 27 | 77 | 1 | 479 | 14 | 723 | 838 | 723 | bundle_dir | ['invalid_params', 'template_parameters', 'default_real_path', 'default_absolute', 'parameters', 'parameter_values', 'common_path', 'default', 'parameter_value', 'name', 'template', 'param_list', 'message', 'bundle_real_path'] | list[JobParameter] | {"AnnAssign": 1, "Assign": 19, "AugAssign": 1, "Expr": 2, "For": 3, "If": 16, "Return": 1} | 33 | 116 | 33 | ["read_yaml_or_json_object", "read_yaml_or_json_object", "isinstance", "DeadlineOperationError", "DeadlineOperationError", "template.get", "DeadlineOperationError", "template.get", "isinstance", "DeadlineOperationError", "parameter_values.get", "template_parameters.items", "parameter.get", "os.path.isabs", "DeadlineOpe... | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (read_job_bundle_parameters) defined within the public class called public.The function start at line 723 and ends at 838. It contains 77 lines of code and it has a cyclomatic complexity of 27. The function does not take any parameters and does not return any value. It declares 33.0 functions, It has 33.0 ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | get_ui_control_for_parameter_definition | def get_ui_control_for_parameter_definition(param_def: JobParameter) -> str:"""Returns the UI control for the given parameter definition, determiningthe default if not explicitly set."""# If it's explicitly provided, return thatcontrol = param_def.get("userInterface", {}).get("control")param_type = param_def["type"]if ... | 11 | 34 | 1 | 150 | 2 | 855 | 894 | 855 | param_def | ['control', 'param_type'] | str | {"Assign": 3, "Expr": 1, "If": 9, "Return": 6} | 10 | 40 | 10 | ["get", "param_def.get", "param_def.get", "param_def.get", "DeadlineOperationError", "param_def.get", "DeadlineOperationError", "param_def.get", "DeadlineOperationError", "param_def.get"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._queue_parameters_py.get_queue_parameter_definitions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.cli... | The function (get_ui_control_for_parameter_definition) defined within the public class called public.The function start at line 855 and ends at 894. It contains 34 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value. It declares 10.0 functions,... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _parameter_definition_fields_equivalent | def _parameter_definition_fields_equivalent(lhs: JobParameter,rhs: JobParameter,field_name: str,set_comparison: bool = False,) -> bool:lhs_value = lhs.get(field_name)rhs_value = rhs.get(field_name)if set_comparison and lhs_value is not None and rhs_value is not None:# Used to type-narrow at type-check timeassert isinst... | 5 | 13 | 4 | 83 | 2 | 897 | 910 | 897 | lhs,rhs,field_name,set_comparison | ['rhs_value', 'lhs_value'] | bool | {"Assign": 2, "If": 1, "Return": 2} | 6 | 14 | 6 | ["lhs.get", "rhs.get", "isinstance", "isinstance", "set", "set"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.job_bundle.parameters_py.parameter_definition_difference"] | The function (_parameter_definition_fields_equivalent) defined within the public class called public.The function start at line 897 and ends at 910. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [897.0] and does not return any value. It declares 6.0 function... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | parameter_definition_difference | def parameter_definition_difference(lhs: JobParameter, rhs: JobParameter, *, ignore_missing: bool = False) -> list[str]:"""Compares the two parameter definitions, returning a list of fields which differ.Does not compare the userInterface properties.Parameters----------lhs : JobParameterThe "left-hand-side" job paramete... | 11 | 24 | 3 | 131 | 1 | 913 | 955 | 913 | lhs,rhs,ignore_missing | ['differences'] | list[str] | {"Assign": 1, "Expr": 3, "For": 2, "If": 4, "Return": 1} | 4 | 43 | 4 | ["_parameter_definition_fields_equivalent", "differences.append", "_parameter_definition_fields_equivalent", "differences.append"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._queue_parameters_py.get_queue_parameter_definitions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.cli... | The function (parameter_definition_difference) defined within the public class called public.The function start at line 913 and ends at 955. It contains 24 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [913.0] and does not return any value. It declares 4.0 functions, It h... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | save_yaml_or_json_to_file | def save_yaml_or_json_to_file(bundle_dir: str,filename: str,file_type: str,data: Any,) -> None:"""Saves data as either a JSON or YAML file depending on the file_type provided. Useful for savingjob bundle data files which can be in either format. file_type should be either "YAML" or "JSON"."""with open(os.path.join(bund... | 3 | 15 | 4 | 83 | 0 | 9 | 27 | 9 | bundle_dir,filename,file_type,data | [] | None | {"Expr": 3, "If": 2, "With": 1} | 6 | 19 | 6 | ["open", "os.path.join", "file_type.lower", "deadline_yaml_dump", "json.dump", "RuntimeError"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.job_bundle_submitter_py.show_job_bundle_submitter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_c... | The function (save_yaml_or_json_to_file) defined within the public class called public.The function start at line 9 and ends at 27. It contains 15 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [9.0] and does not return any value. It declares 6.0 functions, It has 6.0 funct... |
aws-deadline_deadline-cloud | AssetReferences | public | 0 | 0 | __init__ | def __init__(self,*,input_filenames: Optional[set[str]] = None,input_directories: Optional[set[str]] = None,output_directories: Optional[set[str]] = None,referenced_paths: Optional[set[str]] = None,):self.input_filenames = input_filenames or set()self.input_directories = input_directories or set()self.output_directorie... | 5 | 12 | 5 | 92 | 0 | 41 | 52 | 41 | self,input_filenames,input_directories,output_directories,referenced_paths | [] | None | {"Assign": 4} | 4 | 12 | 4 | ["set", "set", "set", "set"] | 4,993 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_... | The function (__init__) defined within the public class called AssetReferences.The function start at line 41 and ends at 52. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [41.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions c... |
aws-deadline_deadline-cloud | AssetReferences | public | 0 | 0 | __bool__ | def __bool__(self) -> bool:"""Returns whether the object has any asset references."""return (bool(self.input_filenames)or bool(self.input_directories)or bool(self.output_directories)or bool(self.referenced_paths)) | 4 | 7 | 1 | 38 | 0 | 54 | 61 | 54 | self | [] | bool | {"Expr": 1, "Return": 1} | 4 | 8 | 4 | ["bool", "bool", "bool", "bool"] | 0 | [] | The function (__bool__) defined within the public class called AssetReferences.The function start at line 54 and ends at 61. It contains 7 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions ... |
aws-deadline_deadline-cloud | AssetReferences | public | 0 | 0 | union | def union(self, other: AssetReferences):"""Returns the union of the asset references."""return AssetReferences(input_filenames=self.input_filenames.union(other.input_filenames),input_directories=self.input_directories.union(other.input_directories),output_directories=self.output_directories.union(other.output_directori... | 1 | 7 | 2 | 66 | 0 | 63 | 70 | 63 | self,other | [] | Returns | {"Expr": 1, "Return": 1} | 5 | 8 | 5 | ["AssetReferences", "self.input_filenames.union", "self.input_directories.union", "self.output_directories.union", "self.referenced_paths.union"] | 24 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.models_py.TranslatedFields.create_translations_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.calen... | The function (union) defined within the public class called AssetReferences.The function start at line 63 and ends at 70. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [63.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions c... |
aws-deadline_deadline-cloud | AssetReferences | public | 0 | 0 | from_dict | def from_dict(cls, obj: Optional[dict[str, Any]]) -> AssetReferences:if obj:input_filenames = obj["assetReferences"].get("inputs", {}).get("filenames", [])input_directories = obj["assetReferences"].get("inputs", {}).get("directories", [])output_directories = obj["assetReferences"].get("outputs", {}).get("directories", ... | 6 | 14 | 2 | 184 | 0 | 73 | 87 | 73 | cls,obj | [] | AssetReferences | {"Assign": 4, "If": 1, "Return": 2} | 17 | 15 | 17 | ["get", "get", "get", "get", "get", "get", "get", "cls", "set", "os.path.normpath", "set", "os.path.normpath", "set", "os.path.normpath", "set", "os.path.normpath", "cls"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.... | The function (from_dict) defined within the public class called AssetReferences.The function start at line 73 and ends at 87. It contains 14 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [73.0] and does not return any value. It declares 17.0 functions, It has 17.0 function... |
aws-deadline_deadline-cloud | AssetReferences | public | 0 | 0 | to_dict | def to_dict(self) -> dict[str, Any]:return {"assetReferences": {"inputs": {"directories": sorted(self.input_directories),"filenames": sorted(self.input_filenames),},"outputs": {"directories": sorted(self.output_directories)},"referencedPaths": sorted(self.referenced_paths),}} | 1 | 11 | 1 | 64 | 0 | 89 | 99 | 89 | self | [] | dict[str, Any] | {"Return": 1} | 4 | 11 | 4 | ["sorted", "sorted", "sorted", "sorted"] | 35 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957978_dgilland_pydash.src.pydash.objects_py.omit_by", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957978_dgilland_pydash.src.pydash.objects_py.pick_by", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Out... | The function (to_dict) defined within the public class called AssetReferences.The function start at line 89 and ends at 99. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions calle... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | split_parameter_args | def split_parameter_args(parameters: list[JobParameter],job_bundle_dir: str,app_name: Optional[str] = None,supported_app_parameter_names: Optional[list[str]] = None,) -> Tuple[dict[str, Any], dict[str, Any]]:"""Splits the input job_bundle_parameters into separate application paramtersand job specific parameters.Args:pa... | 9 | 31 | 4 | 193 | 6 | 102 | 151 | 102 | parameters,job_bundle_dir,app_name,supported_app_parameter_names | ['parameter_type', 'app_parameter_name', 'supported_app_parameter_names', 'parameter_name', 'parameter_value', 'app_name'] | Tuple[dict[str, Any], dict[str, Any]] | {"AnnAssign": 2, "Assign": 8, "Expr": 1, "For": 1, "If": 7, "Return": 1} | 5 | 50 | 5 | ["parameter_name.startswith", "parameter_name.split", "DeadlineOperationError", "lower", "str"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py.create_job_from_job_bundle"] | The function (split_parameter_args) defined within the public class called public.The function start at line 102 and ends at 151. It contains 31 lines of code and it has a cyclomatic complexity of 9. It takes 4 parameters, represented as [102.0] and does not return any value. It declares 5.0 functions, It has 5.0 funct... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | block_signals | def block_signals(element):"""Context manager used to turn off signals for a UI element."""old_value = element.blockSignals(True)try:yieldfinally:element.blockSignals(old_value) | 2 | 6 | 1 | 25 | 1 | 9 | 17 | 9 | element | ['old_value'] | None | {"Assign": 1, "Expr": 3, "Try": 1} | 2 | 9 | 2 | ["element.blockSignals", "element.blockSignals"] | 18 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_config_dialog_py.DeadlineWorkstationConfigWidget._build_general_settings_ui", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_d... | The function (block_signals) defined within the public class called public.The function start at line 9 and ends at 17. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called ins... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | gui_error_handler | def gui_error_handler(message_title: str, parent: Any = None):"""A context manager that initializes a Qt GUI context thatcatches errors and shows them in a message box instead ofpunting them to a CLI interface.For example:with gui_context():from deadline.client.ui.cli_job_submitter import show_cli_job_submittershow_cli... | 3 | 9 | 2 | 57 | 0 | 21 | 44 | 21 | message_title,parent | [] | None | {"Expr": 4, "Try": 1} | 4 | 24 | 4 | ["QMessageBox.warning", "str", "QMessageBox.warning", "traceback.format_exc"] | 0 | [] | The function (gui_error_handler) defined within the public class called public.The function start at line 21 and ends at 44. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [21.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functio... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | gui_context_for_cli | def gui_context_for_cli(automatically_install_dependencies: bool):"""A context manager that initializes a Qt GUI context forthe CLI handler to use.For example:with gui_context_for_cli(automatically_install_dependencies) as app:from deadline.client.ui.cli_job_submitter import show_cli_job_submittershow_cli_job_submitter... | 15 | 89 | 1 | 459 | 12 | 48 | 169 | 48 | automatically_install_dependencies | ['has_pyside2', 'has_pyside6', 'app', 'command', 'icon', 'pip_command', 'deps_folder', 'will_install_gui', 'runtime_version', 'message', 'python_executable', 'pyside6_pypi'] | None | {"Assign": 16, "Expr": 17, "If": 6, "Try": 2} | 41 | 122 | 41 | ["importlib.util.find_spec", "importlib.util.find_spec", "click.confirm", "click.echo", "sys.exit", "lower", "basename", "normpath", "join", "dirname", "shutil.which", "shutil.which", "join", "shlex.quote", "subprocess.run", "click.echo", "click.echo", "click.echo", "join", "shlex.quote", "click.echo", "sys.exit", "sub... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.bundle_group_py.bundle_gui_submit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._gr... | The function (gui_context_for_cli) defined within the public class called public.The function start at line 48 and ends at 169. It contains 89 lines of code and it has a cyclomatic complexity of 15. The function does not take any parameters and does not return any value. It declares 41.0 functions, It has 41.0 function... |
aws-deadline_deadline-cloud | CancelationFlag | public | 0 | 0 | __init__ | def __init__(self):self.canceled = False | 1 | 2 | 1 | 10 | 0 | 195 | 196 | 195 | self | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 4,993 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_... | The function (__init__) defined within the public class called CancelationFlag.The function start at line 195 and ends at 196. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 4993.0 functions calling this function which... |
aws-deadline_deadline-cloud | CancelationFlag | public | 0 | 0 | set_canceled | def set_canceled(self):self.canceled = True | 1 | 2 | 1 | 10 | 0 | 198 | 199 | 198 | self | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (set_canceled) defined within the public class called CancelationFlag.The function start at line 198 and ends at 199. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | CancelationFlag | public | 0 | 0 | __bool__ | def __bool__(self):return self.canceled | 1 | 2 | 1 | 9 | 0 | 201 | 202 | 201 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (__bool__) defined within the public class called CancelationFlag.The function start at line 201 and ends at 202. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | show_cli_job_submitter.on_create_job_bundle_callback | def on_create_job_bundle_callback(widget: SubmitJobToDeadlineDialog,job_bundle_dir: str,settings: CliJobSettings,queue_parameters: list[JobParameter],asset_references: AssetReferences,host_requirements: Optional[Dict[str, Any]] = None,purpose: JobBundlePurpose = JobBundlePurpose.SUBMISSION,) -> dict[str, Any]:"""Perfor... | 14 | 102 | 7 | 523 | 0 | 49 | 170 | 49 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (show_cli_job_submitter.on_create_job_bundle_callback) defined within the public class called public.The function start at line 49 and ends at 170. It contains 102 lines of code and it has a cyclomatic complexity of 14. It takes 7 parameters, represented as [49.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | show_cli_job_submitter | def show_cli_job_submitter(parent=None, f=Qt.WindowFlags()) -> None:"""Shows an example CLI Job Submitter.Pass f=Qt.Tool if running it within an application context and want itto stay on top."""global __submitter_dialogclose_submitter()if parent is None:# Get the main application window so we can parent ours to itapp =... | 4 | 19 | 2 | 113 | 6 | 33 | 183 | 33 | parent,f | ['parent', 'job_array_parameter_name', 'app', 'step', 'parameters_values', '__submitter_dialog'] | None | {"AnnAssign": 1, "Assign": 11, "Expr": 11, "For": 1, "If": 12, "Return": 1, "With": 3} | 30 | 151 | 30 | ["Qt.WindowFlags", "close_submitter", "QApplication.instance", "app.topLevelWidgets", "isinstance", "RuntimeError", "append", "copy.deepcopy", "open", "os.path.join", "settings.file_format.lower", "deadline_yaml_dump", "json.dump", "open", "os.path.join", "settings.file_format.lower", "deadline_yaml_dump", "json.dump",... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.cli_job_submitter_py.reload_plugin", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dev_applicat... | The function (show_cli_job_submitter) defined within the public class called public.The function start at line 33 and ends at 183. It contains 19 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [33.0] and does not return any value. It declares 30.0 functions, It has 30.0 fun... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | close_submitter | def close_submitter() -> None:global __submitter_dialogif __submitter_dialog:__submitter_dialog.close()__submitter_dialog = None | 2 | 5 | 0 | 19 | 1 | 186 | 191 | 186 | ['__submitter_dialog'] | None | {"Assign": 1, "Expr": 1, "If": 1} | 1 | 6 | 1 | ["__submitter_dialog.close"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.cli_job_submitter_py.reload_plugin", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.cli_job_subm... | The function (close_submitter) defined within the public class called public.The function start at line 186 and ends at 191. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called i... | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _reload_modules | def _reload_modules(mod):# TODO: Put this code where it makes sense"""Recursively reloads all modules in the specified package, in postfix order"""import typeschild_mods = [mfor m in mod.__dict__.values()if isinstance(m, types.ModuleType)and m.__package__and m.__package__.startswith(mod.__package__)]for child in child_... | 6 | 12 | 1 | 62 | 1 | 194 | 212 | 194 | mod | ['child_mods'] | None | {"Assign": 1, "Expr": 3, "For": 1} | 5 | 19 | 5 | ["mod.__dict__.values", "isinstance", "m.__package__.startswith", "_reload_modules", "reload"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.cli_job_submitter_py._reload_modules", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.cli_job_su... | The function (_reload_modules) defined within the public class called public.The function start at line 194 and ends at 212. It contains 12 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 5.0 functions, It has 5.0 functions call... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | reload_plugin | def reload_plugin() -> None:# TODO: Put this code where it makes sense"""Designed for interative development without closing the DCCthe submitter is embedded inside. Closes the submitter,reloads the Python modules, and starts the submitter again."""close_submitter()# Reload the AWS Deadline Cloud submitter codeimport d... | 1 | 5 | 0 | 19 | 0 | 215 | 230 | 215 | [] | None | {"Expr": 4} | 3 | 16 | 3 | ["close_submitter", "_reload_modules", "show_cli_job_submitter"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3632606_shaunduncan_helga.helga.plugins.operator_py.operator"] | The function (reload_plugin) defined within the public class called public.The function start at line 215 and ends at 230. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.