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 | DeadlineAuthenticationStatus | public | 0 | 1 | getInstance | def getInstance():global _deadline_authentication_statusif _deadline_authentication_status is None:_deadline_authentication_status = DeadlineAuthenticationStatus()return _deadline_authentication_status | 2 | 5 | 0 | 18 | 0 | 66 | 70 | 66 | [] | Returns | {"Assign": 1, "If": 1, "Return": 1} | 1 | 5 | 1 | ["DeadlineAuthenticationStatus"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_config_dialog_py.DeadlineConfigDialog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.deadline_authentication_status_widget_py.DeadlineAuthenticationStatusWidget.__init__"] | The function (getInstance) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 66 and ends at 70. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["DeadlineAuthenticationStatus"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_config_dialog_py.DeadlineConfigDialog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.deadline_authentication_status_widget_py.DeadlineAuthenticationStatusWidget.__init__"]. | |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | __init__ | def __init__(self, parent=None) -> None:super(DeadlineAuthenticationStatus, self).__init__(parent)self.__creds_source: Optional[api.AwsCredentialsSource] = Noneself.__auth_status: Optional[api.AwsAuthenticationStatus] = Noneself.__api_availability: Optional[bool] = None# Load the default configself.config = ConfigParser()self.config.read_dict(config_file.read_config())# Watch the ~/.aws path for any changes to config or credentials, and# the ~/.deadline path for any changes to the AWS Deadline Cloud config.self.aws_creds_file_watcher = QFileSystemWatcher()self.aws_creds_paths = [os.path.expanduser(os.path.join("~", ".aws")),]self.deadline_config_paths = [os.path.expanduser(os.path.join("~", ".deadline")),]failed_paths = self.aws_creds_file_watcher.addPaths(self.aws_creds_paths + self.deadline_config_paths)if failed_paths:logger.error("Failed to watch these AWS Deadline Cloud configurations: %s", failed_paths)self.aws_creds_file_watcher.fileChanged.connect(self.files_changed)self.aws_creds_file_watcher.directoryChanged.connect(self.files_changed)self.refresh_status() | 2 | 24 | 2 | 186 | 0 | 72 | 102 | 72 | self,parent | [] | None | {"AnnAssign": 3, "Assign": 5, "Expr": 6, "If": 1} | 15 | 31 | 15 | ["__init__", "super", "ConfigParser", "self.config.read_dict", "config_file.read_config", "QFileSystemWatcher", "os.path.expanduser", "os.path.join", "os.path.expanduser", "os.path.join", "self.aws_creds_file_watcher.addPaths", "logger.error", "self.aws_creds_file_watcher.fileChanged.connect", "self.aws_creds_file_watcher.directoryChanged.connect", "self.refresh_status"] | 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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"] | The function (__init__) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 72 and ends at 102. It contains 24 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [72.0] and does not return any value. It declares 15.0 functions, It has 15.0 functions called inside which are ["__init__", "super", "ConfigParser", "self.config.read_dict", "config_file.read_config", "QFileSystemWatcher", "os.path.expanduser", "os.path.join", "os.path.expanduser", "os.path.join", "self.aws_creds_file_watcher.addPaths", "logger.error", "self.aws_creds_file_watcher.fileChanged.connect", "self.aws_creds_file_watcher.directoryChanged.connect", "self.refresh_status"], It has 4993.0 functions calling this function which are ["_.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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"]. |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | set_config | def set_config(self, config: Optional[ConfigParser]) -> None:"""Changes the AWS Deadline Cloud configuration object used to display authenticationstatus.Args:config (ConfigParser): The AWS Deadline Cloud configuration to use."""# Refresh the status if any setting that impacts authentication was changedif self.config:auth_config_changed = Falsefor setting_name in ["defaults.aws_profile_name",]:if config_file.get_setting(setting_name, self.config) != config_file.get_setting(setting_name, config):auth_config_changed = Trueelse:auth_config_changed = True# Make a copy of the config objectself.config = ConfigParser()if config:self.config.read_dict(config)else:self.config.read_dict(config_file.read_config())if auth_config_changed:self.refresh_status() | 6 | 19 | 2 | 100 | 0 | 104 | 134 | 104 | self,config | [] | None | {"Assign": 4, "Expr": 4, "For": 1, "If": 4} | 7 | 31 | 7 | ["config_file.get_setting", "config_file.get_setting", "ConfigParser", "self.config.read_dict", "self.config.read_dict", "config_file.read_config", "self.refresh_status"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94480858_sktime_skbase.skbase.tests.test_base_py.test_nested_config_after_clone_tags"] | The function (set_config) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 104 and ends at 134. It contains 19 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [104.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["config_file.get_setting", "config_file.get_setting", "ConfigParser", "self.config.read_dict", "self.config.read_dict", "config_file.read_config", "self.refresh_status"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94480858_sktime_skbase.skbase.tests.test_base_py.test_nested_config_after_clone_tags"]. |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | creds_source | def creds_source(self) -> Optional[api.AwsCredentialsSource]:return self.__creds_source | 1 | 2 | 1 | 16 | 0 | 137 | 138 | 137 | self | [] | Optional[api.AwsCredentialsSource] | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (creds_source) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 137 and ends at 138. 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 | DeadlineAuthenticationStatus | public | 0 | 1 | auth_status | def auth_status(self) -> Optional[api.AwsAuthenticationStatus]:return self.__auth_status | 1 | 2 | 1 | 16 | 0 | 141 | 142 | 141 | self | [] | Optional[api.AwsAuthenticationStatus] | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (auth_status) defined within the public class called DeadlineAuthenticationStatus, 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 value.. |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | api_availability | def api_availability(self) -> Optional[bool]:return self.__api_availability | 1 | 2 | 1 | 14 | 0 | 145 | 146 | 145 | self | [] | Optional[bool] | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (api_availability) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 145 and ends at 146. 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 | DeadlineAuthenticationStatus | public | 0 | 1 | files_changed | def files_changed(self, changed_path) -> None:# Force the cached boto3 session to refresh, since we don't check the creds# fileif changed_path in self.aws_creds_paths:logger.info(f"Path {changed_path} changed, refreshing authentication status")# Send it to another thread to avoid blocking the Qt event loopself.session_thread = threading.Thread(target=self._get_session, kwargs={"changed_path": changed_path})self.session_thread.start()else:logger.info(f"Path {changed_path} changed, does not affect authentication status") | 2 | 9 | 2 | 61 | 0 | 148 | 159 | 148 | self,changed_path | [] | None | {"Assign": 1, "Expr": 3, "If": 1} | 4 | 12 | 4 | ["logger.info", "threading.Thread", "self.session_thread.start", "logger.info"] | 0 | [] | The function (files_changed) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 148 and ends at 159. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [148.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["logger.info", "threading.Thread", "self.session_thread.start", "logger.info"]. |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | _get_session | def _get_session(self, changed_path):api.get_boto3_session(force_refresh=True)self.refresh_status()if changed_path in self.aws_creds_paths:self.aws_creds_changed.emit()elif changed_path in self.deadline_config_paths:self.deadline_config_changed.emit() | 3 | 7 | 2 | 48 | 0 | 161 | 168 | 161 | self,changed_path | [] | None | {"Expr": 4, "If": 2} | 4 | 8 | 4 | ["api.get_boto3_session", "self.refresh_status", "self.aws_creds_changed.emit", "self.deadline_config_changed.emit"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70599077_arnaudmiribel_streamlit_extras.src.streamlit_extras.snowflake.connection_py.get_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70599077_arnaudmiribel_streamlit_extras.src.streamlit_extras.snowflake.connection_py.run_sql"] | The function (_get_session) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 161 and ends at 168. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [161.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["api.get_boto3_session", "self.refresh_status", "self.aws_creds_changed.emit", "self.deadline_config_changed.emit"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70599077_arnaudmiribel_streamlit_extras.src.streamlit_extras.snowflake.connection_py.get_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70599077_arnaudmiribel_streamlit_extras.src.streamlit_extras.snowflake.connection_py.run_sql"]. |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | _refresh_creds_source | def _refresh_creds_source(self) -> None:self.__creds_source = Noneself.creds_source_changed.emit()self.__creds_source = api.get_credentials_source(config=self.config)self.creds_source_changed.emit() | 1 | 5 | 1 | 40 | 0 | 170 | 174 | 170 | self | [] | None | {"Assign": 2, "Expr": 2} | 3 | 5 | 3 | ["self.creds_source_changed.emit", "api.get_credentials_source", "self.creds_source_changed.emit"] | 0 | [] | The function (_refresh_creds_source) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 170 and ends at 174. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.creds_source_changed.emit", "api.get_credentials_source", "self.creds_source_changed.emit"]. |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | _refresh_auth_status | def _refresh_auth_status(self) -> None:self.__auth_status = Noneself.auth_status_changed.emit()try:self.__auth_status = api.check_authentication_status(config=self.config)except BaseException as e:logger.exception(e)self.__auth_status = api.AwsAuthenticationStatus.CONFIGURATION_ERRORself.auth_status_changed.emit() | 2 | 9 | 1 | 62 | 0 | 176 | 184 | 176 | self | [] | None | {"Assign": 3, "Expr": 3, "Try": 1} | 4 | 9 | 4 | ["self.auth_status_changed.emit", "api.check_authentication_status", "logger.exception", "self.auth_status_changed.emit"] | 0 | [] | The function (_refresh_auth_status) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 176 and ends at 184. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.auth_status_changed.emit", "api.check_authentication_status", "logger.exception", "self.auth_status_changed.emit"]. |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | _refresh_api_availability | def _refresh_api_availability(self) -> None:self.__api_availability = Noneself.api_availability_changed.emit()try:self.__api_availability = api.check_deadline_api_available(config=self.config)except BaseException as e:logger.exception(e)self.__api_availability = Falseself.api_availability_changed.emit() | 2 | 9 | 1 | 58 | 0 | 186 | 194 | 186 | self | [] | None | {"Assign": 3, "Expr": 3, "Try": 1} | 4 | 9 | 4 | ["self.api_availability_changed.emit", "api.check_deadline_api_available", "logger.exception", "self.api_availability_changed.emit"] | 0 | [] | The function (_refresh_api_availability) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 186 and ends at 194. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.api_availability_changed.emit", "api.check_deadline_api_available", "logger.exception", "self.api_availability_changed.emit"]. |
aws-deadline_deadline-cloud | DeadlineAuthenticationStatus | public | 0 | 1 | refresh_status | def refresh_status(self) -> None:"""Initiates an asynchronous status refresh."""self.__creds_source_thread = threading.Thread(target=self._refresh_creds_source)self.__creds_source_thread.start()self.__auth_status_thread = threading.Thread(target=self._refresh_auth_status)self.__auth_status_thread.start()self.__api_availability_thread = threading.Thread(target=self._refresh_api_availability)self.__api_availability_thread.start() | 1 | 7 | 1 | 71 | 0 | 196 | 205 | 196 | self | [] | None | {"Assign": 3, "Expr": 4} | 6 | 10 | 6 | ["threading.Thread", "self.__creds_source_thread.start", "threading.Thread", "self.__auth_status_thread.start", "threading.Thread", "self.__api_availability_thread.start"] | 0 | [] | The function (refresh_status) defined within the public class called DeadlineAuthenticationStatus, that inherit another class.The function start at line 196 and ends at 205. 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 6.0 functions, and It has 6.0 functions called inside which are ["threading.Thread", "self.__creds_source_thread.start", "threading.Thread", "self.__auth_status_thread.start", "threading.Thread", "self.__api_availability_thread.start"]. |
aws-deadline_deadline-cloud | DevMainWindow | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__(parent=parent)self.mainColor = QColor(64, 64, 64)self.selectionColor = QColor(37, 200, 25)self.setMinimumSize(400, 400)self.setup_ui()signal.signal(signal.SIGINT, self.signal_handler)if os.name != "nt":signal.signal(signal.SIGQUIT, self.signal_handler)# type: ignore[attr-defined]signal.signal(signal.SIGTERM, self.signal_handler)# type: ignore[attr-defined]# Remove the central widget. This leaves us with just dockable widgets, which provides# the most flexibility, since we don't really have a "main" widget.self.setCentralWidget(None)# type: ignore[arg-type]self.setDockOptions(QMainWindow.AllowNestedDocks | QMainWindow.AllowTabbedDocks | QMainWindow.AnimatedDocks) | 2 | 14 | 2 | 121 | 0 | 23 | 42 | 23 | self,parent | [] | None | {"Assign": 2, "Expr": 8, "If": 1} | 11 | 20 | 11 | ["__init__", "super", "QColor", "QColor", "self.setMinimumSize", "self.setup_ui", "signal.signal", "signal.signal", "signal.signal", "self.setCentralWidget", "self.setDockOptions"] | 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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"] | The function (__init__) defined within the public class called DevMainWindow, that inherit another class.The function start at line 23 and ends at 42. It contains 14 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [23.0] and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["__init__", "super", "QColor", "QColor", "self.setMinimumSize", "self.setup_ui", "signal.signal", "signal.signal", "signal.signal", "self.setCentralWidget", "self.setDockOptions"], It has 4993.0 functions calling this function which are ["_.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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"]. |
aws-deadline_deadline-cloud | DevMainWindow | public | 0 | 1 | setup_ui | def setup_ui(self):submit = self.menuBar().addMenu("&Submit job")submit.addAction("Submit job bundle...", self.submit_job_bundle)submit.addAction("Submit CLI job...", self.submit_cli_job)account = self.menuBar().addMenu("&Account")account.addAction("AWS Deadline Cloud workstation configuration...", self.configure)account.addAction("Log in to AWS Deadline Cloud...", self.login)account.addAction("Log out of AWS Deadline Cloud...", self.logout)# Set up status bar# self.statusBar().setStyleSheet("QStatusBar::item{ border: none; }")self.statusBar().showMessage("Testing!") | 1 | 9 | 1 | 89 | 0 | 44 | 55 | 44 | self | [] | None | {"Assign": 2, "Expr": 6} | 11 | 12 | 11 | ["addMenu", "self.menuBar", "submit.addAction", "submit.addAction", "addMenu", "self.menuBar", "account.addAction", "account.addAction", "account.addAction", "showMessage", "self.statusBar"] | 0 | [] | The function (setup_ui) defined within the public class called DevMainWindow, that inherit another class.The function start at line 44 and ends at 55. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["addMenu", "self.menuBar", "submit.addAction", "submit.addAction", "addMenu", "self.menuBar", "account.addAction", "account.addAction", "account.addAction", "showMessage", "self.statusBar"]. |
aws-deadline_deadline-cloud | DevMainWindow | public | 0 | 1 | submit_job_bundle | def submit_job_bundle(self):input_job_bundle_dir = os.path.normpath(os.path.join(__file__, "../resources/cli_job_bundle"))input_job_bundle_dir = QFileDialog.getExistingDirectory(self, "Choose job bundle directory", input_job_bundle_dir)if input_job_bundle_dir:show_job_bundle_submitter(input_job_bundle_dir=os.path.normpath(input_job_bundle_dir),browse=True,parent=self,f=Qt.Tool,) | 2 | 14 | 1 | 67 | 0 | 57 | 70 | 57 | self | [] | None | {"Assign": 2, "Expr": 1, "If": 1} | 5 | 14 | 5 | ["os.path.normpath", "os.path.join", "QFileDialog.getExistingDirectory", "show_job_bundle_submitter", "os.path.normpath"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.job_templates_py.submit_dep_chain_job", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.job_templates_py.submit_dep_data_flow_job", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.job_templates_py.submit_make_many_small_files_job", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.job_templates_py.submit_make_many_small_files_slow_job"] | The function (submit_job_bundle) defined within the public class called DevMainWindow, that inherit another class.The function start at line 57 and ends at 70. It contains 14 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 5.0 functions, It has 5.0 functions called inside which are ["os.path.normpath", "os.path.join", "QFileDialog.getExistingDirectory", "show_job_bundle_submitter", "os.path.normpath"], It has 4.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.job_templates_py.submit_dep_chain_job", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.job_templates_py.submit_dep_data_flow_job", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.job_templates_py.submit_make_many_small_files_job", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.job_templates_py.submit_make_many_small_files_slow_job"]. |
aws-deadline_deadline-cloud | DevMainWindow | public | 0 | 1 | submit_cli_job | def submit_cli_job(self):show_cli_job_submitter(self, f=Qt.Tool) | 1 | 2 | 1 | 15 | 0 | 72 | 73 | 72 | self | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["show_cli_job_submitter"] | 0 | [] | The function (submit_cli_job) defined within the public class called DevMainWindow, that inherit another class.The function start at line 72 and ends at 73. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["show_cli_job_submitter"]. |
aws-deadline_deadline-cloud | DevMainWindow | public | 0 | 1 | configure | def configure(self):DeadlineConfigDialog.configure_settings(parent=self) | 1 | 2 | 1 | 13 | 0 | 75 | 76 | 75 | self | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["DeadlineConfigDialog.configure_settings"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.conftest_py.logstream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.docs.src.ming_odm_tutorial_py.connection_configure"] | The function (configure) defined within the public class called DevMainWindow, that inherit another class.The function start at line 75 and ends at 76. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["DeadlineConfigDialog.configure_settings"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.conftest_py.logstream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.docs.src.ming_odm_tutorial_py.connection_configure"]. |
aws-deadline_deadline-cloud | DevMainWindow | public | 0 | 1 | login | def login(self):if DeadlineLoginDialog.login(parent=self):logger.info("Logged in successfully")else:logger.info("Failed to log in") | 2 | 5 | 1 | 29 | 0 | 78 | 82 | 78 | self | [] | None | {"Expr": 2, "If": 1} | 3 | 5 | 3 | ["DeadlineLoginDialog.login", "logger.info", "logger.info"] | 11 | ["_.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.test_login_py.test_client_is_independent_of_pykube_viaconfig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_client_login_works_incluster", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_client_login_works_viaconfig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_monkeypatched_get_pykube_cfg_overrides_pykube", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_pykube_is_independent_of_client_incluster", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_pykube_is_independent_of_client_viaconfig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_pykube_login_works_incluster", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_pykube_login_works_viaconfig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3930358_mozilla_mozilla_django_oidc.tests.test_middleware_py.ClientWithUser.login", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95251290_Correia_jpv_fucking_awesome_aws.awesome.lib.github_py.GitHub._login"] | The function (login) defined within the public class called DevMainWindow, that inherit another class.The function start at line 78 and ends at 82. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["DeadlineLoginDialog.login", "logger.info", "logger.info"], It has 11.0 functions calling this function which are ["_.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.test_login_py.test_client_is_independent_of_pykube_viaconfig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_client_login_works_incluster", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_client_login_works_viaconfig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_monkeypatched_get_pykube_cfg_overrides_pykube", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_pykube_is_independent_of_client_incluster", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_pykube_is_independent_of_client_viaconfig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_pykube_login_works_incluster", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_pykube_login_works_viaconfig", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3930358_mozilla_mozilla_django_oidc.tests.test_middleware_py.ClientWithUser.login", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95251290_Correia_jpv_fucking_awesome_aws.awesome.lib.github_py.GitHub._login"]. |
aws-deadline_deadline-cloud | DevMainWindow | public | 0 | 1 | logout | def logout(self):api.logout() | 1 | 2 | 1 | 10 | 0 | 84 | 85 | 84 | self | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["api.logout"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.79438799_jazzband_django_oauth_toolkit.oauth2_provider.views.oidc_py.RPInitiatedLogoutView.do_logout"] | The function (logout) defined within the public class called DevMainWindow, that inherit another class.The function start at line 84 and ends at 85. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["api.logout"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.79438799_jazzband_django_oauth_toolkit.oauth2_provider.views.oidc_py.RPInitiatedLogoutView.do_logout"]. |
aws-deadline_deadline-cloud | DevMainWindow | public | 0 | 1 | signal_handler | def signal_handler(self, signal, frame):self.close() | 1 | 2 | 3 | 14 | 0 | 87 | 88 | 87 | self,signal,frame | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["self.close"] | 0 | [] | The function (signal_handler) defined within the public class called DevMainWindow, that inherit another class.The function start at line 87 and ends at 88. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [87.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.close"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | app | def app() -> None:app = QApplication(sys.argv)# Set the style.app.setStyle(QStyleFactory.create("fusion"))# Set the application info.app.setApplicationName("AWS Deadline Cloud client test GUI")app.setOrganizationName("AWS")app.setOrganizationDomain("https://aws.amazon.com/")icon = QIcon(str(Path(__file__).parent / "resources" / "deadline_logo.svg"))app.setWindowIcon(icon)# Apply the stylesheet.pal = QPalette(QColor(64, 64, 64))pal.setColor(QPalette.Highlight, QColor(37, 200, 25))pal.setColor(QPalette.HighlightedText, QColor(0, 0, 0))pal.setColor(QPalette.Link, QColor(96, 185, 250))app.setPalette(pal)window = app.palette().color(QPalette.Window)selection = app.palette().color(QPalette.Highlight)app.setStyleSheet("""*{ selection-background-color: rgb("""+ str(selection.red())+ """, """+ str(selection.green())+ """, """+ str(selection.blue())+ """); }QMenu {background-color: rgb("""+ str(window.red())+ """, """+ str(window.green())+ """, """+ str(window.blue())+ """); menu-scrollable: 1;}QToolTip{ color: black;}QDockWidget {titlebar-close-icon: url(:/ThinkboxUI/Bitmaps/Close2_Dark.png); titlebar-normal-icon: url(:/ThinkboxUI/Bitmaps/Undock2_Dark.png);}QDockWidget::close-button, QDockWidget::float-button {min-width: 18px; min-height: 18px; icon-size: 12px;}QDockWidget::float-button {position: relative; right: 20px; top: 2px;}QDockWidget::close-button {position: relative; right: 1px; top: 2px;}QDockWidget::title { text-align: center;}QDockWidget::title {background: rgb("""+ str(max(0, (window.red() - 10)))+ """, """+ str(max(0, (window.green() - 10)))+ """, """+ str(max(0, (window.blue() - 10)))+ """);}""")main_window = DevMainWindow()main_window.show()main_window.submit_job_bundle()app.exec_() | 1 | 50 | 0 | 317 | 6 | 91 | 150 | 91 | ['pal', 'window', 'app', 'icon', 'selection', 'main_window'] | None | {"Assign": 6, "Expr": 13} | 49 | 60 | 49 | ["QApplication", "app.setStyle", "QStyleFactory.create", "app.setApplicationName", "app.setOrganizationName", "app.setOrganizationDomain", "QIcon", "str", "Path", "app.setWindowIcon", "QPalette", "QColor", "pal.setColor", "QColor", "pal.setColor", "QColor", "pal.setColor", "QColor", "app.setPalette", "color", "app.palette", "color", "app.palette", "app.setStyleSheet", "str", "selection.red", "str", "selection.green", "str", "selection.blue", "str", "window.red", "str", "window.green", "str", "window.blue", "str", "max", "window.red", "str", "max", "window.green", "str", "max", "window.blue", "DevMainWindow", "main_window.show", "main_window.submit_job_bundle", "app.exec_"] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3652361_pylons_pyramid_jinja2.demo.__init___py.Mainer.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3652361_pylons_pyramid_jinja2.demo.test_demo_py.DemoTests.test_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_app_py.test_session", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_device_py.test_toast", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_input_py.test_send_keys", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_center", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_child_by", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_click_exists", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_exists", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_pinch_gesture", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_screenshot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_selector_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_swipe", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969314_tiangolo_typer.tests.test_callback_warning_py.test_warns_when_callback_is_not_supported", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969314_tiangolo_typer.tests.test_callback_warning_py.test_warns_when_callback_is_not_supported_added_after_add_typer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli.deadline_dev_gui_main_py.main"] | The function (app) defined within the public class called public.The function start at line 91 and ends at 150. It contains 50 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 49.0 functions, It has 49.0 functions called inside which are ["QApplication", "app.setStyle", "QStyleFactory.create", "app.setApplicationName", "app.setOrganizationName", "app.setOrganizationDomain", "QIcon", "str", "Path", "app.setWindowIcon", "QPalette", "QColor", "pal.setColor", "QColor", "pal.setColor", "QColor", "pal.setColor", "QColor", "app.setPalette", "color", "app.palette", "color", "app.palette", "app.setStyleSheet", "str", "selection.red", "str", "selection.green", "str", "selection.blue", "str", "window.red", "str", "window.green", "str", "window.blue", "str", "max", "window.red", "str", "max", "window.green", "str", "max", "window.blue", "DevMainWindow", "main_window.show", "main_window.submit_job_bundle", "app.exec_"], It has 17.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3652361_pylons_pyramid_jinja2.demo.__init___py.Mainer.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3652361_pylons_pyramid_jinja2.demo.test_demo_py.DemoTests.test_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_app_py.test_session", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_device_py.test_toast", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_input_py.test_send_keys", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_center", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_child_by", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_click_exists", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_exists", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_pinch_gesture", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_screenshot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_selector_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.demo_tests.test_selector_py.test_swipe", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969314_tiangolo_typer.tests.test_callback_warning_py.test_warns_when_callback_is_not_supported", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969314_tiangolo_typer.tests.test_callback_warning_py.test_warns_when_callback_is_not_supported_added_after_add_typer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli.deadline_dev_gui_main_py.main"]. | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _validate_job_parameters_against_definitions | def _validate_job_parameters_against_definitions(job_parameters: list[dict[str, Any]],job_template_parameters: list[JobParameter],queue_parameters: list[dict[str, Any]],) -> list[str]:"""Validate CLI parameters against available parameter definitions.Args:job_parameters: List of CLI parameters with 'name' and 'value' keysjob_template_parameters: List of job template parameter definitionsqueue_parameters: List of queue parameter definitionsReturns:A list of unrecognized parameter names."""# Create sets of recognized parameter namesjob_template_names = {param["name"] for param in job_template_parameters}queue_parameter_names = {param["name"] for param in queue_parameters}all_recognized_names = job_template_names | queue_parameter_namesunrecognized_names = {param["name"] for param in job_parameters} - all_recognized_namesreturn sorted(unrecognized_names) | 4 | 10 | 3 | 89 | 4 | 43 | 66 | 43 | job_parameters,job_template_parameters,queue_parameters | ['unrecognized_names', 'all_recognized_names', 'job_template_names', 'queue_parameter_names'] | list[str] | {"Assign": 4, "Expr": 1, "Return": 1} | 1 | 24 | 1 | ["sorted"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.job_bundle_submitter_py._validate_and_warn_about_parameters"] | The function (_validate_job_parameters_against_definitions) defined within the public class called public.The function start at line 43 and ends at 66. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [43.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["sorted"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.job_bundle_submitter_py._validate_and_warn_about_parameters"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _validate_and_warn_about_parameters | def _validate_and_warn_about_parameters(job_parameters: list[dict[str, Any]],job_template_parameters: list[JobParameter],queue_parameters: list[dict[str, Any]],parent_widget,) -> bool:"""Validate CLI parameters against job template and queue parameters.Display warning dialog for unrecognized parameters.Args:job_parameters: List of CLI parameters with 'name' and 'value' keysjob_template_parameters: List of job template parameter definitionsqueue_parameters: List of queue parameter definitionsparent_widget: Parent widget for the warning dialogReturns:True if user wants to continue, False if user wants to cancel"""unrecognized_names = _validate_job_parameters_against_definitions(job_parameters, job_template_parameters, queue_parameters)if not unrecognized_names:return True# Display warning dialog for unrecognized parametersunrecognized_list = "\n".join(f"• {name}" for name in unrecognized_names)message = (f"The following parameters are not recognized by the job template or queue:\n\n"f"{unrecognized_list}\n\n"f"These parameters will be ignored during job submission.\n\n"f"Do you want to continue?")reply = QMessageBox.question(parent_widget,"Unrecognized Parameters",message,QMessageBox.Yes | QMessageBox.No,QMessageBox.No,)return reply == QMessageBox.Yes | 3 | 26 | 4 | 112 | 4 | 69 | 112 | 69 | job_parameters,job_template_parameters,queue_parameters,parent_widget | ['unrecognized_names', 'message', 'reply', 'unrecognized_list'] | bool | {"Assign": 4, "Expr": 1, "If": 1, "Return": 2} | 3 | 44 | 3 | ["_validate_job_parameters_against_definitions", "join", "QMessageBox.question"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.job_bundle_submitter_py.show_job_bundle_submitter"] | The function (_validate_and_warn_about_parameters) defined within the public class called public.The function start at line 69 and ends at 112. It contains 26 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [69.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["_validate_job_parameters_against_definitions", "join", "QMessageBox.question"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.job_bundle_submitter_py.show_job_bundle_submitter"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | show_job_bundle_submitter.on_create_job_bundle_callback | def on_create_job_bundle_callback(widget: SubmitJobToDeadlineDialog,job_bundle_dir: str,settings: JobBundleSettings,queue_parameters: list[JobParameter],asset_references: AssetReferences,host_requirements: Optional[Dict[str, Any]] = None,purpose: JobBundlePurpose = JobBundlePurpose.SUBMISSION,) -> dict[str, Any]:"""Perform a submission when the submit button is pressedArgs:widget (SubmitJobToDeadlineDialog): The Deadline job submission dialog.settings (JobBundleSettings): A settings object that was populated from the job submission dialog.job_bundle_dir (str): The directory within which to create the job bundle.asset_references (FlatAssetReferences): The input from the attachments provided duringconstruction and the user's input in the Job Attachments tab."""# Copy the templatefile_contents, file_type = read_yaml_or_json(settings.input_job_bundle_dir, "template", True)template = parse_yaml_or_json_content(file_contents, file_type, settings.input_job_bundle_dir, "template")template["name"] = settings.nameif settings.description:template["description"] = settings.descriptionelse:# remove description field since it can't be empty# ignore if description is missing from templatetemplate.pop("description", None)# If "HostRequirements" is provided, inject it into each of the "Step"if host_requirements:# for each step in the template, append the same host requirements.for step in template["steps"]:step["hostRequirements"] = copy.deepcopy(host_requirements)# First filter the queue parameters to exclude any from the job template,# then extend it with the job template parameters.job_parameter_names = {param["name"] for param in settings.parameters}parameter_values: list[dict[str, Any]] = [{"name": param["name"], "value": param["value"]}for param in queue_parametersif param["name"] not in job_parameter_names]parameter_values.extend({"name": param["name"], "value": param["value"]} for param in settings.parameters)parameters = merge_queue_job_parameters(queue_parameters=queue_parameters,job_parameters=settings.parameters,)apply_job_parameters(parameter_values,job_bundle_dir,parameters,AssetReferences(),)save_yaml_or_json_to_file(bundle_dir=job_bundle_dir, filename="template", file_type=file_type, data=template)save_yaml_or_json_to_file(bundle_dir=job_bundle_dir,filename="asset_references",file_type=file_type,data=asset_references.to_dict(),)return {"known_asset_paths": [os.path.abspath(settings.input_job_bundle_dir)],"job_parameters": parameter_values,} | 8 | 55 | 7 | 310 | 0 | 155 | 233 | 155 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (show_job_bundle_submitter.on_create_job_bundle_callback) defined within the public class called public.The function start at line 155 and ends at 233. It contains 55 lines of code and it has a cyclomatic complexity of 8. It takes 7 parameters, represented as [155.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | show_job_bundle_submitter.validate_parameters_after_queue_load | def validate_parameters_after_queue_load(refresh_id: int, queue_parameters: list):"""Validate CLI parameters against loaded queue parameters and set parameter values"""if not _validate_and_warn_about_parameters(job_parameters, initial_settings.parameters, queue_parameters, submitter_dialog):# User chose to cancel, close the dialogsubmitter_dialog.close() | 2 | 5 | 2 | 32 | 0 | 301 | 307 | 301 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (show_job_bundle_submitter.validate_parameters_after_queue_load) defined within the public class called public.The function start at line 301 and ends at 307. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [301.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | show_job_bundle_submitter | def show_job_bundle_submitter(*,input_job_bundle_dir: str = "",browse: bool = False,parent=None,f=Qt.WindowFlags(),submitter_name: Optional[str] = None,known_asset_paths: Optional[list[str]] = None,job_parameters: Optional[list[dict[str, Any]]] = None,) -> Optional[SubmitJobToDeadlineDialog]:"""Opens an AWS Deadline Cloud job submission dialog for the provided job bundle.Pass f=Qt.Tool if running it within an application context and want itto stay on top."""if not submitter_name:submitter_name = "JobBundle"session_context["submitter-name"] = submitter_nameif parent is None:# Get the main application window so we can parent ours to itapp = QApplication.instance()main_windows = [widgetfor widget in app.topLevelWidgets()if isinstance(widget, QMainWindow)# type: ignore[union-attr]]if main_windows:parent = main_windows[0]if not input_job_bundle_dir:input_job_bundle_dir = QFileDialog.getExistingDirectory(parent, "Choose job bundle directory", input_job_bundle_dir)if not input_job_bundle_dir:return Nonedef on_create_job_bundle_callback(widget: SubmitJobToDeadlineDialog,job_bundle_dir: str,settings: JobBundleSettings,queue_parameters: list[JobParameter],asset_references: AssetReferences,host_requirements: Optional[Dict[str, Any]] = None,purpose: JobBundlePurpose = JobBundlePurpose.SUBMISSION,) -> dict[str, Any]:"""Perform a submission when the submit button is pressedArgs:widget (SubmitJobToDeadlineDialog): The Deadline job submission dialog.settings (JobBundleSettings): A settings object that was populated from the job submission dialog.job_bundle_dir (str): The directory within which to create the job bundle.asset_references (FlatAssetReferences): The input from the attachments provided duringconstruction and the user's input in the Job Attachments tab."""# Copy the templatefile_contents, file_type = read_yaml_or_json(settings.input_job_bundle_dir, "template", True)template = parse_yaml_or_json_content(file_contents, file_type, settings.input_job_bundle_dir, "template")template["name"] = settings.nameif settings.description:template["description"] = settings.descriptionelse:# remove description field since it can't be empty# ignore if description is missing from templatetemplate.pop("description", None)# If "HostRequirements" is provided, inject it into each of the "Step"if host_requirements:# for each step in the template, append the same host requirements.for step in template["steps"]:step["hostRequirements"] = copy.deepcopy(host_requirements)# First filter the queue parameters to exclude any from the job template,# then extend it with the job template parameters.job_parameter_names = {param["name"] for param in settings.parameters}parameter_values: list[dict[str, Any]] = [{"name": param["name"], "value": param["value"]}for param in queue_parametersif param["name"] not in job_parameter_names]parameter_values.extend({"name": param["name"], "value": param["value"]} for param in settings.parameters)parameters = merge_queue_job_parameters(queue_parameters=queue_parameters,job_parameters=settings.parameters,)apply_job_parameters(parameter_values,job_bundle_dir,parameters,AssetReferences(),)save_yaml_or_json_to_file(bundle_dir=job_bundle_dir, filename="template", file_type=file_type, data=template)save_yaml_or_json_to_file(bundle_dir=job_bundle_dir,filename="asset_references",file_type=file_type,data=asset_references.to_dict(),)return {"known_asset_paths": [os.path.abspath(settings.input_job_bundle_dir)],"job_parameters": parameter_values,}# Ensure the job bundle doesn't contain files that resolve outside of the bundle directoryvalidate_directory_symlink_containment(input_job_bundle_dir)# Load the template to get the starting nametemplate = read_yaml_or_json_object(input_job_bundle_dir, "template", True)asset_references_obj = (read_yaml_or_json_object(input_job_bundle_dir, "asset_references", False) or {})asset_references = AssetReferences.from_dict(asset_references_obj)name = "Job bundle submission"if template:name = template.get("name", name)if not os.path.isdir(input_job_bundle_dir):raise DeadlineOperationError(f"Input Job Bundle Dir is not valid: {input_job_bundle_dir}")initial_settings = JobBundleSettings(input_job_bundle_dir=input_job_bundle_dir, name=name)initial_settings.parameters = read_job_bundle_parameters(input_job_bundle_dir)initial_settings.browse_enabled = browseinitial_shared_parameter_values = {}job_parameters_dict = {param["name"]: param for param in (job_parameters or [])}for parameter in initial_settings.parameters:# Overwrite the parameter values from the job bundle with values provided by job_parameters,# e.g. from the CLI when this is called by the 'deadline bundle gui-submit' command.if parameter["name"] in job_parameters_dict:value = job_parameters_dict.pop(parameter["name"])["value"]# Convert any path parameters to absoluteif parameter["type"] == "PATH":value = os.path.abspath(value)# Validate the value against the parameter definition and ensure it has the correct typetry:value = validate_job_parameter_value(parameter, value)except (ValueError, TypeError) as e:# Convert the exception to DeadlineOperationError to avoid showing a full stack trace.raise DeadlineOperationError(str(e))parameter["value"] = value# Populate the initial queue parameter values based on the job template parameter valuesif "default" in parameter or "value" in parameter:initial_shared_parameter_values[parameter["name"]] = parameter.get("value", parameter.get("default"))# Put the job_parameter values that weren't for the template in the shared parameter valuesfor parameter in job_parameters_dict.values():initial_shared_parameter_values[parameter["name"]] = parameter["value"]submitter_dialog = SubmitJobToDeadlineDialog(job_setup_widget_type=JobBundleSettingsWidget,initial_job_settings=initial_settings,show_host_requirements_tab=True,initial_shared_parameter_values=initial_shared_parameter_values,auto_detected_attachments=asset_references,attachments=AssetReferences(),on_create_job_bundle_callback=on_create_job_bundle_callback,parent=parent,f=f,submitter_name=submitter_name,known_asset_paths=known_asset_paths,)if job_parameters:# We want to validate the job parameters after the queue parameters are loaded.# Connect a parameter validation function to the queue parameter loading completiondef validate_parameters_after_queue_load(refresh_id: int, queue_parameters: list):"""Validate CLI parameters against loaded queue parameters and set parameter values"""if not _validate_and_warn_about_parameters(job_parameters, initial_settings.parameters, queue_parameters, submitter_dialog):# User chose to cancel, close the dialogsubmitter_dialog.close()# Connect to the queue parameters update signalsubmitter_dialog.shared_job_settings._queue_parameters_update.connect(validate_parameters_after_queue_load)submitter_dialog.show()return submitter_dialog | 21 | 81 | 4 | 474 | 16 | 115 | 315 | 115 | input_job_bundle_dir,browse,parent,f,submitter_name,known_asset_paths,job_parameters | ['input_job_bundle_dir', 'main_windows', 'parent', 'job_parameter_names', 'parameters', 'submitter_name', 'asset_references_obj', 'app', 'asset_references', 'initial_settings', 'value', 'submitter_dialog', 'initial_shared_parameter_values', 'name', 'template', 'job_parameters_dict'] | Optional[SubmitJobToDeadlineDialog] | {"AnnAssign": 1, "Assign": 30, "Expr": 12, "For": 3, "If": 14, "Return": 3, "Try": 1} | 40 | 201 | 40 | ["Qt.WindowFlags", "QApplication.instance", "app.topLevelWidgets", "isinstance", "QFileDialog.getExistingDirectory", "read_yaml_or_json", "parse_yaml_or_json_content", "template.pop", "copy.deepcopy", "parameter_values.extend", "merge_queue_job_parameters", "apply_job_parameters", "AssetReferences", "save_yaml_or_json_to_file", "save_yaml_or_json_to_file", "asset_references.to_dict", "os.path.abspath", "validate_directory_symlink_containment", "read_yaml_or_json_object", "read_yaml_or_json_object", "AssetReferences.from_dict", "template.get", "os.path.isdir", "DeadlineOperationError", "JobBundleSettings", "read_job_bundle_parameters", "job_parameters_dict.pop", "os.path.abspath", "validate_job_parameter_value", "DeadlineOperationError", "str", "parameter.get", "parameter.get", "job_parameters_dict.values", "SubmitJobToDeadlineDialog", "AssetReferences", "_validate_and_warn_about_parameters", "submitter_dialog.close", "submitter_dialog.shared_job_settings._queue_parameters_update.connect", "submitter_dialog.show"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.bundle_group_py.bundle_gui_submit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dev_application_py.DevMainWindow.submit_job_bundle"] | The function (show_job_bundle_submitter) defined within the public class called public.The function start at line 115 and ends at 315. It contains 81 lines of code and it has a cyclomatic complexity of 21. It takes 4 parameters, represented as [115.0] and does not return any value. It declares 40.0 functions, It has 40.0 functions called inside which are ["Qt.WindowFlags", "QApplication.instance", "app.topLevelWidgets", "isinstance", "QFileDialog.getExistingDirectory", "read_yaml_or_json", "parse_yaml_or_json_content", "template.pop", "copy.deepcopy", "parameter_values.extend", "merge_queue_job_parameters", "apply_job_parameters", "AssetReferences", "save_yaml_or_json_to_file", "save_yaml_or_json_to_file", "asset_references.to_dict", "os.path.abspath", "validate_directory_symlink_containment", "read_yaml_or_json_object", "read_yaml_or_json_object", "AssetReferences.from_dict", "template.get", "os.path.isdir", "DeadlineOperationError", "JobBundleSettings", "read_job_bundle_parameters", "job_parameters_dict.pop", "os.path.abspath", "validate_job_parameter_value", "DeadlineOperationError", "str", "parameter.get", "parameter.get", "job_parameters_dict.values", "SubmitJobToDeadlineDialog", "AssetReferences", "_validate_and_warn_about_parameters", "submitter_dialog.close", "submitter_dialog.shared_job_settings._queue_parameters_update.connect", "submitter_dialog.show"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.bundle_group_py.bundle_gui_submit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dev_application_py.DevMainWindow.submit_job_bundle"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | __post_init__ | def __post_init__(self):for operating_system in self.operating_systems:if operating_system not in self.OPERATING_SYSTEMS:raise ValueError(f"Operating system {operating_system} is not in supported list: {self.OPERATING_SYSTEMS}.")for cpu in self.cpu_archs:if cpu not in self.CPU_ARCHITECTURES:raise ValueError(f"CPU architecture {cpu} is in supported list: {self.CPU_ARCHITECTURES}.") | 5 | 11 | 1 | 47 | 0 | 91 | 101 | 91 | self | [] | None | {"For": 2, "If": 2} | 2 | 11 | 2 | ["ValueError", "ValueError"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"] | The function (__post_init__) defined within the public class called OsRequirements.The function start at line 91 and ends at 101. It contains 11 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["ValueError", "ValueError"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | serialize | def serialize(self) -> list:requirements: List[dict] = []if self.operating_systems:for operating_system in self.operating_systems:if operating_system not in self.OPERATING_SYSTEMS:raise ValueError(f"Operating system {operating_system} is not in supported list: {self.OPERATING_SYSTEMS}.")requirements.append({"name": "attr.worker.os.family","anyOf": self.operating_systems,})if self.cpu_archs:for cpu in self.cpu_archs:if cpu not in self.CPU_ARCHITECTURES:raise ValueError(f"CPU architecture {cpu} is not in supported list: {self.CPU_ARCHITECTURES}.")requirements.append({"name": "attr.worker.cpu.arch","anyOf": self.cpu_archs,})return requirements | 7 | 27 | 1 | 104 | 0 | 103 | 129 | 103 | self | [] | list | {"AnnAssign": 1, "Expr": 2, "For": 2, "If": 4, "Return": 1} | 4 | 27 | 4 | ["ValueError", "requirements.append", "ValueError", "requirements.append"] | 36 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"] | The function (serialize) defined within the public class called OsRequirements.The function start at line 103 and ends at 129. It contains 27 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 4.0 functions, It has 4.0 functions called inside which are ["ValueError", "requirements.append", "ValueError", "requirements.append"], It has 36.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | __post_init__ | def __post_init__(self):self._validate(self.cpu_min, self.cpu_max, "CPU")self._validate(self.memory_min, self.memory_max, "Memory")self._validate(self.acceleration_min, self.acceleration_max, "Acceleration")self._validate(self.acceleration_memory_min, self.acceleration_memory_max, "Acceleration Memory")self._validate(self.scratch_space_min, self.scratch_space_max, "Scratch Space") | 1 | 8 | 1 | 75 | 0 | 150 | 157 | 150 | self | [] | None | {"For": 2, "If": 2} | 2 | 11 | 2 | ["ValueError", "ValueError"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"] | The function (__post_init__) defined within the public class called OsRequirements.The function start at line 150 and ends at 157. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["ValueError", "ValueError"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"]. |
aws-deadline_deadline-cloud | HardwareRequirements | public | 0 | 0 | _validate | def _validate(self, minimum: int, maximum: int, name: str):if minimum != self.DEFAULT_VALUE and maximum != self.DEFAULT_VALUE and minimum > maximum:raise ValueError(f"{name} Minimum cannot be higher than {name} Maximum. {minimum} > {maximum}") | 4 | 5 | 4 | 40 | 0 | 159 | 163 | 159 | self,minimum,maximum,name | [] | None | {"If": 1} | 1 | 5 | 1 | ["ValueError"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Document._validate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Int._validate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.NumberDecimal._validate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.59624560_openwpm_openwpm.openwpm.js_instrumentation_py.clean_js_instrumentation_settings", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95252290_getsentry_pypi.validate_py.main"] | The function (_validate) defined within the public class called HardwareRequirements.The function start at line 159 and ends at 163. It contains 5 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [159.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["ValueError"], It has 5.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Document._validate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Int._validate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.NumberDecimal._validate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.59624560_openwpm_openwpm.openwpm.js_instrumentation_py.clean_js_instrumentation_settings", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95252290_getsentry_pypi.validate_py.main"]. |
aws-deadline_deadline-cloud | HardwareRequirements | public | 0 | 0 | _serialize | def _serialize(self, minimum, maximum, name):requirements: List[dict] = []if minimum != self.DEFAULT_VALUE or maximum != self.DEFAULT_VALUE:_requirement = {"name": name,}if minimum != self.DEFAULT_VALUE:_requirement["min"] = max(minimum, self.DEFAULT_VALUE)if maximum != self.DEFAULT_VALUE:_requirement["max"] = min(maximum, MAX_INT_VALUE)requirements.append(_requirement)return requirements | 5 | 12 | 4 | 87 | 0 | 165 | 176 | 165 | self,minimum,maximum,name | [] | Returns | {"AnnAssign": 1, "Assign": 3, "Expr": 1, "If": 3, "Return": 1} | 3 | 12 | 3 | ["max", "min", "requirements.append"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.DocumentMeta._serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.ResourceMeta._serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556496_BerriAI_litellm.litellm.litellm_core_utils.safe_json_dumps_py.safe_dumps"] | The function (_serialize) defined within the public class called HardwareRequirements.The function start at line 165 and ends at 176. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [165.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["max", "min", "requirements.append"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.DocumentMeta._serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.ResourceMeta._serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556496_BerriAI_litellm.litellm.litellm_core_utils.safe_json_dumps_py.safe_dumps"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | serialize | def serialize(self) -> list:requirements: List[dict] = []requirements.extend(self._serialize(self.cpu_min, self.cpu_max, "amount.worker.vcpu"))requirements.extend(self._serialize(self.memory_min, self.memory_max, "amount.worker.memory"))requirements.extend(self._serialize(self.acceleration_min, self.acceleration_max, "amount.worker.gpu"))requirements.extend(self._serialize(self.acceleration_memory_min,self.acceleration_memory_max,"amount.worker.gpu.memory",))requirements.extend(self._serialize(self.scratch_space_min, self.scratch_space_max, "amount.worker.disk.scratch"))return requirements | 1 | 22 | 1 | 114 | 0 | 178 | 199 | 178 | self | [] | list | {"AnnAssign": 1, "Expr": 2, "For": 2, "If": 4, "Return": 1} | 4 | 27 | 4 | ["ValueError", "requirements.append", "ValueError", "requirements.append"] | 36 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"] | The function (serialize) defined within the public class called OsRequirements.The function start at line 178 and ends at 199. 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 declares 4.0 functions, It has 4.0 functions called inside which are ["ValueError", "requirements.append", "ValueError", "requirements.append"], It has 36.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | __post_init__ | def __post_init__(self):if not self.name:raise ValueError(f"Custom Amount {self} has no name")elif self.min and self.max and self.min > self.max:raise ValueError(f"Custom Amount {self} has min higher than max") | 5 | 5 | 1 | 40 | 0 | 213 | 217 | 213 | self | [] | None | {"For": 2, "If": 2} | 2 | 11 | 2 | ["ValueError", "ValueError"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"] | The function (__post_init__) defined within the public class called OsRequirements.The function start at line 213 and ends at 217. It contains 5 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["ValueError", "ValueError"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | serialize | def serialize(self) -> dict:_requirement = {"name": "amount.worker." + self.name}if self.min != self.DEFAULT_VALUE:_requirement["min"] = max(self.min, self.DEFAULT_VALUE)if self.max != self.DEFAULT_VALUE:_requirement["max"] = min(self.max, MAX_INT_VALUE)return _requirement | 3 | 7 | 1 | 66 | 0 | 219 | 225 | 219 | self | [] | list | {"AnnAssign": 1, "Expr": 2, "For": 2, "If": 4, "Return": 1} | 4 | 27 | 4 | ["ValueError", "requirements.append", "ValueError", "requirements.append"] | 36 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"] | The function (serialize) defined within the public class called OsRequirements.The function start at line 219 and ends at 225. It contains 7 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 4.0 functions, It has 4.0 functions called inside which are ["ValueError", "requirements.append", "ValueError", "requirements.append"], It has 36.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | __post_init__ | def __post_init__(self):if not self.name:raise ValueError(f"Custom Amount {self} has no name")elif not self.option or self.option not in CustomAttributeRequirement.OPTIONS:raise ValueError(f"Custom Amount {self} option is not in {CustomAttributeRequirement.OPTIONS}") | 4 | 7 | 1 | 38 | 0 | 241 | 247 | 241 | self | [] | None | {"For": 2, "If": 2} | 2 | 11 | 2 | ["ValueError", "ValueError"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"] | The function (__post_init__) defined within the public class called OsRequirements.The function start at line 241 and ends at 247. It contains 7 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["ValueError", "ValueError"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | serialize | def serialize(self) -> dict:if not self.name:raise ValueError(f"Custom Attribute {self} has no name")_requirement = {"name": "attr.worker." + self.name,}if not self.option:raise ValueError(f"Custom Attribute {self} has no option")elif self.option not in ["anyOf", "allOf"]:raise ValueError(f'Custom Attribute {self} has option {self.option} which is not in list: ["anyOf", "allOf"]')if not self.values:raise ValueError(f"Custom Attribute {self} has no values")_requirement[self.option] = self.valuesreturn _requirement | 5 | 16 | 1 | 85 | 0 | 249 | 264 | 249 | self | [] | list | {"AnnAssign": 1, "Expr": 2, "For": 2, "If": 4, "Return": 1} | 4 | 27 | 4 | ["ValueError", "requirements.append", "ValueError", "requirements.append"] | 36 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"] | The function (serialize) defined within the public class called OsRequirements.The function start at line 249 and ends at 264. It contains 16 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["ValueError", "requirements.append", "ValueError", "requirements.append"], It has 36.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | __post_init__ | def __post_init__(self):amounts = []attributes = []for amount in self.amounts:amounts.append(self._validate_amount(amount))for attribute in self.attributes:attributes.append(self._validate_attribute(attribute))self.amounts = amountsself.attributes = attributes | 3 | 9 | 1 | 59 | 0 | 276 | 284 | 276 | self | [] | None | {"For": 2, "If": 2} | 2 | 11 | 2 | ["ValueError", "ValueError"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"] | The function (__post_init__) defined within the public class called OsRequirements.The function start at line 276 and ends at 284. It contains 9 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 2.0 functions, It has 2.0 functions called inside which are ["ValueError", "ValueError"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"]. |
aws-deadline_deadline-cloud | CustomRequirements | public | 0 | 0 | _validate_amount | def _validate_amount(amount: Union[dict, CustomAmountRequirement]) -> CustomAmountRequirement:if isinstance(amount, dict):amount = CustomAmountRequirement(**amount)return amount | 2 | 4 | 1 | 31 | 0 | 287 | 290 | 287 | amount | [] | CustomAmountRequirement | {"Assign": 1, "If": 1, "Return": 1} | 2 | 4 | 2 | ["isinstance", "CustomAmountRequirement"] | 0 | [] | The function (_validate_amount) defined within the public class called CustomRequirements.The function start at line 287 and ends at 290. 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 functions, and It has 2.0 functions called inside which are ["isinstance", "CustomAmountRequirement"]. |
aws-deadline_deadline-cloud | CustomRequirements | public | 0 | 0 | _validate_attribute | def _validate_attribute(attribute: Union[dict, CustomAttributeRequirement],) -> CustomAttributeRequirement:if isinstance(attribute, dict):attribute = CustomAttributeRequirement(**attribute)return attribute | 2 | 6 | 1 | 32 | 0 | 293 | 298 | 293 | attribute | [] | CustomAttributeRequirement | {"Assign": 1, "If": 1, "Return": 1} | 2 | 6 | 2 | ["isinstance", "CustomAttributeRequirement"] | 0 | [] | The function (_validate_attribute) defined within the public class called CustomRequirements.The function start at line 293 and ends at 298. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["isinstance", "CustomAttributeRequirement"]. |
aws-deadline_deadline-cloud | CustomRequirements | public | 0 | 0 | __iter__ | def __iter__(self):if self.amounts:yield from self.amountsif self.attributes:yield from self.attributes | 3 | 5 | 1 | 25 | 0 | 300 | 304 | 300 | self | [] | None | {"Expr": 2, "If": 2} | 0 | 5 | 0 | [] | 10 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3721936_jaraco_configparser.backports.configparser.__init___py.SectionProxy.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.series.test_series_py.test_groupby_result", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.series.test_series_py.test_groupby_result_for_ambiguous_indexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.series.test_series_py.test_groupby_result_for_scalar_indexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_groupby_result", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_groupby_result_for_ambiguous_indexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_groupby_result_for_scalar_indexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70258989_dynaconf_dynaconf.dynaconf.contrib.flask_dynaconf_py.DynaconfConfig.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.86926348_identitypython_jwtconnect_python_cryptojwt.src.cryptojwt.key_bundle_py.KeyBundle.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94643539_WatChMaL_WatChMaL.watchmal.dataset.samplers_py.DistributedSamplerWrapper.__iter__"] | The function (__iter__) defined within the public class called CustomRequirements.The function start at line 300 and ends at 304. It contains 5 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 has 10.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3721936_jaraco_configparser.backports.configparser.__init___py.SectionProxy.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.series.test_series_py.test_groupby_result", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.series.test_series_py.test_groupby_result_for_ambiguous_indexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.series.test_series_py.test_groupby_result_for_scalar_indexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_groupby_result", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_groupby_result_for_ambiguous_indexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_groupby_result_for_scalar_indexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70258989_dynaconf_dynaconf.dynaconf.contrib.flask_dynaconf_py.DynaconfConfig.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.86926348_identitypython_jwtconnect_python_cryptojwt.src.cryptojwt.key_bundle_py.KeyBundle.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94643539_WatChMaL_WatChMaL.watchmal.dataset.samplers_py.DistributedSamplerWrapper.__iter__"]. |
aws-deadline_deadline-cloud | CustomRequirements | public | 0 | 0 | _serialize_amounts | def _serialize_amounts(self):requirements = []for amount in self.amounts:requirements.append(amount.serialize())return requirements | 2 | 5 | 1 | 28 | 0 | 306 | 310 | 306 | self | [] | Returns | {"Assign": 1, "Expr": 1, "For": 1, "Return": 1} | 2 | 5 | 2 | ["requirements.append", "amount.serialize"] | 0 | [] | The function (_serialize_amounts) defined within the public class called CustomRequirements.The function start at line 306 and ends at 310. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["requirements.append", "amount.serialize"]. |
aws-deadline_deadline-cloud | CustomRequirements | public | 0 | 0 | _serialize_attributes | def _serialize_attributes(self):requirements = []for attribute in self.attributes:requirements.append(attribute.serialize())return requirements | 2 | 5 | 1 | 28 | 0 | 312 | 316 | 312 | self | [] | Returns | {"Assign": 1, "Expr": 1, "For": 1, "Return": 1} | 2 | 5 | 2 | ["requirements.append", "attribute.serialize"] | 0 | [] | The function (_serialize_attributes) defined within the public class called CustomRequirements.The function start at line 312 and ends at 316. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["requirements.append", "attribute.serialize"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | serialize | def serialize(self) -> Dict[str, List]:requirements: Dict[str, List] = {}if self.amounts:requirements.setdefault("amounts", []).extend(self._serialize_amounts())if self.attributes:requirements.setdefault("attributes", []).extend(self._serialize_attributes())return requirements | 3 | 7 | 1 | 71 | 0 | 318 | 326 | 318 | self | [] | list | {"AnnAssign": 1, "Expr": 2, "For": 2, "If": 4, "Return": 1} | 4 | 27 | 4 | ["ValueError", "requirements.append", "ValueError", "requirements.append"] | 36 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"] | The function (serialize) defined within the public class called OsRequirements.The function start at line 318 and ends at 326. It contains 7 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 4.0 functions, It has 4.0 functions called inside which are ["ValueError", "requirements.append", "ValueError", "requirements.append"], It has 36.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | __post_init__ | def __post_init__(self):if isinstance(self.os_requirements, dict):self.os_requirements = OsRequirements(**self.os_requirements)if isinstance(self.hardware_requirements, dict):self.hardware_requirements = HardwareRequirements(**self.hardware_requirements)if isinstance(self.custom_requirements, dict):self.custom_requirements = CustomRequirements(**self.custom_requirements) | 4 | 7 | 1 | 68 | 0 | 339 | 345 | 339 | self | [] | None | {"For": 2, "If": 2} | 2 | 11 | 2 | ["ValueError", "ValueError"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"] | The function (__post_init__) defined within the public class called OsRequirements.The function start at line 339 and ends at 345. It contains 7 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["ValueError", "ValueError"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"]. |
aws-deadline_deadline-cloud | OsRequirements | public | 0 | 0 | serialize | def serialize(self) -> dict:requirements: Dict[str, Union[List[str], List[int]]] = {}if self.os_requirements is not None:requirements.setdefault("attributes", []).extend(self.os_requirements.serialize())if self.hardware_requirements:requirements.setdefault("amounts", []).extend(self.hardware_requirements.serialize())custom_requirements = self.custom_requirements.serialize()if custom_requirements.get("amounts", []):requirements.setdefault("amounts", []).extend(custom_requirements["amounts"])if custom_requirements.get("attributes", []):requirements.setdefault("attributes", []).extend(custom_requirements["attributes"])return requirements | 5 | 12 | 1 | 149 | 0 | 347 | 361 | 347 | self | [] | list | {"AnnAssign": 1, "Expr": 2, "For": 2, "If": 4, "Return": 1} | 4 | 27 | 4 | ["ValueError", "requirements.append", "ValueError", "requirements.append"] | 36 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"] | The function (serialize) defined within the public class called OsRequirements.The function start at line 347 and ends at 361. It contains 12 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["ValueError", "requirements.append", "ValueError", "requirements.append"], It has 36.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.comment_py.Comment.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.note_py.Note.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3573634_xray7224_pypump.pypump.models.person_py.Person.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3929084_ralphbean_taskw.taskw.fields.annotationarray_py.AnnotationArrayField.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.__init___py.CTransaction.GetTxid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.script_py.SignatureHash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960208_marshmallow_code_marshmallow_jsonapi.marshmallow_jsonapi.fields_py.Relationship.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_observed_data_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_tool_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX20Import._populate_vulnerability_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_attack_pattern_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_campaign_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_course_of_action_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_identity_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_indicator_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_location_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_malware_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_note_documentation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69272947_misp_misp_stix.tests._test_stix_import_py.TestSTIX21Import._populate_tool_documentation"]. |
aws-deadline_deadline-cloud | TimeoutEntry | public | 0 | 0 | __post_init__ | def __post_init__(self) -> None:"""Validates the timeout entry after initialization."""if self.is_activated and self.seconds <= 0:raise ValueError(f"Timeout value cannot be negative or zero: {self.seconds}")if not self.tooltip:raise ValueError("Timeout tooltip cannot be empty.") | 4 | 5 | 1 | 36 | 0 | 28 | 33 | 28 | self | [] | None | {"Expr": 1, "If": 2} | 2 | 6 | 2 | ["ValueError", "ValueError"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"] | The function (__post_init__) defined within the public class called TimeoutEntry.The function start at line 28 and ends at 33. It contains 5 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["ValueError", "ValueError"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718498_nylas_nylas_python.nylas.models.notetakers_py.ListNotetakerQueryParams.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.Drive.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.SInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ripper.makemkv_py.TInfo.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationExtended.__post_init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69780366_automatic_ripping_machine_automatic_ripping_machine.arm.ui.settings.DriveUtils_py.DriveInformationMedium.__post_init__"]. |
aws-deadline_deadline-cloud | TimeoutEntry | public | 0 | 0 | to_sticky_settings_dict | def to_sticky_settings_dict(self) -> Dict[str, Any]:"""Returns the timeout entry as a dictionary suitable for sticky settings.The returned dictionary contains only the essential attributes needed for saving:- is_activated: The activation status- seconds: The timeout durationThe tooltip is intentionally excluded as it's not necessary for sticky settings.Returns:Dict[str, Any]: Dictionary containing activation status and timeout duration."""return {"is_activated": self.is_activated, "seconds": self.seconds} | 1 | 2 | 1 | 27 | 0 | 35 | 48 | 35 | self | [] | Dict[str, Any] | {"Expr": 1, "Return": 1} | 0 | 14 | 0 | [] | 0 | [] | The function (to_sticky_settings_dict) defined within the public class called TimeoutEntry.The function start at line 35 and ends at 48. 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 | TimeoutEntry | public | 0 | 0 | to_sticky_settings_dict | def to_sticky_settings_dict(self) -> Dict[str, Dict[str, Any]]:"""Returns all timeout entries as a dictionary format suitable for sticky settings.Returns:Dict[str, Dict[str, Any]]: A dictionary mapping labels to entry configurations.Example: {"Env1 enter": {"is_activated": True, "seconds": 300},"Env1 exit": {"is_activated": True, "seconds": 60},...}"""return {label: entry.to_sticky_settings_dict() for label, entry in self.entries.items()} | 2 | 2 | 1 | 40 | 0 | 67 | 79 | 67 | self | [] | Dict[str, Any] | {"Expr": 1, "Return": 1} | 0 | 14 | 0 | [] | 0 | [] | The function (to_sticky_settings_dict) defined within the public class called TimeoutEntry.The function start at line 67 and ends at 79. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | TimeoutTableEntries | public | 0 | 0 | update_from_sticky_settings | def update_from_sticky_settings(self, data: Dict[str, Dict[str, Any]]) -> None:"""Updates existing timeout entries with values from sticky settings.This method performs a selective update where:- Only existing entries are updated (unknown labels in input data are ignored)- Missing attributes preserve their current values. So adding a new timeout isstill a backwards compatible change.Args:data (Dict[str, Dict[str, Any]]): Dictionary containing timeout configurations."""for label, saved_data in data.items():if label in self.entries:entry = self.entries[label]entry.is_activated = saved_data.get("is_activated", entry.is_activated)entry.seconds = saved_data.get("seconds", entry.seconds) | 3 | 6 | 2 | 76 | 0 | 81 | 97 | 81 | self,data | [] | None | {"Assign": 3, "Expr": 1, "For": 1, "If": 1} | 3 | 17 | 3 | ["data.items", "saved_data.get", "saved_data.get"] | 0 | [] | The function (update_from_sticky_settings) defined within the public class called TimeoutTableEntries.The function start at line 81 and ends at 97. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [81.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["data.items", "saved_data.get", "saved_data.get"]. |
aws-deadline_deadline-cloud | TimeoutTableEntries | public | 0 | 0 | validate_entries | def validate_entries(self) -> None:"""Validates all timeout entries in the table.Performs validation checks for all entries:- Identifies any activated entries with zero duration- Collects labels of non valid entries- Provides detailed error message for configuration correctionRaises:NonValidInputError: If any activated timeout has a zero duration. The error messageincludes the specific labels of non valid entries and instructions for correction."""zero_timeouts = [labelfor label, entry in self.entries.items()if entry.is_activated and entry.seconds == 0]if zero_timeouts:msg = "The following timeout value(s) must be greater than 0: \n"msg += ", ".join(zero_timeouts)msg += "\n\nPlease configure these value(s) in the 'Job specific settings' tab."raise NonValidInputError(msg) | 5 | 11 | 1 | 57 | 0 | 99 | 122 | 99 | self | [] | None | {"Assign": 2, "AugAssign": 2, "Expr": 1, "If": 1} | 3 | 24 | 3 | ["self.entries.items", "join", "NonValidInputError"] | 0 | [] | The function (validate_entries) defined within the public class called TimeoutTableEntries.The function start at line 99 and ends at 122. It contains 11 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.entries.items", "join", "NonValidInputError"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | configure_settings | def configure_settings(parent=None, set_profile_focus=False) -> bool:"""Static method that runs the Deadline Config Dialog.Args:parent: Parent widgetset_profile_focus: Optional boolean to set the initial focus to the profile selectorReturns True if any changes were applied, False otherwise."""deadline_config = DeadlineConfigDialog(parent=parent)if set_profile_focus:deadline_config.config_box.aws_profiles_box.setFocus()deadline_config.exec_()return deadline_config.changes_were_applied | 2 | 6 | 2 | 43 | 0 | 70 | 86 | 70 | parent,set_profile_focus | [] | bool | {"Assign": 1, "Expr": 3, "If": 1, "Return": 1} | 3 | 17 | 3 | ["DeadlineConfigDialog", "deadline_config.config_box.aws_profiles_box.setFocus", "deadline_config.exec_"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.config_group_py.config_gui", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dev_application_py.DevMainWindow.configure", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.on_settings_button_clicked", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.on_switch_profile_clicked"] | The function (configure_settings) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 70 and ends at 86. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [70.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["DeadlineConfigDialog", "deadline_config.config_box.aws_profiles_box.setFocus", "deadline_config.exec_"], It has 4.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.config_group_py.config_gui", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dev_application_py.DevMainWindow.configure", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.on_settings_button_clicked", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.on_switch_profile_clicked"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | __init__ | def __init__(self, parent=None) -> None:super().__init__(parent=parent, f=Qt.WindowSystemMenuHint | Qt.WindowTitleHint | Qt.WindowCloseButtonHint)self.setWindowTitle("AWS Deadline Cloud workstation configuration")self.deadline_authentication_status = DeadlineAuthenticationStatus.getInstance()self._build_ui() | 1 | 7 | 2 | 55 | 0 | 88 | 95 | 88 | 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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"] | The function (__init__) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 88 and ends at 95. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [88.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"], It has 4993.0 functions calling this function which are ["_.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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | sizeHint | def sizeHint(self):# Get available screen space for adaptive sizingscreen = QApplication.primaryScreen().availableGeometry()available_height = screen.height()# Calculate optimal dialog height based on screen sizecontent_height = 850# Height needed to show all content without scroll barsmax_dialog_height = int(available_height * 0.9)# 90% of screen height# Use smaller of content height or max screen percentageoptimal_height = min(content_height, max_dialog_height)return QSize(650, optimal_height) | 1 | 7 | 1 | 51 | 0 | 97 | 109 | 97 | self | [] | Returns | {"Assign": 5, "Return": 1} | 6 | 13 | 6 | ["availableGeometry", "QApplication.primaryScreen", "screen.height", "int", "min", "QSize"] | 0 | [] | The function (sizeHint) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 97 and ends at 109. It contains 7 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 declares 6.0 functions, and It has 6.0 functions called inside which are ["availableGeometry", "QApplication.primaryScreen", "screen.height", "int", "min", "QSize"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | _build_ui | def _build_ui(self):self.layout = QVBoxLayout(self)self.config_box = DeadlineWorkstationConfigWidget(parent=self)self.scrollArea = DeadlineScrollArea(self)self.scrollArea.setWidget(self.config_box)# Enable widget resizing within scroll areaself.scrollArea.setWidgetResizable(True)self.scrollArea.setSizePolicy(QSizePolicy.MinimumExpanding, QSizePolicy.MinimumExpanding)# Hide the scroll area border for a cleaner appearanceself.scrollArea.setStyleSheet("QScrollArea { border: none; }")self.layout.addWidget(self.scrollArea)self.config_box.refreshed.connect(self.on_refresh)self.auth_status_box = DeadlineAuthenticationStatusWidget(parent=self, show_profile_switch=False)self.layout.addWidget(self.auth_status_box)self.deadline_authentication_status.deadline_config_changed.connect(self.config_box.refresh)self.deadline_authentication_status.api_availability_changed.connect(self.on_auth_status_update)# We only use a Close button, not OK/Cancel, because we live update the settings.self.button_box = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel | QDialogButtonBox.Apply, Qt.Horizontal)self.button_box.accepted.connect(self.accept)self.button_box.rejected.connect(self.reject)self.button_box.clicked.connect(self.on_button_box_clicked)self.auth_status_box.logout_clicked.connect(self.on_logout)self.auth_status_box.login_clicked.connect(self.on_login)self.layout.addWidget(self.button_box)# Refresh the lists so queue/farm show the description instead of the IDself.config_box.refresh_lists() | 1 | 28 | 1 | 242 | 0 | 111 | 149 | 111 | self | [] | None | {"Assign": 5, "Expr": 16} | 21 | 39 | 21 | ["QVBoxLayout", "DeadlineWorkstationConfigWidget", "DeadlineScrollArea", "self.scrollArea.setWidget", "self.scrollArea.setWidgetResizable", "self.scrollArea.setSizePolicy", "self.scrollArea.setStyleSheet", "self.layout.addWidget", "self.config_box.refreshed.connect", "DeadlineAuthenticationStatusWidget", "self.layout.addWidget", "self.deadline_authentication_status.deadline_config_changed.connect", "self.deadline_authentication_status.api_availability_changed.connect", "QDialogButtonBox", "self.button_box.accepted.connect", "self.button_box.rejected.connect", "self.button_box.clicked.connect", "self.auth_status_box.logout_clicked.connect", "self.auth_status_box.login_clicked.connect", "self.layout.addWidget", "self.config_box.refresh_lists"] | 0 | [] | The function (_build_ui) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 111 and ends at 149. It contains 28 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 21.0 functions, and It has 21.0 functions called inside which are ["QVBoxLayout", "DeadlineWorkstationConfigWidget", "DeadlineScrollArea", "self.scrollArea.setWidget", "self.scrollArea.setWidgetResizable", "self.scrollArea.setSizePolicy", "self.scrollArea.setStyleSheet", "self.layout.addWidget", "self.config_box.refreshed.connect", "DeadlineAuthenticationStatusWidget", "self.layout.addWidget", "self.deadline_authentication_status.deadline_config_changed.connect", "self.deadline_authentication_status.api_availability_changed.connect", "QDialogButtonBox", "self.button_box.accepted.connect", "self.button_box.rejected.connect", "self.button_box.clicked.connect", "self.auth_status_box.logout_clicked.connect", "self.auth_status_box.login_clicked.connect", "self.layout.addWidget", "self.config_box.refresh_lists"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | changes_were_applied | def changes_were_applied(self) -> bool:return self.config_box.changes_were_applied | 1 | 2 | 1 | 13 | 0 | 152 | 153 | 152 | self | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (changes_were_applied) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 152 and ends at 153. 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 | DeadlineConfigDialog | public | 0 | 1 | accept | def accept(self):if self.config_box.apply():super().accept() | 2 | 3 | 1 | 21 | 0 | 155 | 157 | 155 | self | [] | None | {"Expr": 1, "If": 1} | 3 | 3 | 3 | ["self.config_box.apply", "accept", "super"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_config_dialog_py.DeadlineConfigDialog.accept"] | The function (accept) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 155 and ends at 157. 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 value. It declares 3.0 functions, It has 3.0 functions called inside which are ["self.config_box.apply", "accept", "super"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_config_dialog_py.DeadlineConfigDialog.accept"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | reject | def reject(self):self.deadline_authentication_status.set_config(config_file.read_config())super().reject() | 1 | 3 | 1 | 24 | 0 | 159 | 161 | 159 | self | [] | None | {"Expr": 2} | 4 | 3 | 4 | ["self.deadline_authentication_status.set_config", "config_file.read_config", "reject", "super"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957978_dgilland_pydash.tests.test_chaining_py.test_dash_instance_chaining", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_config_dialog_py.DeadlineConfigDialog.reject"] | The function (reject) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 159 and ends at 161. 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 4.0 functions called inside which are ["self.deadline_authentication_status.set_config", "config_file.read_config", "reject", "super"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957978_dgilland_pydash.tests.test_chaining_py.test_dash_instance_chaining", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_config_dialog_py.DeadlineConfigDialog.reject"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | on_login | def on_login(self):DeadlineLoginDialog.login(parent=self, config=self.config_box.config)self.deadline_authentication_status.refresh_status()self.config_box.refresh() | 1 | 4 | 1 | 35 | 0 | 163 | 166 | 163 | self | [] | None | {"Expr": 3} | 3 | 4 | 3 | ["DeadlineLoginDialog.login", "self.deadline_authentication_status.refresh_status", "self.config_box.refresh"] | 0 | [] | The function (on_login) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 163 and ends at 166. 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.0 functions, and It has 3.0 functions called inside which are ["DeadlineLoginDialog.login", "self.deadline_authentication_status.refresh_status", "self.config_box.refresh"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | on_logout | def on_logout(self):api.logout(config=self.config_box.config)self.deadline_authentication_status.refresh_status()self.config_box.refresh() | 1 | 4 | 1 | 31 | 0 | 168 | 171 | 168 | self | [] | None | {"Expr": 3} | 3 | 4 | 3 | ["api.logout", "self.deadline_authentication_status.refresh_status", "self.config_box.refresh"] | 0 | [] | The function (on_logout) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 168 and ends at 171. 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.0 functions, and It has 3.0 functions called inside which are ["api.logout", "self.deadline_authentication_status.refresh_status", "self.config_box.refresh"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | on_button_box_clicked | def on_button_box_clicked(self, button):if self.button_box.standardButton(button) == QDialogButtonBox.Apply:self.config_box.apply() | 2 | 3 | 2 | 28 | 0 | 173 | 175 | 173 | self,button | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["self.button_box.standardButton", "self.config_box.apply"] | 0 | [] | The function (on_button_box_clicked) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 173 and ends at 175. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [173.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.button_box.standardButton", "self.config_box.apply"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | on_refresh | def on_refresh(self):# Enable the "Apply" button only if there are changesself.button_box.button(QDialogButtonBox.Apply).setEnabled(bool(self.config_box.changes))# Update the auth status with the refreshed configself.deadline_authentication_status.set_config(self.config_box.config) | 1 | 3 | 1 | 39 | 0 | 177 | 181 | 177 | self | [] | None | {"Expr": 2} | 4 | 5 | 4 | ["setEnabled", "self.button_box.button", "bool", "self.deadline_authentication_status.set_config"] | 0 | [] | The function (on_refresh) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 177 and ends at 181. 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, and It has 4.0 functions called inside which are ["setEnabled", "self.button_box.button", "bool", "self.deadline_authentication_status.set_config"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | on_auth_status_update | def on_auth_status_update(self):# If the AWS Deadline Cloud API is authorized successfully for the AWS profile# in the config dialog, refresh the farm/queue listsif self.deadline_authentication_status.api_availability and config_file.get_setting("defaults.aws_profile_name", self.deadline_authentication_status.config) == config_file.get_setting("defaults.aws_profile_name", self.config_box.config):self.config_box.refresh_lists() | 3 | 5 | 1 | 45 | 0 | 183 | 189 | 183 | self | [] | None | {"Expr": 1, "If": 1} | 3 | 7 | 3 | ["config_file.get_setting", "config_file.get_setting", "self.config_box.refresh_lists"] | 0 | [] | The function (on_auth_status_update) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 183 and ends at 189. It contains 5 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 3.0 functions, and It has 3.0 functions called inside which are ["config_file.get_setting", "config_file.get_setting", "self.config_box.refresh_lists"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__(parent) | 1 | 2 | 2 | 17 | 0 | 193 | 194 | 193 | 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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"] | The function (__init__) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 193 and ends at 194. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [193.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"], It has 4993.0 functions calling this function which are ["_.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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | sizeHint | def sizeHint(self):return QSize(500, 400) | 1 | 2 | 1 | 12 | 0 | 196 | 197 | 196 | self | [] | Returns | {"Assign": 5, "Return": 1} | 6 | 13 | 6 | ["availableGeometry", "QApplication.primaryScreen", "screen.height", "int", "min", "QSize"] | 0 | [] | The function (sizeHint) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 196 and ends at 197. 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 declares 6.0 functions, and It has 6.0 functions called inside which are ["availableGeometry", "QApplication.primaryScreen", "screen.height", "int", "min", "QSize"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | __init__ | def __init__(self, parent=None):super().__init__(parent)self.changes = {}self.config: Optional[ConfigParser] = Noneself.changes_were_applied = Falseself._build_ui()self._fill_aws_profiles_box()self.refresh() | 1 | 8 | 2 | 53 | 0 | 218 | 227 | 218 | 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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"] | The function (__init__) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 218 and ends at 227. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [218.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"], It has 4993.0 functions calling this function which are ["_.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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | minimumSizeHint | def minimumSizeHint(self):return QSize(500, 700) | 1 | 2 | 1 | 12 | 0 | 229 | 230 | 229 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["QSize"] | 0 | [] | The function (minimumSizeHint) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 229 and ends at 230. 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 declare 1.0 function, and It has 1.0 function called inside which is ["QSize"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | _build_ui | def _build_ui(self):# Ensure the widget expands horizontallyself.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)self.v_layout = QVBoxLayout(self)self.setLayout(self.v_layout)# Set consistent spacing between group boxes and marginsself.v_layout.setSpacing(20)# 20px spacing between group boxesself.v_layout.setContentsMargins(10, 10, 10, 10)# 10px margins around content# Simplified stylesheet - focus only on title positioning, use layout for spacingGROUP_BOX_STYLE_SHEET = """QGroupBox::title {subcontrol-origin: margin;padding-left: 5px;top: 0px;}QGroupBox {margin-top: 20px;}"""self.labels = {}self._refresh_callbacks: List[Callable] = []# Global settingsself.global_settings_group = QGroupBox(parent=self, title="Global settings")self.global_settings_group.setStyleSheet(GROUP_BOX_STYLE_SHEET)self.global_settings_group.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)self.v_layout.addWidget(self.global_settings_group)global_settings_layout = QFormLayout(self.global_settings_group)self._build_global_settings_ui(self.global_settings_group, global_settings_layout)# AWS Profile-specific settingsself.profile_settings_group = QGroupBox(parent=self, title="Profile settings")self.profile_settings_group.setStyleSheet(GROUP_BOX_STYLE_SHEET)self.profile_settings_group.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)self.v_layout.addWidget(self.profile_settings_group)profile_settings_layout = QFormLayout(self.profile_settings_group)self._build_profile_settings_ui(self.profile_settings_group, profile_settings_layout)# Farm-specific settingsself.farm_settings_group = QGroupBox(parent=self, title="Farm settings")self.farm_settings_group.setStyleSheet(GROUP_BOX_STYLE_SHEET)self.farm_settings_group.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)self.v_layout.addWidget(self.farm_settings_group)farm_settings_layout = QFormLayout(self.farm_settings_group)self._build_farm_settings_ui(self.farm_settings_group, farm_settings_layout)# General settingsself.general_settings_group = QGroupBox(parent=self, title="General settings")self.general_settings_group.setStyleSheet(GROUP_BOX_STYLE_SHEET)self.general_settings_group.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Preferred)self.v_layout.addWidget(self.general_settings_group)general_settings_layout = QFormLayout(self.general_settings_group)self._build_general_settings_ui(self.general_settings_group, general_settings_layout)# Add vertical spacer to push content to top and prevent group boxes from expandingself.v_layout.addItem(QSpacerItem(20, 40, QSizePolicy.Minimum, QSizePolicy.Expanding))self._background_exception.connect(self.handle_background_exception) | 1 | 44 | 1 | 362 | 0 | 232 | 293 | 232 | self | [] | None | {"Assign": 5, "Expr": 16} | 21 | 39 | 21 | ["QVBoxLayout", "DeadlineWorkstationConfigWidget", "DeadlineScrollArea", "self.scrollArea.setWidget", "self.scrollArea.setWidgetResizable", "self.scrollArea.setSizePolicy", "self.scrollArea.setStyleSheet", "self.layout.addWidget", "self.config_box.refreshed.connect", "DeadlineAuthenticationStatusWidget", "self.layout.addWidget", "self.deadline_authentication_status.deadline_config_changed.connect", "self.deadline_authentication_status.api_availability_changed.connect", "QDialogButtonBox", "self.button_box.accepted.connect", "self.button_box.rejected.connect", "self.button_box.clicked.connect", "self.auth_status_box.logout_clicked.connect", "self.auth_status_box.login_clicked.connect", "self.layout.addWidget", "self.config_box.refresh_lists"] | 0 | [] | The function (_build_ui) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 232 and ends at 293. It contains 44 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 21.0 functions, and It has 21.0 functions called inside which are ["QVBoxLayout", "DeadlineWorkstationConfigWidget", "DeadlineScrollArea", "self.scrollArea.setWidget", "self.scrollArea.setWidgetResizable", "self.scrollArea.setSizePolicy", "self.scrollArea.setStyleSheet", "self.layout.addWidget", "self.config_box.refreshed.connect", "DeadlineAuthenticationStatusWidget", "self.layout.addWidget", "self.deadline_authentication_status.deadline_config_changed.connect", "self.deadline_authentication_status.api_availability_changed.connect", "QDialogButtonBox", "self.button_box.accepted.connect", "self.button_box.rejected.connect", "self.button_box.clicked.connect", "self.auth_status_box.logout_clicked.connect", "self.auth_status_box.login_clicked.connect", "self.layout.addWidget", "self.config_box.refresh_lists"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _build_global_settings_ui | def _build_global_settings_ui(self, group, layout):layout.setFieldGrowthPolicy(QFormLayout.ExpandingFieldsGrow)self.aws_profiles_box = QComboBox(parent=group)aws_profile_label = self.labels["defaults.aws_profile_name"] = QLabel("AWS profile")layout.addRow(aws_profile_label, self.aws_profiles_box)self.aws_profiles_box.currentTextChanged.connect(self.aws_profile_changed) | 1 | 6 | 3 | 62 | 0 | 295 | 301 | 295 | self,group,layout | [] | None | {"Assign": 2, "Expr": 3} | 5 | 7 | 5 | ["layout.setFieldGrowthPolicy", "QComboBox", "QLabel", "layout.addRow", "self.aws_profiles_box.currentTextChanged.connect"] | 0 | [] | The function (_build_global_settings_ui) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 295 and ends at 301. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [295.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["layout.setFieldGrowthPolicy", "QComboBox", "QLabel", "layout.addRow", "self.aws_profiles_box.currentTextChanged.connect"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _build_profile_settings_ui | def _build_profile_settings_ui(self, group, layout):layout.setFieldGrowthPolicy(QFormLayout.ExpandingFieldsGrow)self.job_history_dir_edit = DirectoryPickerWidget(initial_directory="",directory_label="Job history directory",parent=group,collapse_user_dir=True,)job_history_dir_label = self.labels["settings.job_history_dir"] = QLabel("Job history directory")layout.addRow(job_history_dir_label, self.job_history_dir_edit)self.job_history_dir_edit.path_changed.connect(self.job_history_dir_changed)self.default_farm_box = DeadlineFarmListComboBox(parent=group)default_farm_box_label = self.labels["defaults.farm_id"] = QLabel("Default farm")self.default_farm_box.box.currentIndexChanged.connect(self.default_farm_changed)self.default_farm_box.background_exception.connect(self.handle_background_exception)layout.addRow(default_farm_box_label, self.default_farm_box) | 1 | 18 | 3 | 134 | 0 | 303 | 322 | 303 | self,group,layout | [] | None | {"Assign": 4, "Expr": 6} | 10 | 20 | 10 | ["layout.setFieldGrowthPolicy", "DirectoryPickerWidget", "QLabel", "layout.addRow", "self.job_history_dir_edit.path_changed.connect", "DeadlineFarmListComboBox", "QLabel", "self.default_farm_box.box.currentIndexChanged.connect", "self.default_farm_box.background_exception.connect", "layout.addRow"] | 0 | [] | The function (_build_profile_settings_ui) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 303 and ends at 322. It contains 18 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [303.0] and does not return any value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["layout.setFieldGrowthPolicy", "DirectoryPickerWidget", "QLabel", "layout.addRow", "self.job_history_dir_edit.path_changed.connect", "DeadlineFarmListComboBox", "QLabel", "self.default_farm_box.box.currentIndexChanged.connect", "self.default_farm_box.background_exception.connect", "layout.addRow"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _build_farm_settings_ui | def _build_farm_settings_ui(self, group, layout):layout.setFieldGrowthPolicy(QFormLayout.ExpandingFieldsGrow)self.default_queue_box = DeadlineQueueListComboBox(parent=group)default_queue_box_label = self.labels["defaults.queue_id"] = QLabel("Default queue")self.default_queue_box.box.currentIndexChanged.connect(self.default_queue_changed)self.default_queue_box.background_exception.connect(self.handle_background_exception)layout.addRow(default_queue_box_label, self.default_queue_box)self.default_storage_profile_box = DeadlineStorageProfileNameListComboBox(parent=group)default_storage_profile_box_label = self.labels["settings.storage_profile_id"] = QLabel("Default storage profile")self.default_storage_profile_box.box.currentIndexChanged.connect(self.default_storage_profile_name_changed)self.default_storage_profile_box.background_exception.connect(self.handle_background_exception)layout.addRow(default_storage_profile_box_label, self.default_storage_profile_box)item_name_copied = JobAttachmentsFileSystem.COPIED.valueitem_name_virtual = JobAttachmentsFileSystem.VIRTUAL.valuejob_attachments_file_system_tooltip = ("This setting determines how job attachments are loaded on the worker instance. "f"'{item_name_copied}' may be faster if every task needs all attachments, while "f"'{item_name_virtual}' may perform better if tasks only require a subset of attachments.")values_with_tooltips = {item_name_copied: "When selected, the worker downloads all job attachments to disk before rendering begins.",item_name_virtual: "When selected, the worker downloads attachments only when needed by each task.",}self.job_attachments_file_system_box = self._init_combobox_setting_with_tooltips(group=group,layout=layout,setting_name="defaults.job_attachments_file_system",label_text="Job attachments filesystem options",label_tooltip=job_attachments_file_system_tooltip,values_with_tooltips=values_with_tooltips,) | 1 | 37 | 3 | 203 | 0 | 324 | 363 | 324 | self,group,layout | [] | None | {"Assign": 9, "Expr": 7} | 12 | 40 | 12 | ["layout.setFieldGrowthPolicy", "DeadlineQueueListComboBox", "QLabel", "self.default_queue_box.box.currentIndexChanged.connect", "self.default_queue_box.background_exception.connect", "layout.addRow", "DeadlineStorageProfileNameListComboBox", "QLabel", "self.default_storage_profile_box.box.currentIndexChanged.connect", "self.default_storage_profile_box.background_exception.connect", "layout.addRow", "self._init_combobox_setting_with_tooltips"] | 0 | [] | The function (_build_farm_settings_ui) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 324 and ends at 363. It contains 37 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [324.0] and does not return any value. It declares 12.0 functions, and It has 12.0 functions called inside which are ["layout.setFieldGrowthPolicy", "DeadlineQueueListComboBox", "QLabel", "self.default_queue_box.box.currentIndexChanged.connect", "self.default_queue_box.background_exception.connect", "layout.addRow", "DeadlineStorageProfileNameListComboBox", "QLabel", "self.default_storage_profile_box.box.currentIndexChanged.connect", "self.default_storage_profile_box.background_exception.connect", "layout.addRow", "self._init_combobox_setting_with_tooltips"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _build_general_settings_ui.refresh_known_paths | def refresh_known_paths():with block_signals(self.known_paths_list):self.known_paths_list.clear()paths_str = config_file.get_setting("settings.known_asset_paths", config=self.config)if paths_str:paths = paths_str.split(os.pathsep)self.known_paths_list.addItems(paths)# Update status labelcount = self.known_paths_list.count()self.known_paths_status.setText(f"{count} paths")self._update_known_paths_buttons() | 2 | 12 | 0 | 77 | 0 | 428 | 442 | 428 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_build_general_settings_ui.refresh_known_paths) defined within the public class called public.The function start at line 428 and ends at 442. It contains 12 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 | DeadlineWorkstationConfigWidget | public | 0 | 1 | _build_general_settings_ui | def _build_general_settings_ui(self, group, layout):layout.setFieldGrowthPolicy(QFormLayout.ExpandingFieldsGrow)self.auto_accept = self._init_checkbox_setting(group, layout, "settings.auto_accept", "Auto accept prompt defaults")self.telemetry_opt_out = self._init_checkbox_setting(group, layout, "telemetry.opt_out", "Telemetry opt out")self._conflict_resolution_options = [option.name for option in FileConflictResolution]self.conflict_resolution_box = self._init_combobox_setting(group,layout,"settings.conflict_resolution","Conflict resolution option",self._conflict_resolution_options,)self._log_levels = ["ERROR", "WARNING", "INFO", "DEBUG"]self.log_level_box = self._init_combobox_setting(group,layout,"settings.log_level","Current logging level",self._log_levels,)# Known asset paths sectionknown_paths_label = QLabel("Known asset paths")known_paths_label.setToolTip("Paths that should not generate warnings when outside storage profile locations")self.labels["settings.known_asset_paths"] = known_paths_labelknown_paths_widget = QWidget(parent=group)known_paths_widget.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Minimum)known_paths_layout = QVBoxLayout(known_paths_widget)known_paths_layout.setContentsMargins(0, 0, 0, 0)# Add buttons and status labelbutton_layout = QHBoxLayout()self.add_known_path_button = QPushButton("Add...")self.add_known_path_button.clicked.connect(self._on_add_known_path)self.edit_known_path_button = QPushButton("Edit...")self.edit_known_path_button.clicked.connect(self._on_edit_known_path)self.remove_known_path_button = QPushButton("Remove Selected")self.remove_known_path_button.clicked.connect(self._on_remove_known_path)self.known_paths_status = QLabel()button_layout.addWidget(self.add_known_path_button)button_layout.addWidget(self.edit_known_path_button)button_layout.addWidget(self.remove_known_path_button)button_layout.addWidget(self.known_paths_status)known_paths_layout.addLayout(button_layout)# Add path listself.known_paths_list = QListWidget(parent=known_paths_widget)self.known_paths_list.setAlternatingRowColors(True)known_paths_layout.addWidget(self.known_paths_list)layout.addRow(known_paths_label, known_paths_widget)# Add refresh callback for known pathsdef refresh_known_paths():with block_signals(self.known_paths_list):self.known_paths_list.clear()paths_str = config_file.get_setting("settings.known_asset_paths", config=self.config)if paths_str:paths = paths_str.split(os.pathsep)self.known_paths_list.addItems(paths)# Update status labelcount = self.known_paths_list.count()self.known_paths_status.setText(f"{count} paths")self._update_known_paths_buttons()self._refresh_callbacks.append(refresh_known_paths)self.known_paths_list.itemSelectionChanged.connect(self._update_known_paths_buttons) | 2 | 53 | 3 | 341 | 0 | 365 | 445 | 365 | self,group,layout | [] | None | {"Assign": 19, "Expr": 21, "If": 1, "With": 1} | 38 | 81 | 38 | ["layout.setFieldGrowthPolicy", "self._init_checkbox_setting", "self._init_checkbox_setting", "self._init_combobox_setting", "self._init_combobox_setting", "QLabel", "known_paths_label.setToolTip", "QWidget", "known_paths_widget.setSizePolicy", "QVBoxLayout", "known_paths_layout.setContentsMargins", "QHBoxLayout", "QPushButton", "self.add_known_path_button.clicked.connect", "QPushButton", "self.edit_known_path_button.clicked.connect", "QPushButton", "self.remove_known_path_button.clicked.connect", "QLabel", "button_layout.addWidget", "button_layout.addWidget", "button_layout.addWidget", "button_layout.addWidget", "known_paths_layout.addLayout", "QListWidget", "self.known_paths_list.setAlternatingRowColors", "known_paths_layout.addWidget", "layout.addRow", "block_signals", "self.known_paths_list.clear", "config_file.get_setting", "paths_str.split", "self.known_paths_list.addItems", "self.known_paths_list.count", "self.known_paths_status.setText", "self._update_known_paths_buttons", "self._refresh_callbacks.append", "self.known_paths_list.itemSelectionChanged.connect"] | 0 | [] | The function (_build_general_settings_ui) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 365 and ends at 445. It contains 53 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [365.0] and does not return any value. It declares 38.0 functions, and It has 38.0 functions called inside which are ["layout.setFieldGrowthPolicy", "self._init_checkbox_setting", "self._init_checkbox_setting", "self._init_combobox_setting", "self._init_combobox_setting", "QLabel", "known_paths_label.setToolTip", "QWidget", "known_paths_widget.setSizePolicy", "QVBoxLayout", "known_paths_layout.setContentsMargins", "QHBoxLayout", "QPushButton", "self.add_known_path_button.clicked.connect", "QPushButton", "self.edit_known_path_button.clicked.connect", "QPushButton", "self.remove_known_path_button.clicked.connect", "QLabel", "button_layout.addWidget", "button_layout.addWidget", "button_layout.addWidget", "button_layout.addWidget", "known_paths_layout.addLayout", "QListWidget", "self.known_paths_list.setAlternatingRowColors", "known_paths_layout.addWidget", "layout.addRow", "block_signals", "self.known_paths_list.clear", "config_file.get_setting", "paths_str.split", "self.known_paths_list.addItems", "self.known_paths_list.count", "self.known_paths_status.setText", "self._update_known_paths_buttons", "self._refresh_callbacks.append", "self.known_paths_list.itemSelectionChanged.connect"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _init_checkbox_setting.refresh_checkbox | def refresh_checkbox():"""Function that refreshes the state of the checkbox based on the setting name"""with block_signals(checkbox):try:state = str2bool(config_file.get_setting(setting_name, config=self.config))except ValueError as e:logger.warning(f"{e} for '{setting_name}'")state = Falsecheckbox.setChecked(state) | 2 | 8 | 0 | 51 | 0 | 467 | 475 | 467 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_init_checkbox_setting.refresh_checkbox) defined within the public class called public.The function start at line 467 and ends at 475. 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 | _init_checkbox_setting.checkbox_changed | def checkbox_changed(new_state: int):"""Callback for if the state of a given checkbox has changed"""value = str(checkbox.isChecked())self.changes[setting_name] = valueself.refresh() | 1 | 4 | 1 | 31 | 0 | 479 | 483 | 479 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_init_checkbox_setting.checkbox_changed) defined within the public class called public.The function start at line 479 and ends at 483. 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.. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _init_checkbox_setting | def _init_checkbox_setting(self, group: QWidget, layout: QFormLayout, setting_name: str, label_text: str) -> QCheckBox:"""Creates a checkbox setting and adds it to the specified group and layout. This function also connects statechange logic, refresh logic, and logic to save the setting in the config file.Args:group (QWidget): The parent of the checkboxlayout (QFormLayout): The layout to add a row to for the checkboxsetting_name (str): The setting name as provided to the config. E.g. "settings.foo_bar"label_text (str): The displayed description. E.g. "Foo Bar"Returns:QCheckBox: The created checkbox."""checkbox = QCheckBox(parent=group)label = self.labels[setting_name] = QLabel(label_text)layout.addRow(label, checkbox)def refresh_checkbox():"""Function that refreshes the state of the checkbox based on the setting name"""with block_signals(checkbox):try:state = str2bool(config_file.get_setting(setting_name, config=self.config))except ValueError as e:logger.warning(f"{e} for '{setting_name}'")state = Falsecheckbox.setChecked(state)self._refresh_callbacks.append(refresh_checkbox)def checkbox_changed(new_state: int):"""Callback for if the state of a given checkbox has changed"""value = str(checkbox.isChecked())self.changes[setting_name] = valueself.refresh()checkbox.stateChanged.connect(checkbox_changed)return checkbox | 1 | 11 | 5 | 75 | 0 | 447 | 487 | 447 | self,group,layout,setting_name,label_text | [] | QCheckBox | {"Assign": 6, "Expr": 9, "Return": 1, "Try": 1, "With": 1} | 13 | 41 | 13 | ["QCheckBox", "QLabel", "layout.addRow", "block_signals", "str2bool", "config_file.get_setting", "logger.warning", "checkbox.setChecked", "self._refresh_callbacks.append", "str", "checkbox.isChecked", "self.refresh", "checkbox.stateChanged.connect"] | 0 | [] | The function (_init_checkbox_setting) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 447 and ends at 487. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [447.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functions called inside which are ["QCheckBox", "QLabel", "layout.addRow", "block_signals", "str2bool", "config_file.get_setting", "logger.warning", "checkbox.setChecked", "self._refresh_callbacks.append", "str", "checkbox.isChecked", "self.refresh", "checkbox.stateChanged.connect"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _init_combobox_setting.refresh_combo_box | def refresh_combo_box():"""Function that refreshes the state of the combo box based on the setting name"""with block_signals(combo_box):value = config_file.get_setting(setting_name, config=self.config)if value not in values:default = get_setting_default(setting_name, config=self.config)logger.warning(f"'{value}' is not one of {values}. Defaulting to '{default}'.")value = defaultcombo_box.setCurrentText(value) | 2 | 8 | 0 | 59 | 0 | 516 | 524 | 516 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_init_combobox_setting.refresh_combo_box) defined within the public class called public.The function start at line 516 and ends at 524. 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 | _init_combobox_setting.combo_box_changed | def combo_box_changed(new_value):"""Callback for if the state of a given checkbox has changed"""self.changes[setting_name] = new_valueself.refresh() | 1 | 3 | 1 | 19 | 0 | 526 | 529 | 526 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_init_combobox_setting.combo_box_changed) defined within the public class called public.The function start at line 526 and ends at 529. 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.. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _init_combobox_setting | def _init_combobox_setting(self,group: QWidget,layout: QFormLayout,setting_name: str,label_text: str,values: List[str],):"""Creates a combobox setting and adds it to the specified group and layout. This function also connects statechange logic, refresh logic, and logic to save the setting in the config file.Args:group (QWidget): The parent of the comboboxlayout (QFormLayout): The layout to add a row to for the comboboxsetting_name (str): The setting name as provided to the config. E.g. "settings.foo_bar"label_text (str): The displayed description. E.g. "Foo Bar"values (List[str]): The list of values that can be selected. E.g. ["Option A", "Option B"]Returns:QComboBox: The created combobox."""label = QLabel(label_text)combo_box = QComboBox(parent=group)layout.addRow(label, combo_box)combo_box.addItems(values)def refresh_combo_box():"""Function that refreshes the state of the combo box based on the setting name"""with block_signals(combo_box):value = config_file.get_setting(setting_name, config=self.config)if value not in values:default = get_setting_default(setting_name, config=self.config)logger.warning(f"'{value}' is not one of {values}. Defaulting to '{default}'.")value = defaultcombo_box.setCurrentText(value)def combo_box_changed(new_value):"""Callback for if the state of a given checkbox has changed"""self.changes[setting_name] = new_valueself.refresh()combo_box.currentTextChanged.connect(combo_box_changed)self._refresh_callbacks.append(refresh_combo_box) | 1 | 16 | 6 | 78 | 0 | 489 | 533 | 489 | self,group,layout,setting_name,label_text,values | [] | None | {"Assign": 6, "Expr": 10, "If": 1, "With": 1} | 12 | 45 | 12 | ["QLabel", "QComboBox", "layout.addRow", "combo_box.addItems", "block_signals", "config_file.get_setting", "get_setting_default", "logger.warning", "combo_box.setCurrentText", "self.refresh", "combo_box.currentTextChanged.connect", "self._refresh_callbacks.append"] | 0 | [] | The function (_init_combobox_setting) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 489 and ends at 533. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [489.0] and does not return any value. It declares 12.0 functions, and It has 12.0 functions called inside which are ["QLabel", "QComboBox", "layout.addRow", "combo_box.addItems", "block_signals", "config_file.get_setting", "get_setting_default", "logger.warning", "combo_box.setCurrentText", "self.refresh", "combo_box.currentTextChanged.connect", "self._refresh_callbacks.append"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _init_combobox_setting_with_tooltips.refresh_combo_box | def refresh_combo_box():"""Function that refreshes the state of the combo box based on the setting name"""with block_signals(combo_box):value = config_file.get_setting(setting_name, config=self.config)values = list(values_with_tooltips.keys())if value not in values:default = get_setting_default(setting_name, config=self.config)logger.warning(f"'{value}' is not one of {values}. Defaulting to '{default}'.")value = defaultcombo_box.setCurrentText(value)combo_box.setToolTip(values_with_tooltips[value]) | 2 | 10 | 0 | 78 | 0 | 579 | 589 | 579 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_init_combobox_setting_with_tooltips.refresh_combo_box) defined within the public class called public.The function start at line 579 and ends at 589. It contains 10 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 | _init_combobox_setting_with_tooltips.combo_box_changed | def combo_box_changed(new_value):"""Callback for if the state of a given checkbox has changed"""self.changes[setting_name] = new_valueself.refresh() | 1 | 3 | 1 | 19 | 0 | 591 | 594 | 591 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_init_combobox_setting_with_tooltips.combo_box_changed) defined within the public class called public.The function start at line 591 and ends at 594. 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.. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _init_combobox_setting_with_tooltips | def _init_combobox_setting_with_tooltips(self,group: QWidget,layout: QFormLayout,setting_name: str,label_text: str,label_tooltip: str,values_with_tooltips: Dict[str, str],):"""Creates and adds a combo box setting to the given group and layout, similar to `_init_combobox_setting`method. This method differentiates itself by adding tooltips for label and combo box items. Also,appends an (PySide6's built-in) Information icon at the label end to indicate tooltip availability.Args:group (QWidget): The parent of the comboboxlayout (QFormLayout): The layout to add a row to for the comboboxsetting_name (str): The setting name as provided to the config. E.g. "settings.foo_bar"label_text (str): The displayed description. E.g. "Foo Bar"label_tooltip (str): The tooltip for the label.values_with_tooltips (Dict[str, str]): The list of values that can be selected, along with theirtooltips. E.g. {"Option A": "If A is selected, ...", "Option B": "If B is selected, ..."}"""label = QLabel(label_text)icon_label = QLabel()icon = QApplication.style().standardIcon(QStyle.SP_MessageBoxInformation)icon_label.setPixmap(icon.pixmap(16, 16))icon_label.setToolTip(label_tooltip)combo_box = QComboBox(parent=group)row_layout = QHBoxLayout()row_layout.addWidget(label)row_layout.addWidget(icon_label)row_layout.addWidget(combo_box)row_layout.setStretchFactor(combo_box, 1)row_layout.setAlignment(Qt.AlignLeft | Qt.AlignVCenter)layout.addRow(row_layout)for index, (value, tooltip) in enumerate(values_with_tooltips.items()):combo_box.addItem(value)combo_box.setItemData(index, tooltip, Qt.ToolTipRole)def refresh_combo_box():"""Function that refreshes the state of the combo box based on the setting name"""with block_signals(combo_box):value = config_file.get_setting(setting_name, config=self.config)values = list(values_with_tooltips.keys())if value not in values:default = get_setting_default(setting_name, config=self.config)logger.warning(f"'{value}' is not one of {values}. Defaulting to '{default}'.")value = defaultcombo_box.setCurrentText(value)combo_box.setToolTip(values_with_tooltips[value])def combo_box_changed(new_value):"""Callback for if the state of a given checkbox has changed"""self.changes[setting_name] = new_valueself.refresh()combo_box.currentTextChanged.connect(combo_box_changed)self._refresh_callbacks.append(refresh_combo_box) | 2 | 29 | 7 | 193 | 0 | 535 | 598 | 535 | self,group,layout,setting_name,label_text,label_tooltip,values_with_tooltips | [] | None | {"Assign": 10, "Expr": 19, "For": 1, "If": 1, "With": 1} | 30 | 64 | 30 | ["QLabel", "QLabel", "standardIcon", "QApplication.style", "icon_label.setPixmap", "icon.pixmap", "icon_label.setToolTip", "QComboBox", "QHBoxLayout", "row_layout.addWidget", "row_layout.addWidget", "row_layout.addWidget", "row_layout.setStretchFactor", "row_layout.setAlignment", "layout.addRow", "enumerate", "values_with_tooltips.items", "combo_box.addItem", "combo_box.setItemData", "block_signals", "config_file.get_setting", "list", "values_with_tooltips.keys", "get_setting_default", "logger.warning", "combo_box.setCurrentText", "combo_box.setToolTip", "self.refresh", "combo_box.currentTextChanged.connect", "self._refresh_callbacks.append"] | 0 | [] | The function (_init_combobox_setting_with_tooltips) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 535 and ends at 598. It contains 29 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [535.0] and does not return any value. It declares 30.0 functions, and It has 30.0 functions called inside which are ["QLabel", "QLabel", "standardIcon", "QApplication.style", "icon_label.setPixmap", "icon.pixmap", "icon_label.setToolTip", "QComboBox", "QHBoxLayout", "row_layout.addWidget", "row_layout.addWidget", "row_layout.addWidget", "row_layout.setStretchFactor", "row_layout.setAlignment", "layout.addRow", "enumerate", "values_with_tooltips.items", "combo_box.addItem", "combo_box.setItemData", "block_signals", "config_file.get_setting", "list", "values_with_tooltips.keys", "get_setting_default", "logger.warning", "combo_box.setCurrentText", "combo_box.setToolTip", "self.refresh", "combo_box.currentTextChanged.connect", "self._refresh_callbacks.append"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | handle_background_exception | def handle_background_exception(self, title, e):QMessageBox.warning(self, title, f"Encountered an error:\n{e}")# type: ignore[call-arg] | 1 | 2 | 3 | 20 | 0 | 600 | 601 | 600 | self,title,e | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["QMessageBox.warning"] | 0 | [] | The function (handle_background_exception) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 600 and ends at 601. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [600.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["QMessageBox.warning"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _fill_aws_profiles_box | def _fill_aws_profiles_box(self):# Use boto3 directly with no profile, so we don't get an error# if the configured profile does not exist.try:session = boto3.Session()aws_profile_names = ["(default)",*(namefor name in session._session.full_config["profiles"].keys()if name != "default"),]except ProfileNotFound:logger.exception("Failed to create boto3.Session for AWS profile list")aws_profile_names = [f"{NOT_VALID_MARKER} <failed to retrieve AWS profile names>"]self.aws_profile_names = aws_profile_nameswith block_signals(self.aws_profiles_box):self.aws_profiles_box.addItems(list(self.aws_profile_names)) | 4 | 17 | 1 | 85 | 0 | 603 | 622 | 603 | self | [] | None | {"Assign": 4, "Expr": 2, "Try": 1, "With": 1} | 6 | 20 | 6 | ["boto3.Session", "keys", "logger.exception", "block_signals", "self.aws_profiles_box.addItems", "list"] | 0 | [] | The function (_fill_aws_profiles_box) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 603 and ends at 622. It contains 17 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["boto3.Session", "keys", "logger.exception", "block_signals", "self.aws_profiles_box.addItems", "list"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | refresh_lists | def refresh_lists(self):if api.check_deadline_api_available():self.default_farm_box.refresh_list()self.default_queue_box.refresh_list()self.default_storage_profile_box.refresh_list() | 2 | 5 | 1 | 33 | 0 | 624 | 628 | 624 | self | [] | None | {"Expr": 3, "If": 1} | 4 | 5 | 4 | ["api.check_deadline_api_available", "self.default_farm_box.refresh_list", "self.default_queue_box.refresh_list", "self.default_storage_profile_box.refresh_list"] | 0 | [] | The function (refresh_lists) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 624 and ends at 628. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["api.check_deadline_api_available", "self.default_farm_box.refresh_list", "self.default_queue_box.refresh_list", "self.default_storage_profile_box.refresh_list"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | refresh | def refresh(self):"""Refreshes all the configuration UI elements from the current config."""# Make self.config be a deep copy of the config, with changes appliedself.config = ConfigParser()self.config.read_dict(config_file.read_config())for setting_name, value in self.changes.items():config_file.set_setting(setting_name, value, self.config)self.default_farm_box.set_config(self.config)self.default_queue_box.set_config(self.config)self.default_storage_profile_box.set_config(self.config)with block_signals(self.aws_profiles_box):aws_profile_name = config_file.get_setting("defaults.aws_profile_name", config=self.config)# Change the values representing the default to the UI value representing the defaultif aws_profile_name in ("(default)", "default", ""):aws_profile_name = "(default)"elif aws_profile_name not in self.aws_profile_names:aws_profile_name = f"{NOT_VALID_MARKER} {aws_profile_name}"index = self.aws_profiles_box.findText(aws_profile_name, Qt.MatchFixedString)if index >= 0:self.aws_profiles_box.setCurrentIndex(index)else:self.aws_profiles_box.insertItem(0, aws_profile_name)self.aws_profiles_box.setCurrentIndex(0)with block_signals(self.job_history_dir_edit):job_history_dir = config_file.get_setting("settings.job_history_dir", config=self.config)self.job_history_dir_edit.setText(job_history_dir)self.default_farm_box.refresh_selected_id()for refresh_callback in self._refresh_callbacks:refresh_callback()self.default_queue_box.refresh_selected_id()self.default_storage_profile_box.refresh_selected_id()# Put an orange box around the labels for any settings that are changedfor setting_name, label in self.labels.items():if setting_name in self.changes:label.setStyleSheet("border: 1px solid orange;")else:label.setStyleSheet("")self.refreshed.emit() | 8 | 38 | 1 | 277 | 0 | 630 | 680 | 630 | self | [] | None | {"Assign": 6, "Expr": 17, "For": 3, "If": 4, "With": 2} | 25 | 51 | 25 | ["ConfigParser", "self.config.read_dict", "config_file.read_config", "self.changes.items", "config_file.set_setting", "self.default_farm_box.set_config", "self.default_queue_box.set_config", "self.default_storage_profile_box.set_config", "block_signals", "config_file.get_setting", "self.aws_profiles_box.findText", "self.aws_profiles_box.setCurrentIndex", "self.aws_profiles_box.insertItem", "self.aws_profiles_box.setCurrentIndex", "block_signals", "config_file.get_setting", "self.job_history_dir_edit.setText", "self.default_farm_box.refresh_selected_id", "refresh_callback", "self.default_queue_box.refresh_selected_id", "self.default_storage_profile_box.refresh_selected_id", "self.labels.items", "label.setStyleSheet", "label.setStyleSheet", "self.refreshed.emit"] | 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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateActionManuallyAbort.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateActionMoved.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateActionRedo.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestLinkAction.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestLinkActionMoved.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestLinkActionRedo.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestSelectAfterBufferSwitch.execute"] | The function (refresh) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 630 and ends at 680. It contains 38 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value. It declares 25.0 functions, It has 25.0 functions called inside which are ["ConfigParser", "self.config.read_dict", "config_file.read_config", "self.changes.items", "config_file.set_setting", "self.default_farm_box.set_config", "self.default_queue_box.set_config", "self.default_storage_profile_box.set_config", "block_signals", "config_file.get_setting", "self.aws_profiles_box.findText", "self.aws_profiles_box.setCurrentIndex", "self.aws_profiles_box.insertItem", "self.aws_profiles_box.setCurrentIndex", "block_signals", "config_file.get_setting", "self.job_history_dir_edit.setText", "self.default_farm_box.refresh_selected_id", "refresh_callback", "self.default_queue_box.refresh_selected_id", "self.default_storage_profile_box.refresh_selected_id", "self.labels.items", "label.setStyleSheet", "label.setStyleSheet", "self.refreshed.emit"], It has 9.0 functions calling this function which are ["_.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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateActionManuallyAbort.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateActionMoved.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateActionRedo.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestLinkAction.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestLinkActionMoved.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestLinkActionRedo.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestSelectAfterBufferSwitch.execute"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | apply | def apply(self) -> bool:"""Apply all the settings that the user has changed into the config file.Returns True if the settings were applied, False otherwise."""# We need to retrieve here as changing Queue's won't update.self.changes["settings.storage_profile_id"] = (self.default_storage_profile_box.box.currentData())for setting_name, value in self.changes.items():if value.startswith(NOT_VALID_MARKER):QMessageBox.warning(# type: ignore[call-arg]self,"Apply changes",f"Cannot apply changes, {value} is not valid for setting {setting_name}",)return Falseself.config = config_file.read_config()for setting_name, value in self.changes.items():config_file.set_setting(setting_name, value, self.config)root.setLevel(config_file.get_setting("settings.log_level"))api.get_deadline_cloud_library_telemetry_client().set_opt_out(config=self.config)# Only update self.changes_were_applied if false. We don't want to invalidate that a change has# occurred if the user repeatedly hits "Apply" or hits "Apply" and then "Save".if not self.changes_were_applied:self.changes_were_applied = len(self.changes) > 0self.changes.clear()config_file.write_config(self.config)# Refresh the GUI (writing the config file should cause this, but do this redundantly to make sure)self.refresh()return True | 5 | 23 | 1 | 160 | 0 | 682 | 722 | 682 | self | [] | bool | {"Assign": 3, "Expr": 8, "For": 2, "If": 2, "Return": 2} | 15 | 41 | 15 | ["self.default_storage_profile_box.box.currentData", "self.changes.items", "value.startswith", "QMessageBox.warning", "config_file.read_config", "self.changes.items", "config_file.set_setting", "root.setLevel", "config_file.get_setting", "set_opt_out", "api.get_deadline_cloud_library_telemetry_client", "len", "self.changes.clear", "config_file.write_config", "self.refresh"] | 96 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.mim_py.Collection.__find_and_modify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.mim_py.Database._handle_mapreduce", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3722273_tflearn_tflearn.examples.others.recommender_wide_and_deep_py.TFLearnWideAndDeep.load_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3722273_tflearn_tflearn.tflearn.data_flow_py.FeedDictFlow.fill_feed_dict_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3722273_tflearn_tflearn.tflearn.helpers.evaluator_py.Evaluator.predict", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.uiautomator2.ext.perf.__init___py.Perf.csv2images", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.calendar_utils_py._cal_WMQY_range", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.market_calendar_py.MarketCalendar.schedule_from_days", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961496_nonebot_nonebot.testing.internal.test_helpers_py.Test_separate_async_funcs.test_builtin_partial", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961496_nonebot_nonebot.testing.internal.test_helpers_py.Test_separate_async_funcs.test_class_def", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964638_python_restx_flask_restx.flask_restx.mask_py.apply", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.cli.csparc2star_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.metadata.cryosparc0_py.cryosparc_065_csv2star", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.metadata.cryosparc2_py.cryosparc_2_cs_movie_parameters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.metadata.cryosparc2_py.parse_cryosparc_2_cs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.star.star_py.augment_star_ucsf", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.star.star_py.decode_byte_strings", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.star.star_py.replace_field_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.degraded.condor_cpu_efficiency_py.format_df", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.gr._ligrec_py.PermutationTestABC._filter_interactions_complexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.gr._niche_py._get_nhood_profile_niches", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.gr._niche_py.calculate_niche", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.pl._interactive._utils_py._position_cluster_labels", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_groupby_apply", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_types_groupby"] | The function (apply) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 682 and ends at 722. It contains 23 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 15.0 functions, It has 15.0 functions called inside which are ["self.default_storage_profile_box.box.currentData", "self.changes.items", "value.startswith", "QMessageBox.warning", "config_file.read_config", "self.changes.items", "config_file.set_setting", "root.setLevel", "config_file.get_setting", "set_opt_out", "api.get_deadline_cloud_library_telemetry_client", "len", "self.changes.clear", "config_file.write_config", "self.refresh"], It has 96.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.mim_py.Collection.__find_and_modify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.mim_py.Database._handle_mapreduce", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3722273_tflearn_tflearn.examples.others.recommender_wide_and_deep_py.TFLearnWideAndDeep.load_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3722273_tflearn_tflearn.tflearn.data_flow_py.FeedDictFlow.fill_feed_dict_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3722273_tflearn_tflearn.tflearn.helpers.evaluator_py.Evaluator.predict", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.uiautomator2.ext.perf.__init___py.Perf.csv2images", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.calendar_utils_py._cal_WMQY_range", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.market_calendar_py.MarketCalendar.schedule_from_days", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961496_nonebot_nonebot.testing.internal.test_helpers_py.Test_separate_async_funcs.test_builtin_partial", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961496_nonebot_nonebot.testing.internal.test_helpers_py.Test_separate_async_funcs.test_class_def", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964638_python_restx_flask_restx.flask_restx.mask_py.apply", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.cli.csparc2star_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.metadata.cryosparc0_py.cryosparc_065_csv2star", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.metadata.cryosparc2_py.cryosparc_2_cs_movie_parameters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.metadata.cryosparc2_py.parse_cryosparc_2_cs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.star.star_py.augment_star_ucsf", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.star.star_py.decode_byte_strings", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.star.star_py.replace_field_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.degraded.condor_cpu_efficiency_py.format_df", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.gr._ligrec_py.PermutationTestABC._filter_interactions_complexes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.gr._niche_py._get_nhood_profile_niches", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.gr._niche_py.calculate_niche", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.pl._interactive._utils_py._position_cluster_labels", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_groupby_apply", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_types_groupby"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | aws_profile_changed | def aws_profile_changed(self, value):self.changes["defaults.aws_profile_name"] = valueself.default_farm_box.clear_list()self.default_queue_box.clear_list()self.default_storage_profile_box.clear_list()self.refresh() | 1 | 6 | 2 | 41 | 0 | 724 | 729 | 724 | self,value | [] | None | {"Assign": 1, "Expr": 4} | 4 | 6 | 4 | ["self.default_farm_box.clear_list", "self.default_queue_box.clear_list", "self.default_storage_profile_box.clear_list", "self.refresh"] | 0 | [] | The function (aws_profile_changed) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 724 and ends at 729. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [724.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.default_farm_box.clear_list", "self.default_queue_box.clear_list", "self.default_storage_profile_box.clear_list", "self.refresh"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | job_history_dir_changed | def job_history_dir_changed(self):job_history_dir = self.job_history_dir_edit.text()# Only apply the change if the text was actually editedif job_history_dir != config_file.get_setting("settings.job_history_dir", config=self.config):self.changes["settings.job_history_dir"] = job_history_dirself.refresh() | 2 | 7 | 1 | 43 | 0 | 731 | 738 | 731 | self | [] | None | {"Assign": 2, "Expr": 1, "If": 1} | 3 | 8 | 3 | ["self.job_history_dir_edit.text", "config_file.get_setting", "self.refresh"] | 0 | [] | The function (job_history_dir_changed) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 731 and ends at 738. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.job_history_dir_edit.text", "config_file.get_setting", "self.refresh"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | default_farm_changed | def default_farm_changed(self, index):self.changes["defaults.farm_id"] = self.default_farm_box.box.itemData(index)self.refresh()self.default_queue_box.refresh_list()self.default_storage_profile_box.refresh_list() | 1 | 5 | 2 | 43 | 0 | 740 | 744 | 740 | self,index | [] | None | {"Assign": 1, "Expr": 3} | 4 | 5 | 4 | ["self.default_farm_box.box.itemData", "self.refresh", "self.default_queue_box.refresh_list", "self.default_storage_profile_box.refresh_list"] | 0 | [] | The function (default_farm_changed) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 740 and ends at 744. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [740.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.default_farm_box.box.itemData", "self.refresh", "self.default_queue_box.refresh_list", "self.default_storage_profile_box.refresh_list"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | default_queue_changed | def default_queue_changed(self, index):self.changes["defaults.queue_id"] = self.default_queue_box.box.itemData(index)self.refresh()self.default_storage_profile_box.refresh_list() | 1 | 4 | 2 | 36 | 0 | 746 | 749 | 746 | self,index | [] | None | {"Assign": 1, "Expr": 2} | 3 | 4 | 3 | ["self.default_queue_box.box.itemData", "self.refresh", "self.default_storage_profile_box.refresh_list"] | 0 | [] | The function (default_queue_changed) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 746 and ends at 749. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [746.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.default_queue_box.box.itemData", "self.refresh", "self.default_storage_profile_box.refresh_list"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | default_storage_profile_name_changed | def default_storage_profile_name_changed(self, index):self.changes["settings.storage_profile_id"] = self.default_storage_profile_box.box.itemData(index)self.refresh() | 1 | 5 | 2 | 29 | 0 | 751 | 755 | 751 | self,index | [] | None | {"Assign": 1, "Expr": 1} | 2 | 5 | 2 | ["self.default_storage_profile_box.box.itemData", "self.refresh"] | 0 | [] | The function (default_storage_profile_name_changed) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 751 and ends at 755. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [751.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.default_storage_profile_box.box.itemData", "self.refresh"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _on_add_known_path | def _on_add_known_path(self):"""Handle adding a new known path"""path = QFileDialog.getExistingDirectory(self, "Select a directory to add to known asset paths", os.path.expanduser("~"))if path:# Normalize pathpath = os.path.normpath(path)# Get current pathscurrent_paths = []for i in range(self.known_paths_list.count()):current_paths.append(self.known_paths_list.item(i).text())# Only add if not already in listif path not in current_paths:self.known_paths_list.addItem(path)# Update configcurrent_paths.append(path)self.changes["settings.known_asset_paths"] = os.pathsep.join(current_paths)self.refresh() | 4 | 14 | 1 | 113 | 0 | 757 | 778 | 757 | self | [] | None | {"Assign": 4, "Expr": 5, "For": 1, "If": 2} | 12 | 22 | 12 | ["QFileDialog.getExistingDirectory", "os.path.expanduser", "os.path.normpath", "range", "self.known_paths_list.count", "current_paths.append", "text", "self.known_paths_list.item", "self.known_paths_list.addItem", "current_paths.append", "os.pathsep.join", "self.refresh"] | 0 | [] | The function (_on_add_known_path) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 757 and ends at 778. It contains 14 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 12.0 functions, and It has 12.0 functions called inside which are ["QFileDialog.getExistingDirectory", "os.path.expanduser", "os.path.normpath", "range", "self.known_paths_list.count", "current_paths.append", "text", "self.known_paths_list.item", "self.known_paths_list.addItem", "current_paths.append", "os.pathsep.join", "self.refresh"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _on_remove_known_path | def _on_remove_known_path(self):"""Handle removing the selected known path"""current_row = self.known_paths_list.currentRow()if current_row >= 0:self.known_paths_list.takeItem(current_row)# Update configcurrent_paths = []for i in range(self.known_paths_list.count()):current_paths.append(self.known_paths_list.item(i).text())self.changes["settings.known_asset_paths"] = os.pathsep.join(current_paths)self.refresh() | 3 | 9 | 1 | 83 | 0 | 780 | 791 | 780 | self | [] | None | {"Assign": 3, "Expr": 4, "For": 1, "If": 1} | 9 | 12 | 9 | ["self.known_paths_list.currentRow", "self.known_paths_list.takeItem", "range", "self.known_paths_list.count", "current_paths.append", "text", "self.known_paths_list.item", "os.pathsep.join", "self.refresh"] | 0 | [] | The function (_on_remove_known_path) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 780 and ends at 791. It contains 9 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 9.0 functions, and It has 9.0 functions called inside which are ["self.known_paths_list.currentRow", "self.known_paths_list.takeItem", "range", "self.known_paths_list.count", "current_paths.append", "text", "self.known_paths_list.item", "os.pathsep.join", "self.refresh"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _update_known_paths_buttons | def _update_known_paths_buttons(self):"""Enable/disable edit and remove buttons based on selection"""has_selection = self.known_paths_list.currentRow() >= 0self.edit_known_path_button.setEnabled(has_selection)self.remove_known_path_button.setEnabled(has_selection) | 1 | 4 | 1 | 33 | 0 | 793 | 797 | 793 | self | [] | None | {"Assign": 1, "Expr": 3} | 3 | 5 | 3 | ["self.known_paths_list.currentRow", "self.edit_known_path_button.setEnabled", "self.remove_known_path_button.setEnabled"] | 0 | [] | The function (_update_known_paths_buttons) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 793 and ends at 797. 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.0 functions, and It has 3.0 functions called inside which are ["self.known_paths_list.currentRow", "self.edit_known_path_button.setEnabled", "self.remove_known_path_button.setEnabled"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | _on_edit_known_path | def _on_edit_known_path(self):"""Handle editing the selected known path"""current_row = self.known_paths_list.currentRow()if current_row >= 0:current_path = self.known_paths_list.item(current_row).text()path = QFileDialog.getExistingDirectory(self,"Select a directory to replace the selected path",current_path if os.path.exists(current_path) else os.path.expanduser("~"),)if path:# Normalize pathpath = os.path.normpath(path)# Only update if path changedif path != current_path:# Get current pathscurrent_paths = []for i in range(self.known_paths_list.count()):if i != current_row:# Skip the path being editedcurrent_paths.append(self.known_paths_list.item(i).text())# Only add if not already in listif path not in current_paths:self.known_paths_list.item(current_row).setText(path)current_paths.insert(current_row, path)self.changes["settings.known_asset_paths"] = os.pathsep.join(current_paths)self.refresh() | 8 | 21 | 1 | 170 | 0 | 799 | 827 | 799 | self | [] | None | {"Assign": 6, "Expr": 5, "For": 1, "If": 5} | 17 | 29 | 17 | ["self.known_paths_list.currentRow", "text", "self.known_paths_list.item", "QFileDialog.getExistingDirectory", "os.path.exists", "os.path.expanduser", "os.path.normpath", "range", "self.known_paths_list.count", "current_paths.append", "text", "self.known_paths_list.item", "setText", "self.known_paths_list.item", "current_paths.insert", "os.pathsep.join", "self.refresh"] | 0 | [] | The function (_on_edit_known_path) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 799 and ends at 827. It contains 21 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value. It declares 17.0 functions, and It has 17.0 functions called inside which are ["self.known_paths_list.currentRow", "text", "self.known_paths_list.item", "QFileDialog.getExistingDirectory", "os.path.exists", "os.path.expanduser", "os.path.normpath", "range", "self.known_paths_list.count", "current_paths.append", "text", "self.known_paths_list.item", "setText", "self.known_paths_list.item", "current_paths.insert", "os.pathsep.join", "self.refresh"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | __init__ | def __init__(self, resource_name, setting_name, parent=None):super().__init__(parent)self.__refresh_thread = Noneself.__refresh_id = 0self.canceled = CancelationFlag()self.destroyed.connect(self.canceled.set_canceled)self.resource_name = resource_nameself.setting_name = setting_nameself._build_ui() | 1 | 9 | 4 | 65 | 0 | 851 | 862 | 851 | 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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"] | The function (__init__) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 851 and ends at 862. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [851.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"], It has 4993.0 functions calling this function which are ["_.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_py.TgScheduler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.AmountMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.CalculatedAmountDiscrepancyError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ExchangeRateMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.InvalidTransactionError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.ParsingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.PriceMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.QuantityNotPositiveError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.SymbolMissingError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedColumnCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.exceptions_py.UnexpectedRowCountError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.raw_py.RawTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_equity_award_json_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.schwab_py.SchwabTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.trading212_py.Trading212Transaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16798231_kapji_capital_gains_calculator.cgt_calc.parsers.vanguard_py.VanguardTransaction.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.ExporterError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordFileDoesNotExistError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.config.exceptions_py.FritzPasswordTooLongError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.DeviceInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HomeAutomation.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostInfo.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.HostNumberOfEntries.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18106662_pdreker_fritz_exporter.fritzexporter.fritzcapabilities_py.LanInterfaceConfig.__init__"]. |
aws-deadline_deadline-cloud | DeadlineConfigDialog | public | 0 | 1 | _build_ui | def _build_ui(self):self.box = QComboBox(parent=self)layout = QHBoxLayout(self)layout.setContentsMargins(0, 0, 0, 0)layout.addWidget(self.box, stretch=1)self.refresh_button = QPushButton("")layout.addWidget(self.refresh_button)self.refresh_button.setIcon(QApplication.style().standardIcon(QStyle.SP_BrowserReload))self.refresh_button.setFixedSize(QSize(22, 22))# Make the button squareself.refresh_button.clicked.connect(self.refresh_list)self._list_update.connect(self.handle_list_update)self.background_exception.connect(self.handle_background_exception) | 1 | 12 | 1 | 125 | 0 | 864 | 876 | 864 | self | [] | None | {"Assign": 5, "Expr": 16} | 21 | 39 | 21 | ["QVBoxLayout", "DeadlineWorkstationConfigWidget", "DeadlineScrollArea", "self.scrollArea.setWidget", "self.scrollArea.setWidgetResizable", "self.scrollArea.setSizePolicy", "self.scrollArea.setStyleSheet", "self.layout.addWidget", "self.config_box.refreshed.connect", "DeadlineAuthenticationStatusWidget", "self.layout.addWidget", "self.deadline_authentication_status.deadline_config_changed.connect", "self.deadline_authentication_status.api_availability_changed.connect", "QDialogButtonBox", "self.button_box.accepted.connect", "self.button_box.rejected.connect", "self.button_box.clicked.connect", "self.auth_status_box.logout_clicked.connect", "self.auth_status_box.login_clicked.connect", "self.layout.addWidget", "self.config_box.refresh_lists"] | 0 | [] | The function (_build_ui) defined within the public class called DeadlineConfigDialog, that inherit another class.The function start at line 864 and ends at 876. It contains 12 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 21.0 functions, and It has 21.0 functions called inside which are ["QVBoxLayout", "DeadlineWorkstationConfigWidget", "DeadlineScrollArea", "self.scrollArea.setWidget", "self.scrollArea.setWidgetResizable", "self.scrollArea.setSizePolicy", "self.scrollArea.setStyleSheet", "self.layout.addWidget", "self.config_box.refreshed.connect", "DeadlineAuthenticationStatusWidget", "self.layout.addWidget", "self.deadline_authentication_status.deadline_config_changed.connect", "self.deadline_authentication_status.api_availability_changed.connect", "QDialogButtonBox", "self.button_box.accepted.connect", "self.button_box.rejected.connect", "self.button_box.clicked.connect", "self.auth_status_box.logout_clicked.connect", "self.auth_status_box.login_clicked.connect", "self.layout.addWidget", "self.config_box.refresh_lists"]. |
aws-deadline_deadline-cloud | DeadlineWorkstationConfigWidget | public | 0 | 1 | handle_background_exception | def handle_background_exception(self, e):with block_signals(self.box):self.box.clear()self.refresh_selected_id() | 1 | 4 | 2 | 27 | 0 | 878 | 881 | 878 | self,title,e | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["QMessageBox.warning"] | 0 | [] | The function (handle_background_exception) defined within the public class called DeadlineWorkstationConfigWidget, that inherit another class.The function start at line 878 and ends at 881. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [878.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["QMessageBox.warning"]. |
aws-deadline_deadline-cloud | _DeadlineResourceListComboBox | protected | 0 | 1 | count | def count(self) -> int:"""Returns the number of items in the combobox"""return self.box.count() | 1 | 2 | 1 | 16 | 0 | 883 | 885 | 883 | self | [] | int | {"Expr": 1, "Return": 1} | 1 | 3 | 1 | ["self.box.count"] | 183 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_sep_py.test_count_multiline_rows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_change_status_impossible_from_this_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_edit_project_from_its_creator", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_edit_project_impossible_from_this_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_edit_project_with_not_logged_in_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_edit_status_of_project_user_has_permissions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_master_can_edit_status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_master_cannot_edit_project", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_show_project_by_id", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.protocols.tests_py.ProtocolTest.test_all_protocol_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.protocols.tests_py.ProtocolTest.test_showing_members_of_institution", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.reports.tests_py.ReportTest.test_listing_page_of_reports", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.stats.views_py.overview", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.utils.tests_py.FiltersTestCase.filter_test_helper", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_managers_py.PermittedObjectsTestCase.test_build_permitted_objects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_managers_py.PermittedObjectsTestCase.test_build_result_permitted_objects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_managers_py.PermittedObjectsTestCase.test_project_permitted_objects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_models_py.BuildTestCase.test_start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_models_py.ProjectTestCase.test_update_members", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.projects.test_managers_py.ProjectManagerTests.test_project_permitted_objects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_branch_push_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_force_push_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_ping_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_pull_request_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_pull_request_handling_message"] | The function (count) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 883 and ends at 885. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["self.box.count"], It has 183.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_sep_py.test_count_multiline_rows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_change_status_impossible_from_this_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_edit_project_from_its_creator", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_edit_project_impossible_from_this_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_edit_project_with_not_logged_in_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_edit_status_of_project_user_has_permissions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_master_can_edit_status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_master_cannot_edit_project", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.projects.tests_py.ProjectTest.test_show_project_by_id", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.protocols.tests_py.ProtocolTest.test_all_protocol_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.protocols.tests_py.ProtocolTest.test_showing_members_of_institution", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3504621_hackfmi_diaphanum.reports.tests_py.ReportTest.test_listing_page_of_reports", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.stats.views_py.overview", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.utils.tests_py.FiltersTestCase.filter_test_helper", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_managers_py.PermittedObjectsTestCase.test_build_permitted_objects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_managers_py.PermittedObjectsTestCase.test_build_result_permitted_objects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_managers_py.PermittedObjectsTestCase.test_project_permitted_objects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_models_py.BuildTestCase.test_start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.builds.test_models_py.ProjectTestCase.test_update_members", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.projects.test_managers_py.ProjectManagerTests.test_project_permitted_objects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_branch_push_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_force_push_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_ping_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_pull_request_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.webhooks.test_views_py.GithubWebhookViewTests.test_pull_request_handling_message"]. |
aws-deadline_deadline-cloud | _DeadlineResourceListComboBox | protected | 0 | 1 | set_config | def set_config(self, config: ConfigParser) -> None:"""Updates the AWS Deadline Cloud config object the control uses."""self.config = config | 1 | 2 | 2 | 17 | 0 | 887 | 889 | 887 | self,config | [] | None | {"Assign": 1, "Expr": 1} | 0 | 3 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94480858_sktime_skbase.skbase.tests.test_base_py.test_nested_config_after_clone_tags"] | The function (set_config) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 887 and ends at 889. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [887.0] and does not return any value. It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94480858_sktime_skbase.skbase.tests.test_base_py.test_nested_config_after_clone_tags"]. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.