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 | _DeadlineResourceListComboBox | protected | 0 | 1 | clear_list | def clear_list(self):"""Fully clears the list. The caller needs to call either`refresh_list` or `refresh_selected_id` at a later pointto finish it."""with block_signals(self.box):self.box.clear() | 1 | 3 | 1 | 21 | 0 | 891 | 898 | 891 | self | [] | None | {"Expr": 2, "With": 1} | 2 | 8 | 2 | ["block_signals", "self.box.clear"] | 0 | [] | The function (clear_list) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 891 and ends at 898. It contains 3 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 d... |
aws-deadline_deadline-cloud | _DeadlineResourceListComboBox | protected | 0 | 1 | refresh_list | def refresh_list(self):"""Starts a background thread to refresh the resource list."""config = self.configselected_id = config_file.get_setting(self.setting_name, config=config)# Reset to a list of just the currently configured id during refreshwith block_signals(self.box):self.box.clear()self.box.addItem("<refreshing>"... | 1 | 13 | 1 | 94 | 0 | 900 | 917 | 900 | self | [] | None | {"Assign": 3, "AugAssign": 1, "Expr": 4, "With": 1} | 6 | 18 | 6 | ["config_file.get_setting", "block_signals", "self.box.clear", "self.box.addItem", "threading.Thread", "self.__refresh_thread.start"] | 0 | [] | The function (refresh_list) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 900 and ends at 917. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. I... |
aws-deadline_deadline-cloud | _DeadlineResourceListComboBox | protected | 0 | 1 | handle_list_update | def handle_list_update(self, refresh_id, items_list):# Apply the refresh if it's still for the latest callif refresh_id == self.__refresh_id:with block_signals(self.box):self.box.clear()for name, id in items_list:self.box.addItem(name, userData=id)self.refresh_selected_id() | 3 | 7 | 3 | 55 | 0 | 919 | 927 | 919 | self,refresh_id,items_list | [] | None | {"Expr": 3, "For": 1, "If": 1, "With": 1} | 4 | 9 | 4 | ["block_signals", "self.box.clear", "self.box.addItem", "self.refresh_selected_id"] | 0 | [] | The function (handle_list_update) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 919 and ends at 927. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [919.0] and does not return any... |
aws-deadline_deadline-cloud | _DeadlineResourceListComboBox | protected | 0 | 1 | refresh_selected_id | def refresh_selected_id(self):"""Refreshes the selected id from the config object"""selected_id = config_file.get_setting(self.setting_name, config=self.config)# Restore the selected Id, inserting a new item if# it doesn't exist in the list.with block_signals(self.box):index = self.box.findData(selected_id)if index >= ... | 3 | 13 | 1 | 102 | 0 | 929 | 945 | 929 | self | [] | None | {"Assign": 3, "Expr": 5, "If": 2, "With": 1} | 8 | 17 | 8 | ["config_file.get_setting", "block_signals", "self.box.findData", "self.box.setCurrentIndex", "self.box.findText", "self.box.setCurrentIndex", "self.box.insertItem", "self.box.setCurrentIndex"] | 0 | [] | The function (refresh_selected_id) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 929 and ends at 945. It contains 13 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any v... |
aws-deadline_deadline-cloud | _DeadlineResourceListComboBox | protected | 0 | 1 | _refresh_thread_function | def _refresh_thread_function(self, refresh_id: int, config: Optional[ConfigParser] = None):"""This function gets started in a background thread to refresh the list."""try:resources = self.list_resources(config=config)if not self.canceled:self._list_update.emit(refresh_id, resources)except BaseException as e:if not self... | 5 | 8 | 3 | 75 | 0 | 947 | 957 | 947 | self,refresh_id,config | [] | None | {"Assign": 1, "Expr": 3, "If": 2, "Try": 1} | 3 | 11 | 3 | ["self.list_resources", "self._list_update.emit", "self.background_exception.emit"] | 0 | [] | The function (_refresh_thread_function) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 947 and ends at 957. It contains 8 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [947.0] and does not retu... |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__(resource_name="Farm", setting_name="defaults.farm_id", parent=parent) | 1 | 2 | 2 | 27 | 0 | 961 | 962 | 961 | self,parent | [] | None | {"Assign": 1, "Expr": 3} | 5 | 8 | 5 | ["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"] | 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 DeadlineConfigDialog, that inherit another class.The function start at line 961 and ends at 962. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [961.0] and does not return any value. It declares 5.... |
aws-deadline_deadline-cloud | DeadlineFarmListComboBox | public | 0 | 1 | list_resources | def list_resources(self, config: Optional[ConfigParser]):response = api.list_farms(config=config)return sorted([(item["displayName"], item["farmId"]) for item in response["farms"]],key=lambda item: (item[0].casefold(), item[1]),) | 2 | 6 | 2 | 68 | 0 | 964 | 969 | 964 | self,config | [] | Returns | {"Assign": 1, "Return": 1} | 3 | 6 | 3 | ["api.list_farms", "sorted", "casefold"] | 0 | [] | The function (list_resources) defined within the public class called DeadlineFarmListComboBox, that inherit another class.The function start at line 964 and ends at 969. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [964.0], and this function return a value. ... |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__(resource_name="Farm", setting_name="defaults.farm_id", parent=parent) | 1 | 2 | 2 | 27 | 0 | 973 | 974 | 961 | self,parent | [] | None | {"Assign": 1, "Expr": 3} | 5 | 8 | 5 | ["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"] | 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 DeadlineConfigDialog, that inherit another class.The function start at line 973 and ends at 974. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [961.0] and does not return any value. It declares 5.... |
aws-deadline_deadline-cloud | DeadlineFarmListComboBox | public | 0 | 1 | list_resources | def list_resources(self, config: Optional[ConfigParser]):default_farm_id = config_file.get_setting("defaults.farm_id", config=config)if default_farm_id:response = api.list_queues(config=config, farmId=default_farm_id)return sorted([(item["displayName"], item["queueId"]) for item in response["queues"]],key=lambda item: ... | 3 | 10 | 2 | 92 | 0 | 976 | 985 | 976 | self,config | [] | Returns | {"Assign": 1, "Return": 1} | 3 | 6 | 3 | ["api.list_farms", "sorted", "casefold"] | 0 | [] | The function (list_resources) defined within the public class called DeadlineFarmListComboBox, that inherit another class.The function start at line 976 and ends at 985. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [976.0], and this function return a value.... |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__(resource_name="Storage profile",setting_name="settings.storage_profile_id",parent=parent,) | 1 | 6 | 2 | 28 | 0 | 993 | 998 | 993 | self,parent | [] | None | {"Assign": 1, "Expr": 3} | 5 | 8 | 5 | ["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"] | 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 DeadlineConfigDialog, that inherit another class.The function start at line 993 and ends at 998. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [993.0] and does not return any value. It declares 5.... |
aws-deadline_deadline-cloud | DeadlineFarmListComboBox | public | 0 | 1 | list_resources | def list_resources(self, config: Optional[ConfigParser]):default_farm_id = config_file.get_setting("defaults.farm_id", config=config)default_queue_id = config_file.get_setting("defaults.queue_id", config=config)if default_farm_id and default_queue_id:response = api.list_storage_profiles_for_queue(config=config, farmId=... | 5 | 25 | 2 | 156 | 0 | 1,000 | 1,026 | 1,000 | self,config | [] | Returns | {"Assign": 1, "Return": 1} | 3 | 6 | 3 | ["api.list_farms", "sorted", "casefold"] | 0 | [] | The function (list_resources) defined within the public class called DeadlineFarmListComboBox, that inherit another class.The function start at line 1000 and ends at 1026. It contains 25 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [1000.0], and this function return a val... |
aws-deadline_deadline-cloud | DeadlineStorageProfileNameListComboBox | public | 0 | 1 | _get_current_os | def _get_current_os(self) -> str:"""Get a string specifying what the OS is, following the format the Deadline storage profile API expects."""if sys.platform.startswith("linux"):return self.LINUX_OSif sys.platform.startswith("darwin"):return self.MAC_OSif sys.platform.startswith("win"):return self.WINDOWS_OSreturn "Unkn... | 4 | 8 | 1 | 52 | 0 | 1,028 | 1,041 | 1,028 | self | [] | str | {"Expr": 1, "If": 3, "Return": 4} | 3 | 14 | 3 | ["sys.platform.startswith", "sys.platform.startswith", "sys.platform.startswith"] | 0 | [] | The function (_get_current_os) defined within the public class called DeadlineStorageProfileNameListComboBox, that inherit another class.The function start at line 1028 and ends at 1041. 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 an... |
aws-deadline_deadline-cloud | DeadlineLoginDialog | public | 0 | 1 | login | def login(parent=None,force_refresh=False,close_on_success=True,config: Optional[ConfigParser] = None,) -> bool:"""Static method that runs the Deadline Login Dialog. Returns True fora successful login, False otherwise.Args:force_refresh (bool, default False): Forces a re-login even when already authorized.close_on_succ... | 1 | 12 | 4 | 51 | 0 | 52 | 74 | 52 | parent,force_refresh,close_on_success,config | [] | bool | {"Assign": 1, "Expr": 1, "Return": 1} | 2 | 23 | 2 | ["DeadlineLoginDialog", "deadline_login.exec_"] | 14 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_client_is_independent_of_pykube_incluster", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.te... | The function (login) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 52 and ends at 74. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [52.0] and does not return any value. It declares 2.0 func... |
aws-deadline_deadline-cloud | DeadlineLoginDialog | public | 0 | 1 | __init__ | def __init__(self,parent=None,close_on_success=True,config: Optional[ConfigParser] = None,) -> None:super().__init__(parent=parent)self.close_on_success = close_on_successself.config = configself.canceled = Falseself.__login_thread: Optional[threading.Thread] = Noneself.login_thread_exception.connect(self.handle_login_... | 1 | 19 | 4 | 127 | 0 | 76 | 97 | 76 | self,parent,close_on_success,config | [] | None | {"AnnAssign": 1, "Assign": 3, "Expr": 9} | 10 | 22 | 10 | ["__init__", "super", "self.login_thread_exception.connect", "self.login_thread_message.connect", "self.login_thread_succeeded.connect", "self.buttonClicked.connect", "self.setWindowTitle", "self.setText", "self.setStandardButtons", "self._start_login"] | 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 DeadlineLoginDialog, that inherit another class.The function start at line 76 and ends at 97. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [76.0] and does not return any value. It declares 10.0 ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _login_background_thread.on_pending_authorization | def on_pending_authorization(**kwargs):if (kwargs["credentials_source"]== AwsCredentialsSource.DEADLINE_CLOUD_MONITOR_LOGIN):self.login_thread_message.emit("Opening Deadline Cloud monitor. Please log in before returning here.") | 2 | 8 | 1 | 26 | 0 | 107 | 114 | 107 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_login_background_thread.on_pending_authorization) defined within the public class called public.The function start at line 107 and ends at 114. It contains 8 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 | _login_background_thread.on_cancellation_check | def on_cancellation_check():return self.canceled | 1 | 2 | 0 | 8 | 0 | 116 | 117 | 116 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_login_background_thread.on_cancellation_check) defined within the public class called public.The function start at line 116 and ends at 117. 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 | DeadlineLoginDialog | public | 0 | 1 | _login_background_thread | def _login_background_thread(self):"""This function gets started in a background thread to run the login handshake. Itpolls the `self.canceled` flag for cancellation, and fills in details about thelogin when they become available."""try:def on_pending_authorization(**kwargs):if (kwargs["credentials_source"]== AwsCreden... | 2 | 12 | 1 | 50 | 0 | 99 | 127 | 99 | self | [] | Returns | {"Assign": 1, "Expr": 4, "If": 1, "Return": 1, "Try": 1} | 4 | 29 | 4 | ["self.login_thread_message.emit", "api.login", "self.login_thread_succeeded.emit", "self.login_thread_exception.emit"] | 0 | [] | The function (_login_background_thread) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 99 and ends at 127. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value.... |
aws-deadline_deadline-cloud | DeadlineLoginDialog | public | 0 | 1 | _start_login | def _start_login(self) -> None:"""Starts the background login thread."""self.__login_thread = threading.Thread(target=self._login_background_thread, name="AWS Deadline Cloud login thread")self.__login_thread.start() | 1 | 5 | 1 | 33 | 0 | 129 | 137 | 129 | self | [] | None | {"Assign": 1, "Expr": 2} | 2 | 9 | 2 | ["threading.Thread", "self.__login_thread.start"] | 0 | [] | The function (_start_login) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 129 and ends at 137. 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 2.0... |
aws-deadline_deadline-cloud | DeadlineLoginDialog | public | 0 | 1 | handle_login_thread_exception | def handle_login_thread_exception(self, e: BaseException) -> None:"""Handles the signal sent from the background login thread whenan exception is thrown."""self.setStandardButtons(QMessageBox.Close)self.setIcon(QMessageBox.Warning)self.setText(f"Failed to log in to AWS Deadline Cloud:<br/><br/>{html.escape(str(e))}") | 1 | 4 | 2 | 35 | 0 | 139 | 146 | 139 | self,e | [] | None | {"Expr": 4} | 5 | 8 | 5 | ["self.setStandardButtons", "self.setIcon", "self.setText", "html.escape", "str"] | 0 | [] | The function (handle_login_thread_exception) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 139 and ends at 146. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [139.0] and does not return any v... |
aws-deadline_deadline-cloud | DeadlineLoginDialog | public | 0 | 1 | handle_login_thread_message | def handle_login_thread_message(self, message: str) -> None:"""Handles the signal sent from the background login thread whenthe message needs to be set."""self.setText(message) | 1 | 2 | 2 | 18 | 0 | 148 | 153 | 148 | self,message | [] | None | {"Expr": 2} | 1 | 6 | 1 | ["self.setText"] | 0 | [] | The function (handle_login_thread_message) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 148 and ends at 153. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [148.0] and does not return any val... |
aws-deadline_deadline-cloud | DeadlineLoginDialog | public | 0 | 1 | handle_login_thread_succeeded | def handle_login_thread_succeeded(self, success_message: str) -> None:"""Handles the signal sent from the background login thread whenthe login has succeeded."""if self.close_on_success:# Effectively clicks on "OK"self.accept()else:self.setStandardButtons(QMessageBox.Ok)self.setIcon(QMessageBox.Information)self.setText... | 2 | 7 | 2 | 47 | 0 | 155 | 166 | 155 | self,success_message | [] | None | {"Expr": 5, "If": 1} | 5 | 12 | 5 | ["self.accept", "self.setStandardButtons", "self.setIcon", "self.setText", "html.escape"] | 0 | [] | The function (handle_login_thread_succeeded) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 155 and ends at 166. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [155.0] and does not return any v... |
aws-deadline_deadline-cloud | DeadlineLoginDialog | public | 0 | 1 | on_button_clicked | def on_button_clicked(self, button):if self.standardButton(button) == QMessageBox.Cancel:# Tell the login thread to cancel, then wait for it.self.canceled = Trueif self.__login_thread:while self.__login_thread.is_alive():QApplication.instance().processEvents()# type: ignore[union-attr] | 4 | 6 | 2 | 47 | 0 | 168 | 174 | 168 | self,button | [] | None | {"Assign": 1, "Expr": 1, "If": 2, "While": 1} | 4 | 7 | 4 | ["self.standardButton", "self.__login_thread.is_alive", "processEvents", "QApplication.instance"] | 0 | [] | The function (on_button_clicked) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 168 and ends at 174. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [168.0] and does not return any value. It dec... |
aws-deadline_deadline-cloud | DeadlineLoginDialog | public | 0 | 1 | exec_ | def exec_(self) -> bool:"""Runs the modal login dialog, returning True if the login wassuccessful, False otherwise."""return super().exec_() == QMessageBox.Ok | 1 | 2 | 1 | 20 | 0 | 176 | 181 | 176 | self | [] | bool | {"Expr": 1, "Return": 1} | 2 | 6 | 2 | ["exec_", "super"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.PgctlApp.log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3... | The function (exec_) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 176 and ends at 181. 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 declares 2.0 functi... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _print_function_callback | def _print_function_callback(cancelation_flag: CancelationFlag, dialog: SubmitJobProgressDialog, message: str):"""Callback for when api.create_job_from_job_bundle prints a message."""if not cancelation_flag:dialog.submission_thread_print.emit(message) | 2 | 5 | 3 | 28 | 0 | 44 | 49 | 44 | cancelation_flag,dialog,message | [] | None | {"Expr": 2, "If": 1} | 1 | 6 | 1 | ["dialog.submission_thread_print.emit"] | 0 | [] | The function (_print_function_callback) defined within the public class called public.The function start at line 44 and ends at 49. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [44.0] and does not return any value. It declare 1.0 function, and It has 1.0 fu... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _interactive_confirmation_callback | def _interactive_confirmation_callback(cancelation_flag: CancelationFlag,dialog: SubmitJobProgressDialog,message: str,default_response: bool,) -> bool:"""Callback for when api.create_job_from_job_bundle presents a warning to users."""if not cancelation_flag.canceled:# The handler for the submission_thread_request_warni... | 5 | 12 | 4 | 73 | 0 | 52 | 67 | 52 | cancelation_flag,dialog,message,default_response | [] | bool | {"Assign": 1, "Expr": 3, "If": 1, "Return": 1, "While": 1} | 2 | 16 | 2 | ["dialog.submission_thread_request_warning_dialog.emit", "time.sleep"] | 0 | [] | The function (_interactive_confirmation_callback) defined within the public class called public.The function start at line 52 and ends at 67. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [52.0] and does not return any value. It declares 2.0 functions, and ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _hashing_progress_callback | def _hashing_progress_callback(cancelation_flag: CancelationFlag,dialog: SubmitJobProgressDialog,progress_report_metadata: ProgressReportMetadata,):"""Callback for when api.create_job_from_job_bundle provides a hashing progress update."""if not cancelation_flag.canceled:dialog.submission_thread_hashing_progress.emit(pr... | 2 | 8 | 3 | 36 | 0 | 70 | 78 | 70 | cancelation_flag,dialog,progress_report_metadata | [] | Returns | {"Expr": 2, "If": 1, "Return": 1} | 1 | 9 | 1 | ["dialog.submission_thread_hashing_progress.emit"] | 0 | [] | The function (_hashing_progress_callback) defined within the public class called public.The function start at line 70 and ends at 78. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [70.0], and this function return a value. It declare 1.0 function, and It has ... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _upload_progress_callback | def _upload_progress_callback(cancelation_flag: CancelationFlag,dialog: SubmitJobProgressDialog,progress_report_metadata: ProgressReportMetadata,):"""Callback for when api.create_job_from_job_bundle provides an upload progress update."""if not cancelation_flag.canceled:dialog.submission_thread_upload_progress.emit(prog... | 2 | 8 | 3 | 36 | 0 | 81 | 89 | 81 | cancelation_flag,dialog,progress_report_metadata | [] | Returns | {"Expr": 2, "If": 1, "Return": 1} | 1 | 9 | 1 | ["dialog.submission_thread_upload_progress.emit"] | 0 | [] | The function (_upload_progress_callback) defined within the public class called public.The function start at line 81 and ends at 89. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [81.0], and this function return a value. It declare 1.0 function, and It has 1... |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _create_job_result_callback | def _create_job_result_callback(cancelation_flag: CancelationFlag):"""Callback for when api.create_job_from_job_bundle checks whether to cancel."""return not cancelation_flag.canceled | 1 | 2 | 1 | 13 | 0 | 92 | 94 | 92 | cancelation_flag | [] | Returns | {"Expr": 1, "Return": 1} | 0 | 3 | 0 | [] | 0 | [] | The function (_create_job_result_callback) defined within the public class called public.The function start at line 92 and ends at 94. 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 | _submission_thread_runner | def _submission_thread_runner(cancelation_flag: CancelationFlag, dialog: SubmitJobProgressDialog, kwargs):"""Function to run api.create_job_from_job_bundle in a background thread."""try:job_id = api.create_job_from_job_bundle(**kwargs)if not cancelation_flag.canceled:dialog.job_id = job_iddialog.submission_thread_succe... | 4 | 11 | 3 | 63 | 1 | 97 | 108 | 97 | cancelation_flag,dialog,kwargs | ['job_id'] | None | {"Assign": 2, "Expr": 3, "If": 2, "Try": 1} | 3 | 12 | 3 | ["api.create_job_from_job_bundle", "dialog.submission_thread_succeeded.emit", "dialog.submission_thread_exception.emit"] | 0 | [] | The function (_submission_thread_runner) defined within the public class called public.The function start at line 97 and ends at 108. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [97.0] and does not return any value. It declares 3.0 functions, and It has 3... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | __init__ | def __init__(self, parent: QWidget) -> None:super().__init__(parent=parent)# Use the CancelationFlag object to decouple the cancelation value# from the window lifetime.self.cancelation_flag = CancelationFlag()self.destroyed.connect(self.cancelation_flag.set_canceled)self._warning_dialog_canceled = Falseself._submission... | 1 | 14 | 2 | 127 | 0 | 134 | 152 | 134 | self,parent | [] | None | {"AnnAssign": 1, "Assign": 3, "Expr": 9} | 11 | 19 | 11 | ["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submi... | 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 SubmitJobProgressDialog, that inherit another class.The function start at line 134 and ends at 152. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [134.0] and does not return any value. It declare... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | start_job_submission | def start_job_submission(self,job_bundle_dir: str,job_parameters: list[dict[str, Any]] = [],**kwargs,) -> None:"""Starts a job submission background thread and returns immediately. It wires upappropriate callbacks and then forwards all arguments.See the documentation for deadline.client.api.create_job_from_job_bundle f... | 1 | 30 | 4 | 170 | 0 | 154 | 196 | 154 | self,job_bundle_dir,job_parameters,**kwargs | [] | None | {"Assign": 10, "Expr": 2} | 9 | 43 | 9 | ["kwargs.get", "partial", "partial", "partial", "partial", "partial", "threading.Thread", "partial", "self.__submission_thread.start"] | 0 | [] | The function (start_job_submission) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 154 and ends at 196. It contains 30 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [154.0] and does not return any value... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | _build_ui | def _build_ui(self):"""Builds job submission progress UI"""# Remove help button from title barself.setWindowFlags((self.windowFlags() & ~Qt.WindowContextHelpButtonHint) | Qt.WindowCloseButtonHint)self.lyt = QVBoxLayout(self)self.lyt.setContentsMargins(5, 10, 5, 5)self.setMinimumWidth(600)self.setMinimumHeight(700)self.... | 1 | 29 | 1 | 238 | 0 | 198 | 232 | 198 | self | [] | None | {"Assign": 6, "Expr": 17} | 23 | 35 | 23 | ["self.setWindowFlags", "self.windowFlags", "QVBoxLayout", "self.lyt.setContentsMargins", "self.setMinimumWidth", "self.setMinimumHeight", "QLabel", "self.status_label.setMargin", "JobAttachmentsProgressWidget", "JobAttachmentsProgressWidget", "QTextEdit", "self.submission_log.setReadOnly", "QDialogButtonBox", "self.bu... | 0 | [] | The function (_build_ui) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 198 and ends at 232. It contains 29 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 2... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | handle_request_warning_dialog | def handle_request_warning_dialog(self, message: str, default_response: bool):"""Presents a dialog with the provided message.Args:message (str): The message to present to the user.default_response (bool):True if the default is to continue. This adds a "Do not ask again" button as well.False if the default is to Cancel.... | 2 | 6 | 3 | 46 | 0 | 234 | 251 | 234 | self,message,default_response | [] | None | {"Assign": 4, "Expr": 1, "If": 1} | 2 | 18 | 2 | ["_JobSumissionWarningDialog", "dialog.exec"] | 0 | [] | The function (handle_request_warning_dialog) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 234 and ends at 251. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [234.0] and does not return a... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | handle_print | def handle_print(self, message: str) -> None:"""Handles the signal sent from the background thread to print messagesto the log."""self.submission_log.append(f"{message}\n") | 1 | 2 | 2 | 21 | 0 | 253 | 258 | 253 | self,message | [] | None | {"Expr": 2} | 1 | 6 | 1 | ["self.submission_log.append"] | 0 | [] | The function (handle_print) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 253 and ends at 258. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [253.0] and does not return any value. It decl... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | handle_hashing_thread_progress_report | def handle_hashing_thread_progress_report(self, progress_metadata: ProgressReportMetadata) -> None:"""Handles the signal sent from the background thread when reportinghashing progress. Sets the progress bar in the dialog based onthe callback progress data from job attachments."""self.hashing_progress.progress_bar.setVa... | 1 | 5 | 2 | 39 | 0 | 260 | 269 | 260 | self,progress_metadata | [] | None | {"Expr": 3} | 3 | 10 | 3 | ["self.hashing_progress.progress_bar.setValue", "int", "self.hashing_progress.progress_message.setText"] | 0 | [] | The function (handle_hashing_thread_progress_report) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 260 and ends at 269. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [260.0] and does not ... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | handle_upload_thread_progress_report | def handle_upload_thread_progress_report(self, progress_metadata: ProgressReportMetadata) -> None:"""Handles the signal sent from the background thread when reportingupload progress. Sets the progress bar in the dialog based onthe callback progress data from job attachments."""self.upload_progress.progress_bar.setValue... | 1 | 5 | 2 | 39 | 0 | 271 | 280 | 271 | self,progress_metadata | [] | None | {"Expr": 3} | 3 | 10 | 3 | ["self.upload_progress.progress_bar.setValue", "int", "self.upload_progress.progress_message.setText"] | 0 | [] | The function (handle_upload_thread_progress_report) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 271 and ends at 280. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [271.0] and does not r... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | handle_create_job_thread_succeeded | def handle_create_job_thread_succeeded(self, job_id: str) -> None:"""Handles the signal sent from the background CreateJob thread when thejob creation has finished."""if job_id:self._submission_complete = Trueself.status_label.setText("Submission complete")self.button_box.setStandardButtons(QDialogButtonBox.Ok)self.but... | 4 | 16 | 2 | 128 | 0 | 282 | 301 | 282 | self,job_id | [] | None | {"Assign": 1, "Expr": 9, "If": 2} | 11 | 20 | 11 | ["self.status_label.setText", "self.button_box.setStandardButtons", "setDefault", "self.button_box.button", "clicked.connect", "self.button_box.button", "self.status_label.setText", "self.status_label.setText", "self.button_box.setStandardButtons", "setDefault", "self.button_box.button"] | 0 | [] | The function (handle_create_job_thread_succeeded) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 282 and ends at 301. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [282.0] and does not re... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | handle_thread_exception | def handle_thread_exception(self, e: BaseException) -> None:"""Handles the signal sent from the background threads when an exception isthrown."""self.button_box.setStandardButtons(QDialogButtonBox.Close)self.submission_log.append(f"Error occurred: {str(e)}\n")logger.exception(e, exc_info=(type(e), e, e.__traceback__)) | 1 | 4 | 2 | 52 | 0 | 303 | 310 | 303 | self,e | [] | None | {"Expr": 4} | 5 | 8 | 5 | ["self.button_box.setStandardButtons", "self.submission_log.append", "str", "logger.exception", "type"] | 0 | [] | The function (handle_thread_exception) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 303 and ends at 310. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [303.0] and does not return any val... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | closeEvent | def closeEvent(self, event: QCloseEvent) -> None:"""Overrides the closeEvent function to shutdown any running threads beforeclosing the dialog. If the submission is complete then any button, even'X', should result in the dialog being accepted."""self.progress_window_closed.emit()if self._submission_complete:self.accept... | 4 | 12 | 2 | 86 | 0 | 312 | 328 | 312 | self,event | [] | None | {"Expr": 8, "If": 2, "While": 1} | 10 | 17 | 10 | ["self.progress_window_closed.emit", "self.accept", "self.cancelation_flag.set_canceled", "logger.info", "self.status_label.setText", "self.__submission_thread.is_alive", "processEvents", "QApplication.instance", "closeEvent", "super"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py.SubmitJobProgressDialog.closeEvent"] | The function (closeEvent) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 312 and ends at 328. It contains 12 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [312.0] and does not return any value. It decla... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | exec_ | def exec_(self) -> Optional[str]:# type: ignore[override]"""Runs the modal job progress dialog, returns the submitted job ID if itwas successful, otherwise None."""if super().exec_() == QDialog.Accepted:return self.job_idreturn None | 2 | 4 | 1 | 30 | 0 | 330 | 337 | 330 | self | [] | Optional[str] | {"Expr": 1, "If": 1, "Return": 2} | 2 | 8 | 2 | ["exec_", "super"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.PgctlApp.log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3... | The function (exec_) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 330 and ends at 337. 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 2.0 fu... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | __init__ | def __init__(self, *, initial_message: str, title: str, parent: Optional[QWidget] = None):super().__init__(parent=parent, title=title)self.initial_message = initial_messageself._build_ui() | 1 | 4 | 4 | 48 | 0 | 345 | 349 | 345 | self,parent | [] | None | {"AnnAssign": 1, "Assign": 3, "Expr": 9} | 11 | 19 | 11 | ["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submi... | 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 SubmitJobProgressDialog, that inherit another class.The function start at line 345 and ends at 349. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [345.0] and does not return any value. It declares... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | _build_ui | def _build_ui(self):self.layout = QFormLayout(self)self.layout.setFieldGrowthPolicy(QFormLayout.AllNonFixedFieldsGrow)self.progress_bar = QProgressBar()self.progress_message = QLabel(self.initial_message)self.layout.addWidget(self.progress_bar)self.layout.addWidget(self.progress_message) | 1 | 7 | 1 | 60 | 0 | 351 | 359 | 351 | self | [] | None | {"Assign": 6, "Expr": 17} | 23 | 35 | 23 | ["self.setWindowFlags", "self.windowFlags", "QVBoxLayout", "self.lyt.setContentsMargins", "self.setMinimumWidth", "self.setMinimumHeight", "QLabel", "self.status_label.setMargin", "JobAttachmentsProgressWidget", "JobAttachmentsProgressWidget", "QTextEdit", "self.submission_log.setReadOnly", "QDialogButtonBox", "self.bu... | 0 | [] | The function (_build_ui) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 351 and ends at 359. 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. It declares 23... |
aws-deadline_deadline-cloud | SubmitJobProgressDialog | public | 0 | 1 | __init__ | def __init__(self, message: str, default_response: bool = False):"""Simple Dialog which functions similar to a QMessageBox, but with a scrollable text area.Args:message (str): The message to present to the user.default_response (bool):True if the default response should be to continue.- This also adds a "Do not ask aga... | 3 | 36 | 3 | 281 | 0 | 367 | 422 | 367 | self,parent | [] | None | {"AnnAssign": 1, "Assign": 3, "Expr": 9} | 11 | 19 | 11 | ["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submi... | 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 SubmitJobProgressDialog, that inherit another class.The function start at line 367 and ends at 422. It contains 36 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [367.0] and does not return any value. It declare... |
aws-deadline_deadline-cloud | _JobSumissionWarningDialog | protected | 0 | 1 | _calculate_optimal_size | def _calculate_optimal_size(self):"""Calculate optimal height based on text content and font metrics."""# Get font metrics for the text editfont_metrics = QFontMetrics(self.text_edit.font())# Calculate text width accounting for margins and scrollbartext_width = self.text_edit.minimumWidth() - 40# Account for margins an... | 1 | 13 | 1 | 106 | 0 | 424 | 450 | 424 | self | [] | None | {"Assign": 10, "Expr": 3} | 9 | 27 | 9 | ["QFontMetrics", "self.text_edit.font", "self.text_edit.minimumWidth", "font_metrics.boundingRect", "text_rect.height", "max", "min", "self.text_edit.setMinimumHeight", "self.resize"] | 0 | [] | The function (_calculate_optimal_size) defined within the protected class called _JobSumissionWarningDialog, that inherit another class.The function start at line 424 and ends at 450. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any ... |
aws-deadline_deadline-cloud | _JobSumissionWarningDialog | protected | 0 | 1 | showEvent | def showEvent(self, event):"""Override showEvent to set the default button after the dialog is shown."""super().showEvent(event)# Set the default button after the dialog is fully shownif self.buttons is not None:# This type check is to make linting passif self.default_response:ok_button = self.buttons.button(QDialogBut... | 5 | 15 | 2 | 95 | 0 | 452 | 469 | 452 | self,event | [] | None | {"Assign": 2, "Expr": 8, "If": 4} | 10 | 18 | 10 | ["showEvent", "super", "self.buttons.button", "ok_button.setDefault", "ok_button.setAutoDefault", "ok_button.setFocus", "self.buttons.button", "cancel_button.setDefault", "cancel_button.setAutoDefault", "cancel_button.setFocus"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py._JobSumissionWarningDialog.showEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_c... | The function (showEvent) defined within the protected class called _JobSumissionWarningDialog, that inherit another class.The function start at line 452 and ends at 469. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [452.0] and does not return any value. It ... |
aws-deadline_deadline-cloud | _JobSumissionWarningDialog | protected | 0 | 1 | sizeHint | def sizeHint(self):"""Return size hint based on content."""# Calculate total dialog height including other widgetsbase_height = 50# Height for title, buttons, and marginstext_height = self.text_edit.minimumHeight()total_height = base_height + text_heightreturn QSize(500, total_height) | 1 | 5 | 1 | 30 | 0 | 471 | 478 | 471 | self | [] | Returns | {"Assign": 3, "Expr": 1, "Return": 1} | 2 | 8 | 2 | ["self.text_edit.minimumHeight", "QSize"] | 0 | [] | The function (sizeHint) defined within the protected class called _JobSumissionWarningDialog, that inherit another class.The function start at line 471 and ends at 478. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It de... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | __init__ | def __init__(self,*,job_setup_widget_type: type[QWidget],initial_job_settings,initial_shared_parameter_values: dict[str, Any],auto_detected_attachments: AssetReferences,attachments: AssetReferences,on_create_job_bundle_callback: OnCreateJobBundleCallback,parent=None,f=Qt.WindowFlags(),show_host_requirements_tab=False,h... | 3 | 38 | 9 | 209 | 0 | 103 | 144 | 103 | self,job_setup_widget_type,initial_job_settings,initial_shared_parameter_values,auto_detected_attachments,attachments,on_create_job_bundle_callback,parent,f,show_host_requirements_tab,host_requirements,submitter_name,known_asset_paths | [] | None | {"AnnAssign": 2, "Assign": 8, "Expr": 5} | 10 | 42 | 10 | ["Qt.WindowFlags", "__init__", "super", "self.setWindowTitle", "self.setMinimumSize", "type", "self.job_settings_type", "DeadlineAuthenticationStatus.getInstance", "self._build_ui", "self.refresh_deadline_settings"] | 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 SubmitJobToDeadlineDialog, that inherit another class.The function start at line 103 and ends at 144. It contains 38 lines of code and it has a cyclomatic complexity of 3. It takes 9 parameters, represented as [103.0] and does not return any value. It decla... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | _submission_succeeded_signal_receiver | def _submission_succeeded_signal_receiver(self, job_id: str):self.job_id = job_idset_setting("defaults.job_id", job_id) | 1 | 3 | 2 | 20 | 0 | 146 | 149 | 146 | self,job_id | [] | None | {"Assign": 1, "Expr": 1} | 1 | 4 | 1 | ["set_setting"] | 0 | [] | The function (_submission_succeeded_signal_receiver) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 146 and ends at 149. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [146.0] and does no... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | _close_event_receiver | def _close_event_receiver(self):if self.submitter_name != "JobBundle" and self.job_id:self.close() | 3 | 3 | 1 | 21 | 0 | 151 | 153 | 151 | self | [] | None | {"Expr": 1, "If": 1} | 1 | 3 | 1 | ["self.close"] | 0 | [] | The function (_close_event_receiver) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 151 and ends at 153. It contains 3 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. ... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | sizeHint | def sizeHint(self):return QSize(540, 700) | 1 | 2 | 1 | 12 | 0 | 155 | 156 | 155 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["QSize"] | 0 | [] | The function (sizeHint) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 155 and ends at 156. 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. It declar... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | refresh | def refresh(self,*,job_settings: Optional[Any] = None,auto_detected_attachments: Optional[AssetReferences] = None,attachments: Optional[AssetReferences] = None,load_new_bundle: bool = False,):# Refresh the UI componentsself.refresh_deadline_settings()if (auto_detected_attachments is not None) or (attachments is not Non... | 5 | 16 | 5 | 113 | 0 | 158 | 177 | 158 | self,job_settings,auto_detected_attachments,attachments,load_new_bundle | [] | None | {"Assign": 1, "Expr": 4, "If": 3} | 6 | 20 | 6 | ["self.refresh_deadline_settings", "self.job_attachments.refresh_ui", "type", "self.shared_job_settings.refresh_ui", "hasattr", "self.job_settings.refresh_ui"] | 9 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateAction.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateActionManually.execute", "_.cont... | The function (refresh) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 158 and ends at 177. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [158.0] and does not return any value. It declar... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | _build_ui | def _build_ui(self,job_setup_widget_type,initial_job_settings,initial_shared_parameter_values,auto_detected_attachments: AssetReferences,attachments: AssetReferences,host_requirements: Optional[HostRequirements],):self.lyt = QVBoxLayout(self)self.lyt.setContentsMargins(5, 5, 5, 5)man_layout = QFormLayout()self.lyt.addL... | 2 | 40 | 7 | 314 | 0 | 179 | 227 | 179 | self,job_setup_widget_type,initial_job_settings,initial_shared_parameter_values,auto_detected_attachments,attachments,host_requirements | [] | None | {"Assign": 8, "Expr": 20, "If": 1} | 28 | 49 | 28 | ["QVBoxLayout", "self.lyt.setContentsMargins", "QFormLayout", "self.lyt.addLayout", "QTabWidget", "self.lyt.addWidget", "self._build_shared_job_settings_tab", "self._build_job_settings_tab", "self._build_job_attachments_tab", "self._build_host_requirements_tab", "DeadlineAuthenticationStatusWidget", "self.auth_status_b... | 0 | [] | The function (_build_ui) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 179 and ends at 227. It contains 40 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [179.0] and does not return any value. It decl... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | _set_submit_button_state | def _set_submit_button_state(self):# Enable/disable the Submit button based on whether the# AWS Deadline Cloud API is accessible and the farm+queue are configured.api_available = self.deadline_authentication_status.api_availability is Truefarm_configured = get_setting("defaults.farm_id") != ""queue_configured = get_set... | 11 | 28 | 1 | 133 | 0 | 229 | 262 | 229 | self | [] | None | {"Assign": 6, "Expr": 7, "If": 5} | 11 | 34 | 11 | ["get_setting", "get_setting", "self.shared_job_settings.is_queue_valid", "self.submit_button.setEnabled", "issues.append", "issues.append", "issues.append", "issues.append", "self.submit_button.setToolTip", "join", "self.submit_button.setToolTip"] | 0 | [] | The function (_set_submit_button_state) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 229 and ends at 262. It contains 28 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any va... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | refresh_deadline_settings | def refresh_deadline_settings(self):self._set_submit_button_state()self.shared_job_settings.deadline_cloud_settings_box.refresh_setting_controls(self.deadline_authentication_status.api_availability is True)# If necessary, this reloads the queue parametersself.shared_job_settings.refresh_queue_parameters() | 1 | 6 | 1 | 33 | 0 | 264 | 271 | 264 | self | [] | None | {"Expr": 3} | 3 | 8 | 3 | ["self._set_submit_button_state", "self.shared_job_settings.deadline_cloud_settings_box.refresh_setting_controls", "self.shared_job_settings.refresh_queue_parameters"] | 0 | [] | The function (refresh_deadline_settings) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 264 and ends at 271. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any val... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | keyPressEvent | def keyPressEvent(self, event: QKeyEvent) -> None:"""Override to capture any enter/return key presses so that the Submitbutton isn't "pressed" when the enter/return key is."""if event.key() == Qt.Key_Return or event.key() == Qt.Key_Enter:returnsuper().keyPressEvent(event) | 3 | 4 | 2 | 42 | 0 | 273 | 280 | 273 | self,event | [] | None | {"Expr": 2, "If": 1, "Return": 1} | 4 | 8 | 4 | ["event.key", "event.key", "keyPressEvent", "super"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.pl._interactive._widgets_py.ListWidget.keyPressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_jo... | The function (keyPressEvent) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 273 and ends at 280. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [273.0] and does not return any value. It d... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | _build_shared_job_settings_tab | def _build_shared_job_settings_tab(self, initial_job_settings, initial_shared_parameter_values):self.shared_job_settings_tab = QScrollArea()self.tabs.addTab(self.shared_job_settings_tab, "Shared job settings")self.shared_job_settings = SharedJobSettingsWidget(initial_settings=initial_job_settings,initial_shared_paramet... | 1 | 12 | 3 | 89 | 0 | 282 | 293 | 282 | self,initial_job_settings,initial_shared_parameter_values | [] | None | {"Assign": 2, "Expr": 5} | 7 | 12 | 7 | ["QScrollArea", "self.tabs.addTab", "SharedJobSettingsWidget", "self.shared_job_settings.parameter_changed.connect", "self.shared_job_settings_tab.setWidget", "self.shared_job_settings_tab.setWidgetResizable", "self.shared_job_settings.parameter_changed.connect"] | 0 | [] | The function (_build_shared_job_settings_tab) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 282 and ends at 293. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [282.0] and does not retu... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | _build_job_settings_tab | def _build_job_settings_tab(self, job_setup_widget_type, initial_job_settings):self.job_settings_tab = QScrollArea()self.tabs.addTab(self.job_settings_tab, "Job-specific settings")self.job_settings_tab.setWidgetResizable(True)self.job_settings = job_setup_widget_type(initial_settings=initial_job_settings, parent=self)s... | 2 | 10 | 3 | 82 | 0 | 295 | 305 | 295 | self,job_setup_widget_type,initial_job_settings | [] | None | {"Assign": 2, "Expr": 4, "If": 1} | 7 | 11 | 7 | ["QScrollArea", "self.tabs.addTab", "self.job_settings_tab.setWidgetResizable", "job_setup_widget_type", "self.job_settings_tab.setWidget", "hasattr", "self.job_settings.parameter_changed.connect"] | 0 | [] | The function (_build_job_settings_tab) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 295 and ends at 305. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [295.0] and does not return any ... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | _build_job_attachments_tab | def _build_job_attachments_tab(self, auto_detected_attachments: AssetReferences, attachments: AssetReferences):self.job_attachments_tab = QScrollArea()self.tabs.addTab(self.job_attachments_tab, "Job attachments")self.job_attachments = JobAttachmentsWidget(auto_detected_attachments, attachments, parent=self)self.job_att... | 1 | 10 | 3 | 64 | 0 | 307 | 316 | 307 | self,auto_detected_attachments,attachments | [] | None | {"Assign": 2, "Expr": 3} | 5 | 10 | 5 | ["QScrollArea", "self.tabs.addTab", "JobAttachmentsWidget", "self.job_attachments_tab.setWidget", "self.job_attachments_tab.setWidgetResizable"] | 0 | [] | The function (_build_job_attachments_tab) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 307 and ends at 316. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [307.0] and does not return a... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | _build_host_requirements_tab | def _build_host_requirements_tab(self, host_requirements: Optional[HostRequirements]):self.host_requirements = HostRequirementsWidget()self.host_requirements_tab = QScrollArea()self.tabs.addTab(self.host_requirements_tab, "Host requirements")self.host_requirements_tab.setWidget(self.host_requirements)self.host_requirem... | 2 | 8 | 2 | 67 | 0 | 318 | 325 | 318 | self,host_requirements | [] | None | {"Assign": 2, "Expr": 4, "If": 1} | 6 | 8 | 6 | ["HostRequirementsWidget", "QScrollArea", "self.tabs.addTab", "self.host_requirements_tab.setWidget", "self.host_requirements_tab.setWidgetResizable", "self.host_requirements.set_requirements"] | 0 | [] | The function (_build_host_requirements_tab) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 318 and ends at 325. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [318.0] and does not return ... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | on_shared_job_parameter_changed | def on_shared_job_parameter_changed(self, parameter: dict[str, Any]):"""Handles an edit to a shared job parameter, for example one of thequeue parameters.When a queue parameter and a job template parameter havethe same name, we update between them to keep them consistent."""try:if hasattr(self.job_settings, "set_parame... | 3 | 7 | 2 | 47 | 0 | 327 | 342 | 327 | self,parameter | [] | None | {"Expr": 2, "If": 1, "Try": 1, "With": 1} | 3 | 16 | 3 | ["hasattr", "block_signals", "self.job_settings.set_parameter_value"] | 0 | [] | The function (on_shared_job_parameter_changed) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 327 and ends at 342. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [327.0] and does not retu... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | on_job_template_parameter_changed | def on_job_template_parameter_changed(self, parameter: dict[str, Any]):"""Handles an edit to a job template parameter.When a queue parameter and a job template parameter havethe same name, we update between them to keep them consistent."""try:with block_signals(self.shared_job_settings):self.shared_job_settings.set_par... | 2 | 6 | 2 | 37 | 0 | 344 | 357 | 344 | self,parameter | [] | None | {"Expr": 2, "Try": 1, "With": 1} | 2 | 14 | 2 | ["block_signals", "self.shared_job_settings.set_parameter_value"] | 0 | [] | The function (on_job_template_parameter_changed) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 344 and ends at 357. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [344.0] and does not re... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | on_login | def on_login(self):DeadlineLoginDialog.login(parent=self)self.refresh_deadline_settings()# This widget watches the auth files, but that does# not always catch a change so force a refresh here.self.deadline_authentication_status.refresh_status() | 1 | 4 | 1 | 25 | 0 | 359 | 364 | 359 | self | [] | None | {"Expr": 3} | 3 | 6 | 3 | ["DeadlineLoginDialog.login", "self.refresh_deadline_settings", "self.deadline_authentication_status.refresh_status"] | 0 | [] | The function (on_login) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 359 and ends at 364. It contains 4 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... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | on_logout | def on_logout(self):api.logout()self.refresh_deadline_settings()# This widget watches the auth files, but that does# not always catch a change so force a refresh here.self.deadline_authentication_status.refresh_status() | 1 | 4 | 1 | 22 | 0 | 366 | 371 | 366 | self | [] | None | {"Expr": 3} | 3 | 6 | 3 | ["api.logout", "self.refresh_deadline_settings", "self.deadline_authentication_status.refresh_status"] | 0 | [] | The function (on_logout) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 366 and ends at 371. It contains 4 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 ... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | on_switch_profile_clicked | def on_switch_profile_clicked(self):if DeadlineConfigDialog.configure_settings(parent=self, set_profile_focus=True):self.refresh_deadline_settings() | 2 | 3 | 1 | 24 | 0 | 373 | 375 | 373 | self | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["DeadlineConfigDialog.configure_settings", "self.refresh_deadline_settings"] | 0 | [] | The function (on_switch_profile_clicked) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 373 and ends at 375. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any val... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | on_settings_button_clicked | def on_settings_button_clicked(self):if DeadlineConfigDialog.configure_settings(parent=self):self.refresh_deadline_settings() | 2 | 3 | 1 | 20 | 0 | 377 | 379 | 377 | self | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["DeadlineConfigDialog.configure_settings", "self.refresh_deadline_settings"] | 0 | [] | The function (on_settings_button_clicked) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 377 and ends at 379. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any va... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | on_export_bundle | def on_export_bundle(self):"""Exports a Job Bundle, but does not submit the job."""# Retrieve all the settings into the dataclasssettings = self.job_settings_type()self.shared_job_settings.update_settings(settings)self.job_settings.update_settings(settings)queue_parameters = self.shared_job_settings.get_parameters()ass... | 7 | 50 | 1 | 250 | 0 | 381 | 448 | 381 | self | [] | None | {"Assign": 10, "Expr": 11, "If": 4, "Try": 1} | 20 | 68 | 20 | ["self.job_settings_type", "self.shared_job_settings.update_settings", "self.job_settings.update_settings", "self.shared_job_settings.get_parameters", "self.job_attachments.get_asset_references", "create_job_history_bundle_dir", "self.host_requirements.get_requirements", "self.on_create_job_bundle_callback", "self.on_c... | 0 | [] | The function (on_export_bundle) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 381 and ends at 448. It contains 50 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value. It d... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | save_job_parameters_to_job_bundle | def save_job_parameters_to_job_bundle(self, job_bundle_dir: str, job_parameters: list[JobParameter]):"""Saves the job parameters to the job bundle. If the job bundle already has a parameter_values file,it updates it. Otherwise it creates it."""job_parameters_dict = {param["name"]: param for param in job_parameters}job_... | 5 | 21 | 3 | 208 | 0 | 450 | 478 | 450 | self,job_bundle_dir,job_parameters | [] | None | {"Assign": 7, "Expr": 4, "For": 1, "If": 2, "With": 3} | 16 | 29 | 16 | ["os.path.join", "os.path.exists", "open", "get", "yaml.safe_load", "os.path.join", "os.path.exists", "open", "get", "json.load", "combined_job_parameters.append", "job_parameters_dict.pop", "combined_job_parameters.extend", "job_parameters_dict.values", "open", "json.dump"] | 0 | [] | The function (save_job_parameters_to_job_bundle) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 450 and ends at 478. It contains 21 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [450.0] and does not r... |
aws-deadline_deadline-cloud | SubmitJobToDeadlineDialog | public | 0 | 1 | on_submit | def on_submit(self):"""Perform a submission when the submit button is pressed"""# Retrieve all the settings into the dataclasssettings = self.job_settings_type()self.shared_job_settings.update_settings(settings)self.job_settings.update_settings(settings)queue_parameters = self.shared_job_settings.get_parameters()asset_... | 7 | 67 | 1 | 375 | 0 | 480 | 562 | 480 | self | [] | None | {"Assign": 10, "Expr": 18, "If": 3, "Try": 1} | 36 | 83 | 36 | ["self.job_settings_type", "self.shared_job_settings.update_settings", "self.job_settings.update_settings", "self.shared_job_settings.get_parameters", "self.job_attachments.get_asset_references", "SubmitJobProgressDialog", "job_progress_dialog.submission_thread_succeeded.connect", "job_progress_dialog.progress_window_c... | 0 | [] | The function (on_submit) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 480 and ends at 562. It contains 67 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value. It declares... |
aws-deadline_deadline-cloud | CliJobSettingsWidget | public | 0 | 1 | __init__ | def __init__(self, initial_settings: CliJobSettings, parent=None):super().__init__(parent=parent)self._build_ui()self._load_initial_settings(initial_settings) | 1 | 4 | 3 | 34 | 0 | 34 | 38 | 34 | self,initial_settings,parent | [] | None | {"Expr": 3} | 4 | 5 | 4 | ["__init__", "super", "self._build_ui", "self._load_initial_settings"] | 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 CliJobSettingsWidget, that inherit another class.The function start at line 34 and ends at 38. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [34.0] and does not return any value. It declares 4.0 f... |
aws-deadline_deadline-cloud | CliJobSettingsWidget | public | 0 | 1 | _set_enabled_with_label | def _set_enabled_with_label(self, prop_name: str, enabled: bool):"""Set the enabled status of a control and its label"""getattr(self, prop_name).setEnabled(enabled)getattr(self, prop_name + "_label").setEnabled(enabled) | 1 | 3 | 3 | 38 | 0 | 40 | 43 | 40 | self,prop_name,enabled | [] | None | {"Expr": 3} | 4 | 4 | 4 | ["setEnabled", "getattr", "setEnabled", "getattr"] | 0 | [] | The function (_set_enabled_with_label) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 40 and ends at 43. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [40.0] and does not return any value. It... |
aws-deadline_deadline-cloud | CliJobSettingsWidget | public | 0 | 1 | _build_ui | def _build_ui(self):layout = QGridLayout(self)self.bash_script = QTextEdit()if os.name == "nt":font_family = "Consolas"elif os.name == "darwin":font_family = "Monaco"else:font_family = "Monospace"font = self.bash_script.currentFont()font.setFamily(font_family)font.setFixedPitch(True)font.setKerning(False)font.setPointS... | 3 | 39 | 1 | 335 | 0 | 45 | 89 | 45 | self | [] | None | {"Assign": 14, "Expr": 17, "If": 2} | 31 | 45 | 31 | ["QGridLayout", "QTextEdit", "self.bash_script.currentFont", "font.setFamily", "font.setFixedPitch", "font.setKerning", "font.setPointSize", "font.pointSize", "self.bash_script.setCurrentFont", "self.bash_script.setSizePolicy", "layout.addWidget", "QCheckBox", "QLineEdit", "layout.addWidget", "layout.addWidget", "self.... | 0 | [] | The function (_build_ui) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 45 and ends at 89. It contains 39 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 31.0 f... |
aws-deadline_deadline-cloud | CliJobSettingsWidget | public | 0 | 1 | _load_initial_settings | def _load_initial_settings(self, initial_settings: CliJobSettings):self.bash_script.setPlainText(initial_settings.bash_script_contents)self.use_array_parameter_chck.setChecked(initial_settings.use_array_parameter)self.array_parameter_name.setText(initial_settings.array_parameter_name)self.array_parameter_values.setText... | 1 | 6 | 2 | 59 | 0 | 91 | 96 | 91 | self,initial_settings | [] | None | {"Expr": 5} | 5 | 6 | 5 | ["self.bash_script.setPlainText", "self.use_array_parameter_chck.setChecked", "self.array_parameter_name.setText", "self.array_parameter_values.setText", "self.file_format_box.setCurrentText"] | 0 | [] | The function (_load_initial_settings) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 91 and ends at 96. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [91.0] and does not return any value. It ... |
aws-deadline_deadline-cloud | CliJobSettingsWidget | public | 0 | 1 | update_settings | def update_settings(self, settings: CliJobSettings):"""Update a settings object with the latest values."""settings.bash_script_contents = self.bash_script.toPlainText()settings.use_array_parameter = self.use_array_parameter_chck.isChecked()settings.array_parameter_name = self.array_parameter_name.text()settings.array_p... | 1 | 7 | 2 | 83 | 0 | 98 | 107 | 98 | self,settings | [] | None | {"Assign": 6, "Expr": 1} | 7 | 10 | 7 | ["self.bash_script.toPlainText", "self.use_array_parameter_chck.isChecked", "self.array_parameter_name.text", "self.array_parameter_values.text", "os.path.expanduser", "self.data_dir_edit.text", "self.file_format_box.currentText"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3656399_avelino_liquidluck.liquidluck.generator_py.load_settings"] | The function (update_settings) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 98 and ends at 107. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [98.0] and does not return any value. It declar... |
aws-deadline_deadline-cloud | CliJobSettingsWidget | public | 0 | 1 | use_array_parameter_changed | def use_array_parameter_changed(self, state: int):enabled = Qt.CheckState(state) == Qt.Checkedself.array_parameter_name.setEnabled(enabled)self._set_enabled_with_label("array_parameter_values", enabled) | 1 | 4 | 2 | 37 | 0 | 109 | 112 | 109 | self,state | [] | None | {"Assign": 1, "Expr": 2} | 3 | 4 | 3 | ["Qt.CheckState", "self.array_parameter_name.setEnabled", "self._set_enabled_with_label"] | 0 | [] | The function (use_array_parameter_changed) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 109 and ends at 112. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [109.0] and does not return any va... |
aws-deadline_deadline-cloud | RightAlignedQMenu | public | 0 | 1 | showEvent | def showEvent(self, event):"""Override showEvent to position the menu to the right of the parent button."""if self.parent():parent_top_right = self.parent().mapToGlobal(self.parent().rect().topRight())self.move(parent_top_right.x(), parent_top_right.y())super().showEvent(event)self.adjustSize()# The menu was displaying... | 2 | 6 | 2 | 68 | 0 | 40 | 49 | 40 | self,event | [] | None | {"Assign": 1, "Expr": 4, "If": 1} | 12 | 10 | 12 | ["self.parent", "mapToGlobal", "self.parent", "topRight", "rect", "self.parent", "self.move", "parent_top_right.x", "parent_top_right.y", "showEvent", "super", "self.adjustSize"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py._JobSumissionWarningDialog.showEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_c... | The function (showEvent) defined within the public class called RightAlignedQMenu, that inherit another class.The function start at line 40 and ends at 49. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [40.0] and does not return any value. It declares 12.0 fu... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | __init__ | def __init__(self, parent=None, show_profile_switch=True) -> None:"""Initialize the authentication status widget.Args:parent: The parent Qt widget. Defaults to None.show_profile_switch (bool): Whether to show the switch profile control.Defaults to True."""super().__init__(parent=parent)self._build_ui(show_profile_switc... | 1 | 8 | 3 | 82 | 0 | 122 | 142 | 122 | self,parent,show_profile_switch | [] | None | {"Assign": 1, "Expr": 7} | 8 | 21 | 8 | ["__init__", "super", "self._build_ui", "DeadlineAuthenticationStatus.getInstance", "self._status.creds_source_changed.connect", "self._status.auth_status_changed.connect", "self._status.api_availability_changed.connect", "self._update_ui"] | 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 DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 122 and ends at 142. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [122.0] and does not return any value. ... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | _build_ui | def _build_ui(self, show_profile_switch: bool = True) -> None:"""Build the user interface components for the authentication status widget.Creates a styled frame containing a status icon, profile button with dropdown menu,and various action buttons (switch profile, login, more info) that are shown/hiddenbased on the cur... | 1 | 32 | 2 | 220 | 0 | 144 | 197 | 144 | self,show_profile_switch | [] | None | {"Assign": 10, "Expr": 13} | 21 | 54 | 21 | ["QHBoxLayout", "layout.setContentsMargins", "QLabel", "layout.addWidget", "QPushButton", "self._profile_button.setStyleSheet", "RightAlignedQMenu", "self._auth_menu.addAction", "self._auth_menu.addAction", "layout.addWidget", "layout.addStretch", "QPushButton", "self._switch_profile_button.clicked.connect", "layout.ad... | 0 | [] | The function (_build_ui) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 144 and ends at 197. It contains 32 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [144.0] and does not return any value... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | _get_profile_name | def _get_profile_name(self) -> str:"""Get the current AWS profile name from the configuration.Returns:str: The AWS profile name configured for Deadline Cloud authentication."""return config_file.get_setting("defaults.aws_profile_name", self._status.config) | 1 | 2 | 1 | 21 | 0 | 199 | 206 | 199 | self | [] | str | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["config_file.get_setting"] | 0 | [] | The function (_get_profile_name) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 199 and ends at 206. 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 va... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | _should_show_logout | def _should_show_logout(self) -> bool:"""Determine whether the logout option should be visible based on the credential source.The logout option is only shown when using Deadline Cloud Monitor credentials.Returns:bool: True if logout should be visible, False otherwise."""return self._status.creds_source == api.AwsCreden... | 1 | 2 | 1 | 20 | 0 | 208 | 217 | 208 | self | [] | bool | {"Expr": 1, "Return": 1} | 0 | 10 | 0 | [] | 0 | [] | The function (_should_show_logout) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 208 and ends at 217. 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 ... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | _get_auth_state_configs | def _get_auth_state_configs(self) -> Dict[AuthenticationState, AuthenticationStateConfig]:"""Get the configuration mapping for each authentication state.Defines the UI appearance and behavior for each possible authentication state,including which icon to display, what text to show, and which buttons shouldbe visible.Re... | 1 | 34 | 1 | 179 | 0 | 219 | 263 | 219 | self | [] | Dict[AuthenticationState, AuthenticationStateConfig] | {"Expr": 1, "Return": 1} | 9 | 45 | 9 | ["AuthenticationStateConfig", "AuthenticationStateConfig", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig"] | 0 | [] | The function (_get_auth_state_configs) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 219 and ends at 263. It contains 34 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | _get_current_auth_state_key | def _get_current_auth_state_key(self) -> AuthenticationState:"""Evaluates the credentials source, authentication status, and API availabilityto determine which authentication state the widget should display.Returns:AuthenticationState: The current authentication state enum value"""is_refreshing = (self._status.creds_so... | 10 | 24 | 1 | 133 | 0 | 265 | 296 | 265 | self | [] | AuthenticationState | {"Assign": 1, "Expr": 1, "If": 5, "Return": 6} | 0 | 32 | 0 | [] | 0 | [] | The function (_get_current_auth_state_key) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 265 and ends at 296. It contains 24 lines of code and it has a cyclomatic complexity of 10. The function does not take any parameters and does not r... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | _show_more_info | def _show_more_info(self) -> None:"""Show a QMessageBox with detailed information about the current authentication issueand hopefully steps the user can take to resolve it."""current_state = self._get_current_auth_state_key()# Determine the current authentication state and provide appropriate helpif current_state == Au... | 3 | 50 | 1 | 130 | 0 | 298 | 357 | 298 | self | [] | None | {"Assign": 8, "Expr": 6, "If": 2} | 10 | 60 | 10 | ["self._get_current_auth_state_key", "self._get_profile_name", "self._get_profile_name", "self._get_profile_name", "QMessageBox", "msg_box.setWindowTitle", "msg_box.setText", "msg_box.setIcon", "msg_box.setStandardButtons", "msg_box.exec_"] | 0 | [] | The function (_show_more_info) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 298 and ends at 357. It contains 50 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any val... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | _update_ui | def _update_ui(self) -> None:"""Update the UI based on the current authentication state.This method is called whenever the authentication status changes.It determines the current state and applies the appropriate UI configuration."""state_key = self._get_current_auth_state_key()state_configs = self._get_auth_state_conf... | 1 | 5 | 1 | 34 | 0 | 359 | 370 | 359 | self | [] | None | {"Assign": 3, "Expr": 2} | 3 | 12 | 3 | ["self._get_current_auth_state_key", "self._get_auth_state_configs", "self._apply_ui_state"] | 0 | [] | The function (_update_ui) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 359 and ends at 370. 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... |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatusWidget | public | 0 | 1 | _apply_ui_state | def _apply_ui_state(self, config: AuthenticationStateConfig) -> None:"""Apply the UI configuration for a specific authentication state.Updates the widget's appearance and behavior based on the provided configuration,including setting the status icon, profile button text, and controlling thevisibility of various action ... | 7 | 21 | 2 | 189 | 0 | 372 | 412 | 372 | self,config | [] | None | {"Assign": 2, "Expr": 11, "If": 1} | 20 | 41 | 20 | ["self._status_icon.setPixmap", "pixmap", "standardIcon", "QApplication.style", "callable", "config.text", "self._profile_button.setText", "self._profile_button.setToolTip", "self._switch_profile_button.setVisible", "self._switch_profile_menu_action.setVisible", "self._login_button.setVisible", "callable", "config.logo... | 0 | [] | The function (_apply_ui_state) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 372 and ends at 412. It contains 21 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [372.0] and does not return any... |
aws-deadline_deadline-cloud | AddIcon | public | 0 | 1 | __init__ | def __init__(self):file_path = str(Path(__file__).parent.parent / "resources" / "add.svg")super().__init__(file_path) | 1 | 3 | 1 | 30 | 0 | 93 | 95 | 93 | self | [] | None | {"Assign": 1, "Expr": 1} | 4 | 3 | 4 | ["str", "Path", "__init__", "super"] | 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 AddIcon, that inherit another class.The function start at line 93 and ends at 95. It contains 3 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... |
aws-deadline_deadline-cloud | AddIcon | public | 0 | 1 | __init__ | def __init__(self, requirements: Optional[HostRequirements] = None, parent=None):super().__init__(parent)layout = QVBoxLayout(self)self.mode_selection_box = OverrideRequirementsWidget(self)layout.addWidget(self.mode_selection_box)self.os_requirements_box = OSRequirementsWidget(self)self.os_requirements_box.setEnabled(F... | 2 | 20 | 3 | 165 | 0 | 106 | 131 | 106 | self | [] | None | {"Assign": 1, "Expr": 1} | 4 | 3 | 4 | ["str", "Path", "__init__", "super"] | 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 AddIcon, that inherit another class.The function start at line 106 and ends at 131. It contains 20 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [106.0] and does not return any value. It declares 4.0 functions,... |
aws-deadline_deadline-cloud | HostRequirementsWidget | public | 0 | 1 | _on_mode_selection_use_custom_button_toggled | def _on_mode_selection_use_custom_button_toggled(self, state):"""Enable all settings when use_custom_button is selected. Otherwise disable all settings."""self.os_requirements_box.setEnabled(state)self.hardware_requirements_box.setEnabled(state)self.custom_requirements_box.setEnabled(state) | 1 | 4 | 2 | 32 | 0 | 133 | 139 | 133 | self,state | [] | None | {"Expr": 4} | 3 | 7 | 3 | ["self.os_requirements_box.setEnabled", "self.hardware_requirements_box.setEnabled", "self.custom_requirements_box.setEnabled"] | 0 | [] | The function (_on_mode_selection_use_custom_button_toggled) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 133 and ends at 139. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [133.0] and doe... |
aws-deadline_deadline-cloud | HostRequirementsWidget | public | 0 | 1 | _is_custom_requirements_selected | def _is_custom_requirements_selected(self) -> bool:return self.mode_selection_box.use_custom_button.isChecked() | 1 | 2 | 1 | 17 | 0 | 141 | 142 | 141 | self | [] | bool | {"Return": 1} | 1 | 2 | 1 | ["self.mode_selection_box.use_custom_button.isChecked"] | 0 | [] | The function (_is_custom_requirements_selected) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 141 and ends at 142. 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... |
aws-deadline_deadline-cloud | HostRequirementsWidget | public | 0 | 1 | get_requirements | def get_requirements(self) -> Optional[Dict[str, Any]]:"""Returns a list of OpenJD parameter definition dicts with values filled from the widget.If requirement settings are not enabled, then return None.host_requirements: dict[str, Any] = { "amounts": [ <AmountRequirement>, ... ], # @optional "attributes": [ <Attribute... | 6 | 16 | 1 | 157 | 0 | 144 | 171 | 144 | self | [] | Optional[Dict[str, Any]] | {"AnnAssign": 1, "Assign": 3, "Expr": 5, "If": 5, "Return": 2} | 12 | 28 | 12 | ["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirement... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"] | The function (get_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 144 and ends at 171. It contains 16 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 decl... |
aws-deadline_deadline-cloud | HostRequirementsWidget | public | 0 | 1 | set_requirements | def set_requirements(self, requirements: HostRequirements):if requirements.custom_requirements:self.custom_requirements_box.set_requirements(requirements.custom_requirements)if requirements.os_requirements:self.os_requirements_box.set_requirements(requirements.os_requirements)if requirements.hardware_requirements:self.... | 4 | 9 | 2 | 74 | 0 | 173 | 181 | 173 | self,requirements | [] | None | {"Expr": 5, "If": 3} | 5 | 9 | 5 | ["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"] | 0 | [] | The function (set_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 173 and ends at 181. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [173.0] and does not return any value. It d... |
aws-deadline_deadline-cloud | AddIcon | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__("", parent)self.layout = QVBoxLayout(self)self._build_ui() | 1 | 4 | 2 | 32 | 0 | 192 | 195 | 192 | self | [] | None | {"Assign": 1, "Expr": 1} | 4 | 3 | 4 | ["str", "Path", "__init__", "super"] | 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 AddIcon, that inherit another class.The function start at line 192 and ends at 195. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [192.0] and does not return any value. It declares 4.0 functions, ... |
aws-deadline_deadline-cloud | OverrideRequirementsWidget | public | 0 | 1 | _build_ui | def _build_ui(self):# Use Fleet Default buttonself.use_default_button = QRadioButton("Run on all available worker hosts")self.use_default_button.setChecked(True)# Use customized settings button + tipself.use_custom_button = QRadioButton("Run on worker hosts that meet the following requirements")self.use_custom_button_t... | 1 | 22 | 1 | 181 | 0 | 197 | 225 | 197 | self | [] | None | {"Assign": 5, "Expr": 14} | 21 | 29 | 21 | ["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.set... | 0 | [] | The function (_build_ui) defined within the public class called OverrideRequirementsWidget, that inherit another class.The function start at line 197 and ends at 225. It contains 22 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... |
aws-deadline_deadline-cloud | AddIcon | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__("", parent=parent)self.layout = QVBoxLayout(self)self._build_ui() | 1 | 4 | 2 | 34 | 0 | 239 | 242 | 239 | self | [] | None | {"Assign": 1, "Expr": 1} | 4 | 3 | 4 | ["str", "Path", "__init__", "super"] | 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 AddIcon, that inherit another class.The function start at line 239 and ends at 242. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [239.0] and does not return any value. It declares 4.0 functions, ... |
aws-deadline_deadline-cloud | OverrideRequirementsWidget | public | 0 | 1 | _build_ui | def _build_ui(self):self.os_row = OSRequirementRowWidget("Operating system", self.OS_ROW_OPTIONS)self.cpu_row = OSRequirementRowWidget("CPU architecture", self.CPU_ROW_OPTIONS)self.layout.addWidget(self.os_row)self.layout.addWidget(self.cpu_row) | 1 | 5 | 1 | 49 | 0 | 244 | 249 | 244 | self | [] | None | {"Assign": 5, "Expr": 14} | 21 | 29 | 21 | ["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.set... | 0 | [] | The function (_build_ui) defined within the public class called OverrideRequirementsWidget, that inherit another class.The function start at line 244 and ends at 249. 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... |
aws-deadline_deadline-cloud | HostRequirementsWidget | public | 0 | 1 | get_requirements | def get_requirements(self) -> List[Dict[str, Any]]:"""Returns a list of OpenJD parameter definition dicts witha "value" key filled from the widget.Set the following capabilities according to OpenJD spec.- attr.worker.os.family- attr.worker.cpu.arch"""# TODO: currently only supports "AnyOf" from the UIrequirements: List... | 3 | 17 | 1 | 95 | 0 | 251 | 277 | 251 | self | [] | Optional[Dict[str, Any]] | {"AnnAssign": 1, "Assign": 3, "Expr": 5, "If": 5, "Return": 2} | 12 | 28 | 12 | ["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirement... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"] | The function (get_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 251 and ends at 277. It contains 17 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 decl... |
aws-deadline_deadline-cloud | HostRequirementsWidget | public | 0 | 1 | set_requirements | def set_requirements(self, requirements: OsRequirements):self.os_row.combo_box.setChecked(requirements.operating_systems)# type: ignoreself.cpu_row.combo_box.setChecked(requirements.cpu_archs)# type: ignore | 1 | 3 | 2 | 33 | 0 | 279 | 281 | 279 | self,requirements | [] | None | {"Expr": 5, "If": 3} | 5 | 9 | 5 | ["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"] | 0 | [] | The function (set_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 279 and ends at 281. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [279.0] and does not return any value. It d... |
aws-deadline_deadline-cloud | AddIcon | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__("", parent)self.layout = QVBoxLayout(self)self._build_ui() | 1 | 4 | 2 | 32 | 0 | 292 | 295 | 192 | self | [] | None | {"Assign": 1, "Expr": 1} | 4 | 3 | 4 | ["str", "Path", "__init__", "super"] | 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 AddIcon, that inherit another class.The function start at line 292 and ends at 295. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [192.0] and does not return any value. It declares 4.0 functions, ... |
aws-deadline_deadline-cloud | OverrideRequirementsWidget | public | 0 | 1 | _build_ui | def _build_ui(self):# Build a custom row widget for each selectable optionself.cpu_row = HardwareRequirementsRowWidget("vCPUs", self)self.memory_row = HardwareRequirementsRowWidget("Memory (GiB)", self)self.gpu_row = HardwareRequirementsRowWidget("GPUs", self)self.gpu_memory_row = HardwareRequirementsRowWidget("GPU mem... | 1 | 11 | 1 | 105 | 0 | 297 | 310 | 297 | self | [] | None | {"Assign": 5, "Expr": 14} | 21 | 29 | 21 | ["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.set... | 0 | [] | The function (_build_ui) defined within the public class called OverrideRequirementsWidget, that inherit another class.The function start at line 297 and ends at 310. 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 declare... |
aws-deadline_deadline-cloud | HostRequirementsWidget | public | 0 | 1 | get_requirements | def get_requirements(self) -> List[Dict[str, Any]]:"""Returns a list of OpenJD parameter definition dicts witha "value" key filled from the widget.Set the following capabilities according to OpenJD spec.- amount.worker.vcpu- amount.worker.memory- amount.worker.gpu- amount.worker.gpu.memory- amount.worker.disk.scratch""... | 1 | 8 | 1 | 86 | 0 | 312 | 333 | 312 | self | [] | Optional[Dict[str, Any]] | {"AnnAssign": 1, "Assign": 3, "Expr": 5, "If": 5, "Return": 2} | 12 | 28 | 12 | ["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirement... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"] | The function (get_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 312 and ends at 333. 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 decla... |
aws-deadline_deadline-cloud | HostRequirementsWidget | public | 0 | 1 | set_requirements | def set_requirements(self, requirements: HardwareRequirements):self.cpu_row.clear()self.memory_row.clear()self.gpu_row.clear()self.gpu_memory_row.clear()self.scratch_space_row.clear()self.cpu_row.minimum = requirements.cpu_minself.cpu_row.maximum = requirements.cpu_maxself.memory_row.minimum = requirements.memory_min /... | 1 | 16 | 2 | 138 | 0 | 335 | 355 | 335 | self,requirements | [] | None | {"Expr": 5, "If": 3} | 5 | 9 | 5 | ["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"] | 0 | [] | The function (set_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 335 and ends at 355. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [335.0] and does not return any value. It ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.