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 | SharedJobSettingsWidget | public | 0 | 1 | refresh_ui | def refresh_ui(self, settings: Any):self.sub_name_edit.setText(settings.name)self.desc_edit.setText(settings.description)# Set all fields with type checkingself.initial_status_box.setCurrentText(settings.initial_statusif self._has_compatible_attr(settings, "initial_status", str)else "READY")self.max_failed_tasks_count_box.setValue(settings.max_failed_tasks_countif self._has_compatible_attr(settings, "max_failed_tasks_count", int)else 20)self.max_retries_per_task_box.setValue(settings.max_retries_per_taskif self._has_compatible_attr(settings, "max_retries_per_task", int)else 5)self.priority_box.setValue(settings.priority if self._has_compatible_attr(settings, "priority", int) else 50)has_limited_max_worker_count = ((settings.max_worker_count > 0)if self._has_compatible_attr(settings, "max_worker_count", int)else False)self.unlimited_max_worker_count.setChecked(not has_limited_max_worker_count)self.limited_max_worker_count.setChecked(has_limited_max_worker_count)self.max_worker_count_box.setHidden(not has_limited_max_worker_count)if has_limited_max_worker_count:self.max_worker_count_box.setValue(settings.max_worker_count) | 7 | 31 | 2 | 184 | 0 | 326 | 359 | 326 | self,job_settings,load_new_bundle | [] | None | {"Assign": 2, "Expr": 2, "For": 1, "If": 2} | 4 | 13 | 4 | ["self.shared_job_properties_box.refresh_ui", "parameter.get", "parameter.get", "self.refresh_queue_parameters"] | 0 | [] | The function (refresh_ui) defined within the public class called SharedJobSettingsWidget, that inherit another class.The function start at line 326 and ends at 359. It contains 31 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [326.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.shared_job_properties_box.refresh_ui", "parameter.get", "parameter.get", "self.refresh_queue_parameters"]. |
aws-deadline_deadline-cloud | SharedJobSettingsWidget | public | 0 | 1 | set_parameter_value | def set_parameter_value(self, parameter: dict[str, Any]):"""Given an OpenJD parameter definition with a "value" key,set the parameter value in the widget.If the parameter value cannot be set, raises a KeyError."""parameter_name = parameter["name"]if parameter_name == "deadline:targetTaskRunStatus":self.initial_status_box.setCurrentText(parameter["value"])elif parameter_name == "deadline:maxFailedTasksCount":self.max_failed_tasks_count_box.setValue(parameter["value"])elif parameter_name == "deadline:maxRetriesPerTask":self.max_retries_per_task_box.setValue(parameter["value"])elif parameter_name == "deadline:priority":self.priority_box.setValue(parameter["value"])elif parameter_name == "deadline:maxWorkerCount":if parameter["value"] == -1:self.unlimited_max_worker_count.setChecked(True)self.limited_max_worker_count.setChecked(False)self.max_worker_count_box.setHidden(True)else:self.unlimited_max_worker_count.setChecked(False)self.limited_max_worker_count.setChecked(True)self.max_worker_count_box.setHidden(False)self.max_worker_count_box.setValue(parameter["value"])else:raise KeyError(parameter_name) | 7 | 22 | 2 | 167 | 0 | 361 | 388 | 361 | self,parameter | [] | None | {"Expr": 3, "If": 1} | 3 | 11 | 3 | ["startswith", "self.shared_job_properties_box.set_parameter_value", "self.queue_parameters_box.set_parameter_value"] | 0 | [] | The function (set_parameter_value) defined within the public class called SharedJobSettingsWidget, that inherit another class.The function start at line 361 and ends at 388. It contains 22 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [361.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["startswith", "self.shared_job_properties_box.set_parameter_value", "self.queue_parameters_box.set_parameter_value"]. |
aws-deadline_deadline-cloud | SharedJobSettingsWidget | public | 0 | 1 | get_parameters | def get_parameters(self):"""Returns a list of OpenJD parameter definition dicts witha "value" key filled from the widget."""job_parameters = [{"name": "deadline:targetTaskRunStatus","type": "STRING","userInterface": {"control": "DROPDOWN_LIST","label": "Initial state",},"allowedValues": ["READY", "SUSPENDED"],"value": self.initial_status_box.currentText(),},{"name": "deadline:maxFailedTasksCount","description": "Maximum number of Tasks that can fail before the Job will be marked as failed.","type": "INT","userInterface": {"control": "SPIN_BOX","label": "Maximum failed tasks count",},"minValue": 0,"value": self.max_failed_tasks_count_box.value(),},{"name": "deadline:maxRetriesPerTask","description": "Maximum number of times that a task will retry before it's marked as failed.","type": "INT","userInterface": {"control": "SPIN_BOX","label": "Maximum retries per task",},"minValue": 0,"value": self.max_retries_per_task_box.value(),},{"name": "deadline:priority", "type": "INT", "value": self.priority_box.value()},]if not self.unlimited_max_worker_count.isChecked():job_parameters.append({"name": "deadline:maxWorkerCount","type": "INT","value": self.max_worker_count_box.value(),})return job_parameters | 2 | 45 | 1 | 193 | 0 | 390 | 438 | 390 | self | [] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 2 | 9 | 2 | ["self.queue_parameters_box.get_parameters", "self.shared_job_properties_box.get_parameters"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94705237_tenstorrent_tt_buda.pybuda.pybuda.compile_py.run_optimization_pass", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94705237_tenstorrent_tt_buda.pybuda.pybuda.run.impl_py._translate_framework_modules_on_devices"] | The function (get_parameters) defined within the public class called SharedJobSettingsWidget, that inherit another class.The function start at line 390 and ends at 438. It contains 45 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["self.queue_parameters_box.get_parameters", "self.shared_job_properties_box.get_parameters"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94705237_tenstorrent_tt_buda.pybuda.pybuda.compile_py.run_optimization_pass", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94705237_tenstorrent_tt_buda.pybuda.pybuda.run.impl_py._translate_framework_modules_on_devices"]. |
aws-deadline_deadline-cloud | SharedJobSettingsWidget | public | 0 | 1 | update_settings | def update_settings(self, settings):"""Update a given instance of scene settings with updated values."""# TODO: Extract sticky settings from per-DCC implementation to centralized.settings.name = self.sub_name_edit.text()settings.description = self.desc_edit.text()# Set all fields with type checkingif self._has_compatible_attr(settings, "initial_status", str):settings.initial_status = self.initial_status_box.currentText()if self._has_compatible_attr(settings, "max_failed_tasks_count", int):settings.max_failed_tasks_count = self.max_failed_tasks_count_box.value()if self._has_compatible_attr(settings, "max_retries_per_task", int):settings.max_retries_per_task = self.max_retries_per_task_box.value()if self._has_compatible_attr(settings, "priority", int):settings.priority = self.priority_box.value()# Handle `max_worker_count` based on UI selection:# Preserve unlimited worker setting by using -1 instead of overriding with spin box valueif self._has_compatible_attr(settings, "max_worker_count", int):if self.unlimited_max_worker_count.isChecked():settings.max_worker_count = -1# -1 denotes no max worker count limits.else:settings.max_worker_count = self.max_worker_count_box.value() | 7 | 16 | 2 | 162 | 0 | 440 | 467 | 440 | self,settings | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["self.shared_job_properties_box.update_settings"] | 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 SharedJobSettingsWidget, that inherit another class.The function start at line 440 and ends at 467. It contains 16 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [440.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["self.shared_job_properties_box.update_settings"], 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 | SharedJobSettingsWidget | public | 0 | 1 | __init__ | def __init__(self, *, parent: Optional[QWidget] = None):super().__init__("Deadline Cloud settings", parent=parent)self.deadline_settings: Dict[str, Any] = {"counter": -1}self.layout = QFormLayout(self)self.layout.setFieldGrowthPolicy(QFormLayout.AllNonFixedFieldsGrow)self._build_ui() | 1 | 6 | 2 | 68 | 0 | 475 | 481 | 475 | self,initial_settings,initial_shared_parameter_values,parent | [] | None | {"AnnAssign": 1, "Assign": 8, "Expr": 10, "For": 1, "If": 1} | 19 | 40 | 19 | ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"] | 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 SharedJobSettingsWidget, that inherit another class.The function start at line 475 and ends at 481. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [475.0] and does not return any value. It declares 19.0 functions, It has 19.0 functions called inside which are ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"], 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 | DeadlineCloudSettingsWidget | public | 0 | 1 | _set_enabled_with_label | def _set_enabled_with_label(self, prop_name: str, enabled: bool):"""Sets 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 | 483 | 486 | 483 | 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 DeadlineCloudSettingsWidget, that inherit another class.The function start at line 483 and ends at 486. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [483.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 | SharedJobPropertiesWidget | public | 0 | 1 | _build_ui | def _build_ui(self):"""Build the UI for the Deadline settings"""self.farm_box_label = QLabel("Farm")self.farm_box = DeadlineFarmDisplay()self.layout.addRow(self.farm_box_label, self.farm_box)self.queue_box_label = QLabel("Queue")self.queue_box = DeadlineQueueDisplay()self.layout.addRow(self.queue_box_label, self.queue_box) | 1 | 7 | 1 | 64 | 0 | 488 | 498 | 488 | self | [] | None | {"Assign": 17, "Expr": 22} | 39 | 53 | 39 | ["QFormLayout", "self.layout.setFieldGrowthPolicy", "QLineEdit", "self.sub_name_edit.setMaxLength", "self.layout.addRow", "QLabel", "QLineEdit", "self.desc_edit.setMaxLength", "self.layout.addRow", "QLabel", "QSpinBox", "self.priority_box.setRange", "self.layout.addRow", "QLabel", "QComboBox", "self.initial_status_box.addItems", "self.layout.addRow", "QLabel", "self.max_failed_tasks_count_box_label.setToolTip", "QSpinBox", "self.max_failed_tasks_count_box.setRange", "self.layout.addRow", "QLabel", "self.max_retries_per_task_box_label.setToolTip", "QSpinBox", "self.max_retries_per_task_box.setRange", "self.layout.addRow", "QLabel", "self.max_worker_count_box_label.setToolTip", "QSpinBox", "self.max_worker_count_box.setRange", "QRadioButton", "QRadioButton", "self.limited_max_worker_count.toggled.connect", "QVBoxLayout", "self.max_worker_count_layout.addWidget", "self.max_worker_count_layout.addWidget", "self.max_worker_count_layout.addWidget", "self.layout.addRow"] | 0 | [] | The function (_build_ui) defined within the public class called SharedJobPropertiesWidget, that inherit another class.The function start at line 488 and ends at 498. 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 39.0 functions, and It has 39.0 functions called inside which are ["QFormLayout", "self.layout.setFieldGrowthPolicy", "QLineEdit", "self.sub_name_edit.setMaxLength", "self.layout.addRow", "QLabel", "QLineEdit", "self.desc_edit.setMaxLength", "self.layout.addRow", "QLabel", "QSpinBox", "self.priority_box.setRange", "self.layout.addRow", "QLabel", "QComboBox", "self.initial_status_box.addItems", "self.layout.addRow", "QLabel", "self.max_failed_tasks_count_box_label.setToolTip", "QSpinBox", "self.max_failed_tasks_count_box.setRange", "self.layout.addRow", "QLabel", "self.max_retries_per_task_box_label.setToolTip", "QSpinBox", "self.max_retries_per_task_box.setRange", "self.layout.addRow", "QLabel", "self.max_worker_count_box_label.setToolTip", "QSpinBox", "self.max_worker_count_box.setRange", "QRadioButton", "QRadioButton", "self.limited_max_worker_count.toggled.connect", "QVBoxLayout", "self.max_worker_count_layout.addWidget", "self.max_worker_count_layout.addWidget", "self.max_worker_count_layout.addWidget", "self.layout.addRow"]. |
aws-deadline_deadline-cloud | DeadlineCloudSettingsWidget | public | 0 | 1 | refresh_setting_controls | def refresh_setting_controls(self, deadline_authorized):"""Refreshes the controls for UI items that depend on the AWS Deadline Cloud APIfor their values.Args:deadline_authorized (bool): Should be the result of a call toapi.check_deadline_available, for example froman AWS Deadline Cloud Status Widget."""self.farm_box.refresh(deadline_authorized)self.queue_box.refresh(deadline_authorized) | 1 | 3 | 2 | 24 | 0 | 500 | 511 | 500 | self,deadline_authorized | [] | None | {"Expr": 3} | 2 | 12 | 2 | ["self.farm_box.refresh", "self.queue_box.refresh"] | 0 | [] | The function (refresh_setting_controls) defined within the public class called DeadlineCloudSettingsWidget, that inherit another class.The function start at line 500 and ends at 511. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [500.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.farm_box.refresh", "self.queue_box.refresh"]. |
aws-deadline_deadline-cloud | SharedJobSettingsWidget | public | 0 | 1 | __init__ | def __init__(self, *, resource_name, setting_name, parent=None):super().__init__(parent=parent)self.__refresh_thread = Noneself.__refresh_id = 0self.canceled = CancelationFlag()self.destroyed.connect(self.canceled.set_canceled)self.resource_name = resource_nameself.setting_name = setting_nameself.item_id = get_setting(self.setting_name)self.item_name = ""self.item_description = ""self._build_ui()self.label.setText(self.item_display_name()) | 1 | 13 | 4 | 101 | 0 | 534 | 550 | 534 | self,initial_settings,initial_shared_parameter_values,parent | [] | None | {"AnnAssign": 1, "Assign": 8, "Expr": 10, "For": 1, "If": 1} | 19 | 40 | 19 | ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"] | 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 SharedJobSettingsWidget, that inherit another class.The function start at line 534 and ends at 550. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [534.0] and does not return any value. It declares 19.0 functions, It has 19.0 functions called inside which are ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"], 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 | SharedJobPropertiesWidget | public | 0 | 1 | _build_ui | def _build_ui(self):self.label = QLabel(parent=self)layout = QHBoxLayout(self)layout.setContentsMargins(0, 0, 0, 0)layout.addWidget(self.label)self._item_update.connect(self.handle_item_update)self.background_exception.connect(self.handle_background_exception) | 1 | 7 | 1 | 61 | 0 | 552 | 558 | 552 | self | [] | None | {"Assign": 17, "Expr": 22} | 39 | 53 | 39 | ["QFormLayout", "self.layout.setFieldGrowthPolicy", "QLineEdit", "self.sub_name_edit.setMaxLength", "self.layout.addRow", "QLabel", "QLineEdit", "self.desc_edit.setMaxLength", "self.layout.addRow", "QLabel", "QSpinBox", "self.priority_box.setRange", "self.layout.addRow", "QLabel", "QComboBox", "self.initial_status_box.addItems", "self.layout.addRow", "QLabel", "self.max_failed_tasks_count_box_label.setToolTip", "QSpinBox", "self.max_failed_tasks_count_box.setRange", "self.layout.addRow", "QLabel", "self.max_retries_per_task_box_label.setToolTip", "QSpinBox", "self.max_retries_per_task_box.setRange", "self.layout.addRow", "QLabel", "self.max_worker_count_box_label.setToolTip", "QSpinBox", "self.max_worker_count_box.setRange", "QRadioButton", "QRadioButton", "self.limited_max_worker_count.toggled.connect", "QVBoxLayout", "self.max_worker_count_layout.addWidget", "self.max_worker_count_layout.addWidget", "self.max_worker_count_layout.addWidget", "self.layout.addRow"] | 0 | [] | The function (_build_ui) defined within the public class called SharedJobPropertiesWidget, that inherit another class.The function start at line 552 and ends at 558. 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 39.0 functions, and It has 39.0 functions called inside which are ["QFormLayout", "self.layout.setFieldGrowthPolicy", "QLineEdit", "self.sub_name_edit.setMaxLength", "self.layout.addRow", "QLabel", "QLineEdit", "self.desc_edit.setMaxLength", "self.layout.addRow", "QLabel", "QSpinBox", "self.priority_box.setRange", "self.layout.addRow", "QLabel", "QComboBox", "self.initial_status_box.addItems", "self.layout.addRow", "QLabel", "self.max_failed_tasks_count_box_label.setToolTip", "QSpinBox", "self.max_failed_tasks_count_box.setRange", "self.layout.addRow", "QLabel", "self.max_retries_per_task_box_label.setToolTip", "QSpinBox", "self.max_retries_per_task_box.setRange", "self.layout.addRow", "QLabel", "self.max_worker_count_box_label.setToolTip", "QSpinBox", "self.max_worker_count_box.setRange", "QRadioButton", "QRadioButton", "self.limited_max_worker_count.toggled.connect", "QVBoxLayout", "self.max_worker_count_layout.addWidget", "self.max_worker_count_layout.addWidget", "self.max_worker_count_layout.addWidget", "self.layout.addRow"]. |
aws-deadline_deadline-cloud | _DeadlineNamedResourceDisplay | protected | 0 | 1 | handle_background_exception | def handle_background_exception(self, e):self.label.setText(self.item_id)self.label.setToolTip("") | 1 | 3 | 2 | 25 | 0 | 560 | 562 | 560 | self,e | [] | None | {"Expr": 2} | 2 | 3 | 2 | ["self.label.setText", "self.label.setToolTip"] | 0 | [] | The function (handle_background_exception) defined within the protected class called _DeadlineNamedResourceDisplay, that inherit another class.The function start at line 560 and ends at 562. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [560.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.label.setText", "self.label.setToolTip"]. |
aws-deadline_deadline-cloud | _DeadlineNamedResourceDisplay | protected | 0 | 1 | item_display_name | def item_display_name(self):"""Returns the text to display the item name as"""return self.item_name or self.item_id or "<not configured>" | 3 | 2 | 1 | 16 | 0 | 564 | 566 | 564 | self | [] | Returns | {"Expr": 1, "Return": 1} | 0 | 3 | 0 | [] | 0 | [] | The function (item_display_name) defined within the protected class called _DeadlineNamedResourceDisplay, that inherit another class.The function start at line 564 and ends at 566. It contains 2 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value.. |
aws-deadline_deadline-cloud | _DeadlineNamedResourceDisplay | protected | 0 | 1 | refresh | def refresh(self, deadline_authorized):"""Starts a background thread to refresh the item name.Args:deadline_authorized (bool): Should be the result of a call toapi.check_deadline_available, for example froman AWS Deadline Cloud Status Widget."""resource_id = get_setting(self.setting_name)if resource_id != self.item_id or not self.item_name:self.item_id = resource_idself.item_name = ""self.item_description = ""display_name = self.item_display_name()# Only call the AWS Deadline Cloud API if we've confirmed accessif deadline_authorized:display_name = "<refreshing> - " + display_nameself.__refresh_id += 1self.__refresh_thread = threading.Thread(target=self._refresh_thread_function,name=f"AWS Deadline Cloud refresh {self.resource_name} item thread",args=(self.__refresh_id,),)self.__refresh_thread.start()self.label.setText(display_name)self.label.setToolTip(self.item_description)else:self.label.setText(self.item_display_name()) | 4 | 20 | 2 | 131 | 0 | 568 | 598 | 568 | self,deadline_authorized | [] | None | {"Assign": 7, "AugAssign": 1, "Expr": 5, "If": 2} | 8 | 31 | 8 | ["get_setting", "self.item_display_name", "threading.Thread", "self.__refresh_thread.start", "self.label.setText", "self.label.setToolTip", "self.label.setText", "self.item_display_name"] | 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 protected class called _DeadlineNamedResourceDisplay, that inherit another class.The function start at line 568 and ends at 598. It contains 20 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [568.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions called inside which are ["get_setting", "self.item_display_name", "threading.Thread", "self.__refresh_thread.start", "self.label.setText", "self.label.setToolTip", "self.label.setText", "self.item_display_name"], 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 | _DeadlineNamedResourceDisplay | protected | 0 | 1 | handle_item_update | def handle_item_update(self, refresh_id, id, name, description):# Apply the refresh if it's still for the latest callif refresh_id == self.__refresh_id:self.item_id = idself.item_name = nameself.item_description = descriptionself.label.setText(self.item_display_name())self.label.setToolTip(self.item_description) | 2 | 7 | 5 | 57 | 0 | 600 | 607 | 600 | self,refresh_id,id,name,description | [] | None | {"Assign": 3, "Expr": 2, "If": 1} | 3 | 8 | 3 | ["self.label.setText", "self.item_display_name", "self.label.setToolTip"] | 0 | [] | The function (handle_item_update) defined within the protected class called _DeadlineNamedResourceDisplay, that inherit another class.The function start at line 600 and ends at 607. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [600.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.label.setText", "self.item_display_name", "self.label.setToolTip"]. |
aws-deadline_deadline-cloud | _DeadlineNamedResourceDisplay | protected | 0 | 1 | _refresh_thread_function | def _refresh_thread_function(self, refresh_id: int):"""This function gets started in a background thread to refresh the list."""try:item = self.get_item()if not self.canceled:self._item_update.emit(refresh_id, *item)except BaseException as e:if not self.canceled:self.background_exception.emit(f"Refresh {self.resource_name} item", e) | 4 | 8 | 2 | 58 | 0 | 609 | 619 | 609 | self,refresh_id | [] | None | {"Assign": 1, "Expr": 3, "If": 2, "Try": 1} | 3 | 11 | 3 | ["self.get_item", "self._item_update.emit", "self.background_exception.emit"] | 0 | [] | The function (_refresh_thread_function) defined within the protected class called _DeadlineNamedResourceDisplay, that inherit another class.The function start at line 609 and ends at 619. It contains 8 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [609.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.get_item", "self._item_update.emit", "self.background_exception.emit"]. |
aws-deadline_deadline-cloud | SharedJobSettingsWidget | public | 0 | 1 | __init__ | def __init__(self, *, parent=None):super().__init__(resource_name="Farm", setting_name="defaults.farm_id", parent=parent) | 1 | 2 | 2 | 29 | 0 | 623 | 624 | 623 | self,initial_settings,initial_shared_parameter_values,parent | [] | None | {"AnnAssign": 1, "Assign": 8, "Expr": 10, "For": 1, "If": 1} | 19 | 40 | 19 | ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"] | 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 SharedJobSettingsWidget, that inherit another class.The function start at line 623 and ends at 624. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [623.0] and does not return any value. It declares 19.0 functions, It has 19.0 functions called inside which are ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"], 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 | DeadlineFarmDisplay | public | 0 | 1 | get_item | def get_item(self):farm_id = get_setting(self.setting_name)if farm_id:deadline = api.get_boto3_client("deadline")response = deadline.get_farm(farmId=farm_id)return (response["farmId"], response["displayName"], response["description"])else:return ("", "", "") | 2 | 8 | 1 | 61 | 0 | 626 | 633 | 626 | self | [] | Returns | {"Assign": 3, "If": 1, "Return": 2} | 3 | 8 | 3 | ["get_setting", "api.get_boto3_client", "deadline.get_farm"] | 0 | [] | The function (get_item) defined within the public class called DeadlineFarmDisplay, that inherit another class.The function start at line 626 and ends at 633. It contains 8 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 3.0 functions, and It has 3.0 functions called inside which are ["get_setting", "api.get_boto3_client", "deadline.get_farm"]. |
aws-deadline_deadline-cloud | SharedJobSettingsWidget | public | 0 | 1 | __init__ | def __init__(self, *, parent=None):super().__init__(resource_name="Farm", setting_name="defaults.farm_id", parent=parent) | 1 | 2 | 2 | 29 | 0 | 637 | 638 | 623 | self,initial_settings,initial_shared_parameter_values,parent | [] | None | {"AnnAssign": 1, "Assign": 8, "Expr": 10, "For": 1, "If": 1} | 19 | 40 | 19 | ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"] | 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 SharedJobSettingsWidget, that inherit another class.The function start at line 637 and ends at 638. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [623.0] and does not return any value. It declares 19.0 functions, It has 19.0 functions called inside which are ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"], 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 | DeadlineFarmDisplay | public | 0 | 1 | get_item | def get_item(self):farm_id = get_setting("defaults.farm_id")queue_id = get_setting(self.setting_name)if farm_id and queue_id:deadline = api.get_boto3_client("deadline")response = deadline.get_queue(farmId=farm_id, queueId=queue_id)return (response["queueId"], response["displayName"], response["description"])else:return ("", "", "") | 3 | 9 | 1 | 73 | 0 | 640 | 648 | 640 | self | [] | Returns | {"Assign": 3, "If": 1, "Return": 2} | 3 | 8 | 3 | ["get_setting", "api.get_boto3_client", "deadline.get_farm"] | 0 | [] | The function (get_item) defined within the public class called DeadlineFarmDisplay, that inherit another class.The function start at line 640 and ends at 648. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["get_setting", "api.get_boto3_client", "deadline.get_farm"]. |
aws-deadline_deadline-cloud | SharedJobSettingsWidget | public | 0 | 1 | __init__ | def __init__(self, *, parent=None):super().__init__(resource_name="Storage profile name",setting_name="settings.storage_profile_id",parent=parent,) | 1 | 6 | 2 | 30 | 0 | 656 | 661 | 656 | self,initial_settings,initial_shared_parameter_values,parent | [] | None | {"AnnAssign": 1, "Assign": 8, "Expr": 10, "For": 1, "If": 1} | 19 | 40 | 19 | ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"] | 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 SharedJobSettingsWidget, that inherit another class.The function start at line 656 and ends at 661. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [656.0] and does not return any value. It declares 19.0 functions, It has 19.0 functions called inside which are ["__init__", "super", "QVBoxLayout", "SharedJobPropertiesWidget", "layout.addWidget", "DeadlineCloudSettingsWidget", "layout.addWidget", "OpenJDParametersWidget", "layout.addWidget", "self.queue_parameters_box.parameter_changed.connect", "self.parameter_changed.emit", "CancelationFlag", "self.destroyed.connect", "self._queue_parameters_update.connect", "self._background_exception.connect", "self._start_load_queue_parameters_thread", "initial_shared_parameter_values.items", "name.startswith", "self.set_parameter_value"], 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 | DeadlineFarmDisplay | public | 0 | 1 | get_item | def get_item(self):farm_id = get_setting("defaults.farm_id")queue_id = get_setting("defaults.queue_id")storage_profile_id = get_setting(self.setting_name)if farm_id and queue_id and storage_profile_id:deadline = api.get_boto3_client("deadline")response = deadline.list_storage_profiles_for_queue(farmId=farm_id, queueId=queue_id)farm_storage_profiles = response.get("storageProfiles", {})if farm_storage_profiles:storage_profile = [(item["storageProfileId"], item["displayName"], item["osFamily"])for item in farm_storage_profilesif storage_profile_id == item["storageProfileId"]]return storage_profile[0]return ("", "", "") | 7 | 16 | 1 | 112 | 0 | 663 | 681 | 663 | self | [] | Returns | {"Assign": 3, "If": 1, "Return": 2} | 3 | 8 | 3 | ["get_setting", "api.get_boto3_client", "deadline.get_farm"] | 0 | [] | The function (get_item) defined within the public class called DeadlineFarmDisplay, that inherit another class.The function start at line 663 and ends at 681. It contains 16 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["get_setting", "api.get_boto3_client", "deadline.get_farm"]. |
aws-deadline_deadline-cloud | DeadlineStorageProfileNameDisplay | public | 0 | 1 | _get_default_storage_profile_name | def _get_default_storage_profile_name(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 "" | 4 | 8 | 1 | 52 | 0 | 683 | 696 | 683 | self | [] | str | {"Expr": 1, "If": 3, "Return": 4} | 3 | 14 | 3 | ["sys.platform.startswith", "sys.platform.startswith", "sys.platform.startswith"] | 0 | [] | The function (_get_default_storage_profile_name) defined within the public class called DeadlineStorageProfileNameDisplay, that inherit another class.The function start at line 683 and ends at 696. 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 | FloatDragSpinBox | public | 0 | 1 | __init__ | def __init__(self, parent: QWidget = None):super().__init__(parent)self.setKeyboardTracking(False)self.setMouseTracking(False)self.setCursor(Qt.SizeVerCursor)self.setMaximum(self.MAX_FLOAT_VALUE)self.setMinimum(self.MIN_FLOAT_VALUE)self.setDragMultiplier(0.1)self.setDecimalMode(DecimalMode.ADAPTIVE_DECIMAL)self.setStepType(QDoubleSpinBox.AdaptiveDecimalStepType)self.lineEdit().installEventFilter(self)self.editingFinished.connect(self._stop_editing)self.valueChanged.connect(self._set_adaptive_decimals)self._cursor_start_pos = self.mapToGlobal(self.pos())self._editing = Falseself._dragging = False | 1 | 16 | 2 | 133 | 0 | 35 | 53 | 35 | self,parent | [] | None | {"Assign": 3, "Expr": 12} | 16 | 19 | 16 | ["__init__", "super", "self.setKeyboardTracking", "self.setMouseTracking", "self.setCursor", "self.setMaximum", "self.setMinimum", "self.setDragMultiplier", "self.setDecimalMode", "self.setStepType", "installEventFilter", "self.lineEdit", "self.editingFinished.connect", "self.valueChanged.connect", "self.mapToGlobal", "self.pos"] | 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 FloatDragSpinBox, that inherit another class.The function start at line 35 and ends at 53. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [35.0] and does not return any value. It declares 16.0 functions, It has 16.0 functions called inside which are ["__init__", "super", "self.setKeyboardTracking", "self.setMouseTracking", "self.setCursor", "self.setMaximum", "self.setMinimum", "self.setDragMultiplier", "self.setDecimalMode", "self.setStepType", "installEventFilter", "self.lineEdit", "self.editingFinished.connect", "self.valueChanged.connect", "self.mapToGlobal", "self.pos"], 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 | FloatDragSpinBox | public | 0 | 1 | mousePressEvent | def mousePressEvent(self, event: QMouseEvent) -> None:"""Hides the cursor on click and records the current cursor position to beused if the user then decides to start dragging the mouse."""super().mousePressEvent(event)self.setCursor(Qt.BlankCursor)self._cursor_start_pos = event.globalPos() | 1 | 4 | 2 | 37 | 0 | 55 | 63 | 55 | self,event | [] | None | {"Assign": 1, "Expr": 3} | 4 | 9 | 4 | ["mousePressEvent", "super", "self.setCursor", "event.globalPos"] | 2 | ["_.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.mousePressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mousePressEvent"] | The function (mousePressEvent) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 55 and ends at 63. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [55.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["mousePressEvent", "super", "self.setCursor", "event.globalPos"], 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.widgets.spinbox_widgets_py.FloatDragSpinBox.mousePressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mousePressEvent"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | mouseMoveEvent | def mouseMoveEvent(self, event: QMouseEvent) -> None:"""Sets the Widget's value based on the position difference that the cursorwas moved while holding the mouse button down."""super().mouseMoveEvent(event)self._dragging = Truecursor_current_pos = event.globalPos()cursor_offset = self._cursor_start_pos.y() - cursor_current_pos.y()new_value = self.value() + (cursor_offset * self.dragMultiplier())new_value = min(new_value, self.maximum())new_value = max(new_value, self.minimum())self.setValue(new_value)QCursor.setPos(self._cursor_start_pos) | 1 | 10 | 2 | 102 | 0 | 65 | 80 | 65 | self,event | [] | None | {"Assign": 6, "Expr": 4} | 13 | 16 | 13 | ["mouseMoveEvent", "super", "event.globalPos", "self._cursor_start_pos.y", "cursor_current_pos.y", "self.value", "self.dragMultiplier", "min", "self.maximum", "max", "self.minimum", "self.setValue", "QCursor.setPos"] | 2 | ["_.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.mouseMoveEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mouseMoveEvent"] | The function (mouseMoveEvent) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 65 and ends at 80. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [65.0] and does not return any value. It declares 13.0 functions, It has 13.0 functions called inside which are ["mouseMoveEvent", "super", "event.globalPos", "self._cursor_start_pos.y", "cursor_current_pos.y", "self.value", "self.dragMultiplier", "min", "self.maximum", "max", "self.minimum", "self.setValue", "QCursor.setPos"], 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.widgets.spinbox_widgets_py.FloatDragSpinBox.mouseMoveEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mouseMoveEvent"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | mouseReleaseEvent | def mouseReleaseEvent(self, event: QMouseEvent) -> None:"""Makes the cursor visible again once the mouse click is released and setsthat the user is no longer dragging the mouse."""super().mouseReleaseEvent(event)self.setCursor(Qt.SizeVerCursor)self._dragging = False | 1 | 4 | 2 | 33 | 0 | 82 | 90 | 82 | self,event | [] | None | {"Assign": 1, "Expr": 3} | 3 | 9 | 3 | ["mouseReleaseEvent", "super", "self.setCursor"] | 2 | ["_.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.mouseReleaseEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mouseReleaseEvent"] | The function (mouseReleaseEvent) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 82 and ends at 90. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [82.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["mouseReleaseEvent", "super", "self.setCursor"], 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.widgets.spinbox_widgets_py.FloatDragSpinBox.mouseReleaseEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mouseReleaseEvent"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | stepEnabled | def stepEnabled(self) -> QAbstractSpinBox.StepEnabled:# type: ignore[name-defined]"""Disables the arrow buttons if the user is using the hold and dragfunctionaltiy to change the value."""if self._dragging:return QAbstractSpinBox.StepNonereturn super().stepEnabled() | 2 | 4 | 1 | 27 | 0 | 92 | 99 | 92 | self | [] | QAbstractSpinBox.StepEnabled | {"Expr": 1, "If": 1, "Return": 2} | 2 | 8 | 2 | ["stepEnabled", "super"] | 2 | ["_.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.stepEnabled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.stepEnabled"] | The function (stepEnabled) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 92 and ends at 99. 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 ["stepEnabled", "super"], 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.widgets.spinbox_widgets_py.FloatDragSpinBox.stepEnabled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.stepEnabled"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | keyPressEvent | def keyPressEvent(self, event: QKeyEvent) -> None:"""Captures any key press events to set that the user is likely manuallyediting the QLineEdit that is part of the Widget."""self._start_editing()super().keyPressEvent(event) | 1 | 3 | 2 | 25 | 0 | 101 | 107 | 101 | self,event | [] | None | {"Expr": 3} | 3 | 7 | 3 | ["self._start_editing", "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 FloatDragSpinBox, that inherit another class.The function start at line 101 and ends at 107. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [101.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["self._start_editing", "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 | FloatDragSpinBox | public | 0 | 1 | eventFilter | def eventFilter(self, object: QObject, event: QEvent) -> bool:"""Captures when the user clicks on the QLineEdit that is part of theWidget and tries to set that the user is currently editing manually."""if object == self.lineEdit() and event.type() == QEvent.MouseButtonPress:self._start_editing()return False | 3 | 4 | 3 | 42 | 0 | 109 | 116 | 109 | self,object,event | [] | bool | {"Expr": 2, "If": 1, "Return": 1} | 3 | 8 | 3 | ["self.lineEdit", "event.type", "self._start_editing"] | 0 | [] | The function (eventFilter) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 109 and ends at 116. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 3 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 ["self.lineEdit", "event.type", "self._start_editing"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | decimalMode | def decimalMode(self) -> DecimalMode:return self._decimal_mode | 1 | 2 | 1 | 11 | 0 | 118 | 119 | 118 | self | [] | DecimalMode | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (decimalMode) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 118 and ends at 119. 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 | FloatDragSpinBox | public | 0 | 1 | setDecimalMode | def setDecimalMode(self, mode: DecimalMode) -> None:self._decimal_mode = mode | 1 | 2 | 2 | 16 | 0 | 121 | 122 | 121 | self,mode | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (setDecimalMode) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 121 and ends at 122. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [121.0] and does not return any value.. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | dragMultiplier | def dragMultiplier(self) -> float:return self._drag_multiplier | 1 | 2 | 1 | 11 | 0 | 124 | 125 | 124 | self | [] | float | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (dragMultiplier) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 124 and ends at 125. 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 | FloatDragSpinBox | public | 0 | 1 | setDragMultiplier | def setDragMultiplier(self, multiplier: float) -> None:self._drag_multiplier = max(0.0, multiplier) | 1 | 2 | 2 | 23 | 0 | 127 | 128 | 127 | self,multiplier | [] | None | {"Assign": 1} | 1 | 2 | 1 | ["max"] | 0 | [] | The function (setDragMultiplier) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 127 and ends at 128. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [127.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["max"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | _set_adaptive_decimals | def _set_adaptive_decimals(self, value: float) -> None:"""Adaptively sets the number of decimal places to use based on the currentvalue when ADAPTIVE_DECIMAL mode is being used."""if self.decimalMode() == DecimalMode.ADAPTIVE_DECIMAL:if value < -1 or value > 1:# Don't take log10 of (-1,1)self.setDecimals(max(0, self.MAX_ADAPTIVE_DECIMALS - floor(abs(log10(abs(value))))))else:self.setDecimals(self.MAX_ADAPTIVE_DECIMALS) | 4 | 6 | 2 | 70 | 0 | 130 | 139 | 130 | self,value | [] | None | {"Expr": 3, "If": 2} | 8 | 10 | 8 | ["self.decimalMode", "self.setDecimals", "max", "floor", "abs", "log10", "abs", "self.setDecimals"] | 0 | [] | The function (_set_adaptive_decimals) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 130 and ends at 139. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [130.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["self.decimalMode", "self.setDecimals", "max", "floor", "abs", "log10", "abs", "self.setDecimals"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | _start_editing | def _start_editing(self) -> None:"""Sets the number of decimal places to the max if using ADAPTIVE_DECIMALmode. This is done while the user is editing in the QLineEdit so theyaren't prevented from entering a small value that would have moredecimal places than the current adaptive decimal places."""if not self._editing:if self.decimalMode() == DecimalMode.ADAPTIVE_DECIMAL:self.setDecimals(self.MAX_ADAPTIVE_DECIMALS)self._editing = True | 3 | 5 | 1 | 38 | 0 | 141 | 151 | 141 | self | [] | None | {"Assign": 1, "Expr": 2, "If": 2} | 2 | 11 | 2 | ["self.decimalMode", "self.setDecimals"] | 0 | [] | The function (_start_editing) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 141 and ends at 151. It contains 5 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.decimalMode", "self.setDecimals"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | _stop_editing | def _stop_editing(self) -> None:"""Tries to set the number of decimal places back to being adaptivelycalculated once the user is finished editing. If ADAPTIVE_DECIMAL modeis not being used then nothing will be changed."""self._set_adaptive_decimals(self.value())self._editing = False | 1 | 3 | 1 | 23 | 0 | 153 | 160 | 153 | self | [] | None | {"Assign": 1, "Expr": 2} | 2 | 8 | 2 | ["self._set_adaptive_decimals", "self.value"] | 0 | [] | The function (_stop_editing) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 153 and ends at 160. 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 ["self._set_adaptive_decimals", "self.value"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | __init__ | def __init__(self, parent: QWidget = None) -> None:super().__init__(parent)self.setKeyboardTracking(False)self.setMouseTracking(False)self.setCursor(Qt.SizeVerCursor)self.setMaximum(self.MAX_INT_VALUE)self.setMinimum(self.MIN_INT_VALUE)self.setDragMultiplier(0.1)self.setStepType(QSpinBox.AdaptiveDecimalStepType)self._cursor_start_pos = self.mapToGlobal(self.pos())self._is_dragging = False | 1 | 11 | 2 | 92 | 0 | 172 | 183 | 172 | self,parent | [] | None | {"Assign": 3, "Expr": 12} | 16 | 19 | 16 | ["__init__", "super", "self.setKeyboardTracking", "self.setMouseTracking", "self.setCursor", "self.setMaximum", "self.setMinimum", "self.setDragMultiplier", "self.setDecimalMode", "self.setStepType", "installEventFilter", "self.lineEdit", "self.editingFinished.connect", "self.valueChanged.connect", "self.mapToGlobal", "self.pos"] | 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 FloatDragSpinBox, that inherit another class.The function start at line 172 and ends at 183. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [172.0] and does not return any value. It declares 16.0 functions, It has 16.0 functions called inside which are ["__init__", "super", "self.setKeyboardTracking", "self.setMouseTracking", "self.setCursor", "self.setMaximum", "self.setMinimum", "self.setDragMultiplier", "self.setDecimalMode", "self.setStepType", "installEventFilter", "self.lineEdit", "self.editingFinished.connect", "self.valueChanged.connect", "self.mapToGlobal", "self.pos"], 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 | FloatDragSpinBox | public | 0 | 1 | mousePressEvent | def mousePressEvent(self, event: QMouseEvent) -> None:"""Hides the cursor on click and records the current cursor position to beused if the user then decides to start dragging the mouse."""super().mousePressEvent(event)self.setCursor(Qt.BlankCursor)self._cursor_start_pos = event.globalPos() | 1 | 4 | 2 | 37 | 0 | 185 | 192 | 55 | self,event | [] | None | {"Assign": 1, "Expr": 3} | 4 | 9 | 4 | ["mousePressEvent", "super", "self.setCursor", "event.globalPos"] | 2 | ["_.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.mousePressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mousePressEvent"] | The function (mousePressEvent) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 185 and ends at 192. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [55.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["mousePressEvent", "super", "self.setCursor", "event.globalPos"], 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.widgets.spinbox_widgets_py.FloatDragSpinBox.mousePressEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mousePressEvent"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | mouseMoveEvent | def mouseMoveEvent(self, event: QMouseEvent) -> None:"""Sets the Widget's value based on the position difference that the cursorwas moved while holding the mouse button down."""super().mouseMoveEvent(event)self._is_dragging = Truecursor_current_pos = event.globalPos()cursor_offset = self._cursor_start_pos.y() - cursor_current_pos.y()new_value = self.value() + (cursor_offset * self.dragMultiplier())# Always increment / decrement by at least 1 regardless of the offsetnew_value = ceil(new_value) if cursor_offset > 0 else floor(new_value)new_value = min(new_value, self.maximum())new_value = max(new_value, self.minimum())self.setValue(new_value)QCursor.setPos(self._cursor_start_pos) | 2 | 11 | 2 | 117 | 0 | 194 | 212 | 194 | self,event | [] | None | {"Assign": 6, "Expr": 4} | 13 | 16 | 13 | ["mouseMoveEvent", "super", "event.globalPos", "self._cursor_start_pos.y", "cursor_current_pos.y", "self.value", "self.dragMultiplier", "min", "self.maximum", "max", "self.minimum", "self.setValue", "QCursor.setPos"] | 2 | ["_.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.mouseMoveEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mouseMoveEvent"] | The function (mouseMoveEvent) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 194 and ends at 212. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [194.0] and does not return any value. It declares 13.0 functions, It has 13.0 functions called inside which are ["mouseMoveEvent", "super", "event.globalPos", "self._cursor_start_pos.y", "cursor_current_pos.y", "self.value", "self.dragMultiplier", "min", "self.maximum", "max", "self.minimum", "self.setValue", "QCursor.setPos"], 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.widgets.spinbox_widgets_py.FloatDragSpinBox.mouseMoveEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mouseMoveEvent"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | mouseReleaseEvent | def mouseReleaseEvent(self, event: QMouseEvent) -> None:"""Makes the cursor visible again once the mouse click is released and setsthat the user is no longer dragging the mouse."""super().mouseReleaseEvent(event)self.setCursor(Qt.SizeVerCursor)self._dragging = False | 1 | 4 | 2 | 33 | 0 | 214 | 221 | 82 | self,event | [] | None | {"Assign": 1, "Expr": 3} | 3 | 9 | 3 | ["mouseReleaseEvent", "super", "self.setCursor"] | 2 | ["_.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.mouseReleaseEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mouseReleaseEvent"] | The function (mouseReleaseEvent) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 214 and ends at 221. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [82.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["mouseReleaseEvent", "super", "self.setCursor"], 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.widgets.spinbox_widgets_py.FloatDragSpinBox.mouseReleaseEvent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.mouseReleaseEvent"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | stepEnabled | def stepEnabled(self) -> QAbstractSpinBox.StepEnabled:# type: ignore[name-defined]"""Disables the arrow buttons if the user is using the hold and dragfunctionaltiy to change the value."""if self._dragging:return QAbstractSpinBox.StepNonereturn super().stepEnabled() | 2 | 4 | 1 | 27 | 0 | 223 | 230 | 92 | self | [] | QAbstractSpinBox.StepEnabled | {"Expr": 1, "If": 1, "Return": 2} | 2 | 8 | 2 | ["stepEnabled", "super"] | 2 | ["_.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.stepEnabled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.stepEnabled"] | The function (stepEnabled) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 223 and ends at 230. 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 ["stepEnabled", "super"], 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.widgets.spinbox_widgets_py.FloatDragSpinBox.stepEnabled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.ui.widgets.spinbox_widgets_py.IntDragSpinBox.stepEnabled"]. |
aws-deadline_deadline-cloud | FloatDragSpinBox | public | 0 | 1 | dragMultiplier | def dragMultiplier(self) -> float:return self._drag_multiplier | 1 | 2 | 1 | 11 | 0 | 232 | 233 | 124 | self | [] | float | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (dragMultiplier) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 232 and ends at 233. 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 | FloatDragSpinBox | public | 0 | 1 | setDragMultiplier | def setDragMultiplier(self, multiplier: float) -> None:self._drag_multiplier = max(0.0, multiplier) | 1 | 2 | 2 | 23 | 0 | 235 | 236 | 127 | self,multiplier | [] | None | {"Assign": 1} | 1 | 2 | 1 | ["max"] | 0 | [] | The function (setDragMultiplier) defined within the public class called FloatDragSpinBox, that inherit another class.The function start at line 235 and ends at 236. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [127.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["max"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | human_readable_file_size | def human_readable_file_size(size_in_bytes: int) -> str:"""Convert a size in bytes to something human readable. For example 1000 bytes will be convertedto 1 KB. Sizes close enough to a postfix threshold will be rounded up to the next threshold.For example 999999 bytes would be output as 1.0 MB and NOT 999.99 KB (or as a consequence ofPython's round function 1000.0 KB).This function is for display purposes only."""converted_size: Union[int, float] = size_in_bytesrounded: Union[int, float]postfixes = ["B", "KB", "MB", "GB", "TB", "PB"]for postfix in postfixes:rounded = round(converted_size, ndigits=2)if rounded < 1000:return f"{rounded} {postfix}"converted_size /= 1000# If we go higher than the provided postfix,# then return as a large amount of the highest postfix we've specified.return f"{rounded} {postfixes[-1]}" | 3 | 10 | 1 | 73 | 2 | 14 | 37 | 14 | size_in_bytes | ['rounded', 'postfixes'] | str | {"AnnAssign": 2, "Assign": 2, "AugAssign": 1, "Expr": 1, "For": 1, "If": 1, "Return": 2} | 1 | 24 | 1 | ["round"] | 13 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py._generate_message_for_asset_paths", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._get_download_summary_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._incremental_download_py._incremental_output_download", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.PathSummary.summary_totals", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_path_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._ensure_disk_capacity", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._get_output_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.progress_tracker_py.ProgressTracker._get_progress_report_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.progress_tracker_py.SummaryStatistics.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_human_readable_file_size", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_asset_sync_py.TestAssetSync.test_sync_outputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_download_py.assert_progress_tracker_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_upload_py.assert_progress_report_last_callback"] | The function (human_readable_file_size) defined within the public class called public.The function start at line 14 and ends at 37. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["round"], It has 13.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.api._submit_job_bundle_py._generate_message_for_asset_paths", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._get_download_summary_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._incremental_download_py._incremental_output_download", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.PathSummary.summary_totals", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_path_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._ensure_disk_capacity", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._get_output_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.progress_tracker_py.ProgressTracker._get_progress_report_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.progress_tracker_py.SummaryStatistics.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_human_readable_file_size", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_asset_sync_py.TestAssetSync.test_sync_outputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_download_py.assert_progress_tracker_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_upload_py.assert_progress_report_last_callback"]. |
aws-deadline_deadline-cloud | _NumberedPath | protected | 0 | 0 | __init__ | def __init__(self, path: str):m = _NUMBERED_PATH_REGEX.match(path)if m:self.path = pathself.parts = [m.group(1), m.group(2), m.group(3) or ""]self.grouping = f"{self.parts[0]}#.{self.parts[2]}"number = self.parts[1]if number[0] == "0":self.padding_min = len(number)else:self.padding_min = 1self.padding_max = len(number)self.number = int(number)else:self.path = self.grouping = pathself.padding_min = self.padding_max = -1 | 4 | 16 | 2 | 127 | 0 | 65 | 80 | 65 | self,path | [] | None | {"Assign": 11, "If": 2} | 7 | 16 | 7 | ["_NUMBERED_PATH_REGEX.match", "m.group", "m.group", "m.group", "len", "len", "int"] | 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 protected class called _NumberedPath.The function start at line 65 and ends at 80. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [65.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["_NUMBERED_PATH_REGEX.match", "m.group", "m.group", "m.group", "len", "len", "int"], 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 | _NumberedPath | protected | 0 | 0 | __repr__ | def __repr__(self):return f"_NumberedPath({self.path!r})" | 1 | 2 | 1 | 8 | 0 | 82 | 83 | 82 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 16 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3581153_zetaops_pyoko.pyoko.listnode_py.ListNode.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.PBXObjects_py.objects._print_object", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.XcodeProject_py.XcodeProject.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxcli.TestPBXProjFile_py.PBXProjFileTest.testAddFilesWithHeadersScope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxcli.TestPBXProjFolder_py.PBXProjFolderTest.testAddFolderSuccessWithPublicHeaders", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxsections.TestPBXBuildFile_py.PBXBuildFileTest.testRemoveCompilerFlagsList", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3710086_joke2k_django_environ.tests.test_path_py.test_complex_manipulation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.uiautomator2.xpath_py.XPath.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.class_registry_py.ProtectedDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.key_py.CPubKey.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94480858_sktime_skbase.skbase.base._pretty_printing._pprint_py.KeyValTuple.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94657466_commonism_aiopenapi3.aiopenapi3.errors_py.ResponseError.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95215919_ITA_Solar_helita.helita.sim.stagger_py.ArrayOnMesh.__repr__"] | The function (__repr__) defined within the protected class called _NumberedPath.The function start at line 82 and ends at 83. 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 has 16.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3581153_zetaops_pyoko.pyoko.listnode_py.ListNode.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.PBXObjects_py.objects._print_object", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.XcodeProject_py.XcodeProject.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxcli.TestPBXProjFile_py.PBXProjFileTest.testAddFilesWithHeadersScope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxcli.TestPBXProjFolder_py.PBXProjFolderTest.testAddFolderSuccessWithPublicHeaders", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxsections.TestPBXBuildFile_py.PBXBuildFileTest.testRemoveCompilerFlagsList", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3710086_joke2k_django_environ.tests.test_path_py.test_complex_manipulation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.uiautomator2.xpath_py.XPath.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.class_registry_py.ProtectedDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.key_py.CPubKey.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94480858_sktime_skbase.skbase.base._pretty_printing._pprint_py.KeyValTuple.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94657466_commonism_aiopenapi3.aiopenapi3.errors_py.ResponseError.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95215919_ITA_Solar_helita.helita.sim.stagger_py.ArrayOnMesh.__repr__"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _divide_numbered_path_group | def _divide_numbered_path_group(group: list[_NumberedPath]) -> dict[str, set[int]]:"""Given a list of numbered paths that all have the same grouping string, checkfor padding consistency and split into multiple groups if necessary. Convertinto a dictionary from a printf pattern to the set of numbers for it. Groupsof size 2 are divided into individual paths.For example, the paths frame_001.png and frame_0002.png cannot be together,because they require different padding values."""result: dict[str, set[int]] = {}while len(group) > 0:# Treat groups of size 1 or 2 as individual pathsif len(group) <= 2:for numbered_path in group:result[numbered_path.path] = set()break# The largest minimum padding is likely the right padding for the grouppadding = max(numbered_path.padding_min for numbered_path in group)pattern = f"%0{padding}d" if padding > 1 else "%d"consistent_group = [numbered_path for numbered_path in group if numbered_path.padding_max >= padding]pattern_path = f"{consistent_group[0].parts[0]}{pattern}{consistent_group[0].parts[2]}"# type: ignoreresult[pattern_path] = {numbered_path.number for numbered_path in consistent_group}# type: ignore# Process the remaining paths separatelygroup = [path for path in group if path.padding_max < padding]return result | 11 | 16 | 1 | 139 | 5 | 86 | 115 | 86 | group | ['group', 'pattern', 'pattern_path', 'padding', 'consistent_group'] | dict[str, set[int]] | {"AnnAssign": 1, "Assign": 7, "Expr": 1, "For": 1, "If": 1, "Return": 1, "While": 1} | 4 | 30 | 4 | ["len", "len", "set", "max"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_paths_by_sequence"] | The function (_divide_numbered_path_group) defined within the public class called public.The function start at line 86 and ends at 115. It contains 16 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 4.0 functions, It has 4.0 functions called inside which are ["len", "len", "set", "max"], 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.common.path_utils_py.summarize_paths_by_sequence"]. |
aws-deadline_deadline-cloud | _NumberedPath | protected | 0 | 0 | __init__ | def __init__(self,path: str,*,path_format: Optional[PathFormat] = None,index_set: Optional[set[int]] = None,file_count: Optional[int] = None,total_size: Optional[int] = None,children: Optional[dict[str, "PathSummary"]] = None,):if path_format is None:self._os_path = os.pathelif path_format == PathFormat.WINDOWS:self._os_path = ntpathelse:self._os_path = posixpathself.path = pathself.index_set = index_set or set()if index_set:self.file_count = len(index_set)elif file_count is None:self.file_count = 0 if self.is_dir() else 1else:self.file_count = file_countself.total_size = total_sizeself.children = children | 7 | 26 | 7 | 156 | 0 | 142 | 168 | 142 | self,path | [] | None | {"Assign": 11, "If": 2} | 7 | 16 | 7 | ["_NUMBERED_PATH_REGEX.match", "m.group", "m.group", "m.group", "len", "len", "int"] | 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 protected class called _NumberedPath.The function start at line 142 and ends at 168. It contains 26 lines of code and it has a cyclomatic complexity of 7. It takes 7 parameters, represented as [142.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["_NUMBERED_PATH_REGEX.match", "m.group", "m.group", "m.group", "len", "len", "int"], 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 | PathSummary | public | 0 | 0 | is_dir | def is_dir(self) -> bool:"""Returns True if the path is a directory (indicated by a trailing '/')"""# On Windows, both '/' and '\\' are directory separators, so check both sep and altsepreturn self.path.endswith(self._os_path.sep) or (self._os_path.altsep and self.path.endswith(self._os_path.altsep))# type: ignore | 3 | 4 | 1 | 42 | 0 | 170 | 175 | 170 | self | [] | bool | {"Expr": 1, "Return": 1} | 2 | 6 | 2 | ["self.path.endswith", "self.path.endswith"] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3924769_jaraco_zipp.tests.test_path_py.TestPath.test_subdir_is_dir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963126_numpy_numpydoc.numpydoc.hooks.utils_py.find_project_root", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964858_zephyrproject_rtos_west.src.west.util_py.west_topdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964858_zephyrproject_rtos_west.tests.conftest_py.check_proj_consistency", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964858_zephyrproject_rtos_west.tests.test_manifest_py.test_import_project_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.im._container_py.ImageContainer._", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69951274_onekey_sec_unblob.tests.test_file_utils_py.TestFileSystem.test_mkdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.nursery.tsbench.src.tsbench.evaluations.tracking.job_py.load_jobs_from_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77537908_toblerity_rtree.tests.test_finder_py.test_get_include", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.build.wheel_py._build_wheel_impl_impl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.builder._load_provider_py.load_provider", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.builder.sysconfig_py.get_python_library", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.setuptools.build_cmake_py.cmake_source_dir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.tests.test_builder_py.test_get_python_include_dir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.tests.test_pyproject_abi3_py.test_abi3_wheel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.tests.test_simple_pure_py.test_bin_in_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_path_list"] | The function (is_dir) defined within the public class called PathSummary.The function start at line 170 and ends at 175. It contains 4 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["self.path.endswith", "self.path.endswith"], It has 17.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3924769_jaraco_zipp.tests.test_path_py.TestPath.test_subdir_is_dir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963126_numpy_numpydoc.numpydoc.hooks.utils_py.find_project_root", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964858_zephyrproject_rtos_west.src.west.util_py.west_topdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964858_zephyrproject_rtos_west.tests.conftest_py.check_proj_consistency", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964858_zephyrproject_rtos_west.tests.test_manifest_py.test_import_project_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69848748_scverse_squidpy.src.squidpy.im._container_py.ImageContainer._", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69951274_onekey_sec_unblob.tests.test_file_utils_py.TestFileSystem.test_mkdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.nursery.tsbench.src.tsbench.evaluations.tracking.job_py.load_jobs_from_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77537908_toblerity_rtree.tests.test_finder_py.test_get_include", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.build.wheel_py._build_wheel_impl_impl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.builder._load_provider_py.load_provider", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.builder.sysconfig_py.get_python_library", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.setuptools.build_cmake_py.cmake_source_dir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.tests.test_builder_py.test_get_python_include_dir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.tests.test_pyproject_abi3_py.test_abi3_wheel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.tests.test_simple_pure_py.test_bin_in_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_path_list"]. |
aws-deadline_deadline-cloud | PathSummary | public | 0 | 0 | summary | def summary(self, *, include_totals=True, relative_to: Optional[Union[PurePath, str]] = None):"""Returns the path summary, including file count and size totals by default."""relpath = self.pathif relative_to is not None:relpath = self._os_path.relpath(self.path, relative_to)# Ensure a trailing separator for directoriesif self.is_dir():relpath = self._os_path.join(relpath, "")if include_totals:return f"{relpath} ({self.summary_totals()})"elif self.index_set:return f"{relpath} (sequence indexes {_int_set_to_range_expr(self.index_set)})"else:return relpath | 5 | 12 | 3 | 88 | 0 | 177 | 191 | 177 | self,include_totals,relative_to | [] | Returns | {"Assign": 3, "Expr": 1, "If": 4, "Return": 3} | 5 | 15 | 5 | ["self._os_path.relpath", "self.is_dir", "self._os_path.join", "self.summary_totals", "_int_set_to_range_expr"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953407_raphielgang_telegram_paperplane.userbot.modules.scrapers_py.wiki", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.jm_stats_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.stats_py.main"] | The function (summary) defined within the public class called PathSummary.The function start at line 177 and ends at 191. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [177.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["self._os_path.relpath", "self.is_dir", "self._os_path.join", "self.summary_totals", "_int_set_to_range_expr"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953407_raphielgang_telegram_paperplane.userbot.modules.scrapers_py.wiki", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.jm_stats_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.stats_py.main"]. |
aws-deadline_deadline-cloud | PathSummary | public | 0 | 0 | summary_totals | def summary_totals(self) -> str:"""Returns the totals of the summary, like 'sequence indexes 1-3, 3 files, 30 MB'if the path represents a sequence or '1 file' if the path represents a fileand there is no size information available."""if self.index_set:seq_summary = f", sequence {_int_set_to_range_expr(self.index_set)}"else:seq_summary = ""if self.total_size is not None:size_summary = f", {human_readable_file_size(self.total_size)}"else:size_summary = ""plural = "s" if self.file_count != 1 else ""return f"{self.file_count} file{plural}{size_summary}{seq_summary}" | 4 | 11 | 1 | 53 | 0 | 193 | 206 | 193 | self | [] | str | {"Assign": 5, "Expr": 1, "If": 2, "Return": 1} | 2 | 14 | 2 | ["_int_set_to_range_expr", "human_readable_file_size"] | 0 | [] | The function (summary_totals) defined within the public class called PathSummary.The function start at line 193 and ends at 206. It contains 11 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["_int_set_to_range_expr", "human_readable_file_size"]. |
aws-deadline_deadline-cloud | PathSummary | public | 0 | 0 | __str__ | def __str__(self):return self.summary() | 1 | 2 | 1 | 11 | 0 | 208 | 209 | 208 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.summary"] | 8 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3617659_autotest_autotest_docker.dockertest.output.validate_py.OutputGoodBase.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxyProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.pbxsections.PBXContainerItemProxy_py.PBXContainerItemProxy.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923647_code4romania_covid_19_ro_help.ro_help.mobilpay.mobilpay.payment.request.card_py.Card.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956605_inducer_pymbolic.pymbolic.imperative.statement_py.ConditionalStatement.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963126_numpy_numpydoc.numpydoc.docscrape_py.FunctionDoc.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.ast.ast_py.Block.__str__"] | The function (__str__) defined within the public class called PathSummary.The function start at line 208 and ends at 209. 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, It has 1.0 function called inside which is ["self.summary"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3617659_autotest_autotest_docker.dockertest.output.validate_py.OutputGoodBase.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxyProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.pbxsections.PBXContainerItemProxy_py.PBXContainerItemProxy.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923647_code4romania_covid_19_ro_help.ro_help.mobilpay.mobilpay.payment.request.card_py.Card.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956605_inducer_pymbolic.pymbolic.imperative.statement_py.ConditionalStatement.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963126_numpy_numpydoc.numpydoc.docscrape_py.FunctionDoc.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94530662_scikit_build_scikit_build_core.src.scikit_build_core.ast.ast_py.Block.__str__"]. |
aws-deadline_deadline-cloud | _NumberedPath | protected | 0 | 0 | __repr__ | def __repr__(self):parts = ["PathSummary(", repr(self.path)]if self.is_dir():if self.file_count != 0:parts.append(f", file_count={self.file_count!r}")else:if self.index_set:parts.append(f", index_set={{{', '.join(str(v) for v in sorted(self.index_set))}}}")if self.total_size is not None:parts.append(f", total_size={self.total_size!r}")if self.children is not None:parts.append(f", children={self.children!r}")parts.append(")")return "".join(parts) | 6 | 14 | 1 | 95 | 0 | 211 | 224 | 211 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 16 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3581153_zetaops_pyoko.pyoko.listnode_py.ListNode.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.PBXObjects_py.objects._print_object", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.XcodeProject_py.XcodeProject.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxcli.TestPBXProjFile_py.PBXProjFileTest.testAddFilesWithHeadersScope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxcli.TestPBXProjFolder_py.PBXProjFolderTest.testAddFolderSuccessWithPublicHeaders", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxsections.TestPBXBuildFile_py.PBXBuildFileTest.testRemoveCompilerFlagsList", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3710086_joke2k_django_environ.tests.test_path_py.test_complex_manipulation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.uiautomator2.xpath_py.XPath.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.class_registry_py.ProtectedDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.key_py.CPubKey.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94480858_sktime_skbase.skbase.base._pretty_printing._pprint_py.KeyValTuple.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94657466_commonism_aiopenapi3.aiopenapi3.errors_py.ResponseError.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95215919_ITA_Solar_helita.helita.sim.stagger_py.ArrayOnMesh.__repr__"] | The function (__repr__) defined within the protected class called _NumberedPath.The function start at line 211 and ends at 224. It contains 14 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters, and this function return a value. It has 16.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3581153_zetaops_pyoko.pyoko.listnode_py.ListNode.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.PBXObjects_py.objects._print_object", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.pbxproj.XcodeProject_py.XcodeProject.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxcli.TestPBXProjFile_py.PBXProjFileTest.testAddFilesWithHeadersScope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxcli.TestPBXProjFolder_py.PBXProjFolderTest.testAddFolderSuccessWithPublicHeaders", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704508_kronenthaler_mod_pbxproj.tests.pbxsections.TestPBXBuildFile_py.PBXBuildFileTest.testRemoveCompilerFlagsList", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3710086_joke2k_django_environ.tests.test_path_py.test_complex_manipulation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928943_openatx_uiautomator2.uiautomator2.xpath_py.XPath.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953346_rsheftel_pandas_market_calendars.pandas_market_calendars.class_registry_py.ProtectedDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.key_py.CPubKey.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94480858_sktime_skbase.skbase.base._pretty_printing._pprint_py.KeyValTuple.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94657466_commonism_aiopenapi3.aiopenapi3.errors_py.ResponseError.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95215919_ITA_Solar_helita.helita.sim.stagger_py.ArrayOnMesh.__repr__"]. |
aws-deadline_deadline-cloud | PathSummary | public | 0 | 0 | __eq__ | def __eq__(self, value):if isinstance(value, PathSummary):return (self.path == value.pathand self.index_set == value.index_setand self.file_count == value.file_countand self.total_size == value.total_sizeand self.children == value.children)else:return False | 6 | 11 | 2 | 61 | 0 | 226 | 236 | 226 | self,value | [] | Returns | {"If": 1, "Return": 2} | 1 | 11 | 1 | ["isinstance"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3574420_guillermooo_vintageous.ex.parser.tokens_base_py.TokenOfCommand.__eq__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.86980582_aws_neuron_transformers_neuronx.src.transformers_neuronx.constants_py.Layout.__eq__"] | The function (__eq__) defined within the public class called PathSummary.The function start at line 226 and ends at 236. It contains 11 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [226.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["isinstance"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3574420_guillermooo_vintageous.ex.parser.tokens_base_py.TokenOfCommand.__eq__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.86980582_aws_neuron_transformers_neuronx.src.transformers_neuronx.constants_py.Layout.__eq__"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _int_set_to_range_expr.add_interval | def add_interval(start: int, end: int):if start == last_interval_end:range_expr_components.append(str(start))else:range_expr_components.append(f"{start}-{end}") | 2 | 5 | 2 | 34 | 0 | 248 | 252 | 248 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_int_set_to_range_expr.add_interval) defined within the public class called public.The function start at line 248 and ends at 252. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [248.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _int_set_to_range_expr | def _int_set_to_range_expr(int_set: set[int]) -> str:"""Converts a set of integers into a range expression.For example, {1,2,3,4,5,7,8,9,10} -> "1-5,7-10""""int_list = sorted(set(int_set))range_expr_components = []last_interval_start = last_interval_end = int_list[0]def add_interval(start: int, end: int):if start == last_interval_end:range_expr_components.append(str(start))else:range_expr_components.append(f"{start}-{end}")for value in int_list[1:]:if value == last_interval_end + 1:last_interval_end = valueelse:add_interval(last_interval_start, last_interval_end)last_interval_start = last_interval_end = valueadd_interval(last_interval_start, last_interval_end)return ",".join(range_expr_components) | 3 | 13 | 1 | 81 | 4 | 239 | 261 | 239 | int_set | ['int_list', 'last_interval_start', 'range_expr_components', 'last_interval_end'] | str | {"Assign": 5, "Expr": 5, "For": 1, "If": 2, "Return": 1} | 8 | 23 | 8 | ["sorted", "set", "range_expr_components.append", "str", "range_expr_components.append", "add_interval", "add_interval", "join"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.PathSummary.summary", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.PathSummary.summary_totals"] | The function (_int_set_to_range_expr) defined within the public class called public.The function start at line 239 and ends at 261. 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, It has 8.0 functions called inside which are ["sorted", "set", "range_expr_components.append", "str", "range_expr_components.append", "add_interval", "add_interval", "join"], 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.common.path_utils_py.PathSummary.summary", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.PathSummary.summary_totals"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | summarize_paths_by_sequence | def summarize_paths_by_sequence(path_list: Collection[Union[PurePath, str]],*,path_format: Optional[PathFormat] = None,total_size_by_path: Optional[dict[str, int]] = None,) -> list[PathSummary]:"""Identifies numbered sequences of files/directories within a list of paths.Returns a sorted list of PathSummary objects. If total_size_by_path is provided, itmust provide a total size for every path in path_list.>> group_sequence_paths(["frame_1.png", "frame_3.png", "frame_20.png", "readme.txt"]){PathSummary("frame_%d.png", index_set={1, 3, 20}), PathSummary("readme.txt")}>> group_sequence_paths(["frame_01.png", "frame_1.png", "frame_30.png", "frame_09.png"]){PathSummary("frame_%02d.png", index_set={1, 9, 20}), PathSummary("frame_1.png")}"""if len(path_list) == 0:return []if path_format is None:path_format = PathFormat.get_host_path_format()# Convert all the paths into strings, and deduplicate by converting into a setpath_list_as_str: set[str] = {str(path) if isinstance(path, PurePath) else path for path in path_list}# On Windows, convert all "/" separators to "\\"if path_format == PathFormat.WINDOWS:path_list_as_str = {path.replace("/", "\\") for path in path_list_as_str}if total_size_by_path:total_size_by_path = {path.replace("/", "\\"): size for path, size in total_size_by_path.items()}# Group according to the _NumberedPath.grouping propertyraw_grouped_paths: dict[str, list[_NumberedPath]] = {}for path in path_list_as_str:numbered_path = _NumberedPath(path)raw_grouped_paths.setdefault(numbered_path.grouping, []).append(numbered_path)# Divide any groups with inconsistent padding into smaller consistent groups,# and merge into a dictionary {printf_pattern: set of indexes}.grouped_paths: dict[str, set[int]] = {}for raw_group in raw_grouped_paths.values():grouped_paths.update(_divide_numbered_path_group(raw_group))# Sort the result by the printf pattern and convert to PathSummary objectsresult = [PathSummary(path, path_format=path_format, index_set=index_set)for path, index_set in sorted(grouped_paths.items(), key=lambda x: x[0])]# If sizes are provided, populate them in the path summary objectsif total_size_by_path:for path_summary in result:if path_summary.index_set:path_summary.total_size = sum(total_size_by_path[path_summary.path % i] for i in path_summary.index_set)else:path_summary.total_size = total_size_by_path[path_summary.path]return result | 16 | 39 | 3 | 306 | 5 | 264 | 327 | 264 | path_list,path_format,total_size_by_path | ['path_list_as_str', 'total_size_by_path', 'numbered_path', 'result', 'path_format'] | list[PathSummary] | {"AnnAssign": 3, "Assign": 7, "Expr": 3, "For": 3, "If": 6, "Return": 2} | 17 | 64 | 17 | ["len", "PathFormat.get_host_path_format", "isinstance", "str", "path.replace", "path.replace", "total_size_by_path.items", "_NumberedPath", "append", "raw_grouped_paths.setdefault", "raw_grouped_paths.values", "grouped_paths.update", "_divide_numbered_path_group", "PathSummary", "sorted", "grouped_paths.items", "sum"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_paths_by_nested_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_with_nesting_with_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_with_nesting_without_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_without_nesting_with_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_without_nesting_without_sizes"] | The function (summarize_paths_by_sequence) defined within the public class called public.The function start at line 264 and ends at 327. It contains 39 lines of code and it has a cyclomatic complexity of 16. It takes 3 parameters, represented as [264.0] and does not return any value. It declares 17.0 functions, It has 17.0 functions called inside which are ["len", "PathFormat.get_host_path_format", "isinstance", "str", "path.replace", "path.replace", "total_size_by_path.items", "_NumberedPath", "append", "raw_grouped_paths.setdefault", "raw_grouped_paths.values", "grouped_paths.update", "_divide_numbered_path_group", "PathSummary", "sorted", "grouped_paths.items", "sum"], It has 5.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.common.path_utils_py.summarize_paths_by_nested_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_with_nesting_with_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_with_nesting_without_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_without_nesting_with_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_without_nesting_without_sizes"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _collapse_each_path_summary | def _collapse_each_path_summary(path_summary_list: Iterable[PathSummary]) -> list[PathSummary]:"""Collapses each path summary in the list while it has a single child."""result = []for path_summary in path_summary_list:# type: ignorewhile path_summary.children is not None and len(path_summary.children) == 1:path_summary = next(iter(path_summary.children.values()))result.append(path_summary)return result | 4 | 7 | 1 | 65 | 2 | 330 | 340 | 330 | path_summary_list | ['result', 'path_summary'] | list[PathSummary] | {"Assign": 2, "Expr": 2, "For": 1, "Return": 1, "While": 1} | 5 | 11 | 5 | ["len", "next", "iter", "path_summary.children.values", "result.append"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_path_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_paths_by_nested_directory"] | The function (_collapse_each_path_summary) defined within the public class called public.The function start at line 330 and ends at 340. It contains 7 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["len", "next", "iter", "path_summary.children.values", "result.append"], 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.common.path_utils_py.summarize_path_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_paths_by_nested_directory"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | summarize_paths_by_nested_directory | def summarize_paths_by_nested_directory(path_list: Collection[Union[PurePath, str]],*,path_format: Optional[PathFormat] = None,total_size_by_path: Optional[dict[str, int]] = None,) -> list[PathSummary]:"""Summarizes the provided paths by sequence, and then nests them intocommon parent paths. The returned summaries do not contain a common parent,for example if they are different relative paths, or absolute paths fordifferent drives on WindowsBy default, paths are for the current operating system. If path_format is provided, you canoverride that to PathFormat.WINDOWS or PathFormat.POSIX as necessary."""if len(path_list) == 0:return []if path_format is None:path_format = PathFormat.get_host_path_format()if path_format == PathFormat.WINDOWS:path_type: Any = PureWindowsPathos_path: Any = ntpathelse:path_type = PurePosixPathos_path = posixpath# First summarize the paths by sequencesummary_list = summarize_paths_by_sequence(path_list, total_size_by_path=total_size_by_path, path_format=path_format)# Put all the summaries into a temporary common root.nested_summary = PathSummary("ROOT/", path_format=path_format)for path_summary in summary_list:# Split the path into its componentspath_components = path_type(path_summary.path).parts# Start with the root component, and build up the nested structurecurrent_level: PathSummary = nested_summaryfor i in range(len(path_components) - 1):component = path_components[i]# Add the child if it's not already thereif current_level.children is None:current_level.children = {}if component not in current_level.children:current_level.children[component] = PathSummary(os_path.join(*path_components[: i + 1], ""),path_format=path_format,total_size=0 if total_size_by_path else None,)# Descend into the new levelcurrent_level = current_level.children[component]# Accumulate the file counts and sizescurrent_level.file_count += path_summary.file_countif total_size_by_path:current_level.total_size += path_summary.total_size# type: ignore# Add the path summary to the endif current_level.children is None:current_level.children = {}current_level.children[path_components[-1]] = path_summary# For each distinct root, collapse it while it contains a single childreturn _collapse_each_path_summary(nested_summary.children.values())# type: ignore | 11 | 41 | 3 | 278 | 8 | 343 | 406 | 343 | path_list,path_format,total_size_by_path | ['current_level', 'path_format', 'summary_list', 'os_path', 'nested_summary', 'path_components', 'component', 'path_type'] | list[PathSummary] | {"AnnAssign": 3, "Assign": 12, "AugAssign": 2, "Expr": 1, "For": 2, "If": 7, "Return": 2} | 11 | 64 | 11 | ["len", "PathFormat.get_host_path_format", "summarize_paths_by_sequence", "PathSummary", "path_type", "range", "len", "PathSummary", "os_path.join", "_collapse_each_path_summary", "nested_summary.children.values"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.common.path_utils_py.summarize_path_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_with_nesting_with_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_with_nesting_without_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_without_nesting_with_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_without_nesting_without_sizes"] | The function (summarize_paths_by_nested_directory) defined within the public class called public.The function start at line 343 and ends at 406. It contains 41 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [343.0] and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["len", "PathFormat.get_host_path_format", "summarize_paths_by_sequence", "PathSummary", "path_type", "range", "len", "PathSummary", "os_path.join", "_collapse_each_path_summary", "nested_summary.children.values"], It has 5.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.common.path_utils_py.summarize_path_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_with_nesting_with_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_with_nesting_without_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_without_nesting_with_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_paths_without_nesting_without_sizes"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | summarize_path_list | def summarize_path_list(path_list: Collection[Union[PurePath, str]],*,path_format: Optional[PathFormat] = None,total_size_by_path: Optional[dict[str, int]] = None,max_entries=10,include_totals=True,) -> str:"""Creates a string summary of the files in the list provided,grouping numbered filenames by their sequence pattern, and nestingsummaries of the directory into the specified maximum number of entries.By default, paths are for the current operating system. If path_format is provided, you canoverride that to PathFormat.WINDOWS or PathFormat.POSIX as necessary.If total_size_by_path is provided, it must provide a total size for every path in path_list.>>> print(summarize_path_list(["frame_1.png", "frame_3.png", "frame_20.png", "readme.txt"]))frame_%d.png (3 files, sequence 1,3,20)readme.txt (1 file)"""if len(path_list) == 0:return ""if path_format is None:path_format = PathFormat.get_host_path_format()lines = []summary_list = summarize_paths_by_nested_directory(path_list, total_size_by_path=total_size_by_path, path_format=path_format)# If the summary list has one entry, and its path is a very shallow root like '/' or 'C:/',# then take all its children at the outer level. This makes the root paths longer so# the individually summarized paths will be shorter and easier to look through.if (len(summary_list) == 1and summary_list[0].children is not Noneand len(summary_list[0].children) <= max_entries / 2):summary_list = _collapse_each_path_summary(summary_list[0].children.values())if total_size_by_path:# Sort the list so the largest size is firstsummary_list.sort(key=lambda v: (-v.total_size, v.path))# type: ignoreelse:# Sort the list so the largest file count is firstsummary_list.sort(key=lambda v: (-v.file_count, v.path))# type: ignore# Determine how many entries to show at the outer level and one level in,# with a total less than or equal to max_entriesentry_counts = [0 if summary_path.children is None else min(len(summary_path.children), max_entries)for summary_path in summary_list[:max_entries]]while len(entry_counts) + sum(entry_counts) > max_entries:max_entry_count = max(entry_counts)if max_entry_count > len(entry_counts):# If the largest entry count under a root path is more than the number of root paths,# then decrease that entry count.for i, entry_count in enumerate(reversed(entry_counts)):if entry_count == max_entry_count:entry_counts[len(entry_counts) - i - 1] -= 1breakelse:# Otherwise drop a root path from the summaryentry_counts.pop()# If we're going to show "... and 1 more ..." after the items, might as well show# the last item insteadif len(entry_counts) == len(summary_list) - 1 and not summary_list[-1].is_dir():entry_counts.append(0)for entry_count, summary_path in zip(entry_counts, summary_list):if summary_path.children is None:lines.append(f"{summary_path.summary(include_totals=include_totals)}\n")else:lines.append(f"{summary_path.summary(include_totals=include_totals)}:\n")children = list(summary_path.children.values())if total_size_by_path:# Sort the list so the largest size is firstchildren.sort(key=lambda v: (-v.total_size, v.path))# type: ignoreelse:# Sort the list so the largest file count is firstchildren.sort(key=lambda v: (-v.file_count, v.path))# type: ignore# If we're going to show "... and 1 more ..." after the items, might as well show# the last item insteadif entry_count == len(children) - 1:entry_count += 1for child in children[:entry_count]:lines.append(f"{child.summary(include_totals=include_totals, relative_to=summary_path.path)}\n")if len(summary_path.children) > entry_count:lines.append(f"... and {len(summary_path.children) - entry_count} more\n")if len(summary_list) > len(entry_counts):file_count = sum(v.file_count for v in summary_list[len(entry_counts) :])if total_size_by_path and include_totals:total_size = sum(v.total_size for v in summary_list[len(entry_counts) :])# type: ignorelines.append(f"... and {len(summary_list) - len(entry_counts)} more ({file_count} files, {human_readable_file_size(total_size)})\n")elif include_totals:lines.append(f"... and {len(summary_list) - len(entry_counts)} more ({file_count} files)\n")else:lines.append(f"... and {len(summary_list) - len(entry_counts)} more\n")return "".join(lines) | 27 | 73 | 5 | 538 | 8 | 409 | 522 | 409 | path_list,path_format,total_size_by_path,max_entries,include_totals | ['file_count', 'max_entry_count', 'children', 'total_size', 'summary_list', 'lines', 'entry_counts', 'path_format'] | str | {"Assign": 9, "AugAssign": 2, "Expr": 14, "For": 3, "If": 14, "Return": 2, "While": 1} | 55 | 114 | 55 | ["len", "PathFormat.get_host_path_format", "summarize_paths_by_nested_directory", "len", "len", "_collapse_each_path_summary", "children.values", "summary_list.sort", "summary_list.sort", "min", "len", "len", "sum", "max", "len", "enumerate", "reversed", "len", "entry_counts.pop", "len", "len", "is_dir", "entry_counts.append", "zip", "lines.append", "summary_path.summary", "lines.append", "summary_path.summary", "list", "summary_path.children.values", "children.sort", "children.sort", "len", "lines.append", "child.summary", "len", "lines.append", "len", "len", "len", "sum", "len", "sum", "len", "lines.append", "len", "len", "human_readable_file_size", "lines.append", "len", "len", "lines.append", "len", "len", "join"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.examples.summarize_dir_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py._summarize_asset_paths", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._incremental_download_py._incremental_output_download", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_path_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_path_list_with_path_format"] | The function (summarize_path_list) defined within the public class called public.The function start at line 409 and ends at 522. It contains 73 lines of code and it has a cyclomatic complexity of 27. It takes 5 parameters, represented as [409.0] and does not return any value. It declares 55.0 functions, It has 55.0 functions called inside which are ["len", "PathFormat.get_host_path_format", "summarize_paths_by_nested_directory", "len", "len", "_collapse_each_path_summary", "children.values", "summary_list.sort", "summary_list.sort", "min", "len", "len", "sum", "max", "len", "enumerate", "reversed", "len", "entry_counts.pop", "len", "len", "is_dir", "entry_counts.append", "zip", "lines.append", "summary_path.summary", "lines.append", "summary_path.summary", "list", "summary_path.children.values", "children.sort", "children.sort", "len", "lines.append", "child.summary", "len", "lines.append", "len", "len", "len", "sum", "len", "sum", "len", "lines.append", "len", "len", "human_readable_file_size", "lines.append", "len", "len", "lines.append", "len", "len", "join"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.examples.summarize_dir_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.api._submit_job_bundle_py._summarize_asset_paths", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._incremental_download_py._incremental_output_download", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_path_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_path_summarization_py.test_summarize_path_list_with_path_format"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | diff_manifest | def diff_manifest(asset_manager: S3AssetManager,asset_root_manifest: AssetRootManifest,manifest: str,update: bool,) -> List[(Tuple[FileStatus, BaseManifestPath])]:"""Gets the file paths in specified manifest if the contents of file have changed since its last snapshot.Returns a list of FileStatus and BaseManifestPath"""manifest_dir_name: str = os.path.basename(manifest)root_path: str = asset_root_manifest.root_pathinput_paths: List[Path] = []asset_manifest = asset_root_manifest.asset_manifestif asset_manifest is None:raise NonValidInputError("Manifest object not found, please check input manifest. ")for base_manifest_path in asset_manifest.paths:if base_manifest_path.path.startswith(manifest_dir_name):# skip the manifest folder, or else every upload will need an update after a previous changecontinueinput_paths.append(Path(root_path, base_manifest_path.path))return find_file_with_status(asset_manager=asset_manager,input_paths=input_paths,root_path=root_path,update=update,statuses=[FileStatus.NEW, FileStatus.MODIFIED],) | 4 | 23 | 4 | 139 | 1 | 21 | 51 | 21 | asset_manager,asset_root_manifest,manifest,update | ['asset_manifest'] | List[Tuple[FileStatus, BaseManifestPath]] | {"AnnAssign": 3, "Assign": 1, "Expr": 2, "For": 1, "If": 2, "Return": 1} | 6 | 31 | 6 | ["os.path.basename", "NonValidInputError", "base_manifest_path.path.startswith", "input_paths.append", "Path", "find_file_with_status"] | 0 | [] | The function (diff_manifest) defined within the public class called public.The function start at line 21 and ends at 51. It contains 23 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [21.0] and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["os.path.basename", "NonValidInputError", "base_manifest_path.path.startswith", "input_paths.append", "Path", "find_file_with_status"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | find_file_with_status | def find_file_with_status(asset_manager: S3AssetManager,input_paths: List[Path],root_path: str,update: bool,statuses: List[FileStatus],) -> List[(Tuple[FileStatus, BaseManifestPath])]:"""Checks a manifest file, compares it to specified root directory or manifest of files with the local hash cache, and finds files that match the specified statuses.Returns a list of tuples containing the file information, and its corresponding file status."""cache_config: str = config_file.get_cache_directory()with HashCache(cache_config) as hash_cache:with concurrent.futures.ThreadPoolExecutor() as executor:futures = {executor.submit(asset_manager._process_input_path,path=path,root_path=root_path,hash_cache=hash_cache,update=update,): pathfor path in input_paths}status_paths: List[tuple] = []for future in concurrent.futures.as_completed(futures):(file_status, _, manifestPath) = future.result()if file_status in statuses:status_paths.append((file_status, manifestPath))return status_paths | 4 | 26 | 5 | 157 | 1 | 54 | 85 | 54 | asset_manager,input_paths,root_path,update,statuses | ['futures'] | List[Tuple[FileStatus, BaseManifestPath]] | {"AnnAssign": 2, "Assign": 2, "Expr": 2, "For": 1, "If": 1, "Return": 1, "With": 2} | 7 | 32 | 7 | ["config_file.get_cache_directory", "HashCache", "concurrent.futures.ThreadPoolExecutor", "executor.submit", "concurrent.futures.as_completed", "future.result", "status_paths.append"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments._diff_py.diff_manifest"] | The function (find_file_with_status) defined within the public class called public.The function start at line 54 and ends at 85. It contains 26 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [54.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["config_file.get_cache_directory", "HashCache", "concurrent.futures.ThreadPoolExecutor", "executor.submit", "concurrent.futures.as_completed", "future.result", "status_paths.append"], 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.job_attachments._diff_py.diff_manifest"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | compare_manifest | def compare_manifest(reference_manifest: BaseAssetManifest, compare_manifest: BaseAssetManifest) -> List[(Tuple[FileStatus, BaseManifestPath])]:"""Compares two manifests, reference_manifest acting as the base, and compare_manifest acting as manifest with changes.Returns a list of FileStatus and BaseManifestPath"""reference_dict: Dict[str, BaseManifestPath] = {manifest_path.path: manifest_path for manifest_path in reference_manifest.paths}compare_dict: Dict[str, BaseManifestPath] = {manifest_path.path: manifest_path for manifest_path in compare_manifest.paths}differences: List[(Tuple[FileStatus, BaseManifestPath])] = []# Find new filesfor file_path, manifest_path in compare_dict.items():if file_path not in reference_dict:differences.append((FileStatus.NEW, manifest_path))elif reference_dict[file_path].hash != manifest_path.hash:differences.append((FileStatus.MODIFIED, manifest_path))else:differences.append((FileStatus.UNCHANGED, manifest_path))# Find deleted filesfor file_path, manifest_path in reference_dict.items():if file_path not in compare_dict:differences.append((FileStatus.DELETED, manifest_path))return differences | 8 | 21 | 2 | 182 | 0 | 88 | 118 | 88 | reference_manifest,compare_manifest | [] | List[Tuple[FileStatus, BaseManifestPath]] | {"AnnAssign": 3, "Expr": 5, "For": 2, "If": 3, "Return": 1} | 6 | 31 | 6 | ["compare_dict.items", "differences.append", "differences.append", "differences.append", "reference_dict.items", "differences.append"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_diff", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_snapshot"] | The function (compare_manifest) defined within the public class called public.The function start at line 88 and ends at 118. It contains 21 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [88.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["compare_dict.items", "differences.append", "differences.append", "differences.append", "reference_dict.items", "differences.append"], 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.job_attachments.api.manifest_py._manifest_diff", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_snapshot"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _fast_file_list_to_manifest_diff.select_path | def select_path(full_path: str, relative_path: str, return_root_relative_path: bool):return relative_path if return_root_relative_path else full_path | 2 | 2 | 3 | 21 | 0 | 139 | 140 | 139 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_fast_file_list_to_manifest_diff.select_path) defined within the public class called public.The function start at line 139 and ends at 140. It contains 2 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [139.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _fast_file_list_to_manifest_diff | def _fast_file_list_to_manifest_diff(root: str,current_files: List[str],diff_manifest: BaseAssetManifest,logger: ClickLogger,return_root_relative_path: bool = True,) -> List[Tuple[str, FileStatus]]:"""Perform a fast difference of the current list of files to a previous manifest to diff against using time stamps and file sizes.:param root: Root folder of files to diff against.:param current_files: List of files to compare with.:param diff_manifest: Manifest containing files to diff against.:param return_root_relative_path: File Path to return, either relative to root or full.:param logger: logger.:return List[Tuple[str, FileStatus]]: List of Tuple containing the file path and FileStatus pair."""# Select either relative or absolut path for results.def select_path(full_path: str, relative_path: str, return_root_relative_path: bool):return relative_path if return_root_relative_path else full_pathchanged_paths: List[Tuple[str, FileStatus]] = []input_files_map: Dict[str, BaseManifestPath] = {}for input_file in diff_manifest.paths:# Normalize paths so we can compare different OSesnormalized_path = Path(os.path.normpath(input_file.path)).as_posix()input_files_map[normalized_path] = input_file# Iterate for each file that we found in glob.root_relative_paths: List[str] = []for local_file in current_files:# Get the file's time stamp and size. We want to compare both.# From enabling CRT, sometimes timestamp update can fail.local_file_path = Path(local_file)file_stat = local_file_path.stat()# Compare the glob against the relative path we store in the manifest.# Save it to a list so we can look for deleted files.root_relative_path = str(PurePosixPath(*local_file_path.relative_to(root).parts).as_posix())root_relative_paths.append(root_relative_path)return_path = select_path(full_path=local_file,relative_path=root_relative_path,return_root_relative_path=return_root_relative_path,)if root_relative_path not in input_files_map:# This is a new filelogger.echo(f"Found difference at: {root_relative_path}, Status: FileStatus.NEW")changed_paths.append((return_path, FileStatus.NEW))else:# This is a modified file, compare with manifest relative timestamp.input_file = input_files_map[root_relative_path]# Check file size first as it is easier to test. Usually modified files will also have size diff.if file_stat.st_size != input_file.size:changed_paths.append((return_path, FileStatus.MODIFIED))logger.echo(f"Found size difference at: {root_relative_path}, Status: FileStatus.MODIFIED")# Check file mtime, allow 1 microsecond diff to prevent false positive# utime set from microsecond to nanosecond conversion could create 1 microsecond diff upon divisionelif abs(trunc(file_stat.st_mtime_ns / 1000) - input_file.mtime) > 1:changed_paths.append((return_path, FileStatus.MODIFIED))logger.echo(f"Found time difference at: {root_relative_path}, Status: FileStatus.MODIFIED")# Find deleted files. Manifest store files in relative form.for manifest_file_path in diff_manifest.paths:if manifest_file_path.path not in root_relative_paths:full_path = os.path.join(root, manifest_file_path.path)return_path = select_path(full_path=full_path,relative_path=manifest_file_path.path,return_root_relative_path=return_root_relative_path,)changed_paths.append((return_path, FileStatus.DELETED))return changed_paths | 8 | 49 | 5 | 331 | 7 | 121 | 198 | 121 | root,current_files,diff_manifest,logger,return_root_relative_path | ['normalized_path', 'return_path', 'root_relative_path', 'file_stat', 'full_path', 'input_file', 'local_file_path'] | List[Tuple[str, FileStatus]] | {"AnnAssign": 3, "Assign": 9, "Expr": 9, "For": 3, "If": 4, "Return": 2} | 22 | 78 | 22 | ["as_posix", "Path", "os.path.normpath", "Path", "local_file_path.stat", "str", "as_posix", "PurePosixPath", "local_file_path.relative_to", "root_relative_paths.append", "select_path", "logger.echo", "changed_paths.append", "changed_paths.append", "logger.echo", "abs", "trunc", "changed_paths.append", "logger.echo", "os.path.join", "select_path", "changed_paths.append"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_diff", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_snapshot"] | The function (_fast_file_list_to_manifest_diff) defined within the public class called public.The function start at line 121 and ends at 198. It contains 49 lines of code and it has a cyclomatic complexity of 8. It takes 5 parameters, represented as [121.0] and does not return any value. It declares 22.0 functions, It has 22.0 functions called inside which are ["as_posix", "Path", "os.path.normpath", "Path", "local_file_path.stat", "str", "as_posix", "PurePosixPath", "local_file_path.relative_to", "root_relative_paths.append", "select_path", "logger.echo", "changed_paths.append", "changed_paths.append", "logger.echo", "abs", "trunc", "changed_paths.append", "logger.echo", "os.path.join", "select_path", "changed_paths.append"], 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.job_attachments.api.manifest_py._manifest_diff", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_snapshot"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | pretty_print_cli.format | def format(self, record):message = super().format(record)return f"{message}" | 1 | 3 | 2 | 20 | 0 | 232 | 234 | 232 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (pretty_print_cli.format) defined within the public class called public.The function start at line 232 and ends at 234. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [232.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | pretty_print_cli.print_tree | def print_tree(directory_tree, prefix=""):sorted_entries = sorted(directory_tree.items())for i, (entry, subtree) in enumerate(sorted_entries, start=1):is_last_entry = i == len(sorted_entries)symbol = ELBOW + HORIZONTAL if is_last_entry else TEE + HORIZONTALis_dir = isinstance(subtree, dict)color = COLORS["DIRECTORY"] if is_dir else COLORS[subtree.name]tooltip = TOOLTIPS[FileStatus.UNCHANGED] if is_dir else TOOLTIPS[subtree]message = f"{prefix}{symbol}{color}{entry}{tooltip}{COLORS['RESET']}{os.path.sep if is_dir else ''}"logger.info(message)if is_dir:new_prefix = prefix + (SPACE if is_last_entry else PIPE + SPACE)print_tree(subtree, new_prefix)if not directory_tree:symbol = ELBOW + HORIZONTALmessage = f"{prefix}{symbol}{COLORS['UNCHANGED']}. {COLORS['RESET']}"logger.info(message) | 8 | 17 | 2 | 145 | 0 | 245 | 265 | 245 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (pretty_print_cli.print_tree) defined within the public class called public.The function start at line 245 and ends at 265. It contains 17 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [245.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | pretty_print_cli.get_file_status | def get_file_status(file: str, manifest_diff: ManifestDiff):print(file)if file in manifest_diff.new:return FileStatus.NEWelif file in manifest_diff.modified:return FileStatus.MODIFIEDelif file in manifest_diff.deleted:return FileStatus.DELETEDelse:# Default, not in any diff list.return FileStatus.UNCHANGED | 4 | 10 | 2 | 54 | 0 | 267 | 277 | 267 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (pretty_print_cli.get_file_status) defined within the public class called public.The function start at line 267 and ends at 277. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [267.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | pretty_print_cli.pretty_print_cli.build_directory_tree.add_to_tree | def add_to_tree(path, status):parts = str(path).split(os.path.sep)current_level = directory_treefor i, part in enumerate(parts):if i == len(parts) - 1:current_level[part] = statuselse:current_level = current_level.setdefault(part, {}) | 3 | 8 | 2 | 64 | 0 | 282 | 289 | 282 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (pretty_print_cli.pretty_print_cli.build_directory_tree.add_to_tree) defined within the public class called public.The function start at line 282 and ends at 289. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [282.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | pretty_print_cli.build_directory_tree | def build_directory_tree(all_files: List[str]) -> Dict[str, dict]:directory_tree: dict = {}def add_to_tree(path, status):parts = str(path).split(os.path.sep)current_level = directory_treefor i, part in enumerate(parts):if i == len(parts) - 1:current_level[part] = statuselse:current_level = current_level.setdefault(part, {})for file in all_files:print(f"{file} {root}")relative_path = str(Path(file).relative_to(root))add_to_tree(relative_path,get_file_status(relative_path, manifest_diff),)return directory_tree | 2 | 11 | 1 | 63 | 0 | 279 | 298 | 279 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (pretty_print_cli.build_directory_tree) defined within the public class called public.The function start at line 279 and ends at 298. It contains 11 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | pretty_print_cli | def pretty_print_cli(root: str, all_files: List[str], manifest_diff: ManifestDiff):"""Prints to command line a formatted file tree structure with corresponding file statuses"""# ASCII characters for the tree structurePIPE = "│"HORIZONTAL = "──"ELBOW = "└"TEE = "├"SPACE = ""# ANSI escape sequences for colorsCOLORS = {"MODIFIED": "\033[93m",# yellow"NEW": "\033[92m",# green"DELETED": "\033[91m",# red"UNCHANGED": "\033[90m",# grey"RESET": "\033[0m",# base color"DIRECTORY": "\033[80m",# grey}# Tooltips:TOOLTIPS = {FileStatus.NEW: " +",# added filesFileStatus.DELETED: " -",# deleted filesFileStatus.MODIFIED: " M",# modified filesFileStatus.UNCHANGED: "",# unchanged files}class ColorFormatter(logging.Formatter):def format(self, record):message = super().format(record)return f"{message}"# Configure loggerformatter = ColorFormatter("")handler = logging.StreamHandler()handler.setFormatter(formatter)logger = logging.getLogger(__name__)logger.addHandler(handler)logger.setLevel(logging.INFO)logger.propagate = Falsedef print_tree(directory_tree, prefix=""):sorted_entries = sorted(directory_tree.items())for i, (entry, subtree) in enumerate(sorted_entries, start=1):is_last_entry = i == len(sorted_entries)symbol = ELBOW + HORIZONTAL if is_last_entry else TEE + HORIZONTALis_dir = isinstance(subtree, dict)color = COLORS["DIRECTORY"] if is_dir else COLORS[subtree.name]tooltip = TOOLTIPS[FileStatus.UNCHANGED] if is_dir else TOOLTIPS[subtree]message = f"{prefix}{symbol}{color}{entry}{tooltip}{COLORS['RESET']}{os.path.sep if is_dir else ''}"logger.info(message)if is_dir:new_prefix = prefix + (SPACE if is_last_entry else PIPE + SPACE)print_tree(subtree, new_prefix)if not directory_tree:symbol = ELBOW + HORIZONTALmessage = f"{prefix}{symbol}{COLORS['UNCHANGED']}. {COLORS['RESET']}"logger.info(message)def get_file_status(file: str, manifest_diff: ManifestDiff):print(file)if file in manifest_diff.new:return FileStatus.NEWelif file in manifest_diff.modified:return FileStatus.MODIFIEDelif file in manifest_diff.deleted:return FileStatus.DELETEDelse:# Default, not in any diff list.return FileStatus.UNCHANGEDdef build_directory_tree(all_files: List[str]) -> Dict[str, dict]:directory_tree: dict = {}def add_to_tree(path, status):parts = str(path).split(os.path.sep)current_level = directory_treefor i, part in enumerate(parts):if i == len(parts) - 1:current_level[part] = statuselse:current_level = current_level.setdefault(part, {})for file in all_files:print(f"{file} {root}")relative_path = str(Path(file).relative_to(root))add_to_tree(relative_path,get_file_status(relative_path, manifest_diff),)return directory_treedirectory_tree = build_directory_tree(all_files)print_tree(directory_tree)logger.info("") | 1 | 35 | 3 | 168 | 22 | 201 | 302 | 201 | root,all_files,manifest_diff | ['TOOLTIPS', 'TEE', 'SPACE', 'color', 'HORIZONTAL', 'message', 'handler', 'COLORS', 'relative_path', 'is_dir', 'formatter', 'sorted_entries', 'tooltip', 'symbol', 'new_prefix', 'parts', 'ELBOW', 'logger', 'is_last_entry', 'current_level', 'directory_tree', 'PIPE'] | Returns | {"AnnAssign": 1, "Assign": 28, "Expr": 12, "For": 3, "If": 6, "Return": 6} | 31 | 102 | 31 | ["format", "super", "ColorFormatter", "logging.StreamHandler", "handler.setFormatter", "logging.getLogger", "logger.addHandler", "logger.setLevel", "sorted", "directory_tree.items", "enumerate", "len", "isinstance", "logger.info", "print_tree", "logger.info", "print", "split", "str", "enumerate", "len", "current_level.setdefault", "print", "str", "relative_to", "Path", "add_to_tree", "get_file_status", "build_directory_tree", "print_tree", "logger.info"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.manifest_group_py.manifest_diff"] | The function (pretty_print_cli) defined within the public class called public.The function start at line 201 and ends at 302. It contains 35 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [201.0], and this function return a value. It declares 31.0 functions, It has 31.0 functions called inside which are ["format", "super", "ColorFormatter", "logging.StreamHandler", "handler.setFormatter", "logging.getLogger", "logger.addHandler", "logger.setLevel", "sorted", "directory_tree.items", "enumerate", "len", "isinstance", "logger.info", "print_tree", "logger.info", "print", "split", "str", "enumerate", "len", "current_level.setdefault", "print", "str", "relative_to", "Path", "add_to_tree", "get_file_status", "build_directory_tree", "print_tree", "logger.info"], 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.cli._groups.manifest_group_py.manifest_diff"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _process_glob_inputs | def _process_glob_inputs(glob_arg_input: str) -> GlobConfig:"""Helper function to process glob inputs.glob_input: String, can represent a json, filepath, or general include glob syntax."""# Default Glob config.glob_config = GlobConfig()if glob_arg_input is None or len(glob_arg_input) == 0:# Not configured, or not passed in.return glob_configtry:input_as_path = Path(glob_arg_input)if input_as_path.is_file():# Read the file so it can be parsed as JSON.with open(glob_arg_input) as f:glob_arg_input = f.read()except Exception:# If this cannot be processed as a file, try it as JSON.passtry:# Parse the input as JSON, default to Glob Config defaults.input_as_json = json.loads(glob_arg_input)glob_config.include_glob = input_as_json.get(GlobConfig.INCLUDE, glob_config.include_glob)glob_config.exclude_glob = input_as_json.get(GlobConfig.EXCLUDE, glob_config.exclude_glob)except Exception:# This is not a JSON blob, bad input.raise NonValidInputError(f"Glob input {glob_arg_input} cannot be deserialized as JSON")return glob_config | 6 | 18 | 1 | 116 | 4 | 12 | 43 | 12 | glob_arg_input | ['input_as_json', 'input_as_path', 'glob_config', 'glob_arg_input'] | GlobConfig | {"Assign": 6, "Expr": 1, "If": 2, "Return": 2, "Try": 2, "With": 1} | 10 | 32 | 10 | ["GlobConfig", "len", "Path", "input_as_path.is_file", "open", "f.read", "json.loads", "input_as_json.get", "input_as_json.get", "NonValidInputError"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._glob_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_snapshot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_bad_glob_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_inputs_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_inputs_string"] | The function (_process_glob_inputs) defined within the public class called public.The function start at line 12 and ends at 43. It contains 18 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 10.0 functions, It has 10.0 functions called inside which are ["GlobConfig", "len", "Path", "input_as_path.is_file", "open", "f.read", "json.loads", "input_as_json.get", "input_as_json.get", "NonValidInputError"], It has 5.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.job_attachments.api.manifest_py._glob_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_snapshot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_bad_glob_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_inputs_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_inputs_string"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _match_files_with_pattern | def _match_files_with_pattern(base_path: str, patterns: List[str]) -> set:"""Helper function to match files based on glob patterns.Args:base_path: Root path to glob frompatterns: List of glob patterns to matchReturns:Set of normalized file paths that match the patterns"""matched_files = set()for pattern in patterns:# Make pattern relative to base pathfull_pattern = os.path.join(base_path, pattern)# Use recursive glob for directory matchingfor matched_path in glob.glob(full_pattern, recursive=True):# Only add files, not directoriesif os.path.isfile(matched_path):# Convert to proper path formatnormalized_path = os.path.normpath(matched_path)matched_files.add(normalized_path)return matched_files | 4 | 9 | 2 | 81 | 3 | 46 | 70 | 46 | base_path,patterns | ['normalized_path', 'full_pattern', 'matched_files'] | set | {"Assign": 3, "Expr": 2, "For": 2, "If": 1, "Return": 1} | 6 | 25 | 6 | ["set", "os.path.join", "glob.glob", "os.path.isfile", "os.path.normpath", "matched_files.add"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments._glob_py._glob_paths"] | The function (_match_files_with_pattern) defined within the public class called public.The function start at line 46 and ends at 70. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [46.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["set", "os.path.join", "glob.glob", "os.path.isfile", "os.path.normpath", "matched_files.add"], 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.job_attachments._glob_py._glob_paths"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _glob_paths | def _glob_paths(path: str, include: List[str] = ["**/*"], exclude: Optional[List[str]] = None) -> List[str]:"""Glob routine that supports Unix style pathname pattern expansion for includes and excludes.This function will recursively list all files of path, including all files globbed by include and removing all files marked by exclude.path: Root path to glob.include: Optional, pattern syntax for files to include.exclude: Optional, pattern syntax for files to exclude.return: List of files found based on supplied glob patterns."""# Convert path to absolute pathbase_path = os.path.abspath(path)# Process include patternsmatched_files = _match_files_with_pattern(base_path, include)# Process exclude patternsif exclude:files_to_exclude = _match_files_with_pattern(base_path, exclude)# Remove excluded files from resultmatched_files -= files_to_excludereturn list(matched_files) | 2 | 9 | 3 | 73 | 3 | 73 | 96 | 73 | path,include,exclude | ['files_to_exclude', 'base_path', 'matched_files'] | List[str] | {"Assign": 3, "AugAssign": 1, "Expr": 1, "If": 1, "Return": 1} | 4 | 24 | 4 | ["os.path.abspath", "_match_files_with_pattern", "_match_files_with_pattern", "list"] | 9 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._glob_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_snapshot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_default", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_default_include", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_exclude", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_exclude_nonexistent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_exclude_subdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_include_nonexistent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_include_subdir"] | The function (_glob_paths) defined within the public class called public.The function start at line 73 and ends at 96. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [73.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["os.path.abspath", "_match_files_with_pattern", "_match_files_with_pattern", "list"], It has 9.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.job_attachments.api.manifest_py._glob_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_snapshot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_default", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_default_include", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_exclude", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_exclude_nonexistent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_exclude_subdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_include_nonexistent", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_glob_py.test_glob_path_include_subdir"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _generate_path_mapping_rules | def _generate_path_mapping_rules(source_storage_profile: dict[str, Any],destination_storage_profile: dict[str, Any],) -> list[PathMappingRule]:"""Given a pair of storage profiles, generate all the path mapping rules to transform pathsfrom the source to the destination.A mapping rule is generated for every file system location name that's shared betweenthe storage profile regardless of the type (SHARED vs LOCAL), to account for the broadestpossible storage profile configurations.Args:source_storage_profile: A storage profile as returned by boto3 deadline.get_storage_profile ordeadline.get_storage_profile_for_queue.destination_storage_profile: A storage profile as returned by boto3 deadline.get_storage_profile ordeadline.get_storage_profile_for_queue.Returns:A list of path mapping rules to transform paths."""# If the source and destination are identical, no transformation is neededif (source_storage_profile["storageProfileId"]== destination_storage_profile["storageProfileId"]):return []# Put the locations into dictionaries to match up the namessource_locations = {location["name"]: location for location in source_storage_profile["fileSystemLocations"]}destination_locations = {location["name"]: locationfor location in destination_storage_profile["fileSystemLocations"]}if (source_storage_profile["osFamily"].lower()== StorageProfileOperatingSystemFamily.WINDOWS.value):source_path_format = PathFormat.WINDOWS.valueelse:source_path_format = PathFormat.POSIX.valuepath_mapping_rules: list[PathMappingRule] = []for source_name, source_location in source_locations.items():if source_name in destination_locations:path_mapping_rules.append(PathMappingRule(source_path_format,source_location["path"],destination_locations[source_name]["path"],))return path_mapping_rules | 7 | 34 | 2 | 162 | 3 | 18 | 73 | 18 | source_storage_profile,destination_storage_profile | ['destination_locations', 'source_path_format', 'source_locations'] | list[PathMappingRule] | {"AnnAssign": 1, "Assign": 4, "Expr": 2, "For": 1, "If": 3, "Return": 2} | 4 | 56 | 4 | ["lower", "source_locations.items", "path_mapping_rules.append", "PathMappingRule"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._incremental_download_py._create_path_mapping_rule_appliers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_path_mapping_py.test_generate_path_mapping_rules"] | The function (_generate_path_mapping_rules) defined within the public class called public.The function start at line 18 and ends at 73. It contains 34 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [18.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["lower", "source_locations.items", "path_mapping_rules.append", "PathMappingRule"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._incremental_download_py._create_path_mapping_rule_appliers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_path_mapping_py.test_generate_path_mapping_rules"]. |
aws-deadline_deadline-cloud | _PathMappingRuleApplier | protected | 0 | 0 | __init__ | def __init__(self, path_mapping_rules: list[PathMappingRule]):self.path_mapping_rules = path_mapping_rulesself._path_mapping_trie = {}trie_entry: dictif path_mapping_rules:self.source_path_format = path_mapping_rules[0].source_path_formatif not all(rule.source_path_format == self.source_path_format for rule in path_mapping_rules):formats = list({rule.source_path_format for rule in path_mapping_rules})raise ValueError(f"The path mapping rules included multiple source path formats {', '.join(formats)}, only one is permitted.")if self.source_path_format == PathFormat.POSIX.value:self._split_source_path = lambda v: PurePosixPath(v).partsself._normalize_part = lambda v: velif self.source_path_format == PathFormat.WINDOWS.value:self._split_source_path = lambda v: PureWindowsPath(v).partsself._normalize_part = lambda v: v.lower()else:raise ValueError(f"Unexpected source path format {self.source_path_format}")for rule in path_mapping_rules:trie_entry = self._path_mapping_trieparts = self._split_source_path(rule.source_path)# Traverse all the parts using trie_entryfor part in parts:trie_entry = trie_entry.setdefault(self._normalize_part(part), {})# Set the destination path of the trie entrytrie_entry["."] = Path(rule.destination_path)else:self.source_path_format = None | 9 | 29 | 2 | 211 | 0 | 111 | 145 | 111 | self,path_mapping_rules | [] | None | {"AnnAssign": 1, "Assign": 13, "For": 2, "If": 4} | 12 | 35 | 12 | ["all", "list", "ValueError", "join", "PurePosixPath", "PureWindowsPath", "v.lower", "ValueError", "self._split_source_path", "trie_entry.setdefault", "self._normalize_part", "Path"] | 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 protected class called _PathMappingRuleApplier.The function start at line 111 and ends at 145. It contains 29 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [111.0] and does not return any value. It declares 12.0 functions, It has 12.0 functions called inside which are ["all", "list", "ValueError", "join", "PurePosixPath", "PureWindowsPath", "v.lower", "ValueError", "self._split_source_path", "trie_entry.setdefault", "self._normalize_part", "Path"], 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 | _PathMappingRuleApplier | protected | 0 | 0 | _transform | def _transform(self, path: str) -> Union[None, Path]:parts = self._split_source_path(path)matched_destination_path = Nonematched_remaining_parts = None# Traverse the trie using trie_entrytrie_entry: dict = self._path_mapping_triefor i, part in enumerate(parts):next_trie_entry = trie_entry.get(self._normalize_part(part))# Stop if there are no rules with this path prefixif next_trie_entry is None:break# Record the match if there is one at this path prefix,# overwriting any previous match to apply the longest rule.destination_path = next_trie_entry.get(".")if destination_path:matched_destination_path = destination_pathmatched_remaining_parts = parts[i + 1 :]trie_entry = next_trie_entryif matched_destination_path is None:return Noneelse:return matched_destination_path.joinpath(*matched_remaining_parts) | 5 | 18 | 2 | 109 | 0 | 147 | 171 | 147 | self,path | [] | Union[None, Path] | {"AnnAssign": 1, "Assign": 8, "For": 1, "If": 3, "Return": 2} | 6 | 25 | 6 | ["self._split_source_path", "enumerate", "trie_entry.get", "self._normalize_part", "next_trie_entry.get", "matched_destination_path.joinpath"] | 0 | [] | The function (_transform) defined within the protected class called _PathMappingRuleApplier.The function start at line 147 and ends at 171. It contains 18 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [147.0] and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["self._split_source_path", "enumerate", "trie_entry.get", "self._normalize_part", "next_trie_entry.get", "matched_destination_path.joinpath"]. |
aws-deadline_deadline-cloud | _PathMappingRuleApplier | protected | 0 | 0 | strict_transform | def strict_transform(self, source_path: str) -> Path:"""Transform the provided path according to the path mapping rules. Raise ValueError if no rule applied."""if self.source_path_format is not None:result = self._transform(source_path)if result:return resultraise ValueError("No path mapping rule could be applied") | 3 | 6 | 2 | 38 | 0 | 173 | 180 | 173 | self,source_path | [] | Path | {"Assign": 1, "Expr": 1, "If": 2, "Return": 1} | 2 | 8 | 2 | ["self._transform", "ValueError"] | 0 | [] | The function (strict_transform) defined within the protected class called _PathMappingRuleApplier.The function start at line 173 and ends at 180. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [173.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self._transform", "ValueError"]. |
aws-deadline_deadline-cloud | _PathMappingRuleApplier | protected | 0 | 0 | transform | def transform(self, source_path: str) -> Union[str, Path]:"""Transform the provided path according to the path mapping rules. Return an untransformed path if no rule applied."""if self.source_path_format is not None:result = self._transform(source_path)if result:return resultreturn source_path | 3 | 6 | 2 | 40 | 0 | 182 | 189 | 182 | self,source_path | [] | Union[str, Path] | {"Assign": 1, "Expr": 1, "If": 2, "Return": 2} | 1 | 8 | 1 | ["self._transform"] | 52 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.cmssw_avro2json_py.convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.series.test_series_py.test_types_groupby_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_types_groupby", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_groupby_py.test_frame_groupby_resample", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_groupby_py.test_series_groupby_resample", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_resampler_py.test_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_resampler_py.test_transform_series", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69951274_onekey_sec_unblob.python.unblob.parser_py.hexstring2regex", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69951274_onekey_sec_unblob.python.unblob.testing_py.unhex", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.src.pl_bolts.transforms.self_supervised.swav_transforms_py.SwAVTrainDataTransform.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.models.self_supervised.unit.test_transforms_py.test_simclr_finetune_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.models.self_supervised.unit.test_transforms_py.test_simclr_train_data_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.models.self_supervised.unit.test_transforms_py.test_swav_finetune_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.models.self_supervised.unit.test_transforms_py.test_swav_train_data_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.transforms.test_transforms_py.test_cifar10_transforms", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.transforms.test_transforms_py.test_imagenet_transforms", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.transforms.test_transforms_py.test_simclr_transforms", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.transforms.test_transforms_py.test_stl10_transforms", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70258989_dynaconf_dynaconf.dynaconf.vendor.ruamel.yaml.main_py.YAML.Xdump_all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.nursery.daf.tslib.dataset.timeseries_py.TimeSeriesCorpus.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.dataset.test_dataset_mutability_py.test_dataset_imutability", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.transform.test_add_time_features_py.test_AddTimeFeatures_correctness", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.transform.test_transform_py.test_count_trailing_zeros", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.transform.test_transform_py.test_to_interval_size_format", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.91560513_saic_ismart_api_saic_python_mqtt_gateway.src.status_publisher.__init___py.VehicleDataPublisher._transform_and_publish"] | The function (transform) defined within the protected class called _PathMappingRuleApplier.The function start at line 182 and ends at 189. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [182.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["self._transform"], It has 52.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.cmssw_avro2json_py.convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.series.test_series_py.test_types_groupby_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_frame_py.test_types_groupby", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_groupby_py.test_frame_groupby_resample", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_groupby_py.test_series_groupby_resample", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_resampler_py.test_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936553_pandas_dev_pandas_stubs.tests.test_resampler_py.test_transform_series", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69951274_onekey_sec_unblob.python.unblob.parser_py.hexstring2regex", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69951274_onekey_sec_unblob.python.unblob.testing_py.unhex", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.src.pl_bolts.transforms.self_supervised.swav_transforms_py.SwAVTrainDataTransform.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.models.self_supervised.unit.test_transforms_py.test_simclr_finetune_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.models.self_supervised.unit.test_transforms_py.test_simclr_train_data_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.models.self_supervised.unit.test_transforms_py.test_swav_finetune_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.models.self_supervised.unit.test_transforms_py.test_swav_train_data_transform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.transforms.test_transforms_py.test_cifar10_transforms", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.transforms.test_transforms_py.test_imagenet_transforms", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.transforms.test_transforms_py.test_simclr_transforms", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70006949_lightning_ai_lightning_bolts.tests.transforms.test_transforms_py.test_stl10_transforms", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70258989_dynaconf_dynaconf.dynaconf.vendor.ruamel.yaml.main_py.YAML.Xdump_all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.nursery.daf.tslib.dataset.timeseries_py.TimeSeriesCorpus.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.dataset.test_dataset_mutability_py.test_dataset_imutability", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.transform.test_add_time_features_py.test_AddTimeFeatures_correctness", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.transform.test_transform_py.test_count_trailing_zeros", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.transform.test_transform_py.test_to_interval_size_format", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.91560513_saic_ismart_api_saic_python_mqtt_gateway.src.status_publisher.__init___py.VehicleDataPublisher._transform_and_publish"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _join_s3_paths | def _join_s3_paths(root: str, *args: str):return "/".join([root, *args]) | 1 | 2 | 2 | 24 | 0 | 42 | 43 | 42 | root,*args | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["join"] | 15 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._get_output_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._upload_output_manifest_to_s3", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.download_py.get_job_input_paths_by_asset_root", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.add_root_and_manifest_folder_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_cas_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_job_output_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_output_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_step_output_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_task_output_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.partial_manifest_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.partial_session_action_manifest_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.to_root_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetUploader._generate_s3_upload_key", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetUploader._snapshot_assets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetUploader.upload_assets"] | The function (_join_s3_paths) defined within the public class called public.The function start at line 42 and ends at 43. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [42.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["join"], It has 15.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.job_attachments.asset_sync_py.AssetSync._get_output_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._upload_output_manifest_to_s3", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.download_py.get_job_input_paths_by_asset_root", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.add_root_and_manifest_folder_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_cas_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_job_output_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_output_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_step_output_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.full_task_output_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.partial_manifest_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.partial_session_action_manifest_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.to_root_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetUploader._generate_s3_upload_key", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetUploader._snapshot_assets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetUploader.upload_assets"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _generate_random_guid | def _generate_random_guid():return str(uuid.uuid4()).replace("-", "") | 1 | 2 | 0 | 20 | 0 | 46 | 47 | 46 | [] | Returns | {"Return": 1} | 3 | 2 | 3 | ["replace", "str", "uuid.uuid4"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.partial_manifest_prefix"] | The function (_generate_random_guid) defined within the public class called public.The function start at line 46 and ends at 47. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["replace", "str", "uuid.uuid4"], 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.job_attachments.models_py.JobAttachmentS3Settings.partial_manifest_prefix"]. | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _float_to_iso_datetime_string | def _float_to_iso_datetime_string(time: float):seconds = int(time)microseconds = int((time - seconds) * 1000000)dt = datetime.datetime.utcfromtimestamp(seconds) + datetime.timedelta(microseconds=microseconds)iso_string = dt.strftime("%Y-%m-%dT%H:%M:%S.%fZ")return iso_string | 1 | 6 | 1 | 54 | 4 | 50 | 57 | 50 | time | ['microseconds', 'iso_string', 'seconds', 'dt'] | Returns | {"Assign": 4, "Return": 1} | 5 | 8 | 5 | ["int", "int", "datetime.datetime.utcfromtimestamp", "datetime.timedelta", "dt.strftime"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.sync_outputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.partial_session_action_manifest_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_manifest_download_py.TestManifestDownload._sync_mock_output_file"] | The function (_float_to_iso_datetime_string) defined within the public class called public.The function start at line 50 and ends at 57. It contains 6 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 5.0 functions, It has 5.0 functions called inside which are ["int", "int", "datetime.datetime.utcfromtimestamp", "datetime.timedelta", "dt.strftime"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.sync_outputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.models_py.JobAttachmentS3Settings.partial_session_action_manifest_prefix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_manifest_download_py.TestManifestDownload._sync_mock_output_file"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_unique_dest_dir_name | def _get_unique_dest_dir_name(source_root: str) -> str:# Note: this is a quick naive way to attempt to prevent colliding# relative paths across manifests without adding too much# length to the filepaths. length = 2n where n is the number# passed to hexdigest.return f"assetroot-{shake_256(source_root.encode()).hexdigest(10)}" | 1 | 2 | 1 | 12 | 0 | 60 | 65 | 60 | source_root | [] | str | {"Return": 1} | 3 | 6 | 3 | ["hexdigest", "shake_256", "source_root.encode"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._aggregate_asset_root_manifests", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.generate_dynamic_path_mapping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.sync_inputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.sync_outputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.deadline_job_attachments.test_job_attachments_py.sync_inputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.deadline_job_attachments.test_job_attachments_py.test_sync_inputs_with_step_dependencies"] | The function (_get_unique_dest_dir_name) defined within the public class called public.The function start at line 60 and ends at 65. 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 3.0 functions, It has 3.0 functions called inside which are ["hexdigest", "shake_256", "source_root.encode"], It has 6.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.job_attachments.asset_sync_py.AssetSync._aggregate_asset_root_manifests", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.generate_dynamic_path_mapping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.sync_inputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.sync_outputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.deadline_job_attachments.test_job_attachments_py.sync_inputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.deadline_job_attachments.test_job_attachments_py.test_sync_inputs_with_step_dependencies"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_bucket_and_object_key | def _get_bucket_and_object_key(s3_path: str) -> Tuple[str, str]:"""Returns the bucket name and object key from the S3 URI"""bucket, key = s3_path.replace("s3://", "").split("/", maxsplit=1)return bucket, key | 1 | 3 | 1 | 40 | 0 | 68 | 71 | 68 | s3_path | [] | Tuple[str, str] | {"Assign": 1, "Expr": 1, "Return": 1} | 2 | 4 | 2 | ["split", "s3_path.replace"] | 0 | [] | The function (_get_bucket_and_object_key) defined within the public class called public.The function start at line 68 and ends at 71. 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 ["split", "s3_path.replace"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _normalize_windows_path | def _normalize_windows_path(path: Union[Path, str]) -> Path:"""Strips \\\\?\\ prefix from Windows paths."""p_str = str(path)if p_str.startswith("\\\\?\\"):return Path(p_str[4:])return Path(path) | 2 | 5 | 1 | 43 | 1 | 74 | 81 | 74 | path | ['p_str'] | Path | {"Assign": 1, "Expr": 1, "If": 1, "Return": 2} | 4 | 8 | 4 | ["str", "p_str.startswith", "Path", "Path"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments._utils_py._is_relative_to", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.os_file_permission_py._set_fs_permission_for_windows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_utils_py.TestUtils.test_normalize_windows_path"] | The function (_normalize_windows_path) defined within the public class called public.The function start at line 74 and ends at 81. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["str", "p_str.startswith", "Path", "Path"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments._utils_py._is_relative_to", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.os_file_permission_py._set_fs_permission_for_windows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_utils_py.TestUtils.test_normalize_windows_path"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _is_relative_to | def _is_relative_to(path1: Union[Path, str], path2: Union[Path, str]) -> bool:"""Determines if path1 is relative to path2. This function is to supportPython versions (3.7 and 3.8) that do not have the built-in `Path.is_relative_to()` method."""try:p1 = _normalize_windows_path(Path(path1).resolve())p2 = _normalize_windows_path(Path(path2).resolve())p1.relative_to(p2)return Trueexcept ValueError:return False | 2 | 8 | 2 | 65 | 2 | 84 | 95 | 84 | path1,path2 | ['p1', 'p2'] | bool | {"Assign": 2, "Expr": 2, "Return": 2, "Try": 1} | 7 | 12 | 7 | ["_normalize_windows_path", "resolve", "Path", "_normalize_windows_path", "resolve", "Path", "p1.relative_to"] | 7 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.download_py._ensure_paths_within_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.os_file_permission_py._set_fs_group_for_posix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.os_file_permission_py._set_fs_permission_for_windows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetManager._find_matched_root_from_local_type_locations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetManager._get_asset_groups", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_utils_py.TestUtils.test_is_relative_to_on_posix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_utils_py.TestUtils.test_is_relative_to_on_windows"] | The function (_is_relative_to) defined within the public class called public.The function start at line 84 and ends at 95. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [84.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["_normalize_windows_path", "resolve", "Path", "_normalize_windows_path", "resolve", "Path", "p1.relative_to"], It has 7.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.job_attachments.download_py._ensure_paths_within_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.os_file_permission_py._set_fs_group_for_posix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.os_file_permission_py._set_fs_permission_for_windows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetManager._find_matched_root_from_local_type_locations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetManager._get_asset_groups", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_utils_py.TestUtils.test_is_relative_to_on_posix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_utils_py.TestUtils.test_is_relative_to_on_windows"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _is_windows_long_path_registry_enabled | def _is_windows_long_path_registry_enabled() -> bool:if sys.platform != "win32":return Trueimport ctypesntdll = ctypes.WinDLL("ntdll")ntdll.RtlAreLongPathsEnabled.restype = ctypes.c_ubytentdll.RtlAreLongPathsEnabled.argtypes = ()return bool(ntdll.RtlAreLongPathsEnabled()) | 2 | 8 | 0 | 51 | 1 | 98 | 108 | 98 | ['ntdll'] | bool | {"Assign": 3, "If": 1, "Return": 2} | 3 | 11 | 3 | ["ctypes.WinDLL", "bool", "ntdll.RtlAreLongPathsEnabled"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.manifest_group_py.manifest_snapshot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments._utils_py._get_long_path_compatible_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_manifest_snapshot_py.TestManifestSnapshot.test_manifest_snapshot_over_windows_path_limit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_manifest_snapshot_py.TestManifestSnapshot.test_manifest_snapshot_over_windows_path_limit_json", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_manifest_upload_py.TestManifestUpload.test_manifest_upload_over_windows_path_limit"] | The function (_is_windows_long_path_registry_enabled) defined within the public class called public.The function start at line 98 and ends at 108. 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. It declares 3.0 functions, It has 3.0 functions called inside which are ["ctypes.WinDLL", "bool", "ntdll.RtlAreLongPathsEnabled"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.job_group_py._download_job_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.client.cli._groups.manifest_group_py.manifest_snapshot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments._utils_py._get_long_path_compatible_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_manifest_snapshot_py.TestManifestSnapshot.test_manifest_snapshot_over_windows_path_limit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_manifest_snapshot_py.TestManifestSnapshot.test_manifest_snapshot_over_windows_path_limit_json", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_manifest_upload_py.TestManifestUpload.test_manifest_upload_over_windows_path_limit"]. | |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _get_long_path_compatible_path | def _get_long_path_compatible_path(original_path: Union[str, Path]) -> Path:"""Given a Path or string representing a path,make it long path compatible if needed on Windows and return the Path objecthttps://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation:param original_path: Original unmodified path/string representing an absolute path.show:param show_long_path_warning: Whether to show a warning to the user that the resulting path is in a long path.:return: A Path object representing the long path compatible path."""original_path_string = str(original_path)if sys.platform != "win32":return Path(original_path_string)if (len(original_path_string) + TEMP_DOWNLOAD_ADDED_CHARS_LENGTH >= WINDOWS_MAX_PATH_LENGTHand not original_path_string.startswith(WINDOWS_UNC_PATH_STRING_PREFIX)and not _is_windows_long_path_registry_enabled()):# Prepend \\?\ to the file name to treat it as an UNC pathreturn Path(WINDOWS_UNC_PATH_STRING_PREFIX + original_path_string)return Path(original_path_string) | 5 | 11 | 1 | 70 | 1 | 111 | 134 | 111 | original_path | ['original_path_string'] | Path | {"Assign": 1, "Expr": 1, "If": 2, "Return": 3} | 7 | 24 | 7 | ["str", "Path", "len", "original_path_string.startswith", "_is_windows_long_path_registry_enabled", "Path", "Path"] | 7 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments._incremental_downloads._manifest_s3_downloads_py._download_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._write_manifest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.download_py.download_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetUploader._snapshot_assets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_client.cli.test_cli_bundle_submit_debug_snapshot_py.assert_directories_equal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_client.cli.test_cli_bundle_submit_debug_snapshot_py.normalize_snapshot"] | The function (_get_long_path_compatible_path) defined within the public class called public.The function start at line 111 and ends at 134. It contains 11 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["str", "Path", "len", "original_path_string.startswith", "_is_windows_long_path_registry_enabled", "Path", "Path"], It has 7.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.job_attachments._incremental_downloads._manifest_s3_downloads_py._download_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._manifest_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.api.manifest_py._write_manifest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.download_py.download_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.upload_py.S3AssetUploader._snapshot_assets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_client.cli.test_cli_bundle_submit_debug_snapshot_py.assert_directories_equal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_client.cli.test_cli_bundle_submit_debug_snapshot_py.normalize_snapshot"]. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _retry._retry.deco_retry.f_retry | def f_retry(*args: Any, **kwargs: Any) -> Callable:mtries: int = triesif isinstance(delay, (float, int)):mdelay = delayelif isinstance(delay, tuple):mdelay = random.uniform(delay[0], delay[1])else:raise ValueError(f"Provided delay {delay} isn't supported")while mtries > 1:try:return f(*args, **kwargs)except ExceptionToCheck as e:if logger:logger(f"{str(e)}, Retrying in {mdelay} seconds...")time.sleep(mdelay)mtries -= 1mdelay *= backoffreturn f(*args, **kwargs) | 6 | 18 | 2 | 118 | 0 | 165 | 183 | 165 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_retry._retry.deco_retry.f_retry) defined within the public class called public.The function start at line 165 and ends at 183. It contains 18 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [165.0] and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _retry.deco_retry | def deco_retry(f: Callable) -> Callable:@wraps(f)def f_retry(*args: Any, **kwargs: Any) -> Callable:mtries: int = triesif isinstance(delay, (float, int)):mdelay = delayelif isinstance(delay, tuple):mdelay = random.uniform(delay[0], delay[1])else:raise ValueError(f"Provided delay {delay} isn't supported")while mtries > 1:try:return f(*args, **kwargs)except ExceptionToCheck as e:if logger:logger(f"{str(e)}, Retrying in {mdelay} seconds...")time.sleep(mdelay)mtries -= 1mdelay *= backoffreturn f(*args, **kwargs)return f_retry# true decorator | 1 | 4 | 1 | 18 | 0 | 163 | 185 | 163 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_retry.deco_retry) defined within the public class called public.The function start at line 163 and ends at 185. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
aws-deadline_deadline-cloud | public | public | 0 | 0 | _retry | def _retry(ExceptionToCheck: Union[Type[Exception], Tuple[Type[Exception], ...]] = AssertionError,tries: int = 2,delay: Union[int, float, Tuple[Union[int, float], Union[int, float]]] = 1.0,backoff: float = 1.0,logger: Optional[Callable] = print,) -> Callable:"""Retry calling the decorated function using an exponential backoff.http://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python/original from: http://wiki.python.org/moin/PythonDecoratorLibrary#Retry:param ExceptionToCheck: the exception to check. may be a tuple ofexceptions to check:type ExceptionToCheck: Exception or tuple:param tries: number of times to try (not retry) before giving up:type tries: int:param delay: initial delay between retries in seconds:type delay: float or tuple:param backoff: backoff multiplier e.g. value of 2 will double the delayeach retry:type backoff: float:param logger: logging function to use. If None, won't log:type logger: logging.Logger instance"""def deco_retry(f: Callable) -> Callable:@wraps(f)def f_retry(*args: Any, **kwargs: Any) -> Callable:mtries: int = triesif isinstance(delay, (float, int)):mdelay = delayelif isinstance(delay, tuple):mdelay = random.uniform(delay[0], delay[1])else:raise ValueError(f"Provided delay {delay} isn't supported")while mtries > 1:try:return f(*args, **kwargs)except ExceptionToCheck as e:if logger:logger(f"{str(e)}, Retrying in {mdelay} seconds...")time.sleep(mdelay)mtries -= 1mdelay *= backoffreturn f(*args, **kwargs)return f_retry# true decoratorreturn deco_retry | 1 | 9 | 8 | 86 | 1 | 137 | 187 | 137 | ExceptionToCheck,tries,delay,backoff,logger | ['mdelay'] | Callable | {"AnnAssign": 1, "Assign": 2, "AugAssign": 2, "Expr": 3, "If": 3, "Return": 4, "Try": 1, "While": 1} | 10 | 51 | 10 | ["isinstance", "isinstance", "random.uniform", "ValueError", "f", "logger", "str", "time.sleep", "f", "wraps"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_incremental_download_py.IncrementalDownloadTest.wait_for_all_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_snapshot_py.TestSnapshotAPI.test_snapshot_diff_no_diff_modified_mtime", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_utils_py.TestUtils.test_retry"] | The function (_retry) defined within the public class called public.The function start at line 137 and ends at 187. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 8 parameters, represented as [137.0] and does not return any value. It declares 10.0 functions, It has 10.0 functions called inside which are ["isinstance", "isinstance", "random.uniform", "ValueError", "f", "logger", "str", "time.sleep", "f", "wraps"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.integ.cli.test_cli_incremental_download_py.IncrementalDownloadTest.wait_for_all_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.api.test_snapshot_py.TestSnapshotAPI.test_snapshot_diff_no_diff_modified_mtime", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.test.unit.deadline_job_attachments.test_utils_py.TestUtils.test_retry"]. |
aws-deadline_deadline-cloud | AssetSync | public | 0 | 0 | __init__ | def __init__(self,farm_id: str,boto3_session: Optional[boto3.Session] = None,manifest_version: ManifestVersion = ManifestVersion.v2023_03_03,deadline_endpoint_url: Optional[str] = None,session_id: Optional[str] = None,) -> None:self.farm_id = farm_idself.logger: Union[Logger, LoggerAdapter] = loggerif session_id:self.logger = LoggerAdapter(logger, {"session_id": session_id})self.session: boto3.Sessionif boto3_session is None:self.session = get_boto3_session()else:self.session = boto3_sessionself.deadline_endpoint_url = deadline_endpoint_urlself.s3_uploader: S3AssetUploader = S3AssetUploader(session=boto3_session)self.manifest_model: Type[BaseManifestModel] = ManifestModelRegistry.get_manifest_model(version=manifest_version)# A dictionary mapping absolute file paths to their last modification times in microseconds.# This is used to determine if an asset has been modified since it was last synced.self.synced_assets_mtime: dict[str, int] = dict()self.hash_alg: HashAlgorithm = self.manifest_model.AssetManifest.get_default_hash_alg()self._local_root_to_src_map: dict[str, str] = dict() | 3 | 25 | 6 | 186 | 0 | 80 | 112 | 80 | self,farm_id,boto3_session,manifest_version,deadline_endpoint_url,session_id | [] | None | {"AnnAssign": 7, "Assign": 5, "If": 2} | 7 | 33 | 7 | ["LoggerAdapter", "get_boto3_session", "S3AssetUploader", "ManifestModelRegistry.get_manifest_model", "dict", "self.manifest_model.AssetManifest.get_default_hash_alg", "dict"] | 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 AssetSync.The function start at line 80 and ends at 112. It contains 25 lines of code and it has a cyclomatic complexity of 3. It takes 6 parameters, represented as [80.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["LoggerAdapter", "get_boto3_session", "S3AssetUploader", "ManifestModelRegistry.get_manifest_model", "dict", "self.manifest_model.AssetManifest.get_default_hash_alg", "dict"], 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 | AssetSync | public | 0 | 0 | generate_dynamic_path_mapping | def generate_dynamic_path_mapping(session_dir: Path,attachments: Attachments,) -> dict[str, PathMappingRule]:"""Compute path mapping rules that are relative to the given session directory.Args:session_dir: path to the current session directoryattachments: an object that holds all input assets for the job.Returns: a dictionary of local roots for each asset root, used for path mapping."""mapped_path: dict[str, PathMappingRule] = dict()for manifest_properties in attachments.manifests:if not manifest_properties.fileSystemLocationName:dir_name: str = _get_unique_dest_dir_name(manifest_properties.rootPath)local_root = str(session_dir.joinpath(dir_name))mapped_path[manifest_properties.rootPath] = PathMappingRule(source_path_format=manifest_properties.rootPathFormat.value,source_path=manifest_properties.rootPath,destination_path=local_root,)return mapped_path | 3 | 15 | 2 | 96 | 0 | 115 | 140 | 115 | session_dir,attachments | [] | dict[str, PathMappingRule] | {"AnnAssign": 2, "Assign": 2, "Expr": 1, "For": 1, "If": 1, "Return": 1} | 5 | 26 | 5 | ["dict", "_get_unique_dest_dir_name", "str", "session_dir.joinpath", "PathMappingRule"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync.attachment_sync_inputs"] | The function (generate_dynamic_path_mapping) defined within the public class called AssetSync.The function start at line 115 and ends at 140. It contains 15 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [115.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["dict", "_get_unique_dest_dir_name", "str", "session_dir.joinpath", "PathMappingRule"], 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.job_attachments.asset_sync_py.AssetSync.attachment_sync_inputs"]. |
aws-deadline_deadline-cloud | AssetSync | public | 0 | 0 | get_local_destination | def get_local_destination(manifest_properties: ManifestProperties,dynamic_mapping_rules: dict[str, PathMappingRule] = {},storage_profiles_path_mapping_rules: dict[str, str] = {},) -> str:"""Args:manifest_properties: manifest properties to search local destination for.dynamic_mapping_rules: manifest root path to worker host destination mapping relative to local session.storage_profiles_path_mapping_rules: a dict of source path -> destination path mappings.Returns: local destination corresponding to the given manifest properties.Raises: AssetSyncError If no path mapping rule is found for the given root path."""root_path = manifest_properties.rootPathif manifest_properties.fileSystemLocationName:local_destination = storage_profiles_path_mapping_rules.get(root_path)else:path_mapping: Optional[PathMappingRule] = dynamic_mapping_rules.get(root_path)local_destination = path_mapping.destination_path if path_mapping else Noneif local_destination:return local_destinationelse:raise AssetSyncError("Error occurred while attempting to sync input files: "f"No path mapping rule found for the source path {manifest_properties.rootPath}") | 4 | 18 | 3 | 91 | 0 | 143 | 171 | 143 | manifest_properties,dynamic_mapping_rules,storage_profiles_path_mapping_rules | [] | str | {"AnnAssign": 1, "Assign": 3, "Expr": 1, "If": 2, "Return": 1} | 3 | 29 | 3 | ["storage_profiles_path_mapping_rules.get", "dynamic_mapping_rules.get", "AssetSyncError"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94876780_aws_deadline_deadline_cloud.src.deadline.job_attachments.asset_sync_py.AssetSync._aggregate_asset_root_manifests"] | The function (get_local_destination) defined within the public class called AssetSync.The function start at line 143 and ends at 171. It contains 18 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [143.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["storage_profiles_path_mapping_rules.get", "dynamic_mapping_rules.get", "AssetSyncError"], 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.job_attachments.asset_sync_py.AssetSync._aggregate_asset_root_manifests"]. |
aws-deadline_deadline-cloud | AssetSync | public | 0 | 0 | _aggregate_asset_root_manifests | def _aggregate_asset_root_manifests(self,session_dir: Path,s3_settings: JobAttachmentS3Settings,queue_id: str,job_id: str,attachments: Attachments,step_dependencies: Optional[list[str]] = None,dynamic_mapping_rules: dict[str, PathMappingRule] = {},storage_profiles_path_mapping_rules: dict[str, str] = {},) -> dict[str, BaseAssetManifest]:""" Args:session_dir: the directory that the session is going to use.s3_settings: S3-specific Job Attachment settings.queue_id:the ID of the queue for step-step dependency.job_id:the ID of the job for step-step dependency.attachments: an object that holds all input assets for the job.step_dependencies: the list of Step IDs whose output should be downloaded over the input job attachments.dynamic_mapping_rules: manifest root path to worker host destination mapping relative to local session.storage_profiles_path_mapping_rules: manifest root path to worker host destination mapping given storage profile.Returns: a dictionary of manifest file stored in the session directory."""grouped_manifests_by_root: DefaultDict[str, list[BaseAssetManifest]] = DefaultDict(list)for manifest_properties in attachments.manifests:local_root: str = AssetSync.get_local_destination(manifest_properties=manifest_properties,dynamic_mapping_rules=dynamic_mapping_rules,storage_profiles_path_mapping_rules=storage_profiles_path_mapping_rules,)if manifest_properties.inputManifestPath:manifest_s3_key = s3_settings.add_root_and_manifest_folder_prefix(manifest_properties.inputManifestPath)# s3 call to get manifestsmanifest = get_manifest_from_s3(manifest_key=manifest_s3_key,s3_bucket=s3_settings.s3BucketName,session=self.session,)self._local_root_to_src_map[local_root] = manifest_properties.rootPathgrouped_manifests_by_root[local_root].append(manifest)# Handle step-step dependencies.if step_dependencies:for step_id in step_dependencies:manifests_by_root = get_output_manifests_by_asset_root(s3_settings,self.farm_id,queue_id,job_id,step_id=step_id,session=self.session,)for root, manifests in manifests_by_root.items():# this implicitly put the step dependency files to the same asset root (if no storage profile),# since the job is submitted from the same rootdir_name = _get_unique_dest_dir_name(root)local_root = str(session_dir.joinpath(dir_name))self._local_root_to_src_map[local_root] = rootgrouped_manifests_by_root[local_root].extend(manifests)# Merge the manifests in each root into a single manifestmerged_manifests_by_root: dict[str, BaseAssetManifest] = dict()for root, manifests in grouped_manifests_by_root.items():merged_manifest = merge_asset_manifests(manifests)if merged_manifest:merged_manifests_by_root[root] = merged_manifestreturn merged_manifests_by_root | 8 | 50 | 9 | 287 | 0 | 173 | 246 | 173 | self,session_dir,s3_settings,queue_id,job_id,attachments,step_dependencies,dynamic_mapping_rules,storage_profiles_path_mapping_rules | [] | dict[str, BaseAssetManifest] | {"AnnAssign": 3, "Assign": 9, "Expr": 3, "For": 4, "If": 3, "Return": 1} | 14 | 74 | 14 | ["DefaultDict", "AssetSync.get_local_destination", "s3_settings.add_root_and_manifest_folder_prefix", "get_manifest_from_s3", "append", "get_output_manifests_by_asset_root", "manifests_by_root.items", "_get_unique_dest_dir_name", "str", "session_dir.joinpath", "extend", "dict", "grouped_manifests_by_root.items", "merge_asset_manifests"] | 0 | [] | The function (_aggregate_asset_root_manifests) defined within the public class called AssetSync.The function start at line 173 and ends at 246. It contains 50 lines of code and it has a cyclomatic complexity of 8. It takes 9 parameters, represented as [173.0] and does not return any value. It declares 14.0 functions, and It has 14.0 functions called inside which are ["DefaultDict", "AssetSync.get_local_destination", "s3_settings.add_root_and_manifest_folder_prefix", "get_manifest_from_s3", "append", "get_output_manifests_by_asset_root", "manifests_by_root.items", "_get_unique_dest_dir_name", "str", "session_dir.joinpath", "extend", "dict", "grouped_manifests_by_root.items", "merge_asset_manifests"]. |
aws-deadline_deadline-cloud | AssetSync | public | 0 | 0 | _launch_vfs | def _launch_vfs(self,s3_settings: JobAttachmentS3Settings,session_dir: Path,fs_permission_settings: Optional[FileSystemPermissionSettings] = None,merged_manifests_by_root: dict[str, BaseAssetManifest] = dict(),os_env_vars: dict[str, str] | None = None,) -> bool:"""Args:s3_settings: S3-specific Job Attachment settings.session_dir: the directory that the session is going to use.fs_permission_settings: An instance defining group ownership and permission modesto be set on the downloaded (synchronized) input files and directories.merged_manifests_by_root: Merged manifests produced by_aggregate_asset_root_manifests()Returns: bool indicating if VFS was able to be launched. True if VFS launched successfully."""try:VFSProcessManager.find_vfs()mount_vfs_from_manifests(s3_bucket=s3_settings.s3BucketName,manifests_by_root=merged_manifests_by_root,boto3_session=self.session,session_dir=session_dir,fs_permission_settings=fs_permission_settings,# type: ignore[arg-type]os_env_vars=os_env_vars,# type: ignore[arg-type]cas_prefix=s3_settings.full_cas_prefix(),)return Trueexcept VFSExecutableMissingError:logger.error(f"Virtual File System not found, falling back to {JobAttachmentsFileSystem.COPIED} for JobAttachmentsFileSystem.")return False | 2 | 25 | 5 | 112 | 0 | 248 | 283 | 248 | self,s3_settings,session_dir,fs_permission_settings,merged_manifests_by_root,os_env_vars | [] | bool | {"Expr": 4, "Return": 2, "Try": 1} | 5 | 36 | 5 | ["dict", "VFSProcessManager.find_vfs", "mount_vfs_from_manifests", "s3_settings.full_cas_prefix", "logger.error"] | 0 | [] | The function (_launch_vfs) defined within the public class called AssetSync.The function start at line 248 and ends at 283. It contains 25 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [248.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["dict", "VFSProcessManager.find_vfs", "mount_vfs_from_manifests", "s3_settings.full_cas_prefix", "logger.error"]. |
aws-deadline_deadline-cloud | AssetSync | public | 0 | 0 | copied_download | def copied_download(self,s3_settings: JobAttachmentS3Settings,session_dir: Path,fs_permission_settings: Optional[FileSystemPermissionSettings] = None,merged_manifests_by_root: dict[str, BaseAssetManifest] = dict(),on_downloading_files: Optional[Callable[[ProgressReportMetadata], bool]] = None,) -> SummaryStatistics:"""Args:s3_settings: S3-specific Job Attachment settings.session_dir: the directory that the session is going to use.fs_permission_settings: An instance defining group ownership and permission modesto be set on the downloaded (synchronized) input files and directories.merged_manifests_by_root: Merged manifests produced by _aggregate_asset_root_manifests()on_downloading_files: Callback when download files from S3.Returns:The download summary statistics.Raises:JobAttachmentsS3ClientError if any issue is encountered while downloading."""try:total_input_size: int = 0for merged_manifest in merged_manifests_by_root.values():total_input_size += merged_manifest.totalSize# type: ignore[attr-defined]self._ensure_disk_capacity(Path(session_dir), total_input_size)return download_files_from_manifests(s3_bucket=s3_settings.s3BucketName,manifests_by_root=merged_manifests_by_root,cas_prefix=s3_settings.full_cas_prefix(),fs_permission_settings=fs_permission_settings,session=self.session,on_downloading_files=on_downloading_files,logger=self.logger,).convert_to_summary_statistics()except JobAttachmentsS3ClientError as exc:if exc.status_code == 404:raise JobAttachmentsS3ClientError(action=exc.action,status_code=exc.status_code,bucket_name=exc.bucket_name,key_or_prefix=exc.key_or_prefix,message=("This can happen if the S3 check cache on the submitting machine is out of date. ""Please delete the cache file from the submitting machine, usually located in the ""home directory (~/.deadline/cache/s3_check_cache.db) and try submitting again."),) from excelse:raise | 4 | 37 | 5 | 186 | 0 | 285 | 337 | 285 | self,s3_settings,session_dir,fs_permission_settings,merged_manifests_by_root,on_downloading_files | [] | SummaryStatistics | {"AnnAssign": 1, "AugAssign": 1, "Expr": 2, "For": 1, "If": 1, "Return": 1, "Try": 1} | 8 | 53 | 8 | ["dict", "merged_manifests_by_root.values", "self._ensure_disk_capacity", "Path", "convert_to_summary_statistics", "download_files_from_manifests", "s3_settings.full_cas_prefix", "JobAttachmentsS3ClientError"] | 0 | [] | The function (copied_download) defined within the public class called AssetSync.The function start at line 285 and ends at 337. It contains 37 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [285.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["dict", "merged_manifests_by_root.values", "self._ensure_disk_capacity", "Path", "convert_to_summary_statistics", "download_files_from_manifests", "s3_settings.full_cas_prefix", "JobAttachmentsS3ClientError"]. |
aws-deadline_deadline-cloud | AssetSync | public | 0 | 0 | _check_and_write_local_manifests | def _check_and_write_local_manifests(self,merged_manifests_by_root: dict[str, BaseAssetManifest],manifest_write_dir: str,manifest_name_suffix: str = "manifest",) -> dict[str, str]:"""Write manifests to the directory and check disk capacity is sufficient for the assets.Args:merged_manifests_by_root (dict[str, BaseAssetManifest]): manifest file to its stored root.manifest_write_dir (str): local directory to write to.Returns:dict[str, str]: map of local root to file paths the manifests are written to."""total_input_size: int = 0manifest_paths_by_root: dict[str, str] = dict()for root, manifest in merged_manifests_by_root.items():(_, manifest_name) = S3AssetUploader._get_hashed_file_name_from_root_str(manifest=manifest,source_root=self._local_root_to_src_map[root],manifest_name_suffix=manifest_name_suffix,)local_manifest_file = S3AssetUploader._write_local_input_manifest(manifest_write_dir=manifest_write_dir,manifest_name=manifest_name,manifest=manifest,)total_input_size += manifest.totalSize# type: ignore[attr-defined]manifest_paths_by_root[root] = local_manifest_file.as_posix()self._ensure_disk_capacity(Path(manifest_write_dir), total_input_size)return manifest_paths_by_root | 2 | 23 | 4 | 136 | 0 | 339 | 375 | 339 | self,merged_manifests_by_root,manifest_write_dir,manifest_name_suffix | [] | dict[str, str] | {"AnnAssign": 2, "Assign": 3, "AugAssign": 1, "Expr": 2, "For": 1, "Return": 1} | 7 | 37 | 7 | ["dict", "merged_manifests_by_root.items", "S3AssetUploader._get_hashed_file_name_from_root_str", "S3AssetUploader._write_local_input_manifest", "local_manifest_file.as_posix", "self._ensure_disk_capacity", "Path"] | 0 | [] | The function (_check_and_write_local_manifests) defined within the public class called AssetSync.The function start at line 339 and ends at 375. It contains 23 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [339.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["dict", "merged_manifests_by_root.items", "S3AssetUploader._get_hashed_file_name_from_root_str", "S3AssetUploader._write_local_input_manifest", "local_manifest_file.as_posix", "self._ensure_disk_capacity", "Path"]. |
aws-deadline_deadline-cloud | AssetSync | public | 0 | 0 | attachment_sync_inputs | def attachment_sync_inputs(self,s3_settings: Optional[JobAttachmentS3Settings],attachments: Optional[Attachments],queue_id: str,job_id: str,session_dir: Path,fs_permission_settings: Optional[FileSystemPermissionSettings] = None,storage_profiles_path_mapping_rules: dict[str, str] = {},step_dependencies: Optional[list[str]] = None,on_downloading_files: Optional[Callable[[ProgressReportMetadata], bool]] = None,os_env_vars: Dict[str, str] | None = None,) -> Tuple[SummaryStatistics, List[Dict[str, str]]]:"""Depending on the fileSystem in the Attachments this will perform twodifferent behaviors:COPIED / None : downloads a manifest file and corresponding input files, if found.VIRTUAL: downloads a manifest file and mounts a Virtual File System at the specified asset root corresponding to the manifest contentsArgs:s3_settings: S3-specific Job Attachment settings.attachments: an object that holds all input assets for the job.queue_id: the ID of the queue.job_id: the ID of the job.session_dir: the directory that the session is going to use.fs_permission_settings: An instance defining group ownership and permission modesto be set on the downloaded (synchronized) input files and directories.storage_profiles_path_mapping_rules: A dict of source path -> destination path mappings.If this dict is not empty, it means that the Storage Profile set in the job isdifferent from the one configured in the Fleet performing the input-syncing.step_dependencies: the list of Step IDs whose output should be downloaded over the inputjob attachments.on_downloading_files: a function that will be called with a ProgressReportMetadata objectfor each file being downloaded. If the function returns False, the download will becancelled. If it returns True, the download will continue.os_env_vars: environment variables to set for launched subprocessesReturns:COPIED / None : a tuple of (1) final summary statistics for file downloads, and (2) a list of local roots for each asset root, used for path mapping.VIRTUAL: same as COPIED, but the summary statistics will be empty since the download hasn't started yet."""if not s3_settings:self.logger.info(f"No Job Attachment settings configured for Queue {queue_id}, no inputs to sync.")return (SummaryStatistics(), [])if not attachments:self.logger.info(f"No attachments configured for Job {job_id}, no inputs to sync.")return (SummaryStatistics(), [])# Generate absolute Path Mapping to local session (no storage profile)# returns root path to PathMappingRule mappingdynamic_mapping_rules: dict[str, PathMappingRule] = AssetSync.generate_dynamic_path_mapping(session_dir=session_dir,attachments=attachments,)# Aggregate and merge manifests (with step step dependency handling) in each root into a single manifestmerged_manifests_by_root: dict[str, BaseAssetManifest] = (self._aggregate_asset_root_manifests(session_dir=session_dir,s3_settings=s3_settings,queue_id=queue_id,job_id=job_id,attachments=attachments,step_dependencies=step_dependencies,dynamic_mapping_rules=dynamic_mapping_rules,storage_profiles_path_mapping_rules=storage_profiles_path_mapping_rules,))# Downloadsummary_statistics: SummaryStatistics = SummaryStatistics()if (attachments.fileSystem == JobAttachmentsFileSystem.VIRTUAL.valueand sys.platform != "win32"and fs_permission_settings is not Noneand os_env_vars is not Noneand "AWS_PROFILE" in os_env_varsand isinstance(fs_permission_settings, PosixFileSystemPermissionSettings)):# Virtual Download Flowself._launch_vfs(s3_settings=s3_settings,session_dir=session_dir,fs_permission_settings=fs_permission_settings,merged_manifests_by_root=merged_manifests_by_root,os_env_vars=os_env_vars,)else:# Copied Download flowsummary_statistics = self.copied_download(s3_settings=s3_settings,session_dir=session_dir,fs_permission_settings=fs_permission_settings,merged_manifests_by_root=merged_manifests_by_root,on_downloading_files=on_downloading_files,)self._record_attachment_mtimes(merged_manifests_by_root)return (summary_statistics,list(asdict(r) for r in dynamic_mapping_rules.values()),) | 10 | 66 | 12 | 352 | 0 | 377 | 485 | 377 | self,s3_settings,attachments,queue_id,job_id,session_dir,fs_permission_settings,storage_profiles_path_mapping_rules,step_dependencies,on_downloading_files,os_env_vars | [] | Tuple[SummaryStatistics, List[Dict[str, str]]] | {"AnnAssign": 3, "Assign": 1, "Expr": 5, "If": 3, "Return": 3} | 14 | 109 | 14 | ["self.logger.info", "SummaryStatistics", "self.logger.info", "SummaryStatistics", "AssetSync.generate_dynamic_path_mapping", "self._aggregate_asset_root_manifests", "SummaryStatistics", "isinstance", "self._launch_vfs", "self.copied_download", "self._record_attachment_mtimes", "list", "asdict", "dynamic_mapping_rules.values"] | 0 | [] | The function (attachment_sync_inputs) defined within the public class called AssetSync.The function start at line 377 and ends at 485. It contains 66 lines of code and it has a cyclomatic complexity of 10. It takes 12 parameters, represented as [377.0] and does not return any value. It declares 14.0 functions, and It has 14.0 functions called inside which are ["self.logger.info", "SummaryStatistics", "self.logger.info", "SummaryStatistics", "AssetSync.generate_dynamic_path_mapping", "self._aggregate_asset_root_manifests", "SummaryStatistics", "isinstance", "self._launch_vfs", "self.copied_download", "self._record_attachment_mtimes", "list", "asdict", "dynamic_mapping_rules.values"]. |
aws-deadline_deadline-cloud | AssetSync | public | 0 | 0 | _upload_output_files_to_s3 | def _upload_output_files_to_s3(self,s3_settings: JobAttachmentS3Settings,output_files: List[OutputFile],on_uploading_files: Optional[Callable[[ProgressReportMetadata], bool]],) -> SummaryStatistics:"""Uploads the given output files to the given S3 bucket.Sets up `progress_tracker` to report upload progress back to the caller (i.e. worker.)"""# Sets up progress tracker to report upload progress back to the caller.total_file_size = sum([file.file_size for file in output_files])progress_tracker = ProgressTracker(status=ProgressStatus.UPLOAD_IN_PROGRESS,total_files=len(output_files),total_bytes=total_file_size,on_progress_callback=on_uploading_files,logger=self.logger,)start_time = time.perf_counter()for file in output_files:if file.in_s3:progress_tracker.increase_skipped(1, file.file_size)continueself.s3_uploader.upload_file_to_s3(local_path=Path(file.full_path),s3_bucket=s3_settings.s3BucketName,s3_upload_key=file.s3_key,progress_tracker=progress_tracker,base_dir_path=Path(file.base_dir) if file.base_dir else None,)progress_tracker.total_time = time.perf_counter() - start_timereturn progress_tracker.get_summary_statistics() | 5 | 28 | 4 | 172 | 0 | 487 | 523 | 487 | self,s3_settings,output_files,on_uploading_files | [] | SummaryStatistics | {"Assign": 4, "Expr": 3, "For": 1, "If": 1, "Return": 1} | 10 | 37 | 10 | ["sum", "ProgressTracker", "len", "time.perf_counter", "progress_tracker.increase_skipped", "self.s3_uploader.upload_file_to_s3", "Path", "Path", "time.perf_counter", "progress_tracker.get_summary_statistics"] | 0 | [] | The function (_upload_output_files_to_s3) defined within the public class called AssetSync.The function start at line 487 and ends at 523. It contains 28 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [487.0] and does not return any value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["sum", "ProgressTracker", "len", "time.perf_counter", "progress_tracker.increase_skipped", "self.s3_uploader.upload_file_to_s3", "Path", "Path", "time.perf_counter", "progress_tracker.get_summary_statistics"]. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.