project_name
string
class_name
string
class_modifiers
string
class_implements
int64
class_extends
int64
function_name
string
function_body
string
cyclomatic_complexity
int64
NLOC
int64
num_parameter
int64
num_token
int64
num_variable
int64
start_line
int64
end_line
int64
function_index
int64
function_params
string
function_variable
string
function_return_type
string
function_body_line_type
string
function_num_functions
int64
function_num_lines
int64
outgoing_function_count
int64
outgoing_function_names
string
incoming_function_count
int64
incoming_function_names
string
lexical_representation
string
aws-deadline_deadline-cloud
_DeadlineResourceListComboBox
protected
0
1
clear_list
def clear_list(self):"""Fully clears the list. The caller needs to call either`refresh_list` or `refresh_selected_id` at a later pointto finish it."""with block_signals(self.box):self.box.clear()
1
3
1
21
0
891
898
891
self
[]
None
{"Expr": 2, "With": 1}
2
8
2
["block_signals", "self.box.clear"]
0
[]
The function (clear_list) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 891 and ends at 898. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["block_signals", "self.box.clear"].
aws-deadline_deadline-cloud
_DeadlineResourceListComboBox
protected
0
1
refresh_list
def refresh_list(self):"""Starts a background thread to refresh the resource list."""config = self.configselected_id = config_file.get_setting(self.setting_name, config=config)# Reset to a list of just the currently configured id during refreshwith block_signals(self.box):self.box.clear()self.box.addItem("<refreshing>", userData=selected_id)self.__refresh_id += 1self.__refresh_thread = threading.Thread(target=self._refresh_thread_function,name=f"AWS Deadline Cloud refresh {self.resource_name} thread",args=(self.__refresh_id, config),)self.__refresh_thread.start()
1
13
1
94
0
900
917
900
self
[]
None
{"Assign": 3, "AugAssign": 1, "Expr": 4, "With": 1}
6
18
6
["config_file.get_setting", "block_signals", "self.box.clear", "self.box.addItem", "threading.Thread", "self.__refresh_thread.start"]
0
[]
The function (refresh_list) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 900 and ends at 917. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["config_file.get_setting", "block_signals", "self.box.clear", "self.box.addItem", "threading.Thread", "self.__refresh_thread.start"].
aws-deadline_deadline-cloud
_DeadlineResourceListComboBox
protected
0
1
handle_list_update
def handle_list_update(self, refresh_id, items_list):# Apply the refresh if it's still for the latest callif refresh_id == self.__refresh_id:with block_signals(self.box):self.box.clear()for name, id in items_list:self.box.addItem(name, userData=id)self.refresh_selected_id()
3
7
3
55
0
919
927
919
self,refresh_id,items_list
[]
None
{"Expr": 3, "For": 1, "If": 1, "With": 1}
4
9
4
["block_signals", "self.box.clear", "self.box.addItem", "self.refresh_selected_id"]
0
[]
The function (handle_list_update) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 919 and ends at 927. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [919.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["block_signals", "self.box.clear", "self.box.addItem", "self.refresh_selected_id"].
aws-deadline_deadline-cloud
_DeadlineResourceListComboBox
protected
0
1
refresh_selected_id
def refresh_selected_id(self):"""Refreshes the selected id from the config object"""selected_id = config_file.get_setting(self.setting_name, config=self.config)# Restore the selected Id, inserting a new item if# it doesn't exist in the list.with block_signals(self.box):index = self.box.findData(selected_id)if index >= 0:self.box.setCurrentIndex(index)else:# Some cases allow to select "nothing" and insert an item to indicate suchindex = self.box.findText("<none selected>")if index >= 0:self.box.setCurrentIndex(index)else:self.box.insertItem(0, "<none selected>", userData="")self.box.setCurrentIndex(0)
3
13
1
102
0
929
945
929
self
[]
None
{"Assign": 3, "Expr": 5, "If": 2, "With": 1}
8
17
8
["config_file.get_setting", "block_signals", "self.box.findData", "self.box.setCurrentIndex", "self.box.findText", "self.box.setCurrentIndex", "self.box.insertItem", "self.box.setCurrentIndex"]
0
[]
The function (refresh_selected_id) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 929 and ends at 945. It contains 13 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["config_file.get_setting", "block_signals", "self.box.findData", "self.box.setCurrentIndex", "self.box.findText", "self.box.setCurrentIndex", "self.box.insertItem", "self.box.setCurrentIndex"].
aws-deadline_deadline-cloud
_DeadlineResourceListComboBox
protected
0
1
_refresh_thread_function
def _refresh_thread_function(self, refresh_id: int, config: Optional[ConfigParser] = None):"""This function gets started in a background thread to refresh the list."""try:resources = self.list_resources(config=config)if not self.canceled:self._list_update.emit(refresh_id, resources)except BaseException as e:if not self.canceled and refresh_id == self.__refresh_id:self.background_exception.emit(f"Refresh {self.resource_name}s list", e)
5
8
3
75
0
947
957
947
self,refresh_id,config
[]
None
{"Assign": 1, "Expr": 3, "If": 2, "Try": 1}
3
11
3
["self.list_resources", "self._list_update.emit", "self.background_exception.emit"]
0
[]
The function (_refresh_thread_function) defined within the protected class called _DeadlineResourceListComboBox, that inherit another class.The function start at line 947 and ends at 957. It contains 8 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [947.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.list_resources", "self._list_update.emit", "self.background_exception.emit"].
aws-deadline_deadline-cloud
DeadlineConfigDialog
public
0
1
__init__
def __init__(self, parent=None):super().__init__(resource_name="Farm", setting_name="defaults.farm_id", parent=parent)
1
2
2
27
0
961
962
961
self,parent
[]
None
{"Assign": 1, "Expr": 3}
5
8
5
["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 961 and ends at 962. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [961.0] and does not return any value. It declares 5.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
DeadlineFarmListComboBox
public
0
1
list_resources
def list_resources(self, config: Optional[ConfigParser]):response = api.list_farms(config=config)return sorted([(item["displayName"], item["farmId"]) for item in response["farms"]],key=lambda item: (item[0].casefold(), item[1]),)
2
6
2
68
0
964
969
964
self,config
[]
Returns
{"Assign": 1, "Return": 1}
3
6
3
["api.list_farms", "sorted", "casefold"]
0
[]
The function (list_resources) defined within the public class called DeadlineFarmListComboBox, that inherit another class.The function start at line 964 and ends at 969. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [964.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["api.list_farms", "sorted", "casefold"].
aws-deadline_deadline-cloud
DeadlineConfigDialog
public
0
1
__init__
def __init__(self, parent=None):super().__init__(resource_name="Farm", setting_name="defaults.farm_id", parent=parent)
1
2
2
27
0
973
974
961
self,parent
[]
None
{"Assign": 1, "Expr": 3}
5
8
5
["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 973 and ends at 974. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [961.0] and does not return any value. It declares 5.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
DeadlineFarmListComboBox
public
0
1
list_resources
def list_resources(self, config: Optional[ConfigParser]):default_farm_id = config_file.get_setting("defaults.farm_id", config=config)if default_farm_id:response = api.list_queues(config=config, farmId=default_farm_id)return sorted([(item["displayName"], item["queueId"]) for item in response["queues"]],key=lambda item: (item[0].casefold(), item[1]),)else:return []
3
10
2
92
0
976
985
976
self,config
[]
Returns
{"Assign": 1, "Return": 1}
3
6
3
["api.list_farms", "sorted", "casefold"]
0
[]
The function (list_resources) defined within the public class called DeadlineFarmListComboBox, that inherit another class.The function start at line 976 and ends at 985. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [976.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["api.list_farms", "sorted", "casefold"].
aws-deadline_deadline-cloud
DeadlineConfigDialog
public
0
1
__init__
def __init__(self, parent=None):super().__init__(resource_name="Storage profile",setting_name="settings.storage_profile_id",parent=parent,)
1
6
2
28
0
993
998
993
self,parent
[]
None
{"Assign": 1, "Expr": 3}
5
8
5
["__init__", "super", "self.setWindowTitle", "DeadlineAuthenticationStatus.getInstance", "self._build_ui"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 993 and ends at 998. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [993.0] and does not return any value. It declares 5.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
DeadlineFarmListComboBox
public
0
1
list_resources
def list_resources(self, config: Optional[ConfigParser]):default_farm_id = config_file.get_setting("defaults.farm_id", config=config)default_queue_id = config_file.get_setting("defaults.queue_id", config=config)if default_farm_id and default_queue_id:response = api.list_storage_profiles_for_queue(config=config, farmId=default_farm_id, queueId=default_queue_id)storage_profiles = response.get("storageProfiles", [])# add a "<none selected>" option since its possible to select nothing for this type# of resourcestorage_profiles.append({"storageProfileId": "","displayName": "<none selected>","osFamily": self._get_current_os(),})return sorted([(item["displayName"], item["storageProfileId"])for item in storage_profilesif self._get_current_os() == item["osFamily"].lower()],key=lambda item: (item[0].casefold(), item[1]),)else:return []
5
25
2
156
0
1,000
1,026
1,000
self,config
[]
Returns
{"Assign": 1, "Return": 1}
3
6
3
["api.list_farms", "sorted", "casefold"]
0
[]
The function (list_resources) defined within the public class called DeadlineFarmListComboBox, that inherit another class.The function start at line 1000 and ends at 1026. It contains 25 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [1000.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["api.list_farms", "sorted", "casefold"].
aws-deadline_deadline-cloud
DeadlineStorageProfileNameListComboBox
public
0
1
_get_current_os
def _get_current_os(self) -> str:"""Get a string specifying what the OS is, following the format the Deadline storage profile API expects."""if sys.platform.startswith("linux"):return self.LINUX_OSif sys.platform.startswith("darwin"):return self.MAC_OSif sys.platform.startswith("win"):return self.WINDOWS_OSreturn "Unknown"
4
8
1
52
0
1,028
1,041
1,028
self
[]
str
{"Expr": 1, "If": 3, "Return": 4}
3
14
3
["sys.platform.startswith", "sys.platform.startswith", "sys.platform.startswith"]
0
[]
The function (_get_current_os) defined within the public class called DeadlineStorageProfileNameListComboBox, that inherit another class.The function start at line 1028 and ends at 1041. It contains 8 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["sys.platform.startswith", "sys.platform.startswith", "sys.platform.startswith"].
aws-deadline_deadline-cloud
DeadlineLoginDialog
public
0
1
login
def login(parent=None,force_refresh=False,close_on_success=True,config: Optional[ConfigParser] = None,) -> bool:"""Static method that runs the Deadline Login Dialog. Returns True fora successful login, False otherwise.Args:force_refresh (bool, default False): Forces a re-login even when already authorized.close_on_success (bool, default True): Closes the dialog on successful login, instead of showing a "successfully logged in" message.config (ConfigParser, optional): The AWS Deadline Cloud configurationobject to use instead of the config file."""deadline_login = DeadlineLoginDialog(parent=parent,close_on_success=close_on_success,config=config,)return deadline_login.exec_()
1
12
4
51
0
52
74
52
parent,force_refresh,close_on_success,config
[]
bool
{"Assign": 1, "Expr": 1, "Return": 1}
2
23
2
["DeadlineLoginDialog", "deadline_login.exec_"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.test_login_py.test_client_is_independent_of_pykube_incluster", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688162_zalando_incubator_kopf.tests.authentication.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.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dev_application_py.DevMainWindow.login", "_.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.on_login", "_.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_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 DeadlineLoginDialog, that inherit another class.The function start at line 52 and ends at 74. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [52.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["DeadlineLoginDialog", "deadline_login.exec_"], It has 14.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.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dev_application_py.DevMainWindow.login", "_.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.on_login", "_.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_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
DeadlineLoginDialog
public
0
1
__init__
def __init__(self,parent=None,close_on_success=True,config: Optional[ConfigParser] = None,) -> None:super().__init__(parent=parent)self.close_on_success = close_on_successself.config = configself.canceled = Falseself.__login_thread: Optional[threading.Thread] = Noneself.login_thread_exception.connect(self.handle_login_thread_exception)self.login_thread_message.connect(self.handle_login_thread_message)self.login_thread_succeeded.connect(self.handle_login_thread_succeeded)self.buttonClicked.connect(self.on_button_clicked)self.setWindowTitle("Log in to AWS Deadline Cloud")self.setText("Logging you in...")self.setStandardButtons(QMessageBox.Cancel)self._start_login()
1
19
4
127
0
76
97
76
self,parent,close_on_success,config
[]
None
{"AnnAssign": 1, "Assign": 3, "Expr": 9}
10
22
10
["__init__", "super", "self.login_thread_exception.connect", "self.login_thread_message.connect", "self.login_thread_succeeded.connect", "self.buttonClicked.connect", "self.setWindowTitle", "self.setText", "self.setStandardButtons", "self._start_login"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 DeadlineLoginDialog, that inherit another class.The function start at line 76 and ends at 97. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [76.0] and does not return any value. It declares 10.0 functions, It has 10.0 functions called inside which are ["__init__", "super", "self.login_thread_exception.connect", "self.login_thread_message.connect", "self.login_thread_succeeded.connect", "self.buttonClicked.connect", "self.setWindowTitle", "self.setText", "self.setStandardButtons", "self._start_login"], 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
public
public
0
0
_login_background_thread.on_pending_authorization
def on_pending_authorization(**kwargs):if (kwargs["credentials_source"]== AwsCredentialsSource.DEADLINE_CLOUD_MONITOR_LOGIN):self.login_thread_message.emit("Opening Deadline Cloud monitor. Please log in before returning here.")
2
8
1
26
0
107
114
107
null
[]
None
null
0
0
0
null
0
null
The function (_login_background_thread.on_pending_authorization) defined within the public class called public.The function start at line 107 and ends at 114. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
public
public
0
0
_login_background_thread.on_cancellation_check
def on_cancellation_check():return self.canceled
1
2
0
8
0
116
117
116
null
[]
None
null
0
0
0
null
0
null
The function (_login_background_thread.on_cancellation_check) defined within the public class called public.The function start at line 116 and ends at 117. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
DeadlineLoginDialog
public
0
1
_login_background_thread
def _login_background_thread(self):"""This function gets started in a background thread to run the login handshake. Itpolls the `self.canceled` flag for cancellation, and fills in details about thelogin when they become available."""try:def on_pending_authorization(**kwargs):if (kwargs["credentials_source"]== AwsCredentialsSource.DEADLINE_CLOUD_MONITOR_LOGIN):self.login_thread_message.emit("Opening Deadline Cloud monitor. Please log in before returning here.")def on_cancellation_check():return self.canceledsuccess_message = api.login(on_pending_authorization,on_cancellation_check,config=self.config,)self.login_thread_succeeded.emit(success_message)except BaseException as e:# Send the exception to the dialogself.login_thread_exception.emit(e)
2
12
1
50
0
99
127
99
self
[]
Returns
{"Assign": 1, "Expr": 4, "If": 1, "Return": 1, "Try": 1}
4
29
4
["self.login_thread_message.emit", "api.login", "self.login_thread_succeeded.emit", "self.login_thread_exception.emit"]
0
[]
The function (_login_background_thread) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 99 and ends at 127. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.login_thread_message.emit", "api.login", "self.login_thread_succeeded.emit", "self.login_thread_exception.emit"].
aws-deadline_deadline-cloud
DeadlineLoginDialog
public
0
1
_start_login
def _start_login(self) -> None:"""Starts the background login thread."""self.__login_thread = threading.Thread(target=self._login_background_thread, name="AWS Deadline Cloud login thread")self.__login_thread.start()
1
5
1
33
0
129
137
129
self
[]
None
{"Assign": 1, "Expr": 2}
2
9
2
["threading.Thread", "self.__login_thread.start"]
0
[]
The function (_start_login) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 129 and ends at 137. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["threading.Thread", "self.__login_thread.start"].
aws-deadline_deadline-cloud
DeadlineLoginDialog
public
0
1
handle_login_thread_exception
def handle_login_thread_exception(self, e: BaseException) -> None:"""Handles the signal sent from the background login thread whenan exception is thrown."""self.setStandardButtons(QMessageBox.Close)self.setIcon(QMessageBox.Warning)self.setText(f"Failed to log in to AWS Deadline Cloud:<br/><br/>{html.escape(str(e))}")
1
4
2
35
0
139
146
139
self,e
[]
None
{"Expr": 4}
5
8
5
["self.setStandardButtons", "self.setIcon", "self.setText", "html.escape", "str"]
0
[]
The function (handle_login_thread_exception) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 139 and ends at 146. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [139.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self.setStandardButtons", "self.setIcon", "self.setText", "html.escape", "str"].
aws-deadline_deadline-cloud
DeadlineLoginDialog
public
0
1
handle_login_thread_message
def handle_login_thread_message(self, message: str) -> None:"""Handles the signal sent from the background login thread whenthe message needs to be set."""self.setText(message)
1
2
2
18
0
148
153
148
self,message
[]
None
{"Expr": 2}
1
6
1
["self.setText"]
0
[]
The function (handle_login_thread_message) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 148 and ends at 153. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [148.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.setText"].
aws-deadline_deadline-cloud
DeadlineLoginDialog
public
0
1
handle_login_thread_succeeded
def handle_login_thread_succeeded(self, success_message: str) -> None:"""Handles the signal sent from the background login thread whenthe login has succeeded."""if self.close_on_success:# Effectively clicks on "OK"self.accept()else:self.setStandardButtons(QMessageBox.Ok)self.setIcon(QMessageBox.Information)self.setText(f"Successfully logged into: <br/><br/>{html.escape(success_message)}")
2
7
2
47
0
155
166
155
self,success_message
[]
None
{"Expr": 5, "If": 1}
5
12
5
["self.accept", "self.setStandardButtons", "self.setIcon", "self.setText", "html.escape"]
0
[]
The function (handle_login_thread_succeeded) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 155 and ends at 166. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [155.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self.accept", "self.setStandardButtons", "self.setIcon", "self.setText", "html.escape"].
aws-deadline_deadline-cloud
DeadlineLoginDialog
public
0
1
on_button_clicked
def on_button_clicked(self, button):if self.standardButton(button) == QMessageBox.Cancel:# Tell the login thread to cancel, then wait for it.self.canceled = Trueif self.__login_thread:while self.__login_thread.is_alive():QApplication.instance().processEvents()# type: ignore[union-attr]
4
6
2
47
0
168
174
168
self,button
[]
None
{"Assign": 1, "Expr": 1, "If": 2, "While": 1}
4
7
4
["self.standardButton", "self.__login_thread.is_alive", "processEvents", "QApplication.instance"]
0
[]
The function (on_button_clicked) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 168 and ends at 174. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [168.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.standardButton", "self.__login_thread.is_alive", "processEvents", "QApplication.instance"].
aws-deadline_deadline-cloud
DeadlineLoginDialog
public
0
1
exec_
def exec_(self) -> bool:"""Runs the modal login dialog, returning True if the login wassuccessful, False otherwise."""return super().exec_() == QMessageBox.Ok
1
2
1
20
0
176
181
176
self
[]
bool
{"Expr": 1, "Return": 1}
2
6
2
["exec_", "super"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.PgctlApp.log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.pgctl_poll_ready", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.service_py.Service.foreground", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_login_dialog_py.DeadlineLoginDialog.exec_", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py.SubmitJobProgressDialog.exec_"]
The function (exec_) defined within the public class called DeadlineLoginDialog, that inherit another class.The function start at line 176 and ends at 181. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["exec_", "super"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.PgctlApp.log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.pgctl_poll_ready", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.service_py.Service.foreground", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_login_dialog_py.DeadlineLoginDialog.exec_", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py.SubmitJobProgressDialog.exec_"].
aws-deadline_deadline-cloud
public
public
0
0
_print_function_callback
def _print_function_callback(cancelation_flag: CancelationFlag, dialog: SubmitJobProgressDialog, message: str):"""Callback for when api.create_job_from_job_bundle prints a message."""if not cancelation_flag:dialog.submission_thread_print.emit(message)
2
5
3
28
0
44
49
44
cancelation_flag,dialog,message
[]
None
{"Expr": 2, "If": 1}
1
6
1
["dialog.submission_thread_print.emit"]
0
[]
The function (_print_function_callback) defined within the public class called public.The function start at line 44 and ends at 49. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [44.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["dialog.submission_thread_print.emit"].
aws-deadline_deadline-cloud
public
public
0
0
_interactive_confirmation_callback
def _interactive_confirmation_callback(cancelation_flag: CancelationFlag,dialog: SubmitJobProgressDialog,message: str,default_response: bool,) -> bool:"""Callback for when api.create_job_from_job_bundle presents a warning to users."""if not cancelation_flag.canceled:# The handler for the submission_thread_request_warning_dialog signal will show# the warning dialog in the main GUI thread, then will set the _warning_dialog_completed# property to True when it is done.dialog._warning_dialog_completed = Falsedialog.submission_thread_request_warning_dialog.emit(message, default_response)while not cancelation_flag.canceled and not dialog._warning_dialog_completed:time.sleep(0.1)return not cancelation_flag.canceled and not dialog._warning_dialog_canceled
5
12
4
73
0
52
67
52
cancelation_flag,dialog,message,default_response
[]
bool
{"Assign": 1, "Expr": 3, "If": 1, "Return": 1, "While": 1}
2
16
2
["dialog.submission_thread_request_warning_dialog.emit", "time.sleep"]
0
[]
The function (_interactive_confirmation_callback) defined within the public class called public.The function start at line 52 and ends at 67. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [52.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["dialog.submission_thread_request_warning_dialog.emit", "time.sleep"].
aws-deadline_deadline-cloud
public
public
0
0
_hashing_progress_callback
def _hashing_progress_callback(cancelation_flag: CancelationFlag,dialog: SubmitJobProgressDialog,progress_report_metadata: ProgressReportMetadata,):"""Callback for when api.create_job_from_job_bundle provides a hashing progress update."""if not cancelation_flag.canceled:dialog.submission_thread_hashing_progress.emit(progress_report_metadata)return not cancelation_flag.canceled
2
8
3
36
0
70
78
70
cancelation_flag,dialog,progress_report_metadata
[]
Returns
{"Expr": 2, "If": 1, "Return": 1}
1
9
1
["dialog.submission_thread_hashing_progress.emit"]
0
[]
The function (_hashing_progress_callback) defined within the public class called public.The function start at line 70 and ends at 78. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [70.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["dialog.submission_thread_hashing_progress.emit"].
aws-deadline_deadline-cloud
public
public
0
0
_upload_progress_callback
def _upload_progress_callback(cancelation_flag: CancelationFlag,dialog: SubmitJobProgressDialog,progress_report_metadata: ProgressReportMetadata,):"""Callback for when api.create_job_from_job_bundle provides an upload progress update."""if not cancelation_flag.canceled:dialog.submission_thread_upload_progress.emit(progress_report_metadata)return not cancelation_flag.canceled
2
8
3
36
0
81
89
81
cancelation_flag,dialog,progress_report_metadata
[]
Returns
{"Expr": 2, "If": 1, "Return": 1}
1
9
1
["dialog.submission_thread_upload_progress.emit"]
0
[]
The function (_upload_progress_callback) defined within the public class called public.The function start at line 81 and ends at 89. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [81.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["dialog.submission_thread_upload_progress.emit"].
aws-deadline_deadline-cloud
public
public
0
0
_create_job_result_callback
def _create_job_result_callback(cancelation_flag: CancelationFlag):"""Callback for when api.create_job_from_job_bundle checks whether to cancel."""return not cancelation_flag.canceled
1
2
1
13
0
92
94
92
cancelation_flag
[]
Returns
{"Expr": 1, "Return": 1}
0
3
0
[]
0
[]
The function (_create_job_result_callback) defined within the public class called public.The function start at line 92 and ends at 94. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
aws-deadline_deadline-cloud
public
public
0
0
_submission_thread_runner
def _submission_thread_runner(cancelation_flag: CancelationFlag, dialog: SubmitJobProgressDialog, kwargs):"""Function to run api.create_job_from_job_bundle in a background thread."""try:job_id = api.create_job_from_job_bundle(**kwargs)if not cancelation_flag.canceled:dialog.job_id = job_iddialog.submission_thread_succeeded.emit(job_id)except Exception as e:if not cancelation_flag.canceled:dialog.submission_thread_exception.emit(e)
4
11
3
63
1
97
108
97
cancelation_flag,dialog,kwargs
['job_id']
None
{"Assign": 2, "Expr": 3, "If": 2, "Try": 1}
3
12
3
["api.create_job_from_job_bundle", "dialog.submission_thread_succeeded.emit", "dialog.submission_thread_exception.emit"]
0
[]
The function (_submission_thread_runner) defined within the public class called public.The function start at line 97 and ends at 108. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [97.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["api.create_job_from_job_bundle", "dialog.submission_thread_succeeded.emit", "dialog.submission_thread_exception.emit"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
__init__
def __init__(self, parent: QWidget) -> None:super().__init__(parent=parent)# Use the CancelationFlag object to decouple the cancelation value# from the window lifetime.self.cancelation_flag = CancelationFlag()self.destroyed.connect(self.cancelation_flag.set_canceled)self._warning_dialog_canceled = Falseself._submission_complete = Falseself.__submission_thread: Optional[threading.Thread] = Noneself.submission_thread_print.connect(self.handle_print)self.submission_thread_hashing_progress.connect(self.handle_hashing_thread_progress_report)self.submission_thread_upload_progress.connect(self.handle_upload_thread_progress_report)self.submission_thread_succeeded.connect(self.handle_create_job_thread_succeeded)self.submission_thread_request_warning_dialog.connect(self.handle_request_warning_dialog)self.submission_thread_exception.connect(self.handle_thread_exception)self._build_ui()
1
14
2
127
0
134
152
134
self,parent
[]
None
{"AnnAssign": 1, "Assign": 3, "Expr": 9}
11
19
11
["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submission_thread_exception.connect", "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 SubmitJobProgressDialog, that inherit another class.The function start at line 134 and ends at 152. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [134.0] and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submission_thread_exception.connect", "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
SubmitJobProgressDialog
public
0
1
start_job_submission
def start_job_submission(self,job_bundle_dir: str,job_parameters: list[dict[str, Any]] = [],**kwargs,) -> None:"""Starts a job submission background thread and returns immediately. It wires upappropriate callbacks and then forwards all arguments.See the documentation for deadline.client.api.create_job_from_job_bundle formore details."""kwargs["job_bundle_dir"] = job_bundle_dirkwargs["job_parameters"] = job_parameterskwargs["from_gui"] = Truekwargs["submitter_name"] = kwargs.get("submitter_name", "CustomGUI")# The CancelationFlag object has a lifetime decoupled from the dialog. Each callback# always checks for cancelation before calling a method or accessing a property of the dialog,# and the Qt object's destroyed event is connected to set its canceled flag.kwargs["print_function_callback"] = partial(_print_function_callback, self.cancelation_flag, self)kwargs["interactive_confirmation_callback"] = partial(_interactive_confirmation_callback, self.cancelation_flag, self)kwargs["hashing_progress_callback"] = partial(_hashing_progress_callback, self.cancelation_flag, self)kwargs["upload_progress_callback"] = partial(_upload_progress_callback, self.cancelation_flag, self)kwargs["create_job_result_callback"] = partial(_create_job_result_callback, self.cancelation_flag)self.__submission_thread = threading.Thread(target=partial(_submission_thread_runner, self.cancelation_flag, self, kwargs),name="AWS Deadline Cloud Job Submission",)self.__submission_thread.start()
1
30
4
170
0
154
196
154
self,job_bundle_dir,job_parameters,**kwargs
[]
None
{"Assign": 10, "Expr": 2}
9
43
9
["kwargs.get", "partial", "partial", "partial", "partial", "partial", "threading.Thread", "partial", "self.__submission_thread.start"]
0
[]
The function (start_job_submission) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 154 and ends at 196. It contains 30 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [154.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["kwargs.get", "partial", "partial", "partial", "partial", "partial", "threading.Thread", "partial", "self.__submission_thread.start"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
_build_ui
def _build_ui(self):"""Builds job submission progress UI"""# Remove help button from title barself.setWindowFlags((self.windowFlags() & ~Qt.WindowContextHelpButtonHint) | Qt.WindowCloseButtonHint)self.lyt = QVBoxLayout(self)self.lyt.setContentsMargins(5, 10, 5, 5)self.setMinimumWidth(600)self.setMinimumHeight(700)self.status_label = QLabel("Preparing files...")self.status_label.setMargin(5)self.hashing_progress = JobAttachmentsProgressWidget(initial_message="Preparing for hashing...", title="Hashing progress", parent=self)self.upload_progress = JobAttachmentsProgressWidget(initial_message="Preparing for upload...", title="Upload progress", parent=self)self.submission_log = QTextEdit()self.submission_log.setReadOnly(True)self.button_box = QDialogButtonBox(Qt.Horizontal)self.button_box.setStandardButtons(QDialogButtonBox.Cancel)self.lyt.setAlignment(Qt.AlignTop)self.lyt.addWidget(self.status_label)self.lyt.addWidget(self.hashing_progress)self.lyt.addWidget(self.upload_progress)self.lyt.addWidget(self.submission_log)self.lyt.addWidget(self.button_box)self.setWindowTitle("AWS Deadline Cloud submission")self.button_box.accepted.connect(self.accept)self.button_box.rejected.connect(self.close)
1
29
1
238
0
198
232
198
self
[]
None
{"Assign": 6, "Expr": 17}
23
35
23
["self.setWindowFlags", "self.windowFlags", "QVBoxLayout", "self.lyt.setContentsMargins", "self.setMinimumWidth", "self.setMinimumHeight", "QLabel", "self.status_label.setMargin", "JobAttachmentsProgressWidget", "JobAttachmentsProgressWidget", "QTextEdit", "self.submission_log.setReadOnly", "QDialogButtonBox", "self.button_box.setStandardButtons", "self.lyt.setAlignment", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.setWindowTitle", "self.button_box.accepted.connect", "self.button_box.rejected.connect"]
0
[]
The function (_build_ui) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 198 and ends at 232. It contains 29 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 23.0 functions, and It has 23.0 functions called inside which are ["self.setWindowFlags", "self.windowFlags", "QVBoxLayout", "self.lyt.setContentsMargins", "self.setMinimumWidth", "self.setMinimumHeight", "QLabel", "self.status_label.setMargin", "JobAttachmentsProgressWidget", "JobAttachmentsProgressWidget", "QTextEdit", "self.submission_log.setReadOnly", "QDialogButtonBox", "self.button_box.setStandardButtons", "self.lyt.setAlignment", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.setWindowTitle", "self.button_box.accepted.connect", "self.button_box.rejected.connect"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
handle_request_warning_dialog
def handle_request_warning_dialog(self, message: str, default_response: bool):"""Presents a dialog with the provided message.Args:message (str): The message to present to the user.default_response (bool):True if the default is to continue. This adds a "Do not ask again" button as well.False if the default is to Cancel."""# Build the UI for user confirmationdialog = _JobSumissionWarningDialog(message, default_response)selection = dialog.exec()if selection == QDialog.Rejected:self._warning_dialog_canceled = Trueself._warning_dialog_completed = True
2
6
3
46
0
234
251
234
self,message,default_response
[]
None
{"Assign": 4, "Expr": 1, "If": 1}
2
18
2
["_JobSumissionWarningDialog", "dialog.exec"]
0
[]
The function (handle_request_warning_dialog) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 234 and ends at 251. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [234.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["_JobSumissionWarningDialog", "dialog.exec"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
handle_print
def handle_print(self, message: str) -> None:"""Handles the signal sent from the background thread to print messagesto the log."""self.submission_log.append(f"{message}\n")
1
2
2
21
0
253
258
253
self,message
[]
None
{"Expr": 2}
1
6
1
["self.submission_log.append"]
0
[]
The function (handle_print) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 253 and ends at 258. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [253.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.submission_log.append"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
handle_hashing_thread_progress_report
def handle_hashing_thread_progress_report(self, progress_metadata: ProgressReportMetadata) -> None:"""Handles the signal sent from the background thread when reportinghashing progress. Sets the progress bar in the dialog based onthe callback progress data from job attachments."""self.hashing_progress.progress_bar.setValue(int(progress_metadata.progress))self.hashing_progress.progress_message.setText(progress_metadata.progressMessage)
1
5
2
39
0
260
269
260
self,progress_metadata
[]
None
{"Expr": 3}
3
10
3
["self.hashing_progress.progress_bar.setValue", "int", "self.hashing_progress.progress_message.setText"]
0
[]
The function (handle_hashing_thread_progress_report) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 260 and ends at 269. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [260.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.hashing_progress.progress_bar.setValue", "int", "self.hashing_progress.progress_message.setText"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
handle_upload_thread_progress_report
def handle_upload_thread_progress_report(self, progress_metadata: ProgressReportMetadata) -> None:"""Handles the signal sent from the background thread when reportingupload progress. Sets the progress bar in the dialog based onthe callback progress data from job attachments."""self.upload_progress.progress_bar.setValue(int(progress_metadata.progress))self.upload_progress.progress_message.setText(progress_metadata.progressMessage)
1
5
2
39
0
271
280
271
self,progress_metadata
[]
None
{"Expr": 3}
3
10
3
["self.upload_progress.progress_bar.setValue", "int", "self.upload_progress.progress_message.setText"]
0
[]
The function (handle_upload_thread_progress_report) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 271 and ends at 280. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [271.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.upload_progress.progress_bar.setValue", "int", "self.upload_progress.progress_message.setText"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
handle_create_job_thread_succeeded
def handle_create_job_thread_succeeded(self, job_id: str) -> None:"""Handles the signal sent from the background CreateJob thread when thejob creation has finished."""if job_id:self._submission_complete = Trueself.status_label.setText("Submission complete")self.button_box.setStandardButtons(QDialogButtonBox.Ok)self.button_box.button(QDialogButtonBox.Ok).setDefault(True)self.button_box.button(QDialogButtonBox.Ok).clicked.connect(self.progress_window_closed.emit)else:if self.cancelation_flag or self._warning_dialog_canceled:self.status_label.setText("Submission canceled")else:self.status_label.setText("Submission error")self.button_box.setStandardButtons(QDialogButtonBox.Close)self.button_box.button(QDialogButtonBox.Close).setDefault(True)
4
16
2
128
0
282
301
282
self,job_id
[]
None
{"Assign": 1, "Expr": 9, "If": 2}
11
20
11
["self.status_label.setText", "self.button_box.setStandardButtons", "setDefault", "self.button_box.button", "clicked.connect", "self.button_box.button", "self.status_label.setText", "self.status_label.setText", "self.button_box.setStandardButtons", "setDefault", "self.button_box.button"]
0
[]
The function (handle_create_job_thread_succeeded) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 282 and ends at 301. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [282.0] and does not return any value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["self.status_label.setText", "self.button_box.setStandardButtons", "setDefault", "self.button_box.button", "clicked.connect", "self.button_box.button", "self.status_label.setText", "self.status_label.setText", "self.button_box.setStandardButtons", "setDefault", "self.button_box.button"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
handle_thread_exception
def handle_thread_exception(self, e: BaseException) -> None:"""Handles the signal sent from the background threads when an exception isthrown."""self.button_box.setStandardButtons(QDialogButtonBox.Close)self.submission_log.append(f"Error occurred: {str(e)}\n")logger.exception(e, exc_info=(type(e), e, e.__traceback__))
1
4
2
52
0
303
310
303
self,e
[]
None
{"Expr": 4}
5
8
5
["self.button_box.setStandardButtons", "self.submission_log.append", "str", "logger.exception", "type"]
0
[]
The function (handle_thread_exception) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 303 and ends at 310. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [303.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self.button_box.setStandardButtons", "self.submission_log.append", "str", "logger.exception", "type"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
closeEvent
def closeEvent(self, event: QCloseEvent) -> None:"""Overrides the closeEvent function to shutdown any running threads beforeclosing the dialog. If the submission is complete then any button, even'X', should result in the dialog being accepted."""self.progress_window_closed.emit()if self._submission_complete:self.accept()else:self.cancelation_flag.set_canceled()logger.info("Canceling submission...")self.status_label.setText("Canceling submission...")if self.__submission_thread is not None:while self.__submission_thread.is_alive():QApplication.instance().processEvents()# type: ignore[union-attr]super().closeEvent(event)
4
12
2
86
0
312
328
312
self,event
[]
None
{"Expr": 8, "If": 2, "While": 1}
10
17
10
["self.progress_window_closed.emit", "self.accept", "self.cancelation_flag.set_canceled", "logger.info", "self.status_label.setText", "self.__submission_thread.is_alive", "processEvents", "QApplication.instance", "closeEvent", "super"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py.SubmitJobProgressDialog.closeEvent"]
The function (closeEvent) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 312 and ends at 328. It contains 12 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [312.0] and does not return any value. It declares 10.0 functions, It has 10.0 functions called inside which are ["self.progress_window_closed.emit", "self.accept", "self.cancelation_flag.set_canceled", "logger.info", "self.status_label.setText", "self.__submission_thread.is_alive", "processEvents", "QApplication.instance", "closeEvent", "super"], 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.submit_job_progress_dialog_py.SubmitJobProgressDialog.closeEvent"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
exec_
def exec_(self) -> Optional[str]:# type: ignore[override]"""Runs the modal job progress dialog, returns the submitted job ID if itwas successful, otherwise None."""if super().exec_() == QDialog.Accepted:return self.job_idreturn None
2
4
1
30
0
330
337
330
self
[]
Optional[str]
{"Expr": 1, "If": 1, "Return": 2}
2
8
2
["exec_", "super"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.PgctlApp.log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.pgctl_poll_ready", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.service_py.Service.foreground", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_login_dialog_py.DeadlineLoginDialog.exec_", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py.SubmitJobProgressDialog.exec_"]
The function (exec_) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 330 and ends at 337. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["exec_", "super"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.PgctlApp.log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.poll_ready_py.pgctl_poll_ready", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.service_py.Service.foreground", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.deadline_login_dialog_py.DeadlineLoginDialog.exec_", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py.SubmitJobProgressDialog.exec_"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
__init__
def __init__(self, *, initial_message: str, title: str, parent: Optional[QWidget] = None):super().__init__(parent=parent, title=title)self.initial_message = initial_messageself._build_ui()
1
4
4
48
0
345
349
345
self,parent
[]
None
{"AnnAssign": 1, "Assign": 3, "Expr": 9}
11
19
11
["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submission_thread_exception.connect", "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 SubmitJobProgressDialog, that inherit another class.The function start at line 345 and ends at 349. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [345.0] and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submission_thread_exception.connect", "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
SubmitJobProgressDialog
public
0
1
_build_ui
def _build_ui(self):self.layout = QFormLayout(self)self.layout.setFieldGrowthPolicy(QFormLayout.AllNonFixedFieldsGrow)self.progress_bar = QProgressBar()self.progress_message = QLabel(self.initial_message)self.layout.addWidget(self.progress_bar)self.layout.addWidget(self.progress_message)
1
7
1
60
0
351
359
351
self
[]
None
{"Assign": 6, "Expr": 17}
23
35
23
["self.setWindowFlags", "self.windowFlags", "QVBoxLayout", "self.lyt.setContentsMargins", "self.setMinimumWidth", "self.setMinimumHeight", "QLabel", "self.status_label.setMargin", "JobAttachmentsProgressWidget", "JobAttachmentsProgressWidget", "QTextEdit", "self.submission_log.setReadOnly", "QDialogButtonBox", "self.button_box.setStandardButtons", "self.lyt.setAlignment", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.setWindowTitle", "self.button_box.accepted.connect", "self.button_box.rejected.connect"]
0
[]
The function (_build_ui) defined within the public class called SubmitJobProgressDialog, that inherit another class.The function start at line 351 and ends at 359. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 23.0 functions, and It has 23.0 functions called inside which are ["self.setWindowFlags", "self.windowFlags", "QVBoxLayout", "self.lyt.setContentsMargins", "self.setMinimumWidth", "self.setMinimumHeight", "QLabel", "self.status_label.setMargin", "JobAttachmentsProgressWidget", "JobAttachmentsProgressWidget", "QTextEdit", "self.submission_log.setReadOnly", "QDialogButtonBox", "self.button_box.setStandardButtons", "self.lyt.setAlignment", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.lyt.addWidget", "self.setWindowTitle", "self.button_box.accepted.connect", "self.button_box.rejected.connect"].
aws-deadline_deadline-cloud
SubmitJobProgressDialog
public
0
1
__init__
def __init__(self, message: str, default_response: bool = False):"""Simple Dialog which functions similar to a QMessageBox, but with a scrollable text area.Args:message (str): The message to present to the user.default_response (bool):True if the default response should be to continue.- This also adds a "Do not ask again" button which will set settings.auto_accept to True.False if the default response should be to Cancel."""super().__init__()self.setWindowTitle("Job Submission Confirmation")self.message = messageself.default_response = default_responseself.buttons = Nonelayout = QVBoxLayout(self)# Top section with icon and titletop_layout = QHBoxLayout()icon_label = QLabel()icon_label.setPixmap(self.style().standardIcon(QStyle.SP_DirIcon if default_response else QStyle.SP_MessageBoxWarning).pixmap(32, 32))top_layout.addWidget(icon_label)title_label = QLabel("Job submission confirmation")title_label.setStyleSheet("font-weight: bold;")top_layout.addWidget(title_label)top_layout.addStretch()layout.addLayout(top_layout, 0)# No stretch for title section# Scrollable Text Areaself.text_edit = QTextEdit()self.text_edit.setPlainText(message)self.text_edit.setReadOnly(True)self.text_edit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)layout.addWidget(self.text_edit, 1)# Stretch factor 1 for text area# Set minimum width and calculate optimal heightself.text_edit.setMinimumWidth(500)self._calculate_optimal_size()self.buttons = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)self.buttons.accepted.connect(self.accept)self.buttons.rejected.connect(self.reject)if default_response:# If the default response is to continue, add the "Do not ask again" buttondont_ask_button = QPushButton("Do not ask again", self)dont_ask_button.clicked.connect(lambda: set_setting("settings.auto_accept", "true"))dont_ask_button.clicked.connect(self.accept)self.buttons.addButton(dont_ask_button, QDialogButtonBox.ActionRole)layout.addWidget(self.buttons)
3
36
3
281
0
367
422
367
self,parent
[]
None
{"AnnAssign": 1, "Assign": 3, "Expr": 9}
11
19
11
["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submission_thread_exception.connect", "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 SubmitJobProgressDialog, that inherit another class.The function start at line 367 and ends at 422. It contains 36 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [367.0] and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["__init__", "super", "CancelationFlag", "self.destroyed.connect", "self.submission_thread_print.connect", "self.submission_thread_hashing_progress.connect", "self.submission_thread_upload_progress.connect", "self.submission_thread_succeeded.connect", "self.submission_thread_request_warning_dialog.connect", "self.submission_thread_exception.connect", "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
_JobSumissionWarningDialog
protected
0
1
_calculate_optimal_size
def _calculate_optimal_size(self):"""Calculate optimal height based on text content and font metrics."""# Get font metrics for the text editfont_metrics = QFontMetrics(self.text_edit.font())# Calculate text width accounting for margins and scrollbartext_width = self.text_edit.minimumWidth() - 40# Account for margins and scrollbar# Calculate the height needed for the texttext_rect = font_metrics.boundingRect(0, 0, text_width, 0, Qt.TextWordWrap, self.message)text_height = text_rect.height()# Add some padding for better appearancepadding = 20optimal_height = text_height + padding# Set reasonable boundsmin_height = 100max_height = 500# Clamp the height to reasonable boundsfinal_height = max(min_height, min(optimal_height, max_height))self.text_edit.setMinimumHeight(min_height)# Set dialog's initial size based on contentdialog_height = final_height + 120# Add space for title and buttonsself.resize(500, dialog_height)
1
13
1
106
0
424
450
424
self
[]
None
{"Assign": 10, "Expr": 3}
9
27
9
["QFontMetrics", "self.text_edit.font", "self.text_edit.minimumWidth", "font_metrics.boundingRect", "text_rect.height", "max", "min", "self.text_edit.setMinimumHeight", "self.resize"]
0
[]
The function (_calculate_optimal_size) defined within the protected class called _JobSumissionWarningDialog, that inherit another class.The function start at line 424 and ends at 450. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["QFontMetrics", "self.text_edit.font", "self.text_edit.minimumWidth", "font_metrics.boundingRect", "text_rect.height", "max", "min", "self.text_edit.setMinimumHeight", "self.resize"].
aws-deadline_deadline-cloud
_JobSumissionWarningDialog
protected
0
1
showEvent
def showEvent(self, event):"""Override showEvent to set the default button after the dialog is shown."""super().showEvent(event)# Set the default button after the dialog is fully shownif self.buttons is not None:# This type check is to make linting passif self.default_response:ok_button = self.buttons.button(QDialogButtonBox.Ok)if ok_button:ok_button.setDefault(True)ok_button.setAutoDefault(True)ok_button.setFocus()else:cancel_button = self.buttons.button(QDialogButtonBox.Cancel)if cancel_button:cancel_button.setDefault(True)cancel_button.setAutoDefault(True)cancel_button.setFocus()
5
15
2
95
0
452
469
452
self,event
[]
None
{"Assign": 2, "Expr": 8, "If": 4}
10
18
10
["showEvent", "super", "self.buttons.button", "ok_button.setDefault", "ok_button.setAutoDefault", "ok_button.setFocus", "self.buttons.button", "cancel_button.setDefault", "cancel_button.setAutoDefault", "cancel_button.setFocus"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py._JobSumissionWarningDialog.showEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.deadline_authentication_status_widget_py.RightAlignedQMenu.showEvent"]
The function (showEvent) defined within the protected class called _JobSumissionWarningDialog, that inherit another class.The function start at line 452 and ends at 469. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [452.0] and does not return any value. It declares 10.0 functions, It has 10.0 functions called inside which are ["showEvent", "super", "self.buttons.button", "ok_button.setDefault", "ok_button.setAutoDefault", "ok_button.setFocus", "self.buttons.button", "cancel_button.setDefault", "cancel_button.setAutoDefault", "cancel_button.setFocus"], 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.ui.dialogs.submit_job_progress_dialog_py._JobSumissionWarningDialog.showEvent", "_.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.RightAlignedQMenu.showEvent"].
aws-deadline_deadline-cloud
_JobSumissionWarningDialog
protected
0
1
sizeHint
def sizeHint(self):"""Return size hint based on content."""# Calculate total dialog height including other widgetsbase_height = 50# Height for title, buttons, and marginstext_height = self.text_edit.minimumHeight()total_height = base_height + text_heightreturn QSize(500, total_height)
1
5
1
30
0
471
478
471
self
[]
Returns
{"Assign": 3, "Expr": 1, "Return": 1}
2
8
2
["self.text_edit.minimumHeight", "QSize"]
0
[]
The function (sizeHint) defined within the protected class called _JobSumissionWarningDialog, that inherit another class.The function start at line 471 and ends at 478. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.text_edit.minimumHeight", "QSize"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
__init__
def __init__(self,*,job_setup_widget_type: type[QWidget],initial_job_settings,initial_shared_parameter_values: dict[str, Any],auto_detected_attachments: AssetReferences,attachments: AssetReferences,on_create_job_bundle_callback: OnCreateJobBundleCallback,parent=None,f=Qt.WindowFlags(),show_host_requirements_tab=False,host_requirements: Optional[HostRequirements] = None,submitter_name: Optional[str] = None,known_asset_paths: Optional[list[str]] = None,):# The Qt.Tool flag makes sure our widget stays in front of the main application windowsuper().__init__(parent=parent, f=f)self.setWindowTitle("Submit to AWS Deadline Cloud")self.setMinimumSize(400, 400)self.job_settings_type = type(initial_job_settings)self.submitter_name = submitter_name or self.job_settings_type().submitter_nameself.on_create_job_bundle_callback = on_create_job_bundle_callbackself.job_id = Noneself.job_history_bundle_dir: Optional[str] = Noneself.deadline_authentication_status = DeadlineAuthenticationStatus.getInstance()self.show_host_requirements_tab = show_host_requirements_tabself.known_asset_paths = known_asset_paths or []self.should_close = Falseself._build_ui(job_setup_widget_type,initial_job_settings,initial_shared_parameter_values,auto_detected_attachments,attachments,host_requirements,)self.gui_update_counter: Any = Noneself.refresh_deadline_settings()
3
38
9
209
0
103
144
103
self,job_setup_widget_type,initial_job_settings,initial_shared_parameter_values,auto_detected_attachments,attachments,on_create_job_bundle_callback,parent,f,show_host_requirements_tab,host_requirements,submitter_name,known_asset_paths
[]
None
{"AnnAssign": 2, "Assign": 8, "Expr": 5}
10
42
10
["Qt.WindowFlags", "__init__", "super", "self.setWindowTitle", "self.setMinimumSize", "type", "self.job_settings_type", "DeadlineAuthenticationStatus.getInstance", "self._build_ui", "self.refresh_deadline_settings"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 SubmitJobToDeadlineDialog, that inherit another class.The function start at line 103 and ends at 144. It contains 38 lines of code and it has a cyclomatic complexity of 3. It takes 9 parameters, represented as [103.0] and does not return any value. It declares 10.0 functions, It has 10.0 functions called inside which are ["Qt.WindowFlags", "__init__", "super", "self.setWindowTitle", "self.setMinimumSize", "type", "self.job_settings_type", "DeadlineAuthenticationStatus.getInstance", "self._build_ui", "self.refresh_deadline_settings"], 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
SubmitJobToDeadlineDialog
public
0
1
_submission_succeeded_signal_receiver
def _submission_succeeded_signal_receiver(self, job_id: str):self.job_id = job_idset_setting("defaults.job_id", job_id)
1
3
2
20
0
146
149
146
self,job_id
[]
None
{"Assign": 1, "Expr": 1}
1
4
1
["set_setting"]
0
[]
The function (_submission_succeeded_signal_receiver) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 146 and ends at 149. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [146.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["set_setting"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
_close_event_receiver
def _close_event_receiver(self):if self.submitter_name != "JobBundle" and self.job_id:self.close()
3
3
1
21
0
151
153
151
self
[]
None
{"Expr": 1, "If": 1}
1
3
1
["self.close"]
0
[]
The function (_close_event_receiver) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 151 and ends at 153. It contains 3 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.close"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
sizeHint
def sizeHint(self):return QSize(540, 700)
1
2
1
12
0
155
156
155
self
[]
Returns
{"Return": 1}
1
2
1
["QSize"]
0
[]
The function (sizeHint) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 155 and ends at 156. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["QSize"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
refresh
def refresh(self,*,job_settings: Optional[Any] = None,auto_detected_attachments: Optional[AssetReferences] = None,attachments: Optional[AssetReferences] = None,load_new_bundle: bool = False,):# Refresh the UI componentsself.refresh_deadline_settings()if (auto_detected_attachments is not None) or (attachments is not None):self.job_attachments.refresh_ui(auto_detected_attachments, attachments)if job_settings is not None:self.job_settings_type = type(job_settings)# Refresh shared job settingsself.shared_job_settings.refresh_ui(job_settings, load_new_bundle)# Refresh job specific settingsif hasattr(self.job_settings, "refresh_ui"):self.job_settings.refresh_ui(job_settings)
5
16
5
113
0
158
177
158
self,job_settings,auto_detected_attachments,attachments,load_new_bundle
[]
None
{"Assign": 1, "Expr": 4, "If": 3}
6
20
6
["self.refresh_deadline_settings", "self.job_attachments.refresh_ui", "type", "self.shared_job_settings.refresh_ui", "hasattr", "self.job_settings.refresh_ui"]
9
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateAction.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.tests.test_selected_py.TestAnnotateActionManually.execute", "_.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 SubmitJobToDeadlineDialog, that inherit another class.The function start at line 158 and ends at 177. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [158.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["self.refresh_deadline_settings", "self.job_attachments.refresh_ui", "type", "self.shared_job_settings.refresh_ui", "hasattr", "self.job_settings.refresh_ui"], 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
SubmitJobToDeadlineDialog
public
0
1
_build_ui
def _build_ui(self,job_setup_widget_type,initial_job_settings,initial_shared_parameter_values,auto_detected_attachments: AssetReferences,attachments: AssetReferences,host_requirements: Optional[HostRequirements],):self.lyt = QVBoxLayout(self)self.lyt.setContentsMargins(5, 5, 5, 5)man_layout = QFormLayout()self.lyt.addLayout(man_layout)self.tabs = QTabWidget()self.lyt.addWidget(self.tabs)self._build_shared_job_settings_tab(initial_job_settings, initial_shared_parameter_values)self._build_job_settings_tab(job_setup_widget_type, initial_job_settings)self._build_job_attachments_tab(auto_detected_attachments, attachments)# Show host requirements only if requested by the constructorif self.show_host_requirements_tab:self._build_host_requirements_tab(host_requirements)self.auth_status_box = DeadlineAuthenticationStatusWidget(self)self.auth_status_box.switch_profile_clicked.connect(self.on_switch_profile_clicked)self.auth_status_box.logout_clicked.connect(self.on_logout)self.auth_status_box.login_clicked.connect(self.on_login)self.lyt.addWidget(self.auth_status_box)self.deadline_authentication_status.api_availability_changed.connect(self.refresh_deadline_settings)# Refresh the submit button enable state once queue parameter status changesself.shared_job_settings.valid_parameters.connect(self._set_submit_button_state)self.button_box = QDialogButtonBox(Qt.Horizontal)self.settings_button = QPushButton("Settings...")self.settings_button.clicked.connect(self.on_settings_button_clicked)self.button_box.addButton(self.settings_button, QDialogButtonBox.ResetRole)self.submit_button = QPushButton("Submit")self.submit_button.clicked.connect(self.on_submit)self.button_box.addButton(self.submit_button, QDialogButtonBox.AcceptRole)self.export_bundle_button = QPushButton("Export bundle")self.export_bundle_button.clicked.connect(self.on_export_bundle)self.button_box.addButton(self.export_bundle_button, QDialogButtonBox.AcceptRole)self.lyt.addWidget(self.button_box)
2
40
7
314
0
179
227
179
self,job_setup_widget_type,initial_job_settings,initial_shared_parameter_values,auto_detected_attachments,attachments,host_requirements
[]
None
{"Assign": 8, "Expr": 20, "If": 1}
28
49
28
["QVBoxLayout", "self.lyt.setContentsMargins", "QFormLayout", "self.lyt.addLayout", "QTabWidget", "self.lyt.addWidget", "self._build_shared_job_settings_tab", "self._build_job_settings_tab", "self._build_job_attachments_tab", "self._build_host_requirements_tab", "DeadlineAuthenticationStatusWidget", "self.auth_status_box.switch_profile_clicked.connect", "self.auth_status_box.logout_clicked.connect", "self.auth_status_box.login_clicked.connect", "self.lyt.addWidget", "self.deadline_authentication_status.api_availability_changed.connect", "self.shared_job_settings.valid_parameters.connect", "QDialogButtonBox", "QPushButton", "self.settings_button.clicked.connect", "self.button_box.addButton", "QPushButton", "self.submit_button.clicked.connect", "self.button_box.addButton", "QPushButton", "self.export_bundle_button.clicked.connect", "self.button_box.addButton", "self.lyt.addWidget"]
0
[]
The function (_build_ui) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 179 and ends at 227. It contains 40 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [179.0] and does not return any value. It declares 28.0 functions, and It has 28.0 functions called inside which are ["QVBoxLayout", "self.lyt.setContentsMargins", "QFormLayout", "self.lyt.addLayout", "QTabWidget", "self.lyt.addWidget", "self._build_shared_job_settings_tab", "self._build_job_settings_tab", "self._build_job_attachments_tab", "self._build_host_requirements_tab", "DeadlineAuthenticationStatusWidget", "self.auth_status_box.switch_profile_clicked.connect", "self.auth_status_box.logout_clicked.connect", "self.auth_status_box.login_clicked.connect", "self.lyt.addWidget", "self.deadline_authentication_status.api_availability_changed.connect", "self.shared_job_settings.valid_parameters.connect", "QDialogButtonBox", "QPushButton", "self.settings_button.clicked.connect", "self.button_box.addButton", "QPushButton", "self.submit_button.clicked.connect", "self.button_box.addButton", "QPushButton", "self.export_bundle_button.clicked.connect", "self.button_box.addButton", "self.lyt.addWidget"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
_set_submit_button_state
def _set_submit_button_state(self):# Enable/disable the Submit button based on whether the# AWS Deadline Cloud API is accessible and the farm+queue are configured.api_available = self.deadline_authentication_status.api_availability is Truefarm_configured = get_setting("defaults.farm_id") != ""queue_configured = get_setting("defaults.queue_id") != ""queue_valid = self.shared_job_settings.is_queue_valid()enable = api_available and farm_configured and queue_configured and queue_validself.submit_button.setEnabled(enable)if not enable:issues = []if not api_available:issues.append("AWS Deadline Cloud API is not accessible. Check your authentication status.")if not farm_configured:issues.append("No farm is configured. Click Settings to select a farm for job submission.")if not queue_configured:issues.append("No queue is configured. Click Settings to select a queue within your farm.")if farm_configured and queue_configured and not queue_valid:issues.append("Queue parameters are not valid. Check Shared job settings tab for details.")self.submit_button.setToolTip("Cannot submit job:\n\n• " + "\n\n• ".join(issues))else:self.submit_button.setToolTip("")
11
28
1
133
0
229
262
229
self
[]
None
{"Assign": 6, "Expr": 7, "If": 5}
11
34
11
["get_setting", "get_setting", "self.shared_job_settings.is_queue_valid", "self.submit_button.setEnabled", "issues.append", "issues.append", "issues.append", "issues.append", "self.submit_button.setToolTip", "join", "self.submit_button.setToolTip"]
0
[]
The function (_set_submit_button_state) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 229 and ends at 262. It contains 28 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["get_setting", "get_setting", "self.shared_job_settings.is_queue_valid", "self.submit_button.setEnabled", "issues.append", "issues.append", "issues.append", "issues.append", "self.submit_button.setToolTip", "join", "self.submit_button.setToolTip"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
refresh_deadline_settings
def refresh_deadline_settings(self):self._set_submit_button_state()self.shared_job_settings.deadline_cloud_settings_box.refresh_setting_controls(self.deadline_authentication_status.api_availability is True)# If necessary, this reloads the queue parametersself.shared_job_settings.refresh_queue_parameters()
1
6
1
33
0
264
271
264
self
[]
None
{"Expr": 3}
3
8
3
["self._set_submit_button_state", "self.shared_job_settings.deadline_cloud_settings_box.refresh_setting_controls", "self.shared_job_settings.refresh_queue_parameters"]
0
[]
The function (refresh_deadline_settings) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 264 and ends at 271. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self._set_submit_button_state", "self.shared_job_settings.deadline_cloud_settings_box.refresh_setting_controls", "self.shared_job_settings.refresh_queue_parameters"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
keyPressEvent
def keyPressEvent(self, event: QKeyEvent) -> None:"""Override to capture any enter/return key presses so that the Submitbutton isn't "pressed" when the enter/return key is."""if event.key() == Qt.Key_Return or event.key() == Qt.Key_Enter:returnsuper().keyPressEvent(event)
3
4
2
42
0
273
280
273
self,event
[]
None
{"Expr": 2, "If": 1, "Return": 1}
4
8
4
["event.key", "event.key", "keyPressEvent", "super"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.pl._interactive._widgets_py.ListWidget.keyPressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.keyPressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.FloatDragSpinBox.keyPressEvent"]
The function (keyPressEvent) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 273 and ends at 280. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [273.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["event.key", "event.key", "keyPressEvent", "super"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.pl._interactive._widgets_py.ListWidget.keyPressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_to_deadline_dialog_py.SubmitJobToDeadlineDialog.keyPressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.FloatDragSpinBox.keyPressEvent"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
_build_shared_job_settings_tab
def _build_shared_job_settings_tab(self, initial_job_settings, initial_shared_parameter_values):self.shared_job_settings_tab = QScrollArea()self.tabs.addTab(self.shared_job_settings_tab, "Shared job settings")self.shared_job_settings = SharedJobSettingsWidget(initial_settings=initial_job_settings,initial_shared_parameter_values=initial_shared_parameter_values,parent=self,)self.shared_job_settings.parameter_changed.connect(self.on_shared_job_parameter_changed)self.shared_job_settings_tab.setWidget(self.shared_job_settings)self.shared_job_settings_tab.setWidgetResizable(True)self.shared_job_settings.parameter_changed.connect(self.on_shared_job_parameter_changed)
1
12
3
89
0
282
293
282
self,initial_job_settings,initial_shared_parameter_values
[]
None
{"Assign": 2, "Expr": 5}
7
12
7
["QScrollArea", "self.tabs.addTab", "SharedJobSettingsWidget", "self.shared_job_settings.parameter_changed.connect", "self.shared_job_settings_tab.setWidget", "self.shared_job_settings_tab.setWidgetResizable", "self.shared_job_settings.parameter_changed.connect"]
0
[]
The function (_build_shared_job_settings_tab) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 282 and ends at 293. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [282.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["QScrollArea", "self.tabs.addTab", "SharedJobSettingsWidget", "self.shared_job_settings.parameter_changed.connect", "self.shared_job_settings_tab.setWidget", "self.shared_job_settings_tab.setWidgetResizable", "self.shared_job_settings.parameter_changed.connect"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
_build_job_settings_tab
def _build_job_settings_tab(self, job_setup_widget_type, initial_job_settings):self.job_settings_tab = QScrollArea()self.tabs.addTab(self.job_settings_tab, "Job-specific settings")self.job_settings_tab.setWidgetResizable(True)self.job_settings = job_setup_widget_type(initial_settings=initial_job_settings, parent=self)self.job_settings_tab.setWidget(self.job_settings)if hasattr(self.job_settings, "parameter_changed"):self.job_settings.parameter_changed.connect(self.on_job_template_parameter_changed)
2
10
3
82
0
295
305
295
self,job_setup_widget_type,initial_job_settings
[]
None
{"Assign": 2, "Expr": 4, "If": 1}
7
11
7
["QScrollArea", "self.tabs.addTab", "self.job_settings_tab.setWidgetResizable", "job_setup_widget_type", "self.job_settings_tab.setWidget", "hasattr", "self.job_settings.parameter_changed.connect"]
0
[]
The function (_build_job_settings_tab) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 295 and ends at 305. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [295.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["QScrollArea", "self.tabs.addTab", "self.job_settings_tab.setWidgetResizable", "job_setup_widget_type", "self.job_settings_tab.setWidget", "hasattr", "self.job_settings.parameter_changed.connect"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
_build_job_attachments_tab
def _build_job_attachments_tab(self, auto_detected_attachments: AssetReferences, attachments: AssetReferences):self.job_attachments_tab = QScrollArea()self.tabs.addTab(self.job_attachments_tab, "Job attachments")self.job_attachments = JobAttachmentsWidget(auto_detected_attachments, attachments, parent=self)self.job_attachments_tab.setWidget(self.job_attachments)self.job_attachments_tab.setWidgetResizable(True)
1
10
3
64
0
307
316
307
self,auto_detected_attachments,attachments
[]
None
{"Assign": 2, "Expr": 3}
5
10
5
["QScrollArea", "self.tabs.addTab", "JobAttachmentsWidget", "self.job_attachments_tab.setWidget", "self.job_attachments_tab.setWidgetResizable"]
0
[]
The function (_build_job_attachments_tab) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 307 and ends at 316. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [307.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["QScrollArea", "self.tabs.addTab", "JobAttachmentsWidget", "self.job_attachments_tab.setWidget", "self.job_attachments_tab.setWidgetResizable"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
_build_host_requirements_tab
def _build_host_requirements_tab(self, host_requirements: Optional[HostRequirements]):self.host_requirements = HostRequirementsWidget()self.host_requirements_tab = QScrollArea()self.tabs.addTab(self.host_requirements_tab, "Host requirements")self.host_requirements_tab.setWidget(self.host_requirements)self.host_requirements_tab.setWidgetResizable(True)if host_requirements:self.host_requirements.set_requirements(host_requirements)
2
8
2
67
0
318
325
318
self,host_requirements
[]
None
{"Assign": 2, "Expr": 4, "If": 1}
6
8
6
["HostRequirementsWidget", "QScrollArea", "self.tabs.addTab", "self.host_requirements_tab.setWidget", "self.host_requirements_tab.setWidgetResizable", "self.host_requirements.set_requirements"]
0
[]
The function (_build_host_requirements_tab) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 318 and ends at 325. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [318.0] and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["HostRequirementsWidget", "QScrollArea", "self.tabs.addTab", "self.host_requirements_tab.setWidget", "self.host_requirements_tab.setWidgetResizable", "self.host_requirements.set_requirements"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
on_shared_job_parameter_changed
def on_shared_job_parameter_changed(self, parameter: dict[str, Any]):"""Handles an edit to a shared job parameter, for example one of thequeue parameters.When a queue parameter and a job template parameter havethe same name, we update between them to keep them consistent."""try:if hasattr(self.job_settings, "set_parameter_value"):with block_signals(self.job_settings):self.job_settings.set_parameter_value(parameter)except KeyError:# If there is no corresponding job template parameter,# just ignore it.pass
3
7
2
47
0
327
342
327
self,parameter
[]
None
{"Expr": 2, "If": 1, "Try": 1, "With": 1}
3
16
3
["hasattr", "block_signals", "self.job_settings.set_parameter_value"]
0
[]
The function (on_shared_job_parameter_changed) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 327 and ends at 342. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [327.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["hasattr", "block_signals", "self.job_settings.set_parameter_value"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
on_job_template_parameter_changed
def on_job_template_parameter_changed(self, parameter: dict[str, Any]):"""Handles an edit to a job template parameter.When a queue parameter and a job template parameter havethe same name, we update between them to keep them consistent."""try:with block_signals(self.shared_job_settings):self.shared_job_settings.set_parameter_value(parameter)except KeyError:# If there is no corresponding queue parameter,# just ignore it.pass
2
6
2
37
0
344
357
344
self,parameter
[]
None
{"Expr": 2, "Try": 1, "With": 1}
2
14
2
["block_signals", "self.shared_job_settings.set_parameter_value"]
0
[]
The function (on_job_template_parameter_changed) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 344 and ends at 357. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [344.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["block_signals", "self.shared_job_settings.set_parameter_value"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
on_login
def on_login(self):DeadlineLoginDialog.login(parent=self)self.refresh_deadline_settings()# This widget watches the auth files, but that does# not always catch a change so force a refresh here.self.deadline_authentication_status.refresh_status()
1
4
1
25
0
359
364
359
self
[]
None
{"Expr": 3}
3
6
3
["DeadlineLoginDialog.login", "self.refresh_deadline_settings", "self.deadline_authentication_status.refresh_status"]
0
[]
The function (on_login) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 359 and ends at 364. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["DeadlineLoginDialog.login", "self.refresh_deadline_settings", "self.deadline_authentication_status.refresh_status"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
on_logout
def on_logout(self):api.logout()self.refresh_deadline_settings()# This widget watches the auth files, but that does# not always catch a change so force a refresh here.self.deadline_authentication_status.refresh_status()
1
4
1
22
0
366
371
366
self
[]
None
{"Expr": 3}
3
6
3
["api.logout", "self.refresh_deadline_settings", "self.deadline_authentication_status.refresh_status"]
0
[]
The function (on_logout) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 366 and ends at 371. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["api.logout", "self.refresh_deadline_settings", "self.deadline_authentication_status.refresh_status"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
on_switch_profile_clicked
def on_switch_profile_clicked(self):if DeadlineConfigDialog.configure_settings(parent=self, set_profile_focus=True):self.refresh_deadline_settings()
2
3
1
24
0
373
375
373
self
[]
None
{"Expr": 1, "If": 1}
2
3
2
["DeadlineConfigDialog.configure_settings", "self.refresh_deadline_settings"]
0
[]
The function (on_switch_profile_clicked) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 373 and ends at 375. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["DeadlineConfigDialog.configure_settings", "self.refresh_deadline_settings"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
on_settings_button_clicked
def on_settings_button_clicked(self):if DeadlineConfigDialog.configure_settings(parent=self):self.refresh_deadline_settings()
2
3
1
20
0
377
379
377
self
[]
None
{"Expr": 1, "If": 1}
2
3
2
["DeadlineConfigDialog.configure_settings", "self.refresh_deadline_settings"]
0
[]
The function (on_settings_button_clicked) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 377 and ends at 379. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["DeadlineConfigDialog.configure_settings", "self.refresh_deadline_settings"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
on_export_bundle
def on_export_bundle(self):"""Exports a Job Bundle, but does not submit the job."""# Retrieve all the settings into the dataclasssettings = self.job_settings_type()self.shared_job_settings.update_settings(settings)self.job_settings.update_settings(settings)queue_parameters = self.shared_job_settings.get_parameters()asset_references = self.job_attachments.get_asset_references()# Save the bundletry:self.job_history_bundle_dir = create_job_history_bundle_dir(self.submitter_name, settings.name)if self.show_host_requirements_tab:host_requirements = self.host_requirements.get_requirements()parameters_from_callback = self.on_create_job_bundle_callback(self,self.job_history_bundle_dir,settings,queue_parameters,asset_references,host_requirements,purpose=JobBundlePurpose.EXPORT,)else:# Maintaining backward compatibility for submitters that do not support host_requirements yetparameters_from_callback = self.on_create_job_bundle_callback(self,self.job_history_bundle_dir,settings,queue_parameters,asset_references,purpose=JobBundlePurpose.EXPORT,)if parameters_from_callback is None:parameters_from_callback = {}# If the callback returned job parameters, update them in the job bundle as well so that# submission from the job history dir is equivalent.job_parameters = parameters_from_callback.get("job_parameters", [])if job_parameters:self.save_job_parameters_to_job_bundle(self.job_history_bundle_dir, job_parameters)logger.info(f"Saved the submission as a job bundle: {self.job_history_bundle_dir}")if sys.platform == "win32":# Open the directory in the OS's file exploreros.startfile(self.job_history_bundle_dir)QMessageBox.information(self,f"{self.submitter_name} job submission",f"Saved the submission as a job bundle:\n{self.job_history_bundle_dir}",)# Close the submitter window to signal the submission is doneself.close()except NonValidInputError as nvie:QMessageBox.critical(self, "Non valid inputs detected", str(nvie))except Exception as exc:logger.exception("Error saving bundle")message = str(exc)QMessageBox.critical(self, f"{self.submitter_name} job submission", message)# type: ignore[call-arg]
7
50
1
250
0
381
448
381
self
[]
None
{"Assign": 10, "Expr": 11, "If": 4, "Try": 1}
20
68
20
["self.job_settings_type", "self.shared_job_settings.update_settings", "self.job_settings.update_settings", "self.shared_job_settings.get_parameters", "self.job_attachments.get_asset_references", "create_job_history_bundle_dir", "self.host_requirements.get_requirements", "self.on_create_job_bundle_callback", "self.on_create_job_bundle_callback", "parameters_from_callback.get", "self.save_job_parameters_to_job_bundle", "logger.info", "os.startfile", "QMessageBox.information", "self.close", "QMessageBox.critical", "str", "logger.exception", "str", "QMessageBox.critical"]
0
[]
The function (on_export_bundle) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 381 and ends at 448. It contains 50 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value. It declares 20.0 functions, and It has 20.0 functions called inside which are ["self.job_settings_type", "self.shared_job_settings.update_settings", "self.job_settings.update_settings", "self.shared_job_settings.get_parameters", "self.job_attachments.get_asset_references", "create_job_history_bundle_dir", "self.host_requirements.get_requirements", "self.on_create_job_bundle_callback", "self.on_create_job_bundle_callback", "parameters_from_callback.get", "self.save_job_parameters_to_job_bundle", "logger.info", "os.startfile", "QMessageBox.information", "self.close", "QMessageBox.critical", "str", "logger.exception", "str", "QMessageBox.critical"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
save_job_parameters_to_job_bundle
def save_job_parameters_to_job_bundle(self, job_bundle_dir: str, job_parameters: list[JobParameter]):"""Saves the job parameters to the job bundle. If the job bundle already has a parameter_values file,it updates it. Otherwise it creates it."""job_parameters_dict = {param["name"]: param for param in job_parameters}job_parameters_file = os.path.join(job_bundle_dir, "parameter_values.yaml")if os.path.exists(job_parameters_file):with open(job_parameters_file, "r", encoding="utf8") as f:existing_job_parameters = yaml.safe_load(f).get("parameterValues", [])else:job_parameters_file = os.path.join(job_bundle_dir, "parameter_values.json")if os.path.exists(job_parameters_file):with open(job_parameters_file, "r", encoding="utf8") as f:existing_job_parameters = json.load(f).get("parameterValues", [])else:existing_job_parameters = []# Overwrite any existing values, and add new values at the endcombined_job_parameters = []for param in existing_job_parameters:combined_job_parameters.append(job_parameters_dict.pop(param["name"], param))combined_job_parameters.extend(job_parameters_dict.values())with open(job_parameters_file, "w", encoding="utf8") as f:json.dump({"parameterValues": combined_job_parameters}, f, indent=1)
5
21
3
208
0
450
478
450
self,job_bundle_dir,job_parameters
[]
None
{"Assign": 7, "Expr": 4, "For": 1, "If": 2, "With": 3}
16
29
16
["os.path.join", "os.path.exists", "open", "get", "yaml.safe_load", "os.path.join", "os.path.exists", "open", "get", "json.load", "combined_job_parameters.append", "job_parameters_dict.pop", "combined_job_parameters.extend", "job_parameters_dict.values", "open", "json.dump"]
0
[]
The function (save_job_parameters_to_job_bundle) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 450 and ends at 478. It contains 21 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [450.0] and does not return any value. It declares 16.0 functions, and It has 16.0 functions called inside which are ["os.path.join", "os.path.exists", "open", "get", "yaml.safe_load", "os.path.join", "os.path.exists", "open", "get", "json.load", "combined_job_parameters.append", "job_parameters_dict.pop", "combined_job_parameters.extend", "job_parameters_dict.values", "open", "json.dump"].
aws-deadline_deadline-cloud
SubmitJobToDeadlineDialog
public
0
1
on_submit
def on_submit(self):"""Perform a submission when the submit button is pressed"""# Retrieve all the settings into the dataclasssettings = self.job_settings_type()self.shared_job_settings.update_settings(settings)self.job_settings.update_settings(settings)queue_parameters = self.shared_job_settings.get_parameters()asset_references = self.job_attachments.get_asset_references()job_progress_dialog = SubmitJobProgressDialog(parent=self)job_progress_dialog.submission_thread_succeeded.connect(self._submission_succeeded_signal_receiver)job_progress_dialog.progress_window_closed.connect(self._close_event_receiver)job_progress_dialog.show()QApplication.instance().processEvents()# type: ignore[union-attr]# Submit the jobtry:self.job_history_bundle_dir = create_job_history_bundle_dir(self.submitter_name, settings.name)if self.show_host_requirements_tab:requirements = self.host_requirements.get_requirements()parameters_from_callback = self.on_create_job_bundle_callback(self,self.job_history_bundle_dir,settings,queue_parameters,asset_references,requirements,purpose=JobBundlePurpose.SUBMISSION,)else:# Maintaining backward compatibility for submitters that do not support host_requirements yetparameters_from_callback = self.on_create_job_bundle_callback(self,self.job_history_bundle_dir,settings,queue_parameters,asset_references,purpose=JobBundlePurpose.SUBMISSION,)if parameters_from_callback is None:parameters_from_callback = {}# If the callback returned job parameters, update them in the job bundle as well so that# submission from the job history dir is equivalent.job_parameters = parameters_from_callback.get("job_parameters", [])if job_parameters:self.save_job_parameters_to_job_bundle(self.job_history_bundle_dir, job_parameters)job_progress_dialog.start_job_submission(job_bundle_dir=self.job_history_bundle_dir,submitter_name=self.submitter_name,config=config_file.read_config(),require_paths_exist=self.job_attachments.get_require_paths_exist(),job_parameters=job_parameters,known_asset_paths=self.known_asset_paths+ parameters_from_callback.get("known_asset_paths", []),)except UserInitiatedCancel as uic:logger.info("Canceling submission.")QMessageBox.information(self, f"{self.submitter_name} job submission", str(uic))job_progress_dialog.close()except NonValidInputError as nvie:QMessageBox.critical(self, "Non valid inputs detected", str(nvie))job_progress_dialog.close()except Exception as exc:logger.exception("error submitting job")api.get_deadline_cloud_library_telemetry_client().record_error(event_details={"exception_scope": "on_submit"},exception_type=str(type(exc)),from_gui=True,)QMessageBox.critical(self, f"{self.submitter_name} job submission", str(exc))# type: ignore[call-arg]job_progress_dialog.close()
7
67
1
375
0
480
562
480
self
[]
None
{"Assign": 10, "Expr": 18, "If": 3, "Try": 1}
36
83
36
["self.job_settings_type", "self.shared_job_settings.update_settings", "self.job_settings.update_settings", "self.shared_job_settings.get_parameters", "self.job_attachments.get_asset_references", "SubmitJobProgressDialog", "job_progress_dialog.submission_thread_succeeded.connect", "job_progress_dialog.progress_window_closed.connect", "job_progress_dialog.show", "processEvents", "QApplication.instance", "create_job_history_bundle_dir", "self.host_requirements.get_requirements", "self.on_create_job_bundle_callback", "self.on_create_job_bundle_callback", "parameters_from_callback.get", "self.save_job_parameters_to_job_bundle", "job_progress_dialog.start_job_submission", "config_file.read_config", "self.job_attachments.get_require_paths_exist", "parameters_from_callback.get", "logger.info", "QMessageBox.information", "str", "job_progress_dialog.close", "QMessageBox.critical", "str", "job_progress_dialog.close", "logger.exception", "record_error", "api.get_deadline_cloud_library_telemetry_client", "str", "type", "QMessageBox.critical", "str", "job_progress_dialog.close"]
0
[]
The function (on_submit) defined within the public class called SubmitJobToDeadlineDialog, that inherit another class.The function start at line 480 and ends at 562. It contains 67 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value. It declares 36.0 functions, and It has 36.0 functions called inside which are ["self.job_settings_type", "self.shared_job_settings.update_settings", "self.job_settings.update_settings", "self.shared_job_settings.get_parameters", "self.job_attachments.get_asset_references", "SubmitJobProgressDialog", "job_progress_dialog.submission_thread_succeeded.connect", "job_progress_dialog.progress_window_closed.connect", "job_progress_dialog.show", "processEvents", "QApplication.instance", "create_job_history_bundle_dir", "self.host_requirements.get_requirements", "self.on_create_job_bundle_callback", "self.on_create_job_bundle_callback", "parameters_from_callback.get", "self.save_job_parameters_to_job_bundle", "job_progress_dialog.start_job_submission", "config_file.read_config", "self.job_attachments.get_require_paths_exist", "parameters_from_callback.get", "logger.info", "QMessageBox.information", "str", "job_progress_dialog.close", "QMessageBox.critical", "str", "job_progress_dialog.close", "logger.exception", "record_error", "api.get_deadline_cloud_library_telemetry_client", "str", "type", "QMessageBox.critical", "str", "job_progress_dialog.close"].
aws-deadline_deadline-cloud
CliJobSettingsWidget
public
0
1
__init__
def __init__(self, initial_settings: CliJobSettings, parent=None):super().__init__(parent=parent)self._build_ui()self._load_initial_settings(initial_settings)
1
4
3
34
0
34
38
34
self,initial_settings,parent
[]
None
{"Expr": 3}
4
5
4
["__init__", "super", "self._build_ui", "self._load_initial_settings"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 CliJobSettingsWidget, that inherit another class.The function start at line 34 and ends at 38. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [34.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["__init__", "super", "self._build_ui", "self._load_initial_settings"], 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
CliJobSettingsWidget
public
0
1
_set_enabled_with_label
def _set_enabled_with_label(self, prop_name: str, enabled: bool):"""Set the enabled status of a control and its label"""getattr(self, prop_name).setEnabled(enabled)getattr(self, prop_name + "_label").setEnabled(enabled)
1
3
3
38
0
40
43
40
self,prop_name,enabled
[]
None
{"Expr": 3}
4
4
4
["setEnabled", "getattr", "setEnabled", "getattr"]
0
[]
The function (_set_enabled_with_label) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 40 and ends at 43. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [40.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["setEnabled", "getattr", "setEnabled", "getattr"].
aws-deadline_deadline-cloud
CliJobSettingsWidget
public
0
1
_build_ui
def _build_ui(self):layout = QGridLayout(self)self.bash_script = QTextEdit()if os.name == "nt":font_family = "Consolas"elif os.name == "darwin":font_family = "Monaco"else:font_family = "Monospace"font = self.bash_script.currentFont()font.setFamily(font_family)font.setFixedPitch(True)font.setKerning(False)font.setPointSize(font.pointSize() + 1)self.bash_script.setCurrentFont(font)self.bash_script.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)layout.addWidget(self.bash_script, 0, 0, 1, 2)self.use_array_parameter_chck = QCheckBox("Use array parameter", self)self.array_parameter_name = QLineEdit(self)layout.addWidget(self.use_array_parameter_chck, 1, 0)layout.addWidget(self.array_parameter_name, 1, 1)self.use_array_parameter_chck.stateChanged.connect(self.use_array_parameter_changed)self.array_parameter_values_label = QLabel("Array parameter values")layout.addWidget(self.array_parameter_values_label, 2, 0)self.array_parameter_values = QLineEdit(self)layout.addWidget(self.array_parameter_values, 2, 1)self.data_dir_label = QLabel("Data directory")self.data_dir_edit = DirectoryPickerWidget(initial_directory=os.path.expanduser(os.path.join("~", "CLIJobData")),directory_label="Data directory",parent=self,)layout.addWidget(self.data_dir_label, 3, 0)layout.addWidget(self.data_dir_edit, 3, 1)self.file_format_label = QLabel("Template file format")self.file_format_box = QComboBox(parent=self)self.file_format_box.addItems(["YAML", "JSON"])layout.addWidget(self.file_format_label, 4, 0)layout.addWidget(self.file_format_box, 4, 1)
3
39
1
335
0
45
89
45
self
[]
None
{"Assign": 14, "Expr": 17, "If": 2}
31
45
31
["QGridLayout", "QTextEdit", "self.bash_script.currentFont", "font.setFamily", "font.setFixedPitch", "font.setKerning", "font.setPointSize", "font.pointSize", "self.bash_script.setCurrentFont", "self.bash_script.setSizePolicy", "layout.addWidget", "QCheckBox", "QLineEdit", "layout.addWidget", "layout.addWidget", "self.use_array_parameter_chck.stateChanged.connect", "QLabel", "layout.addWidget", "QLineEdit", "layout.addWidget", "QLabel", "DirectoryPickerWidget", "os.path.expanduser", "os.path.join", "layout.addWidget", "layout.addWidget", "QLabel", "QComboBox", "self.file_format_box.addItems", "layout.addWidget", "layout.addWidget"]
0
[]
The function (_build_ui) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 45 and ends at 89. It contains 39 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 31.0 functions, and It has 31.0 functions called inside which are ["QGridLayout", "QTextEdit", "self.bash_script.currentFont", "font.setFamily", "font.setFixedPitch", "font.setKerning", "font.setPointSize", "font.pointSize", "self.bash_script.setCurrentFont", "self.bash_script.setSizePolicy", "layout.addWidget", "QCheckBox", "QLineEdit", "layout.addWidget", "layout.addWidget", "self.use_array_parameter_chck.stateChanged.connect", "QLabel", "layout.addWidget", "QLineEdit", "layout.addWidget", "QLabel", "DirectoryPickerWidget", "os.path.expanduser", "os.path.join", "layout.addWidget", "layout.addWidget", "QLabel", "QComboBox", "self.file_format_box.addItems", "layout.addWidget", "layout.addWidget"].
aws-deadline_deadline-cloud
CliJobSettingsWidget
public
0
1
_load_initial_settings
def _load_initial_settings(self, initial_settings: CliJobSettings):self.bash_script.setPlainText(initial_settings.bash_script_contents)self.use_array_parameter_chck.setChecked(initial_settings.use_array_parameter)self.array_parameter_name.setText(initial_settings.array_parameter_name)self.array_parameter_values.setText(initial_settings.array_parameter_values)self.file_format_box.setCurrentText(initial_settings.file_format)
1
6
2
59
0
91
96
91
self,initial_settings
[]
None
{"Expr": 5}
5
6
5
["self.bash_script.setPlainText", "self.use_array_parameter_chck.setChecked", "self.array_parameter_name.setText", "self.array_parameter_values.setText", "self.file_format_box.setCurrentText"]
0
[]
The function (_load_initial_settings) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 91 and ends at 96. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [91.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self.bash_script.setPlainText", "self.use_array_parameter_chck.setChecked", "self.array_parameter_name.setText", "self.array_parameter_values.setText", "self.file_format_box.setCurrentText"].
aws-deadline_deadline-cloud
CliJobSettingsWidget
public
0
1
update_settings
def update_settings(self, settings: CliJobSettings):"""Update a settings object with the latest values."""settings.bash_script_contents = self.bash_script.toPlainText()settings.use_array_parameter = self.use_array_parameter_chck.isChecked()settings.array_parameter_name = self.array_parameter_name.text()settings.array_parameter_values = self.array_parameter_values.text()settings.data_dir = os.path.expanduser(self.data_dir_edit.text())settings.file_format = self.file_format_box.currentText()
1
7
2
83
0
98
107
98
self,settings
[]
None
{"Assign": 6, "Expr": 1}
7
10
7
["self.bash_script.toPlainText", "self.use_array_parameter_chck.isChecked", "self.array_parameter_name.text", "self.array_parameter_values.text", "os.path.expanduser", "self.data_dir_edit.text", "self.file_format_box.currentText"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3656399_avelino_liquidluck.liquidluck.generator_py.load_settings"]
The function (update_settings) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 98 and ends at 107. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [98.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["self.bash_script.toPlainText", "self.use_array_parameter_chck.isChecked", "self.array_parameter_name.text", "self.array_parameter_values.text", "os.path.expanduser", "self.data_dir_edit.text", "self.file_format_box.currentText"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3656399_avelino_liquidluck.liquidluck.generator_py.load_settings"].
aws-deadline_deadline-cloud
CliJobSettingsWidget
public
0
1
use_array_parameter_changed
def use_array_parameter_changed(self, state: int):enabled = Qt.CheckState(state) == Qt.Checkedself.array_parameter_name.setEnabled(enabled)self._set_enabled_with_label("array_parameter_values", enabled)
1
4
2
37
0
109
112
109
self,state
[]
None
{"Assign": 1, "Expr": 2}
3
4
3
["Qt.CheckState", "self.array_parameter_name.setEnabled", "self._set_enabled_with_label"]
0
[]
The function (use_array_parameter_changed) defined within the public class called CliJobSettingsWidget, that inherit another class.The function start at line 109 and ends at 112. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [109.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["Qt.CheckState", "self.array_parameter_name.setEnabled", "self._set_enabled_with_label"].
aws-deadline_deadline-cloud
RightAlignedQMenu
public
0
1
showEvent
def showEvent(self, event):"""Override showEvent to position the menu to the right of the parent button."""if self.parent():parent_top_right = self.parent().mapToGlobal(self.parent().rect().topRight())self.move(parent_top_right.x(), parent_top_right.y())super().showEvent(event)self.adjustSize()# The menu was displaying incorrectly on Mac until a resize event
2
6
2
68
0
40
49
40
self,event
[]
None
{"Assign": 1, "Expr": 4, "If": 1}
12
10
12
["self.parent", "mapToGlobal", "self.parent", "topRight", "rect", "self.parent", "self.move", "parent_top_right.x", "parent_top_right.y", "showEvent", "super", "self.adjustSize"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.dialogs.submit_job_progress_dialog_py._JobSumissionWarningDialog.showEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.deadline_authentication_status_widget_py.RightAlignedQMenu.showEvent"]
The function (showEvent) defined within the public class called RightAlignedQMenu, that inherit another class.The function start at line 40 and ends at 49. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [40.0] and does not return any value. It declares 12.0 functions, It has 12.0 functions called inside which are ["self.parent", "mapToGlobal", "self.parent", "topRight", "rect", "self.parent", "self.move", "parent_top_right.x", "parent_top_right.y", "showEvent", "super", "self.adjustSize"], 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.ui.dialogs.submit_job_progress_dialog_py._JobSumissionWarningDialog.showEvent", "_.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.RightAlignedQMenu.showEvent"].
aws-deadline_deadline-cloud
DeadlineAuthenticationStatusWidget
public
0
1
__init__
def __init__(self, parent=None, show_profile_switch=True) -> None:"""Initialize the authentication status widget.Args:parent: The parent Qt widget. Defaults to None.show_profile_switch (bool): Whether to show the switch profile control.Defaults to True."""super().__init__(parent=parent)self._build_ui(show_profile_switch)# Connect to authentication statusself._status = DeadlineAuthenticationStatus.getInstance()self._status.creds_source_changed.connect(self._update_ui)self._status.auth_status_changed.connect(self._update_ui)self._status.api_availability_changed.connect(self._update_ui)# Initial updateself._update_ui()
1
8
3
82
0
122
142
122
self,parent,show_profile_switch
[]
None
{"Assign": 1, "Expr": 7}
8
21
8
["__init__", "super", "self._build_ui", "DeadlineAuthenticationStatus.getInstance", "self._status.creds_source_changed.connect", "self._status.auth_status_changed.connect", "self._status.api_availability_changed.connect", "self._update_ui"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 122 and ends at 142. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [122.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions called inside which are ["__init__", "super", "self._build_ui", "DeadlineAuthenticationStatus.getInstance", "self._status.creds_source_changed.connect", "self._status.auth_status_changed.connect", "self._status.api_availability_changed.connect", "self._update_ui"], 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
DeadlineAuthenticationStatusWidget
public
0
1
_build_ui
def _build_ui(self, show_profile_switch: bool = True) -> None:"""Build the user interface components for the authentication status widget.Creates a styled frame containing a status icon, profile button with dropdown menu,and various action buttons (switch profile, login, more info) that are shown/hiddenbased on the current authentication state.Args:show_profile_switch (bool): Whether to enable profile switching functionality.Defaults to True."""layout = QHBoxLayout(self)layout.setContentsMargins(5, 5, 5, 5)self._status_icon = QLabel()layout.addWidget(self._status_icon)self._profile_button = QPushButton()self._profile_button.setStyleSheet("""QPushButton {background-color: transparent;border: none;padding-right: 5px;text-align: left;}""")self._auth_menu = RightAlignedQMenu(self._profile_button)self._show_profile_switch = show_profile_switchself._switch_profile_menu_action = self._auth_menu.addAction("Switch profile", self.switch_profile_clicked.emit)self._logout_menu_action = self._auth_menu.addAction("Log out", self.logout_clicked.emit)layout.addWidget(self._profile_button)layout.addStretch()self._switch_profile_button = QPushButton("Switch profile")self._switch_profile_button.clicked.connect(self.switch_profile_clicked.emit)layout.addWidget(self._switch_profile_button)self._login_button = QPushButton("Log in")self._login_button.clicked.connect(self.login_clicked.emit)layout.addWidget(self._login_button)self._more_info_button = QPushButton("More info")self._more_info_button.clicked.connect(self._show_more_info)layout.addWidget(self._more_info_button)self.setLayout(layout)
1
32
2
220
0
144
197
144
self,show_profile_switch
[]
None
{"Assign": 10, "Expr": 13}
21
54
21
["QHBoxLayout", "layout.setContentsMargins", "QLabel", "layout.addWidget", "QPushButton", "self._profile_button.setStyleSheet", "RightAlignedQMenu", "self._auth_menu.addAction", "self._auth_menu.addAction", "layout.addWidget", "layout.addStretch", "QPushButton", "self._switch_profile_button.clicked.connect", "layout.addWidget", "QPushButton", "self._login_button.clicked.connect", "layout.addWidget", "QPushButton", "self._more_info_button.clicked.connect", "layout.addWidget", "self.setLayout"]
0
[]
The function (_build_ui) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 144 and ends at 197. It contains 32 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [144.0] and does not return any value. It declares 21.0 functions, and It has 21.0 functions called inside which are ["QHBoxLayout", "layout.setContentsMargins", "QLabel", "layout.addWidget", "QPushButton", "self._profile_button.setStyleSheet", "RightAlignedQMenu", "self._auth_menu.addAction", "self._auth_menu.addAction", "layout.addWidget", "layout.addStretch", "QPushButton", "self._switch_profile_button.clicked.connect", "layout.addWidget", "QPushButton", "self._login_button.clicked.connect", "layout.addWidget", "QPushButton", "self._more_info_button.clicked.connect", "layout.addWidget", "self.setLayout"].
aws-deadline_deadline-cloud
DeadlineAuthenticationStatusWidget
public
0
1
_get_profile_name
def _get_profile_name(self) -> str:"""Get the current AWS profile name from the configuration.Returns:str: The AWS profile name configured for Deadline Cloud authentication."""return config_file.get_setting("defaults.aws_profile_name", self._status.config)
1
2
1
21
0
199
206
199
self
[]
str
{"Expr": 1, "Return": 1}
1
8
1
["config_file.get_setting"]
0
[]
The function (_get_profile_name) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 199 and ends at 206. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["config_file.get_setting"].
aws-deadline_deadline-cloud
DeadlineAuthenticationStatusWidget
public
0
1
_should_show_logout
def _should_show_logout(self) -> bool:"""Determine whether the logout option should be visible based on the credential source.The logout option is only shown when using Deadline Cloud Monitor credentials.Returns:bool: True if logout should be visible, False otherwise."""return self._status.creds_source == api.AwsCredentialsSource.DEADLINE_CLOUD_MONITOR_LOGIN
1
2
1
20
0
208
217
208
self
[]
bool
{"Expr": 1, "Return": 1}
0
10
0
[]
0
[]
The function (_should_show_logout) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 208 and ends at 217. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
DeadlineAuthenticationStatusWidget
public
0
1
_get_auth_state_configs
def _get_auth_state_configs(self) -> Dict[AuthenticationState, AuthenticationStateConfig]:"""Get the configuration mapping for each authentication state.Defines the UI appearance and behavior for each possible authentication state,including which icon to display, what text to show, and which buttons shouldbe visible.Returns:Dict[AuthenticationState, AuthenticationStateConfig]: A dictionary mappingeach authentication state to its corresponding UI configuration."""return {AuthenticationState.REFRESHING: AuthenticationStateConfig(icon=QStyle.StandardPixmap.SP_BrowserReload,text=self._get_profile_name,),AuthenticationState.AUTHENTICATED_READY: AuthenticationStateConfig(icon=QStyle.StandardPixmap.SP_DialogApplyButton,text=self._get_profile_name,logout_visible=self._should_show_logout,),AuthenticationState.AUTHENTICATED_NO_API: AuthenticationStateConfig(icon=QStyle.StandardPixmap.SP_MessageBoxWarning,text=lambda: f"{self._get_profile_name()} doesn't have access permissions to submit a job.",logout_visible=self._should_show_logout,more_info_visible=True,),AuthenticationState.NEEDS_LOGIN: AuthenticationStateConfig(icon=QStyle.StandardPixmap.SP_MessageBoxWarning,text=f"{self._get_profile_name()}-You are logged out.",switch_profile_button_visible=True,login_visible=True,),AuthenticationState.CONFIGURATION_ERROR: AuthenticationStateConfig(icon=QStyle.StandardPixmap.SP_MessageBoxWarning,text=lambda: f"A configuration error was received while accessing credentials for the profile '{self._get_profile_name()}'.",more_info_visible=True,),AuthenticationState.UNEXPECTED_ERROR: AuthenticationStateConfig(icon=QStyle.StandardPixmap.SP_MessageBoxWarning,text="There was an error with authentication",more_info_visible=True,),}
1
34
1
179
0
219
263
219
self
[]
Dict[AuthenticationState, AuthenticationStateConfig]
{"Expr": 1, "Return": 1}
9
45
9
["AuthenticationStateConfig", "AuthenticationStateConfig", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig"]
0
[]
The function (_get_auth_state_configs) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 219 and ends at 263. It contains 34 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["AuthenticationStateConfig", "AuthenticationStateConfig", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig", "self._get_profile_name", "AuthenticationStateConfig"].
aws-deadline_deadline-cloud
DeadlineAuthenticationStatusWidget
public
0
1
_get_current_auth_state_key
def _get_current_auth_state_key(self) -> AuthenticationState:"""Evaluates the credentials source, authentication status, and API availabilityto determine which authentication state the widget should display.Returns:AuthenticationState: The current authentication state enum value"""is_refreshing = (self._status.creds_source is Noneor self._status.auth_status is Noneor self._status.api_availability is None)if is_refreshing:return AuthenticationState.REFRESHINGelif (self._status.auth_status == api.AwsAuthenticationStatus.AUTHENTICATEDand self._status.api_availability):return AuthenticationState.AUTHENTICATED_READYelif (self._status.auth_status == api.AwsAuthenticationStatus.AUTHENTICATEDand not self._status.api_availability):return AuthenticationState.AUTHENTICATED_NO_APIelif self._status.auth_status == api.AwsAuthenticationStatus.NEEDS_LOGIN:return AuthenticationState.NEEDS_LOGINelif self._status.auth_status == api.AwsAuthenticationStatus.CONFIGURATION_ERROR:return AuthenticationState.CONFIGURATION_ERRORelse:return AuthenticationState.UNEXPECTED_ERROR
10
24
1
133
0
265
296
265
self
[]
AuthenticationState
{"Assign": 1, "Expr": 1, "If": 5, "Return": 6}
0
32
0
[]
0
[]
The function (_get_current_auth_state_key) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 265 and ends at 296. It contains 24 lines of code and it has a cyclomatic complexity of 10. The function does not take any parameters and does not return any value..
aws-deadline_deadline-cloud
DeadlineAuthenticationStatusWidget
public
0
1
_show_more_info
def _show_more_info(self) -> None:"""Show a QMessageBox with detailed information about the current authentication issueand hopefully steps the user can take to resolve it."""current_state = self._get_current_auth_state_key()# Determine the current authentication state and provide appropriate helpif current_state == AuthenticationState.AUTHENTICATED_NO_API:# Authenticated but no API availability - permissions issue or possibly configuration issuetitle = "Unable to Call AWS Deadline Cloud API"message = (f"You are authenticated with the profile '{self._get_profile_name()}', ""but this profile is unable to call AWS Deadline Cloud ListFarms and unable to submit jobs to AWS Deadline Cloud.\n\n""To resolve this issue:\n\n""• Check that there aren't any environment variables pointing to the wrong AWS region (e.g., AWS_DEFAULT_REGION)\n""• If you are not using a Deadline Cloud Monitor profile, check that the profile has permissions for these AWS Deadline Cloud APIs needed for submitting:\n""• deadline:AssumeQueueRoleForUser\n""• deadline:CreateJob\n""• deadline:GetJob\n""• deadline:GetQueue\n""• deadline:GetQueueEnvironment\n""• deadline:GetStorageProfileForQueue\n""• deadline:GetStorageProfile\n""• deadline:ListFarms\n""• deadline:ListQueues\n""• deadline:ListQueueEnvironments\n""• deadline:ListStorageProfilesForQueue")elif self._status.auth_status == api.AwsAuthenticationStatus.CONFIGURATION_ERROR:title = "Issue With Profile Configuration"message = (f"There is a configuration issue with the profile '{self._get_profile_name()}'.\n\n""To resolve this issue:\n""• Verify your AWS config and credentials files are correct\n""• By default these files can be found in ~/.aws on Linux/MacOS or %USERPROFILE%/.aws on Windows\n""• Verify that the correct AWS region is set\n""• Check that no environment variables like AWS_DEFAULT_REGION are set to an incorrect region\n""• If you are not using a Deadline Cloud Monitor profile:\n""• Verify that any credential process being used is able to retrieve the credentials or that they aren't expired\n""• You can run the following command to check: aws sts get-caller-identity --profile <PROFILE_NAME>")else:title = "Unknown Issue With Configured Profile"message = (f"There was an unknown issue when trying to authenticate with the profile '{self._get_profile_name()}'.\n\n""Check any available console logs for errors to try and diagnose the problem.\n""Logs are commonly found:\n""• In the terminal that the dialog or software the submitter is running in was launched from""• In the built-in console within the software that the submitter is running in")# Show the message boxmsg_box = QMessageBox(self)msg_box.setWindowTitle(title)msg_box.setText(message)msg_box.setIcon(QMessageBox.Information)msg_box.setStandardButtons(QMessageBox.Ok)msg_box.exec_()
3
50
1
130
0
298
357
298
self
[]
None
{"Assign": 8, "Expr": 6, "If": 2}
10
60
10
["self._get_current_auth_state_key", "self._get_profile_name", "self._get_profile_name", "self._get_profile_name", "QMessageBox", "msg_box.setWindowTitle", "msg_box.setText", "msg_box.setIcon", "msg_box.setStandardButtons", "msg_box.exec_"]
0
[]
The function (_show_more_info) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 298 and ends at 357. It contains 50 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["self._get_current_auth_state_key", "self._get_profile_name", "self._get_profile_name", "self._get_profile_name", "QMessageBox", "msg_box.setWindowTitle", "msg_box.setText", "msg_box.setIcon", "msg_box.setStandardButtons", "msg_box.exec_"].
aws-deadline_deadline-cloud
DeadlineAuthenticationStatusWidget
public
0
1
_update_ui
def _update_ui(self) -> None:"""Update the UI based on the current authentication state.This method is called whenever the authentication status changes.It determines the current state and applies the appropriate UI configuration."""state_key = self._get_current_auth_state_key()state_configs = self._get_auth_state_configs()config = state_configs[state_key]self._apply_ui_state(config)
1
5
1
34
0
359
370
359
self
[]
None
{"Assign": 3, "Expr": 2}
3
12
3
["self._get_current_auth_state_key", "self._get_auth_state_configs", "self._apply_ui_state"]
0
[]
The function (_update_ui) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 359 and ends at 370. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self._get_current_auth_state_key", "self._get_auth_state_configs", "self._apply_ui_state"].
aws-deadline_deadline-cloud
DeadlineAuthenticationStatusWidget
public
0
1
_apply_ui_state
def _apply_ui_state(self, config: AuthenticationStateConfig) -> None:"""Apply the UI configuration for a specific authentication state.Updates the widget's appearance and behavior based on the provided configuration,including setting the status icon, profile button text, and controlling thevisibility of various action buttons and menu items.Args:config (AuthenticationStateConfig): The configuration object containingUI settings for the current authentication state."""# Set iconself._status_icon.setPixmap(QApplication.style().standardIcon(config.icon).pixmap(16, 16))# Set texttext = config.text() if callable(config.text) else config.textself._profile_button.setText(text)self._profile_button.setToolTip(text)# Set visibility states# Only one of the switch profile button or menu action are shown at a timeself._switch_profile_button.setVisible(config.switch_profile_button_visible and self._show_profile_switch)self._switch_profile_menu_action.setVisible(not config.switch_profile_button_visible and self._show_profile_switch)self._login_button.setVisible(config.login_visible)logout_visible = (config.logout_visible() if callable(config.logout_visible) else config.logout_visible)self._logout_menu_action.setVisible(logout_visible)self._more_info_button.setVisible(config.more_info_visible)# Hide the dropdown menu if there are no visible actions for the current stateif any(action.isVisible() for action in self._auth_menu.actions()):self._profile_button.setMenu(self._auth_menu)else:self._profile_button.setMenu(None)
7
21
2
189
0
372
412
372
self,config
[]
None
{"Assign": 2, "Expr": 11, "If": 1}
20
41
20
["self._status_icon.setPixmap", "pixmap", "standardIcon", "QApplication.style", "callable", "config.text", "self._profile_button.setText", "self._profile_button.setToolTip", "self._switch_profile_button.setVisible", "self._switch_profile_menu_action.setVisible", "self._login_button.setVisible", "callable", "config.logout_visible", "self._logout_menu_action.setVisible", "self._more_info_button.setVisible", "any", "action.isVisible", "self._auth_menu.actions", "self._profile_button.setMenu", "self._profile_button.setMenu"]
0
[]
The function (_apply_ui_state) defined within the public class called DeadlineAuthenticationStatusWidget, that inherit another class.The function start at line 372 and ends at 412. It contains 21 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [372.0] and does not return any value. It declares 20.0 functions, and It has 20.0 functions called inside which are ["self._status_icon.setPixmap", "pixmap", "standardIcon", "QApplication.style", "callable", "config.text", "self._profile_button.setText", "self._profile_button.setToolTip", "self._switch_profile_button.setVisible", "self._switch_profile_menu_action.setVisible", "self._login_button.setVisible", "callable", "config.logout_visible", "self._logout_menu_action.setVisible", "self._more_info_button.setVisible", "any", "action.isVisible", "self._auth_menu.actions", "self._profile_button.setMenu", "self._profile_button.setMenu"].
aws-deadline_deadline-cloud
AddIcon
public
0
1
__init__
def __init__(self):file_path = str(Path(__file__).parent.parent / "resources" / "add.svg")super().__init__(file_path)
1
3
1
30
0
93
95
93
self
[]
None
{"Assign": 1, "Expr": 1}
4
3
4
["str", "Path", "__init__", "super"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 AddIcon, that inherit another class.The function start at line 93 and ends at 95. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["str", "Path", "__init__", "super"], 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
AddIcon
public
0
1
__init__
def __init__(self, requirements: Optional[HostRequirements] = None, parent=None):super().__init__(parent)layout = QVBoxLayout(self)self.mode_selection_box = OverrideRequirementsWidget(self)layout.addWidget(self.mode_selection_box)self.os_requirements_box = OSRequirementsWidget(self)self.os_requirements_box.setEnabled(False)layout.addWidget(self.os_requirements_box)self.hardware_requirements_box = HardwareRequirementsWidget(self)self.hardware_requirements_box.setEnabled(False)layout.addWidget(self.hardware_requirements_box)self.custom_requirements_box = CustomRequirementsWidget(self)self.custom_requirements_box.setEnabled(False)layout.addWidget(self.custom_requirements_box)layout.addItem(QSpacerItem(0, 0, QSizePolicy.Minimum, QSizePolicy.Expanding))self.mode_selection_box.use_custom_button.toggled.connect(self._on_mode_selection_use_custom_button_toggled)if requirements is not None:self.set_requirements(requirements)
2
20
3
165
0
106
131
106
self
[]
None
{"Assign": 1, "Expr": 1}
4
3
4
["str", "Path", "__init__", "super"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 AddIcon, that inherit another class.The function start at line 106 and ends at 131. It contains 20 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [106.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["str", "Path", "__init__", "super"], 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
HostRequirementsWidget
public
0
1
_on_mode_selection_use_custom_button_toggled
def _on_mode_selection_use_custom_button_toggled(self, state):"""Enable all settings when use_custom_button is selected. Otherwise disable all settings."""self.os_requirements_box.setEnabled(state)self.hardware_requirements_box.setEnabled(state)self.custom_requirements_box.setEnabled(state)
1
4
2
32
0
133
139
133
self,state
[]
None
{"Expr": 4}
3
7
3
["self.os_requirements_box.setEnabled", "self.hardware_requirements_box.setEnabled", "self.custom_requirements_box.setEnabled"]
0
[]
The function (_on_mode_selection_use_custom_button_toggled) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 133 and ends at 139. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [133.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.os_requirements_box.setEnabled", "self.hardware_requirements_box.setEnabled", "self.custom_requirements_box.setEnabled"].
aws-deadline_deadline-cloud
HostRequirementsWidget
public
0
1
_is_custom_requirements_selected
def _is_custom_requirements_selected(self) -> bool:return self.mode_selection_box.use_custom_button.isChecked()
1
2
1
17
0
141
142
141
self
[]
bool
{"Return": 1}
1
2
1
["self.mode_selection_box.use_custom_button.isChecked"]
0
[]
The function (_is_custom_requirements_selected) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 141 and ends at 142. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.mode_selection_box.use_custom_button.isChecked"].
aws-deadline_deadline-cloud
HostRequirementsWidget
public
0
1
get_requirements
def get_requirements(self) -> Optional[Dict[str, Any]]:"""Returns a list of OpenJD parameter definition dicts with values filled from the widget.If requirement settings are not enabled, then return None.host_requirements: dict[str, Any] = { "amounts": [ <AmountRequirement>, ... ], # @optional "attributes": [ <AttributeRequirement>, ... ] # @optional}"""if not self._is_custom_requirements_selected():return Noneos_requirements = self.os_requirements_box.get_requirements()hardware_requirements = self.hardware_requirements_box.get_requirements()custom_requirements = self.custom_requirements_box.get_requirements()requirements: Dict[str, Union[List[str], List[int]]] = {}if os_requirements:requirements.setdefault("attributes", []).extend(os_requirements)# type: ignoreif hardware_requirements:requirements.setdefault("amounts", []).extend(hardware_requirements)# type: ignoreif custom_requirements["amounts"]:requirements.setdefault("amounts", []).extend(custom_requirements["amounts"])# type: ignoreif custom_requirements["attributes"]:requirements.setdefault("attributes", []).extend(custom_requirements["attributes"])# type: ignorereturn requirements
6
16
1
157
0
144
171
144
self
[]
Optional[Dict[str, Any]]
{"AnnAssign": 1, "Assign": 3, "Expr": 5, "If": 5, "Return": 2}
12
28
12
["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"]
The function (get_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 144 and ends at 171. It contains 16 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 12.0 functions, It has 12.0 functions called inside which are ["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"].
aws-deadline_deadline-cloud
HostRequirementsWidget
public
0
1
set_requirements
def set_requirements(self, requirements: HostRequirements):if requirements.custom_requirements:self.custom_requirements_box.set_requirements(requirements.custom_requirements)if requirements.os_requirements:self.os_requirements_box.set_requirements(requirements.os_requirements)if requirements.hardware_requirements:self.hardware_requirements_box.set_requirements(requirements.hardware_requirements)self.mode_selection_box.use_default_button.setChecked(False)self.mode_selection_box.use_custom_button.setChecked(True)
4
9
2
74
0
173
181
173
self,requirements
[]
None
{"Expr": 5, "If": 3}
5
9
5
["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"]
0
[]
The function (set_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 173 and ends at 181. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [173.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"].
aws-deadline_deadline-cloud
AddIcon
public
0
1
__init__
def __init__(self, parent=None):super().__init__("", parent)self.layout = QVBoxLayout(self)self._build_ui()
1
4
2
32
0
192
195
192
self
[]
None
{"Assign": 1, "Expr": 1}
4
3
4
["str", "Path", "__init__", "super"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 AddIcon, that inherit another class.The function start at line 192 and ends at 195. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [192.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["str", "Path", "__init__", "super"], 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
OverrideRequirementsWidget
public
0
1
_build_ui
def _build_ui(self):# Use Fleet Default buttonself.use_default_button = QRadioButton("Run on all available worker hosts")self.use_default_button.setChecked(True)# Use customized settings button + tipself.use_custom_button = QRadioButton("Run on worker hosts that meet the following requirements")self.use_custom_button_tip = QHBoxLayout()self.custom_button_tip_text = QLabel("All fields below are optional")custom_button_label_font = self.custom_button_tip_text.font()custom_button_label_font.setPointSize(10)custom_button_label_font.setItalic(True)custom_button_label_font.setWeight(QFont.Light)self.custom_button_tip_text.setFont(custom_button_label_font)self.custom_button_tip_text.setWordWrap(True)self.custom_button_tip_text.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Minimum)self.custom_button_tip_text.setAlignment(Qt.AlignTop)# account for 2pt spacing left/right of radio buttonself.use_custom_button_tip.addSpacing(self.use_custom_button.iconSize().width() + 4)self.use_custom_button_tip.addWidget(self.custom_button_tip_text)# Stack the componentsself.layout.addWidget(self.use_default_button)self.layout.addSpacing(6)self.layout.addWidget(self.use_custom_button)self.layout.addLayout(self.use_custom_button_tip)
1
22
1
181
0
197
225
197
self
[]
None
{"Assign": 5, "Expr": 14}
21
29
21
["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.setWordWrap", "self.custom_button_tip_text.setSizePolicy", "self.custom_button_tip_text.setAlignment", "self.use_custom_button_tip.addSpacing", "width", "self.use_custom_button.iconSize", "self.use_custom_button_tip.addWidget", "self.layout.addWidget", "self.layout.addSpacing", "self.layout.addWidget", "self.layout.addLayout"]
0
[]
The function (_build_ui) defined within the public class called OverrideRequirementsWidget, that inherit another class.The function start at line 197 and ends at 225. It contains 22 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 21.0 functions, and It has 21.0 functions called inside which are ["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.setWordWrap", "self.custom_button_tip_text.setSizePolicy", "self.custom_button_tip_text.setAlignment", "self.use_custom_button_tip.addSpacing", "width", "self.use_custom_button.iconSize", "self.use_custom_button_tip.addWidget", "self.layout.addWidget", "self.layout.addSpacing", "self.layout.addWidget", "self.layout.addLayout"].
aws-deadline_deadline-cloud
AddIcon
public
0
1
__init__
def __init__(self, parent=None):super().__init__("", parent=parent)self.layout = QVBoxLayout(self)self._build_ui()
1
4
2
34
0
239
242
239
self
[]
None
{"Assign": 1, "Expr": 1}
4
3
4
["str", "Path", "__init__", "super"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 AddIcon, that inherit another class.The function start at line 239 and ends at 242. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [239.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["str", "Path", "__init__", "super"], 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
OverrideRequirementsWidget
public
0
1
_build_ui
def _build_ui(self):self.os_row = OSRequirementRowWidget("Operating system", self.OS_ROW_OPTIONS)self.cpu_row = OSRequirementRowWidget("CPU architecture", self.CPU_ROW_OPTIONS)self.layout.addWidget(self.os_row)self.layout.addWidget(self.cpu_row)
1
5
1
49
0
244
249
244
self
[]
None
{"Assign": 5, "Expr": 14}
21
29
21
["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.setWordWrap", "self.custom_button_tip_text.setSizePolicy", "self.custom_button_tip_text.setAlignment", "self.use_custom_button_tip.addSpacing", "width", "self.use_custom_button.iconSize", "self.use_custom_button_tip.addWidget", "self.layout.addWidget", "self.layout.addSpacing", "self.layout.addWidget", "self.layout.addLayout"]
0
[]
The function (_build_ui) defined within the public class called OverrideRequirementsWidget, that inherit another class.The function start at line 244 and ends at 249. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 21.0 functions, and It has 21.0 functions called inside which are ["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.setWordWrap", "self.custom_button_tip_text.setSizePolicy", "self.custom_button_tip_text.setAlignment", "self.use_custom_button_tip.addSpacing", "width", "self.use_custom_button.iconSize", "self.use_custom_button_tip.addWidget", "self.layout.addWidget", "self.layout.addSpacing", "self.layout.addWidget", "self.layout.addLayout"].
aws-deadline_deadline-cloud
HostRequirementsWidget
public
0
1
get_requirements
def get_requirements(self) -> List[Dict[str, Any]]:"""Returns a list of OpenJD parameter definition dicts witha "value" key filled from the widget.Set the following capabilities according to OpenJD spec.- attr.worker.os.family- attr.worker.cpu.arch"""# TODO: currently only supports "AnyOf" from the UIrequirements: List[dict] = []if self.os_row.combo_box.checkedItems():requirements.append({"name": "attr.worker.os.family","anyOf": self.os_row.combo_box.checkedItems(),})if self.cpu_row.combo_box.checkedItems():requirements.append({"name": "attr.worker.cpu.arch","anyOf": self.cpu_row.combo_box.checkedItems(),})return requirements
3
17
1
95
0
251
277
251
self
[]
Optional[Dict[str, Any]]
{"AnnAssign": 1, "Assign": 3, "Expr": 5, "If": 5, "Return": 2}
12
28
12
["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"]
The function (get_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 251 and ends at 277. It contains 17 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 12.0 functions, It has 12.0 functions called inside which are ["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"].
aws-deadline_deadline-cloud
HostRequirementsWidget
public
0
1
set_requirements
def set_requirements(self, requirements: OsRequirements):self.os_row.combo_box.setChecked(requirements.operating_systems)# type: ignoreself.cpu_row.combo_box.setChecked(requirements.cpu_archs)# type: ignore
1
3
2
33
0
279
281
279
self,requirements
[]
None
{"Expr": 5, "If": 3}
5
9
5
["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"]
0
[]
The function (set_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 279 and ends at 281. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [279.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"].
aws-deadline_deadline-cloud
AddIcon
public
0
1
__init__
def __init__(self, parent=None):super().__init__("", parent)self.layout = QVBoxLayout(self)self._build_ui()
1
4
2
32
0
292
295
192
self
[]
None
{"Assign": 1, "Expr": 1}
4
3
4
["str", "Path", "__init__", "super"]
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_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 AddIcon, that inherit another class.The function start at line 292 and ends at 295. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [192.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["str", "Path", "__init__", "super"], 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
OverrideRequirementsWidget
public
0
1
_build_ui
def _build_ui(self):# Build a custom row widget for each selectable optionself.cpu_row = HardwareRequirementsRowWidget("vCPUs", self)self.memory_row = HardwareRequirementsRowWidget("Memory (GiB)", self)self.gpu_row = HardwareRequirementsRowWidget("GPUs", self)self.gpu_memory_row = HardwareRequirementsRowWidget("GPU memory (GiB)", self)self.scratch_space_row = HardwareRequirementsRowWidget("Scratch space", self)# Add all rows to layoutself.layout.addWidget(self.cpu_row)self.layout.addWidget(self.memory_row)self.layout.addWidget(self.gpu_row)self.layout.addWidget(self.gpu_memory_row)self.layout.addWidget(self.scratch_space_row)
1
11
1
105
0
297
310
297
self
[]
None
{"Assign": 5, "Expr": 14}
21
29
21
["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.setWordWrap", "self.custom_button_tip_text.setSizePolicy", "self.custom_button_tip_text.setAlignment", "self.use_custom_button_tip.addSpacing", "width", "self.use_custom_button.iconSize", "self.use_custom_button_tip.addWidget", "self.layout.addWidget", "self.layout.addSpacing", "self.layout.addWidget", "self.layout.addLayout"]
0
[]
The function (_build_ui) defined within the public class called OverrideRequirementsWidget, that inherit another class.The function start at line 297 and ends at 310. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 21.0 functions, and It has 21.0 functions called inside which are ["QRadioButton", "self.use_default_button.setChecked", "QRadioButton", "QHBoxLayout", "QLabel", "self.custom_button_tip_text.font", "custom_button_label_font.setPointSize", "custom_button_label_font.setItalic", "custom_button_label_font.setWeight", "self.custom_button_tip_text.setFont", "self.custom_button_tip_text.setWordWrap", "self.custom_button_tip_text.setSizePolicy", "self.custom_button_tip_text.setAlignment", "self.use_custom_button_tip.addSpacing", "width", "self.use_custom_button.iconSize", "self.use_custom_button_tip.addWidget", "self.layout.addWidget", "self.layout.addSpacing", "self.layout.addWidget", "self.layout.addLayout"].
aws-deadline_deadline-cloud
HostRequirementsWidget
public
0
1
get_requirements
def get_requirements(self) -> List[Dict[str, Any]]:"""Returns a list of OpenJD parameter definition dicts witha "value" key filled from the widget.Set the following capabilities according to OpenJD spec.- amount.worker.vcpu- amount.worker.memory- amount.worker.gpu- amount.worker.gpu.memory- amount.worker.disk.scratch"""requirements: List[Dict[str, Any]] = []self.cpu_row.add_requirement(requirements, "amount.worker.vcpu")# Memory capability has UI unit in GiB but template unit in MiB, so setting scaling factor to 1024self.memory_row.add_requirement(requirements, "amount.worker.memory", 1024)self.gpu_row.add_requirement(requirements, "amount.worker.gpu")# GPU Memory capability has UI unit in GiB but template unit in MiB, so set scaling factor to 1024self.gpu_memory_row.add_requirement(requirements, "amount.worker.gpu.memory", 1024)# Disk Scratch capability has unit in GiBself.scratch_space_row.add_requirement(requirements, "amount.worker.disk.scratch")return requirements
1
8
1
86
0
312
333
312
self
[]
Optional[Dict[str, Any]]
{"AnnAssign": 1, "Assign": 3, "Expr": 5, "If": 5, "Return": 2}
12
28
12
["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"]
The function (get_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 312 and ends at 333. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 12.0 functions, It has 12.0 functions called inside which are ["self._is_custom_requirements_selected", "self.os_requirements_box.get_requirements", "self.hardware_requirements_box.get_requirements", "self.custom_requirements_box.get_requirements", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault", "extend", "requirements.setdefault"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69758571_chipsalliance_f4pga.f4pga.setup_py.get_requirements"].
aws-deadline_deadline-cloud
HostRequirementsWidget
public
0
1
set_requirements
def set_requirements(self, requirements: HardwareRequirements):self.cpu_row.clear()self.memory_row.clear()self.gpu_row.clear()self.gpu_memory_row.clear()self.scratch_space_row.clear()self.cpu_row.minimum = requirements.cpu_minself.cpu_row.maximum = requirements.cpu_maxself.memory_row.minimum = requirements.memory_min // 1024self.memory_row.maximum = requirements.memory_max // 1024self.gpu_row.minimum = requirements.acceleration_minself.gpu_row.maximum = requirements.acceleration_maxself.gpu_memory_row.minimum = requirements.acceleration_memory_min // 1024self.gpu_memory_row.maximum = requirements.acceleration_memory_max // 1024self.scratch_space_row.minimum = requirements.scratch_space_minself.scratch_space_row.maximum = requirements.scratch_space_max
1
16
2
138
0
335
355
335
self,requirements
[]
None
{"Expr": 5, "If": 3}
5
9
5
["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"]
0
[]
The function (set_requirements) defined within the public class called HostRequirementsWidget, that inherit another class.The function start at line 335 and ends at 355. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [335.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["self.custom_requirements_box.set_requirements", "self.os_requirements_box.set_requirements", "self.hardware_requirements_box.set_requirements", "self.mode_selection_box.use_default_button.setChecked", "self.mode_selection_box.use_custom_button.setChecked"].