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_...
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 decla...
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_b...
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....
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": ...
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_devi...
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 d...
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_compatib...
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 ...
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....
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_...
The function (__init__) defined within the public class called 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...
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...
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_...
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....
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 ...
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.re...
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 an...
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(...
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....
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_...
The function (__init__) defined within the public class called 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 declare...
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....
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 ...
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 r...
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 ...
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 ...
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", "_.cont...
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...
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...
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_n...
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 retu...
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....
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_...
The function (__init__) defined within the public class called 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...
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...
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....
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_...
The function (__init__) defined within the public class called 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...
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...
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....
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_...
The function (__init__) defined within the public class called 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...
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=...
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....
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.WIND...
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 no...
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.setStep...
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", ...
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_...
The function (__init__) defined within the public class called 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 fun...
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.deadli...
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....
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_cur...
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.deadlin...
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...
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.dead...
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 ...
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.c...
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 funct...
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_jo...
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...
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...
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 declar...
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.MA...
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 d...
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:...
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 ...
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 f...
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._c...
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", ...
4,993
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.logging_py.LoggerHandler.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16379211_lorcalhost_btb_manager_telegram.btb_manager_telegram.schedule_...
The function (__init__) defined within the public class called 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 ...
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.deadli...
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 ...
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_...
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.deadlin...
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...
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.dead...
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 declare...
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.c...
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 fun...
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 declar...
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 ...
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....
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 ...
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)...
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_...
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 ...
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...
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 whic...
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 siz...
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 fu...
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._o...
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_...
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 functio...
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_The...
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 in...
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 directories...
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_Th...
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...
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)}"...
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 funct...
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.Norm...
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 ...
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={sel...
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...
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 w...
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.__e...
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 cal...
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 == la...
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.PathS...
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 functio...
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 ...
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_...
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 ...
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...
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.summa...
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 fun...
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 n...
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....
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,...
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 patte...
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....
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...
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 fun...
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""...
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 ...
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 ...
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 functio...
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"""refer...
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....
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 c...
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 fil...
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", "o...
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....
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 ...
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"] i...
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...
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 = {"M...
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....
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 fun...
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 passe...
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.man...
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...
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:# M...
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 func...
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 m...
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.man...
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 i...
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 l...
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...
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 ...
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_map...
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_...
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 ...
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)...
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 I...
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, a...
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", "_.co...
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...
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_attac...
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 call...
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 functio...
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_attachment...
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...
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...
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.dead...
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 functio...
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 f...
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_p...
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...
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_windo...
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_atta...
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 call...
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._gr...
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 h...
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 unmodifi...
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....
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...
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 ExceptionTo...
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
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 ...
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.te...
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 i...
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.l...
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_...
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...
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 dic...
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 h...
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 ...
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 f...
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, ...
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...
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, a...
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.s...
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 functi...
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:"""...
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 fu...
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, BaseAssetM...
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, a...
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[st...
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....
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 ...
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 ...
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 I...