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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sema4AI_actions | ICallback | public | 1 | 1 | unregister | def unregister(self, callback: Callable[[Path, Set[str]], Any]) -> None:pass | 1 | 2 | 2 | 24 | 0 | 205 | 206 | 205 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._hooks_py.SessionCallback.unregister"] | The function (unregister) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 205 and ends at 206. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [205.0] and does not return any valu... |
Sema4AI_actions | IOnActionFuncFoundCallback | public | 1 | 1 | __call__ | def __call__(self, actions: List[IAction]):pass | 1 | 2 | 2 | 13 | 0 | 214 | 215 | 214 | self,func,*args,**kwargs | [] | None | {} | 0 | 2 | 0 | [] | 50 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561509_collective_solgema_fullcalendar.Solgema.fullcalendar.browser.views_py.SolgemaFullcalendarEventJS.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3598540_saltstack_salt_testing.salttesting.runtests_p... | The function (__call__) defined within the public class called IOnActionFuncFoundCallback, implement an interface, and it inherit another class.The function start at line 214 and ends at 215. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [214.0] and does not ... |
Sema4AI_actions | ICallback | public | 1 | 1 | register | def register(self, callback: Callable[[List[IAction]], Any]) -> IAutoUnregisterContextManager:pass | 1 | 4 | 2 | 22 | 0 | 217 | 220 | 217 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 904 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.json.test_json_server_py.json_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.test_error_handling_py.mock_server",... | The function (register) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 217 and ends at 220. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [217.0] and does not return any value.... |
Sema4AI_actions | ICallback | public | 1 | 1 | unregister | def unregister(self, callback: Callable[[List[IAction]], Any]) -> None:pass | 1 | 2 | 2 | 22 | 0 | 222 | 223 | 222 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._hooks_py.SessionCallback.unregister"] | The function (unregister) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 222 and ends at 223. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [222.0] and does not return any valu... |
Sema4AI_actions | IOnActionFuncFoundCallback | public | 1 | 1 | __call__ | def __call__(self, action: IAction):pass | 1 | 2 | 2 | 10 | 0 | 231 | 232 | 231 | self,func,*args,**kwargs | [] | None | {} | 0 | 2 | 0 | [] | 50 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561509_collective_solgema_fullcalendar.Solgema.fullcalendar.browser.views_py.SolgemaFullcalendarEventJS.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3598540_saltstack_salt_testing.salttesting.runtests_p... | The function (__call__) defined within the public class called IOnActionFuncFoundCallback, implement an interface, and it inherit another class.The function start at line 231 and ends at 232. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [231.0] and does not ... |
Sema4AI_actions | ICallback | public | 1 | 1 | register | def register(self, callback: Callable) -> IAutoUnregisterContextManager:pass | 1 | 2 | 2 | 12 | 0 | 234 | 235 | 189 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 904 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.json.test_json_server_py.json_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.test_error_handling_py.mock_server",... | The function (register) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 234 and ends at 235. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value.... |
Sema4AI_actions | ICallback | public | 1 | 1 | unregister | def unregister(self, callback: Callable) -> None:pass | 1 | 2 | 2 | 12 | 0 | 237 | 238 | 192 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._hooks_py.SessionCallback.unregister"] | The function (unregister) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 237 and ends at 238. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [192.0] and does not return any valu... |
Sema4AI_actions | IOnActionFuncFoundCallback | public | 1 | 1 | __call__ | def __call__(self, actions: List[IAction]):pass | 1 | 2 | 2 | 13 | 0 | 242 | 243 | 214 | self,func,*args,**kwargs | [] | None | {} | 0 | 2 | 0 | [] | 50 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561509_collective_solgema_fullcalendar.Solgema.fullcalendar.browser.views_py.SolgemaFullcalendarEventJS.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3598540_saltstack_salt_testing.salttesting.runtests_p... | The function (__call__) defined within the public class called IOnActionFuncFoundCallback, implement an interface, and it inherit another class.The function start at line 242 and ends at 243. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [214.0] and does not ... |
Sema4AI_actions | ICallback | public | 1 | 1 | register | def register(self, callback: Callable) -> IAutoUnregisterContextManager:pass | 1 | 2 | 2 | 12 | 0 | 245 | 246 | 189 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 904 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.json.test_json_server_py.json_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.test_error_handling_py.mock_server",... | The function (register) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 245 and ends at 246. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value.... |
Sema4AI_actions | ICallback | public | 1 | 1 | unregister | def unregister(self, callback: Callable[[List[IAction]], Any]) -> None:pass | 1 | 2 | 2 | 22 | 0 | 248 | 249 | 222 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._hooks_py.SessionCallback.unregister"] | The function (unregister) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 248 and ends at 249. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [222.0] and does not return any valu... |
Sema4AI_actions | IOnActionFuncFoundCallback | public | 1 | 1 | __call__ | def __call__(self, actions: List[IAction]):pass | 1 | 2 | 2 | 13 | 0 | 253 | 254 | 214 | self,func,*args,**kwargs | [] | None | {} | 0 | 2 | 0 | [] | 50 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561509_collective_solgema_fullcalendar.Solgema.fullcalendar.browser.views_py.SolgemaFullcalendarEventJS.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3598540_saltstack_salt_testing.salttesting.runtests_p... | The function (__call__) defined within the public class called IOnActionFuncFoundCallback, implement an interface, and it inherit another class.The function start at line 253 and ends at 254. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [214.0] and does not ... |
Sema4AI_actions | ICallback | public | 1 | 1 | register | def register(self, callback: Callable) -> IAutoUnregisterContextManager:pass | 1 | 2 | 2 | 12 | 0 | 256 | 257 | 189 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 904 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.json.test_json_server_py.json_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.test_error_handling_py.mock_server",... | The function (register) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 256 and ends at 257. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value.... |
Sema4AI_actions | ICallback | public | 1 | 1 | unregister | def unregister(self, callback: Callable) -> None:pass | 1 | 2 | 2 | 12 | 0 | 259 | 260 | 192 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._hooks_py.SessionCallback.unregister"] | The function (unregister) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 259 and ends at 260. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [192.0] and does not return any valu... |
Sema4AI_actions | IOnActionFuncFoundCallback | public | 1 | 1 | __call__ | def __call__(self, action: IAction):pass | 1 | 2 | 2 | 10 | 0 | 264 | 265 | 231 | self,func,*args,**kwargs | [] | None | {} | 0 | 2 | 0 | [] | 50 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561509_collective_solgema_fullcalendar.Solgema.fullcalendar.browser.views_py.SolgemaFullcalendarEventJS.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3598540_saltstack_salt_testing.salttesting.runtests_p... | The function (__call__) defined within the public class called IOnActionFuncFoundCallback, implement an interface, and it inherit another class.The function start at line 264 and ends at 265. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [231.0] and does not ... |
Sema4AI_actions | ICallback | public | 1 | 1 | register | def register(self, callback: Callable) -> IAutoUnregisterContextManager:pass | 1 | 2 | 2 | 12 | 0 | 267 | 268 | 189 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 904 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.json.test_json_server_py.json_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.test_error_handling_py.mock_server",... | The function (register) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 267 and ends at 268. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value.... |
Sema4AI_actions | ICallback | public | 1 | 1 | unregister | def unregister(self, callback: Callable) -> None:pass | 1 | 2 | 2 | 12 | 0 | 270 | 271 | 192 | self,callback | [] | None | {} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._hooks_py.SessionCallback.unregister"] | The function (unregister) defined within the public class called ICallback, implement an interface, and it inherit another class.The function start at line 270 and ends at 271. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [192.0] and does not return any valu... |
Sema4AI_actions | _RawTypesHandler | protected | 0 | 0 | __init__ | def __init__(self, param_name: str, pydantic_class: type):self.param_name = param_nameself.pydantic_class = pydantic_class | 1 | 3 | 3 | 23 | 0 | 2 | 4 | 2 | self,param_name,pydantic_class | [] | None | {"Assign": 2} | 0 | 3 | 0 | [] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the protected class called _RawTypesHandler.The function start at line 2 and ends at 4. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [2.0] and does not return any value. It has 6243.0 functions calling this function whi... |
Sema4AI_actions | _RawTypesHandler | protected | 0 | 0 | model_json_schema | def model_json_schema(self, **kwargs):ret = self.pydantic_class.model_json_schema(**kwargs)return ret["properties"][self.param_name] | 1 | 3 | 2 | 29 | 0 | 6 | 8 | 6 | self,**kwargs | [] | Returns | {"Assign": 1, "Return": 1} | 1 | 3 | 1 | ["self.pydantic_class.model_json_schema"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3690807_ethereum_eth_utils.eth_utils.pydantic_py.CamelModel.model_json_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3690807_ethereum_eth_utils.tests.core.pydantic_utils.test_camel_model_py.test_camel_model... | The function (model_json_schema) defined within the protected class called _RawTypesHandler.The function start at line 6 and ends at 8. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [6.0], and this function return a value. It declare 1.0 function, It has 1.0 ... |
Sema4AI_actions | _RawTypesHandler | protected | 0 | 0 | model_validate | def model_validate(self, value, **kwargs):value = {self.param_name: value}ret = self.pydantic_class.model_validate(value, **kwargs)return getattr(ret, self.param_name) | 1 | 4 | 3 | 41 | 0 | 10 | 13 | 10 | self,value,**kwargs | [] | Returns | {"Assign": 2, "Return": 1} | 2 | 4 | 2 | ["self.pydantic_class.model_validate", "getattr"] | 15 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69279284_espressif_idf_component_manager.idf_component_tools.manifest.models_py.Manifest.validate_manifest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._comman... | The function (model_validate) defined within the protected class called _RawTypesHandler.The function start at line 10 and ends at 13. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [10.0], and this function return a value. It declares 2.0 functions, It has 2.... |
Sema4AI_actions | public | public | 0 | 0 | _obtain_raw_types_handler | def _obtain_raw_types_handler(param_name: str, param_type: type) -> _RawTypesHandler:key = repr(param_type)if key not in _cache:try:from pydantic import BaseModelname_to_type_annotations = {param_name: param_type}# This will create a pydantic class with the given type annotations# (so that we can use pydantic methods f... | 3 | 12 | 2 | 67 | 3 | 19 | 41 | 19 | param_name,param_type | ['key', '__annotations__', 'name_to_type_annotations'] | _RawTypesHandler | {"Assign": 4, "If": 1, "Return": 1, "Try": 1} | 2 | 23 | 2 | ["repr", "_RawTypesHandler"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._action_py.Action._build_properties", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._commands_py._validate_an... | The function (_obtain_raw_types_handler) defined within the public class called public.The function start at line 19 and ends at 41. It contains 12 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [19.0] and does not return any value. It declares 2.0 functions, It has 2.0 fun... |
Sema4AI_actions | CallbackProxy | public | 0 | 1 | __init__ | def __init__(self, callback):self.callback = callback | 1 | 2 | 2 | 12 | 0 | 36 | 37 | 36 | self,callback | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the public class called CallbackProxy, that inherit another class.The function start at line 36 and ends at 37. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [36.0] and does not return any value. It has 6243.0 functions ... |
Sema4AI_actions | CallbackProxy | public | 0 | 1 | __subject__ | def __subject__(self):if self._in_subject > 5:raise JsonRefError("Error: recursion when trying to get subject.")self._in_subject += 1try:return self.callback()finally:self._in_subject -= 1 | 3 | 8 | 1 | 37 | 0 | 40 | 47 | 40 | self | [] | Returns | {"AugAssign": 2, "If": 1, "Return": 1, "Try": 1} | 2 | 8 | 2 | ["JsonRefError", "self.callback"] | 0 | [] | The function (__subject__) defined within the public class called CallbackProxy, that inherit another class.The function start at line 40 and ends at 47. It contains 8 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 2.0 func... |
Sema4AI_actions | CallbackProxy | public | 0 | 1 | __subject__ | def __subject__(self):try:return self.cacheexcept AttributeError:passself.cache = super(LazyProxy, self).__subject__return self.cache | 2 | 7 | 1 | 31 | 0 | 57 | 64 | 57 | self | [] | Returns | {"AugAssign": 2, "If": 1, "Return": 1, "Try": 1} | 2 | 8 | 2 | ["JsonRefError", "self.callback"] | 0 | [] | The function (__subject__) defined within the public class called CallbackProxy, that inherit another class.The function start at line 57 and ends at 64. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 func... |
Sema4AI_actions | CallbackProxy | public | 0 | 1 | __subject__ | def __subject__(self, value):self.cache = value | 1 | 2 | 2 | 12 | 0 | 67 | 68 | 67 | self | [] | Returns | {"AugAssign": 2, "If": 1, "Return": 1, "Try": 1} | 2 | 8 | 2 | ["JsonRefError", "self.callback"] | 0 | [] | The function (__subject__) defined within the public class called CallbackProxy, that inherit another class.The function start at line 67 and ends at 68. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [67.0], and this function return a value. It declares 2.0 f... |
Sema4AI_actions | CallbackProxy | public | 0 | 1 | __init__ | def __init__(self, message, reference, uri="", base_uri="", path=(), cause=None):self.message = messageself.reference = referenceself.uri = uriself.base_uri = base_uriself.path = pathself.cause = self.__cause__ = cause | 1 | 7 | 6 | 60 | 0 | 72 | 78 | 72 | self,callback | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the public class called CallbackProxy, that inherit another class.The function start at line 72 and ends at 78. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [72.0] and does not return any value. It has 6243.0 functions ... |
Sema4AI_actions | JsonRefError | public | 0 | 1 | __repr__ | def __repr__(self):return "<%s: %r>" % (self.__class__.__name__, self.message) | 1 | 2 | 1 | 19 | 0 | 80 | 81 | 80 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 54 | ["_.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.3585282_geier_pycarddav.pycarddav.model_py.VCard.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Cre... | The function (__repr__) defined within the public class called JsonRefError, that inherit another class.The function start at line 80 and ends at 81. 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 54.0 functions ca... |
Sema4AI_actions | JsonRefError | public | 0 | 1 | __str__ | def __str__(self):return str(self.message) | 1 | 2 | 1 | 12 | 0 | 83 | 84 | 83 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["str"] | 83 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.evm_cfg_py.EVMBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.tac_cfg_py.TACBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd... | The function (__str__) defined within the public class called JsonRefError, that inherit another class.The function start at line 83 and ends at 84. 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, ... |
Sema4AI_actions | JsonRef | public | 0 | 1 | replace_refs | def replace_refs(cls, obj, base_uri="", jsonschema=False, load_on_repr=True):""".. deprecated:: 0.4Use :func:`replace_refs` instead.Returns a deep copy of `obj` with all contained JSON reference objectsreplaced with :class:`JsonRef` instances.:param obj: If this is a JSON reference object, a :class:`JsonRef`instance wi... | 1 | 7 | 5 | 38 | 0 | 97 | 124 | 97 | cls,obj,base_uri,jsonschema,load_on_repr | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 28 | 1 | ["replace_refs"] | 11 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.spec_py.Spec._deref_flattened_spec", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961729_blockchain_etl_ethereum_etl_airflow.dags.ethereumetl_airflow.parse.parse_dataset_fold... | The function (replace_refs) defined within the public class called JsonRef, that inherit another class.The function start at line 97 and ends at 124. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [97.0], and this function return a value. It declare 1.0 functi... |
Sema4AI_actions | CallbackProxy | public | 0 | 1 | __init__ | def __init__(self,refobj,base_uri="",jsonschema=False,load_on_repr=True,merge_props=False,_path=(),_store=None,):if not isinstance(refobj.get("$ref"), str):raise ValueError("Not a valid json reference object: %s" % refobj)self.__reference__ = refobjself.base_uri = base_uriself.jsonschema = jsonschemaself.load_on_repr =... | 3 | 21 | 7 | 103 | 0 | 128 | 148 | 128 | self,callback | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the public class called CallbackProxy, that inherit another class.The function start at line 128 and ends at 148. It contains 21 lines of code and it has a cyclomatic complexity of 3. It takes 7 parameters, represented as [128.0] and does not return any value. It has 6243.0 functi... |
Sema4AI_actions | JsonRef | public | 0 | 1 | _ref_kwargs | def _ref_kwargs(self):return dict(base_uri=self.base_uri,jsonschema=self.jsonschema,load_on_repr=self.load_on_repr,merge_props=self.merge_props,path=self.path,store=self.store,) | 1 | 9 | 1 | 45 | 0 | 151 | 159 | 151 | self | [] | Returns | {"Return": 1} | 1 | 9 | 1 | ["dict"] | 0 | [] | The function (_ref_kwargs) defined within the public class called JsonRef, that inherit another class.The function start at line 151 and ends at 159. It contains 9 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,... |
Sema4AI_actions | JsonRef | public | 0 | 1 | full_uri | def full_uri(self):return urlparse.urljoin(self.base_uri, self.__reference__["$ref"]) | 1 | 2 | 1 | 21 | 0 | 162 | 163 | 162 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["urlparse.urljoin"] | 0 | [] | The function (full_uri) defined within the public class called JsonRef, that inherit another class.The function start at line 162 and ends at 163. 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, an... |
Sema4AI_actions | JsonRef | public | 0 | 1 | callback | def callback(self):if self._resolving_ref:raise self._error("It seems that there is a cyclic reference in the schema.")try:self._resolving_ref += 1uri, fragment = urlparse.urldefrag(self.full_uri)# If we already looked this up, return a reference to the same objectif uri not in self.store:base_doc = selfelse:base_doc =... | 11 | 29 | 1 | 154 | 0 | 165 | 195 | 165 | self | [] | Returns | {"Assign": 6, "AugAssign": 2, "If": 5, "Return": 1, "Try": 1} | 8 | 31 | 8 | ["self._error", "urlparse.urldefrag", "self.resolve_pointer", "self._error", "hasattr", "isinstance", "len", "self.__reference__.items"] | 116 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.devents_py.register_config_cb", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.devents_py.register_status_cb", "_.content.gdrive.MyDrive.Phd_Thesis.... | The function (callback) defined within the public class called JsonRef, that inherit another class.The function start at line 165 and ends at 195. It contains 29 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters, and this function return a value. It declares 8.0 functions... |
Sema4AI_actions | JsonRef | public | 0 | 1 | resolve_pointer | def resolve_pointer(self, document, pointer):"""Resolve a json pointer ``pointer`` within the referenced ``document``.:argument document: the referent document:argument str pointer: a json pointer URI fragment to resolve within it"""parts = unquote(pointer.lstrip("/")).split("/") if pointer else []for part in parts:par... | 7 | 18 | 3 | 117 | 0 | 197 | 225 | 197 | self,document,pointer | [] | Returns | {"Assign": 5, "Expr": 1, "For": 1, "If": 2, "Return": 1, "Try": 2} | 8 | 29 | 8 | ["split", "unquote", "pointer.lstrip", "replace", "part.replace", "isinstance", "int", "self._error"] | 0 | [] | The function (resolve_pointer) defined within the public class called JsonRef, that inherit another class.The function start at line 197 and ends at 225. It contains 18 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [197.0], and this function return a value. It declares 8.0... |
Sema4AI_actions | JsonRef | public | 0 | 1 | _error | def _error(self, message, cause=None):message = "Error while resolving `{}`: {}".format(self.full_uri, message)return JsonRefError(message,self.__reference__,uri=self.full_uri,base_uri=self.base_uri,path=self.path,cause=cause,) | 1 | 10 | 3 | 55 | 0 | 227 | 236 | 227 | self,message,cause | [] | Returns | {"Assign": 1, "Return": 1} | 2 | 10 | 2 | ["format", "JsonRefError"] | 0 | [] | The function (_error) defined within the public class called JsonRef, that inherit another class.The function start at line 227 and ends at 236. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [227.0], and this function return a value. It declares 2.0 function... |
Sema4AI_actions | JsonRefError | public | 0 | 1 | __repr__ | def __repr__(self):if hasattr(self, "cache") or self.load_on_repr:return repr(self.__subject__)return "JsonRef(%r)" % self.__reference__ | 3 | 4 | 1 | 30 | 0 | 238 | 241 | 238 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 54 | ["_.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.3585282_geier_pycarddav.pycarddav.model_py.VCard.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Cre... | The function (__repr__) defined within the public class called JsonRefError, that inherit another class.The function start at line 238 and ends at 241. It contains 4 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 has 54.0 functions ... |
Sema4AI_actions | URIDict | public | 0 | 1 | normalize | def normalize(self, uri):return urlparse.urlsplit(uri).geturl() | 1 | 2 | 2 | 18 | 0 | 249 | 250 | 249 | self,uri | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["geturl", "urlparse.urlsplit"] | 27 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.blog_py.slugify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561509_collective_solgema_fullcalendar.Solgema.fullcalendar.browser.views_py.SFFolderSources.getColor", "_.content.gdriv... | The function (normalize) defined within the public class called URIDict, that inherit another class.The function start at line 249 and ends at 250. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [249.0], and this function return a value. It declares 2.0 functi... |
Sema4AI_actions | CallbackProxy | public | 0 | 1 | __init__ | def __init__(self, *args, **kwargs):self.store = dict()self.store.update(*args, **kwargs) | 1 | 3 | 3 | 30 | 0 | 252 | 254 | 252 | self,callback | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the public class called CallbackProxy, that inherit another class.The function start at line 252 and ends at 254. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [252.0] and does not return any value. It has 6243.0 functio... |
Sema4AI_actions | URIDict | public | 0 | 1 | __getitem__ | def __getitem__(self, uri):return self.store[self.normalize(uri)] | 1 | 2 | 2 | 19 | 0 | 256 | 257 | 256 | self,uri | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.normalize"] | 33 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.devices_py.DeviceList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.structure.buffer_views_py.BufferView.__getitem__", "_.content.g... | The function (__getitem__) defined within the public class called URIDict, that inherit another class.The function start at line 256 and ends at 257. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [256.0], and this function return a value. It declare 1.0 funct... |
Sema4AI_actions | URIDict | public | 0 | 1 | __setitem__ | def __setitem__(self, uri, value):self.store[self.normalize(uri)] = value | 1 | 2 | 3 | 22 | 0 | 259 | 260 | 259 | self,uri,value | [] | None | {"Assign": 1} | 1 | 2 | 1 | ["self.normalize"] | 32 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.devices_py.DeviceList.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544475_chromium_web_page_replay.third_party.dns.namedict_py.NameDict.__setitem__", "_.content.gdri... | The function (__setitem__) defined within the public class called URIDict, that inherit another class.The function start at line 259 and ends at 260. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [259.0] and does not return any value. It declare 1.0 function,... |
Sema4AI_actions | URIDict | public | 0 | 1 | __delitem__ | def __delitem__(self, uri):del self.store[self.normalize(uri)] | 1 | 2 | 2 | 19 | 0 | 262 | 263 | 262 | self,uri | [] | None | {} | 1 | 2 | 1 | ["self.normalize"] | 14 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3581153_zetaops_pyoko.pyoko.listnode_py.ListNode.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3649567_noirello_bonsai.src.bonsai.ldapvaluelist_py.LDAPValueList.__delitem__", "_.content.gdrive.MyDrive.... | The function (__delitem__) defined within the public class called URIDict, that inherit another class.The function start at line 262 and ends at 263. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [262.0] and does not return any value. It declare 1.0 function,... |
Sema4AI_actions | URIDict | public | 0 | 1 | __iter__ | def __iter__(self):return iter(self.store) | 1 | 2 | 1 | 12 | 0 | 265 | 266 | 265 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["iter"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708218_marshallward_f90nml.f90nml.namelist_py.Namelist.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720174_mozilla_bleach.bleach.html5lib_shim_py.BleachHTMLTokenizer.__iter__", "_.content.gdrive.MyDriv... | The function (__iter__) defined within the public class called URIDict, that inherit another class.The function start at line 265 and ends at 266. 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... |
Sema4AI_actions | URIDict | public | 0 | 1 | __len__ | def __len__(self):return len(self.store) | 1 | 2 | 1 | 12 | 0 | 268 | 269 | 268 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["len"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3987994_yoshiko2_av_data_capture.number_parser_py.get_number", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69765524_openshift_elliott.elliottlib.model_py.ListModel.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesi... | The function (__len__) defined within the public class called URIDict, that inherit another class.The function start at line 268 and ends at 269. 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 ... |
Sema4AI_actions | JsonRefError | public | 0 | 1 | __repr__ | def __repr__(self):return repr(self.store) | 1 | 2 | 1 | 12 | 0 | 271 | 272 | 271 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 54 | ["_.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.3585282_geier_pycarddav.pycarddav.model_py.VCard.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Cre... | The function (__repr__) defined within the public class called JsonRefError, that inherit another class.The function start at line 271 and ends at 272. 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 54.0 functions ... |
Sema4AI_actions | public | public | 0 | 0 | _walk_refs | def _walk_refs(obj, func, replace=False, _processed=None):# Keep track of already processed items to prevent recursion_processed = _processed or {}oid = id(obj)if oid in _processed:return _processed[oid]if type(obj) is JsonRef:r = func(obj)obj = r if replace else obj_processed[oid] = objif isinstance(obj, Mapping):for ... | 12 | 20 | 4 | 161 | 4 | 275 | 295 | 275 | obj,func,replace,_processed | ['oid', '_processed', 'obj', 'r'] | Returns | {"Assign": 9, "For": 2, "If": 6, "Return": 2} | 10 | 21 | 10 | ["id", "type", "func", "isinstance", "obj.items", "_walk_refs", "isinstance", "isinstance", "enumerate", "_walk_refs"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._remove_refs_py._walk_refs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._remove_refs_py.replace_refs"] | The function (_walk_refs) defined within the public class called public.The function start at line 275 and ends at 295. It contains 20 lines of code and it has a cyclomatic complexity of 12. It takes 4 parameters, represented as [275.0], and this function return a value. It declares 10.0 functions, It has 10.0 function... |
Sema4AI_actions | JsonRef | public | 0 | 1 | replace_refs | def replace_refs(obj,base_uri="",jsonschema=False,load_on_repr=True,merge_props=False,):"""Returns a deep copy of `obj` with all contained JSON reference objectsreplaced with :class:`JsonRef` instances.:param obj: If this is a JSON reference object, a :class:`JsonRef`instance will be created. If `obj` is not a JSON ref... | 1 | 19 | 5 | 78 | 1 | 298 | 338 | 298 | cls,obj,base_uri,jsonschema,load_on_repr | ['result'] | Returns | {"Expr": 1, "Return": 1} | 1 | 28 | 1 | ["replace_refs"] | 11 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.spec_py.Spec._deref_flattened_spec", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961729_blockchain_etl_ethereum_etl_airflow.dags.ethereumetl_airflow.parse.parse_dataset_fold... | The function (replace_refs) defined within the public class called JsonRef, that inherit another class.The function start at line 298 and ends at 338. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [298.0], and this function return a value. It declare 1.0 fun... |
Sema4AI_actions | public | public | 0 | 0 | _replace_refs | def _replace_refs(obj,*,base_uri,jsonschema,load_on_repr,merge_props,store,path,recursing,):base_uri, frag = urlparse.urldefrag(base_uri)store_uri = None# If this does not get set, we won't store the resultif not frag and not recursing:store_uri = base_uriif jsonschema and isinstance(obj, Mapping):# id changed to $id i... | 15 | 61 | 8 | 285 | 4 | 341 | 409 | 341 | obj,base_uri,jsonschema,load_on_repr,merge_props,store,path,recursing | ['obj', 'store_uri', 'base_uri', 'id_'] | Returns | {"Assign": 10, "If": 7, "Return": 1} | 17 | 69 | 17 | ["urlparse.urldefrag", "isinstance", "obj.get", "obj.get", "isinstance", "urlparse.urljoin", "isinstance", "_replace_refs", "obj.items", "isinstance", "isinstance", "_replace_refs", "enumerate", "isinstance", "isinstance", "obj.get", "JsonRef"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._remove_refs_py._replace_refs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._remove_refs_py.replace_refs"] | The function (_replace_refs) defined within the public class called public.The function start at line 341 and ends at 409. It contains 61 lines of code and it has a cyclomatic complexity of 15. It takes 8 parameters, represented as [341.0], and this function return a value. It declares 17.0 functions, It has 17.0 funct... |
Sema4AI_actions | public | public | 0 | 0 | _ref_encoder_factory.default | def default(self, o):if hasattr(o, "__reference__"):return o.__reference__return super(JSONRefEncoder, cls).default(o) | 2 | 4 | 2 | 31 | 0 | 414 | 417 | 414 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_ref_encoder_factory.default) defined within the public class called public.The function start at line 414 and ends at 417. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [414.0] and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | _ref_encoder_factory._iterencode | def _iterencode(self, o, *args, **kwargs):if hasattr(o, "__reference__"):o = o.__reference__return super(JSONRefEncoder, self)._iterencode(o, *args, **kwargs) | 2 | 4 | 4 | 44 | 0 | 420 | 423 | 420 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_ref_encoder_factory._iterencode) defined within the public class called public.The function start at line 420 and ends at 423. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [420.0] and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | _ref_encoder_factory._encode | def _encode(self, o, *args, **kwargs):if hasattr(o, "__reference__"):o = o.__reference__return super(JSONRefEncoder, self)._encode(o, *args, **kwargs) | 2 | 4 | 4 | 44 | 0 | 426 | 429 | 426 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_ref_encoder_factory._encode) defined within the public class called public.The function start at line 426 and ends at 429. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [426.0] and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | _ref_encoder_factory | def _ref_encoder_factory(cls):class JSONRefEncoder(cls):def default(self, o):if hasattr(o, "__reference__"):return o.__reference__return super(JSONRefEncoder, cls).default(o)# Python 2.6 doesn't work with the default methoddef _iterencode(self, o, *args, **kwargs):if hasattr(o, "__reference__"):o = o.__reference__retur... | 1 | 6 | 1 | 19 | 1 | 412 | 431 | 412 | cls | ['o'] | Returns | {"Assign": 2, "If": 3, "Return": 5} | 9 | 20 | 9 | ["hasattr", "default", "super", "hasattr", "_iterencode", "super", "hasattr", "_encode", "super"] | 0 | [] | The function (_ref_encoder_factory) defined within the public class called public.The function start at line 412 and ends at 431. 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 9.0 functions, and It has 9.0 f... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | __init__ | def __init__(self,headers: typing.Optional[typing.Mapping[str, str]],) -> None:if not headers:headers = {}use_dict = {}for key, value in headers.items():if not isinstance(key, str):raise ValueError(f"Expected key to be a string. Found: {key} ({type(key)})")if not isinstance(value, str):raise ValueError(f"Expected value... | 5 | 18 | 2 | 99 | 0 | 14 | 33 | 14 | self,headers | [] | None | {"AnnAssign": 1, "Assign": 3, "For": 1, "If": 3} | 8 | 20 | 8 | ["headers.items", "isinstance", "ValueError", "type", "isinstance", "ValueError", "type", "key.upper"] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 14 and ends at 33. It contains 18 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [14.0] and does not return any value. It de... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | keys | def keys(self) -> typing.KeysView[str]:return self._headers.keys() | 1 | 2 | 1 | 20 | 0 | 35 | 36 | 35 | self | [] | typing.KeysView[str] | {"Return": 1} | 1 | 2 | 1 | ["self._headers.keys"] | 363 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.examples.benchmark_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy.wsgiserver.wsgiserver3_py.plat_specific_errors", "_.cont... | The function (keys) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 35 and ends at 36. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | values | def values(self) -> typing.ValuesView[str]:return self._headers.values() | 1 | 2 | 1 | 20 | 0 | 38 | 39 | 38 | self | [] | typing.ValuesView[str] | {"Return": 1} | 1 | 2 | 1 | ["self._headers.values"] | 316 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy._cpchecker_py.Checker._populate_known_types", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy.wsgiserver.ws... | The function (values) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 38 and ends at 39. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare ... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | items | def items(self) -> typing.ItemsView[str, str]:return self._headers.items() | 1 | 2 | 1 | 22 | 0 | 41 | 42 | 41 | self | [] | typing.ItemsView[str, str] | {"Return": 1} | 1 | 2 | 1 | ["self._headers.items"] | 1,180 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.InventoryCollector_py.InventoryCollector.amount_inventory_resources", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.InventoryCollecto... | The function (items) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 41 and ends at 42. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | __getitem__ | def __getitem__(self, key: str) -> str:return self._headers[key.upper()] | 1 | 2 | 2 | 22 | 0 | 44 | 45 | 44 | self,key | [] | str | {"Return": 1} | 1 | 2 | 1 | ["key.upper"] | 33 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.devices_py.DeviceList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.structure.buffer_views_py.BufferView.__getitem__", "_.content.g... | The function (__getitem__) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 44 and ends at 45. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [44.0] and does not return any value. It ... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | __contains__ | def __contains__(self, key: typing.Any) -> bool:return key.upper() in self._headers | 1 | 2 | 2 | 23 | 0 | 47 | 48 | 47 | self,key | [] | bool | {"Return": 1} | 1 | 2 | 1 | ["key.upper"] | 9 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.util_py.AliasKeyDict.__contains__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708218_marshallward_f90nml.f90nml.namelist_py.Namelist.__contains__", "_.content.gdrive.MyDri... | The function (__contains__) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 47 and ends at 48. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [47.0] and does not return any value. It... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | __iter__ | def __iter__(self) -> typing.Iterator[typing.Any]:return iter(self.keys()) | 1 | 2 | 1 | 23 | 0 | 50 | 51 | 50 | self | [] | typing.Iterator[typing.Any] | {"Return": 1} | 2 | 2 | 2 | ["iter", "self.keys"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708218_marshallward_f90nml.f90nml.namelist_py.Namelist.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720174_mozilla_bleach.bleach.html5lib_shim_py.BleachHTMLTokenizer.__iter__", "_.content.gdrive.MyDriv... | The function (__iter__) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 50 and ends at 51. 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 declar... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | __len__ | def __len__(self) -> int:return len(self._headers) | 1 | 2 | 1 | 14 | 0 | 53 | 54 | 53 | self | [] | int | {"Return": 1} | 1 | 2 | 1 | ["len"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3987994_yoshiko2_av_data_capture.number_parser_py.get_number", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69765524_openshift_elliott.elliottlib.model_py.ListModel.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesi... | The function (__len__) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 53 and ends at 54. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | __eq__ | def __eq__(self, other: typing.Any) -> bool:if not isinstance(other, _CaseInsensitiveReadOnlyDict):return Falsereturn self._headers == other._headers | 2 | 4 | 2 | 32 | 0 | 56 | 59 | 56 | self,other | [] | bool | {"If": 1, "Return": 2} | 1 | 4 | 1 | ["isinstance"] | 48 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544475_chromium_web_page_replay.third_party.dns.rdataset_py.Rdataset.__eq__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544475_chromium_web_page_replay.third_party.dns.rrset_py.RRset.__eq__", "_.content.gdrive... | The function (__eq__) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 56 and ends at 59. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [56.0] and does not return any value. It decla... |
Sema4AI_actions | _CaseInsensitiveReadOnlyDict | protected | 0 | 1 | __repr__ | def __repr__(self) -> str:class_name = self.__class__.__name__return f"{class_name}({self._headers!r})" | 1 | 3 | 1 | 17 | 0 | 61 | 63 | 61 | self | [] | str | {"Assign": 1, "Return": 1} | 0 | 3 | 0 | [] | 54 | ["_.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.3585282_geier_pycarddav.pycarddav.model_py.VCard.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Cre... | The function (__repr__) defined within the protected class called _CaseInsensitiveReadOnlyDict, that inherit another class.The function start at line 61 and ends at 63. 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 has 54... |
Sema4AI_actions | Request | public | 0 | 0 | headers | def headers(self) -> Headers:"""Provides the headers received in the request (excluding `cookies` whichare available in `cookies`)."""raise NotImplementedError("This is an abstract class. Subclasses are expected to reimplement this method.") | 1 | 4 | 1 | 13 | 0 | 82 | 89 | 82 | self | [] | Headers | {"Expr": 1} | 1 | 8 | 1 | ["NotImplementedError"] | 0 | [] | The function (headers) defined within the public class called Request.The function start at line 82 and ends at 89. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called insid... |
Sema4AI_actions | Request | public | 0 | 0 | cookies | def cookies(self) -> Cookies:"""Provides the cookies received in the request."""raise NotImplementedError("This is an abstract class. Subclasses are expected to reimplement this method.") | 1 | 4 | 1 | 13 | 0 | 92 | 98 | 92 | self | [] | Cookies | {"Expr": 1} | 1 | 7 | 1 | ["NotImplementedError"] | 0 | [] | The function (cookies) defined within the public class called Request.The function start at line 92 and ends at 98. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called insid... |
Sema4AI_actions | Request | public | 0 | 0 | model_validate | def model_validate(cls, dct: dict) -> "Request":from sema4ai.actions._request_impl import _RequestImplreturn _RequestImpl.model_validate(dct) | 1 | 3 | 2 | 26 | 0 | 101 | 104 | 101 | cls,dct | [] | 'Request' | {"Return": 1} | 1 | 4 | 1 | ["_RequestImpl.model_validate"] | 18 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69279284_espressif_idf_component_manager.idf_component_tools.manifest.models_py.Manifest.validate_manifest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_se... | The function (model_validate) defined within the public class called Request.The function start at line 101 and ends at 104. 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 declare 1.0 function, It has 1.0 function call... |
Sema4AI_actions | _RequestImpl | protected | 0 | 1 | __init__ | def __init__(self, headers: Headers, cookies: Cookies):self._headers: Headers = headersself._cookies: Cookies = cookies | 1 | 3 | 3 | 27 | 0 | 13 | 15 | 13 | self,headers,cookies | [] | None | {"AnnAssign": 2} | 0 | 3 | 0 | [] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the protected class called _RequestImpl, that inherit another class.The function start at line 13 and ends at 15. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [13.0] and does not return any value. It has 6243.0 function... |
Sema4AI_actions | _RequestImpl | protected | 0 | 1 | headers | def headers(self) -> Headers:return self._headers | 1 | 2 | 1 | 11 | 0 | 18 | 19 | 18 | self | [] | Headers | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (headers) defined within the protected class called _RequestImpl, that inherit another class.The function start at line 18 and ends at 19. 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.. |
Sema4AI_actions | _RequestImpl | protected | 0 | 1 | cookies | def cookies(self) -> Cookies:return self._cookies | 1 | 2 | 1 | 11 | 0 | 22 | 23 | 22 | self | [] | Cookies | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (cookies) defined within the protected class called _RequestImpl, that inherit another class.The function start at line 22 and ends at 23. 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.. |
Sema4AI_actions | _RequestImpl | protected | 0 | 1 | model_validate | def model_validate(cls, dct: dict) -> "Request":"""If the user passes the request in the json input (for testing), we shouldbe able to decode it and provide a request based on that data."""headers = Headers(dct.get("headers"))cookies = Cookies(dct.get("cookies"))return cls(headers=headers, cookies=cookies) | 1 | 4 | 2 | 45 | 0 | 26 | 34 | 26 | cls,dct | [] | 'Request' | {"Assign": 2, "Expr": 1, "Return": 1} | 5 | 9 | 5 | ["Headers", "dct.get", "Cookies", "dct.get", "cls"] | 16 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69279284_espressif_idf_component_manager.idf_component_tools.manifest.models_py.Manifest.validate_manifest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._comman... | The function (model_validate) defined within the protected class called _RequestImpl, that inherit another class.The function start at line 26 and ends at 34. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [26.0] and does not return any value. It declares 5.0 ... |
Sema4AI_actions | Table | public | 0 | 1 | __init__ | def __init__(self, columns: list[str], rows: list[Row]):"""Args:columns: The columns of the table.rows: The rows of the table."""if not isinstance(columns, list):raise ValueError("'columns' passed to Table constructor must be a list")for column in columns:if not isinstance(column, str):raise ValueError(f"'columns' pass... | 8 | 21 | 3 | 136 | 0 | 19 | 49 | 19 | self,columns,rows | [] | None | {"Assign": 1, "Expr": 2, "For": 2, "If": 5} | 18 | 31 | 18 | ["isinstance", "ValueError", "isinstance", "ValueError", "isinstance", "ValueError", "range", "min", "len", "isinstance", "ValueError", "len", "len", "ValueError", "len", "len", "__init__", "super"] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the public class called Table, that inherit another class.The function start at line 19 and ends at 49. It contains 21 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [19.0] and does not return any value. It declares 18.0 functions, It ... |
Sema4AI_actions | Table | public | 0 | 1 | iter_as_dicts | def iter_as_dicts(self) -> Iterator[dict[str, RowValue]]:"""Iterate over the rows of the table as dictionaries.Returns:An iterator over the rows of the table as dictionaries."""for row in self.rows:yield dict(zip(self.columns, row)) | 2 | 3 | 1 | 35 | 0 | 51 | 59 | 51 | self | [] | Iterator[dict[str, RowValue]] | {"Expr": 2, "For": 1} | 2 | 9 | 2 | ["dict", "zip"] | 0 | [] | The function (iter_as_dicts) defined within the public class called Table, that inherit another class.The function start at line 51 and ends at 59. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, and... |
Sema4AI_actions | Table | public | 0 | 1 | __len__ | def __len__(self) -> int:"""Get the number of rows in the table.Returns:The number of rows in the table."""return len(self.rows) | 1 | 2 | 1 | 15 | 0 | 61 | 68 | 61 | self | [] | int | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["len"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3987994_yoshiko2_av_data_capture.number_parser_py.get_number", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69765524_openshift_elliott.elliottlib.model_py.ListModel.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesi... | The function (__len__) defined within the public class called Table, that inherit another class.The function start at line 61 and ends at 68. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 ... |
Sema4AI_actions | Table | public | 0 | 1 | __getitem__ | def __getitem__(self, index: int) -> Row:"""Get a row from the table.Args:index: The index of the row to get.Returns:The row at the given index."""return self.rows[index] | 1 | 2 | 2 | 19 | 0 | 70 | 80 | 70 | self,index | [] | Row | {"Expr": 1, "Return": 1} | 0 | 11 | 0 | [] | 33 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.devices_py.DeviceList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.structure.buffer_views_py.BufferView.__getitem__", "_.content.g... | The function (__getitem__) defined within the public class called Table, that inherit another class.The function start at line 70 and ends at 80. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [70.0] and does not return any value. It has 33.0 functions calling... |
Sema4AI_actions | Table | public | 0 | 1 | get_row_as_dict | def get_row_as_dict(self, index: int) -> dict[str, RowValue]:"""Get a row from the table as a dictionary.Args:index: The index of the row to get.Returns:The row at the given index as a dictionary."""return dict(zip(self.columns, self.rows[index])) | 1 | 2 | 2 | 34 | 0 | 82 | 92 | 82 | self,index | [] | dict[str, RowValue] | {"Expr": 1, "Return": 1} | 2 | 11 | 2 | ["dict", "zip"] | 0 | [] | The function (get_row_as_dict) defined within the public class called Table, that inherit another class.The function start at line 82 and ends at 92. It contains 2 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 2.0 functions... |
Sema4AI_actions | Table | public | 0 | 1 | __str__ | def __str__(self):"""Return a string representation of the table as markdown."""# First calculate max width needed for each columncol_widths = [len(str(col)) for col in self.columns]for row in self.rows:for i, val in enumerate(row):col_widths[i] = max(col_widths[i], len(str(val)))# Build header row with column nameshea... | 5 | 14 | 1 | 108 | 0 | 94 | 120 | 94 | self | [] | Returns | {"Assign": 6, "Expr": 4, "For": 3, "Return": 1} | 19 | 27 | 19 | ["len", "str", "enumerate", "max", "len", "str", "join", "ljust", "str", "zip", "join", "ret.append", "ret.append", "join", "ljust", "str", "zip", "ret.append", "join"] | 83 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.evm_cfg_py.EVMBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.tac_cfg_py.TACBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd... | The function (__str__) defined within the public class called Table, that inherit another class.The function start at line 94 and ends at 120. It contains 14 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters, and this function return a value. It declares 19.0 functions, It... |
Sema4AI_actions | Table | public | 0 | 1 | __repr__ | def __repr__(self):import jsonreturn f"Table(columns={json.dumps(self.columns, indent=4)}, rows={json.dumps(self.rows, indent=4)})" | 1 | 3 | 1 | 10 | 0 | 122 | 125 | 122 | self | [] | Returns | {"Return": 1} | 2 | 4 | 2 | ["json.dumps", "json.dumps"] | 54 | ["_.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.3585282_geier_pycarddav.pycarddav.model_py.VCard.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Cre... | The function (__repr__) defined within the public class called Table, that inherit another class.The function start at line 122 and ends at 125. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It... |
Sema4AI_actions | public | public | 0 | 0 | normalize_drive | def normalize_drive(filename):if len(filename) > 1 and filename[1] == ":" and not filename[0].islower():return filename[0].lower() + filename[1:]return filename | 4 | 4 | 1 | 47 | 0 | 39 | 42 | 39 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (normalize_drive) defined within the public class called public.The function start at line 39 and ends at 42. It contains 4 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | normalize_drive | def normalize_drive(filename):return filename | 1 | 2 | 1 | 7 | 0 | 46 | 47 | 46 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (normalize_drive) 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 does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | _normalize_win_path | def _normalize_win_path(path):netloc = ""# normalize to fwd-slashes on windows,# on other systems bwd-slashes are valid# filename character, eg /f\oo/ba\r.txtif IS_WIN:path = path.replace("\\", "/")# check for authority as used in UNC shares# or use the path as givenif path[:2] == "//":idx = path.index("/", 2)if idx ==... | 6 | 16 | 1 | 117 | 3 | 50 | 78 | 50 | path | ['idx', 'path', 'netloc'] | Returns | {"Assign": 8, "If": 5, "Return": 1} | 5 | 29 | 5 | ["path.replace", "path.index", "path.startswith", "RE_DRIVE_LETTER_PATH.match", "lower"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.from_fs_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.uri_with", "_.content.gdrive.M... | The function (_normalize_win_path) defined within the public class called public.The function start at line 50 and ends at 78. It contains 16 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 declares 5.0 functions, It has 5.0 function... |
Sema4AI_actions | public | public | 0 | 0 | from_fs_path | def from_fs_path(path: str) -> str:"""Returns a URI for the given filesystem path."""scheme = "file"params, query, fragment = "", "", ""path, netloc = _normalize_win_path(path)return urlunparse((scheme, netloc, path, params, query, fragment)) | 1 | 5 | 1 | 49 | 1 | 82 | 87 | 82 | path | ['scheme'] | str | {"Assign": 3, "Expr": 1, "Return": 1} | 3 | 6 | 3 | ["_normalize_win_path", "urlunparse", "lru_cache"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.normalize_uri", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.uris_py.normalize_uri"] | The function (from_fs_path) defined within the public class called public.The function start at line 82 and ends at 87. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called ins... |
Sema4AI_actions | public | public | 0 | 0 | normalize_uri | def normalize_uri(uri: str) -> str:if uri_scheme(uri) == "file":return from_fs_path(to_fs_path(uri))return uri | 2 | 4 | 1 | 27 | 0 | 91 | 94 | 91 | uri | [] | str | {"If": 1, "Return": 2} | 4 | 4 | 4 | ["uri_scheme", "from_fs_path", "to_fs_path", "lru_cache"] | 0 | [] | The function (normalize_uri) defined within the public class called public.The function start at line 91 and ends at 94. 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 4.0 functions, and It has 4.0 functions call... |
Sema4AI_actions | public | public | 0 | 0 | to_fs_path | def to_fs_path(uri: str) -> str:"""Returns the filesystem path of the given URI.Will handle UNC paths and normalize windows drive letters to lower-case.Also uses the platform specific path separator. Will *not* validate thepath for invalid characters and semantics.Will *not* look at the scheme of this URI."""# scheme:/... | 6 | 12 | 1 | 89 | 1 | 98 | 125 | 98 | uri | ['value'] | str | {"Assign": 6, "Expr": 1, "If": 3, "Return": 1} | 6 | 28 | 6 | ["urlparse", "RE_DRIVE_LETTER_PATH.match", "lower", "value.replace", "normalize_drive", "lru_cache"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.normalize_uri", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.uris_py.normalize_uri"] | The function (to_fs_path) defined within the public class called public.The function start at line 98 and ends at 125. It contains 12 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 6.0 functions, It has 6.0 functions called ins... |
Sema4AI_actions | public | public | 0 | 0 | uri_scheme | def uri_scheme(uri):try:return urlparse(uri)[0]except (TypeError, IndexError):return None | 2 | 5 | 1 | 24 | 0 | 128 | 132 | 128 | uri | [] | Returns | {"Return": 2, "Try": 1} | 1 | 5 | 1 | ["urlparse"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.normalize_uri", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.uris_py.normalize_uri"] | The function (uri_scheme) defined within the public class called public.The function start at line 128 and ends at 132. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called in... |
Sema4AI_actions | public | public | 0 | 0 | uri_with | def uri_with(uri, scheme=None, netloc=None, path=None, params=None, query=None, fragment=None):"""Return a URI with the given part(s) replaced.Parts are decoded / encoded."""old_scheme, old_netloc, old_path, old_params, old_query, old_fragment = urlparse(uri)path, _netloc = _normalize_win_path(path)return urlunparse((s... | 7 | 17 | 7 | 84 | 0 | 135 | 156 | 135 | uri,scheme,netloc,path,params,query,fragment | [] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 3 | 22 | 3 | ["urlparse", "_normalize_win_path", "urlunparse"] | 0 | [] | The function (uri_with) defined within the public class called public.The function start at line 135 and ends at 156. It contains 17 lines of code and it has a cyclomatic complexity of 7. It takes 7 parameters, represented as [135.0], and this function return a value. It declares 3.0 functions, and It has 3.0 function... |
Sema4AI_actions | public | public | 0 | 0 | urlparse | def urlparse(uri):"""Parse and decode the parts of a URI."""scheme, netloc, path, params, query, fragment = parse_urlparse(uri)return (parse_unquote(scheme),parse_unquote(netloc),parse_unquote(path),parse_unquote(params),parse_unquote(query),parse_unquote(fragment),) | 1 | 10 | 1 | 55 | 0 | 159 | 169 | 159 | uri | [] | Returns | {"Assign": 1, "Expr": 1, "Return": 1} | 7 | 11 | 7 | ["parse_urlparse", "parse_unquote", "parse_unquote", "parse_unquote", "parse_unquote", "parse_unquote", "parse_unquote"] | 251 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.asset_py.AssetMixin.signed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.evok_py.WsHandler.check_origin", "_.content.gdrive.MyDrive.Phd_Thesis.... | The function (urlparse) defined within the public class called public.The function start at line 159 and ends at 169. It contains 10 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 7.0 functions, It has 7.0 functions called ... |
Sema4AI_actions | public | public | 0 | 0 | urlunparse | def urlunparse(parts):"""Unparse and encode parts of a URI."""scheme, netloc, path, params, query, fragment = parts# Avoid encoding the windows drive letter colonif RE_DRIVE_LETTER_PATH.match(path):quoted_path = path[:3] + parse_quote(path[3:])else:quoted_path = parse_quote(path)return parse_urlunparse((parse_quote(sch... | 2 | 16 | 1 | 84 | 1 | 172 | 191 | 172 | parts | ['quoted_path'] | Returns | {"Assign": 3, "Expr": 1, "If": 1, "Return": 1} | 9 | 20 | 9 | ["RE_DRIVE_LETTER_PATH.match", "parse_quote", "parse_quote", "parse_urlunparse", "parse_quote", "parse_quote", "parse_quote", "parse_quote", "parse_quote"] | 30 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.markdown.inlinepatterns_py.LinkPattern.sanitize_url", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.svn_py.SVNWorkingCopy.... | The function (urlunparse) defined within the public class called public.The function start at line 172 and ends at 191. It contains 16 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 9.0 functions, It has 9.0 functions calle... |
Sema4AI_actions | public | public | 0 | 0 | create_validate_and_convert_kwargs_scope | def create_validate_and_convert_kwargs_scope(param_name: str, param_type: type) -> Iterator[ValidateAndConvertKwargsScope]:attr = "validate_and_convert"scope = ValidateAndConvertKwargsScope(param_name=param_name, param_type=param_type)assert get_validate_and_convert_kwargs_scope() is None, "A scope is already active!"s... | 2 | 11 | 2 | 61 | 2 | 17 | 27 | 17 | param_name,param_type | ['scope', 'attr'] | Iterator[ValidateAndConvertKwargsScope] | {"Assign": 2, "Expr": 3, "Try": 1} | 4 | 11 | 4 | ["ValidateAndConvertKwargsScope", "get_validate_and_convert_kwargs_scope", "setattr", "setattr"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._commands_py._validate_and_convert_kwargs"] | The function (create_validate_and_convert_kwargs_scope) defined within the public class called public.The function start at line 17 and ends at 27. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [17.0] and does not return any value. It declares 4.0 functions,... |
Sema4AI_actions | public | public | 0 | 0 | get_validate_and_convert_kwargs_scope | def get_validate_and_convert_kwargs_scope() -> Optional[ValidateAndConvertKwargsScope]:"""Enables getting the current registered scope during arg validation.This is a workaround for creating the OAuth2 instance getting the providerand scope from what is in the parameter type definition (ideally this'd havebeen passed i... | 1 | 2 | 0 | 19 | 0 | 30 | 40 | 30 | [] | Optional[ValidateAndConvertKwargsScope] | {"Expr": 1, "Return": 1} | 1 | 11 | 1 | ["getattr"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._secret._oauth2_secret_py._RawOauth2Secret.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._variable... | The function (get_validate_and_convert_kwargs_scope) defined within the public class called public.The function start at line 30 and ends at 40. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1... | |
Sema4AI_actions | public | public | 0 | 0 | collect_lint_errors | def collect_lint_errors(contents_to_lint: str) -> list[DiagnosticsTypedDict]:"""Provides lint errors from the contents of a file containing the `@action`s.Args:contents_to_lint: The contents which should be linted.Returns:A list with the diagnostics found."""from sema4ai.actions import _lint_actionfrom sema4ai.actions.... | 2 | 21 | 1 | 136 | 4 | 68 | 102 | 68 | contents_to_lint | ['lsp_err', 'errors', 'lst', 'pm'] | list[DiagnosticsTypedDict] | {"Assign": 4, "AugAssign": 2, "Expr": 3, "For": 1, "Return": 1} | 7 | 35 | 7 | ["PluginManager", "pm.set_instance", "ManagedParameters", "list", "_lint_action.iter_lint_errors", "error.to_lsp_diagnostic", "lst.append"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.tests.actions_tests.test_lint_actions_py.test_lint_action_no_description"] | The function (collect_lint_errors) defined within the public class called public.The function start at line 68 and ends at 102. It contains 21 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 7.0 functions, It has 7.0 functions c... |
Sema4AI_actions | public | public | 0 | 0 | main | def main(args=None, exit: bool = True, plugin_manager: Optional["_PluginManager"] = None) -> int:"""Entry point for running actions from sema4ai-actions.Args:args: The command line arguments.exit: Determines if the process should exit right after executing the command.plugin_manager:Provides a way to customize internal... | 5 | 23 | 3 | 157 | 4 | 20 | 65 | 20 | args,exit,plugin_manager | ['returncode', 'args', 'dispatcher', 'plugin_manager'] | int | {"Assign": 5, "Expr": 3, "If": 4, "Return": 1} | 7 | 46 | 7 | ["PluginManager", "plugin_manager.set_instance", "ManagedParameters", "Request.model_validate", "_ActionsArgDispatcher", "dispatcher.process_args", "sys.exit"] | 199 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.pystache.tests.test_commands_py.CommandsTestCase.callScript", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3518760_makerbot_pyserial.ez_setup_py.main", "_.content.gdriv... | The function (main) defined within the public class called public.The function start at line 20 and ends at 65. It contains 23 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [20.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside ... |
Sema4AI_actions | EPManagedParameters | public | 1 | 1 | is_managed_param | def is_managed_param(self, param_name: str, *, node: FunctionDef) -> bool:"""API to detect whether a given parameter is a managed parameter.Args:param_name: The name of the parameter.param: The FunctionDef to be checked (information in this caseis gathered statically, when linting the action).Return: True if it's a man... | 1 | 2 | 3 | 22 | 0 | 17 | 28 | 17 | self,param_name,node | [] | bool | {"Expr": 1} | 1 | 12 | 1 | ["NotImplementedError"] | 0 | [] | The function (is_managed_param) defined within the public class called EPManagedParameters, implement an interface, and it inherit another class.The function start at line 17 and ends at 28. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [17.0] and does not re... |
Sema4AI_actions | EPManagedParameters | public | 1 | 1 | is_managed_param | def is_managed_param(self, param_name: str, *, param: inspect.Parameter) -> bool:"""API to detect whether a given parameter is a managed parameter.Args:param_name: The name of the parameter.param: The inspect.Parameter to be checked (information in this caseis gathered at runtime, when running the action).Return: True ... | 1 | 2 | 3 | 24 | 0 | 31 | 42 | 31 | self,param_name,node | [] | bool | {"Expr": 1} | 1 | 12 | 1 | ["NotImplementedError"] | 0 | [] | The function (is_managed_param) defined within the public class called EPManagedParameters, implement an interface, and it inherit another class.The function start at line 31 and ends at 42. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [31.0] and does not re... |
Sema4AI_actions | EPManagedParameters | public | 1 | 1 | inject_managed_params | def inject_managed_params(self,sig: inspect.Signature,request_contexts: Optional["RequestContexts"],new_kwargs: Dict[str, Any],original_kwargs: Dict[str, Any],) -> Dict[str, Any]:"""This enables the addition of managed parameters into a call to the action.Args:sig: The signature of the function being called.request_con... | 1 | 8 | 5 | 49 | 0 | 44 | 60 | 44 | self,sig,request_contexts,new_kwargs,original_kwargs | [] | Dict[str, Any] | {"Expr": 1} | 1 | 17 | 1 | ["NotImplementedError"] | 0 | [] | The function (inject_managed_params) defined within the public class called EPManagedParameters, implement an interface, and it inherit another class.The function start at line 44 and ends at 60. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [44.0] and does n... |
Sema4AI_actions | EPManagedParameters | public | 1 | 1 | get_managed_param_type | def get_managed_param_type(self, param_name: str, *, param: inspect.Parameter) -> type:"""Provides the type of the given managed parameter.Args:param_name: The parameter name for which the type is requested.param: The parameter for which the type is requested.Return: The type of the managed parameter."""raise NotImplem... | 1 | 4 | 3 | 24 | 0 | 63 | 75 | 63 | self,param_name,param | [] | type | {"Expr": 1} | 1 | 13 | 1 | ["NotImplementedError"] | 0 | [] | The function (get_managed_param_type) defined within the public class called EPManagedParameters, implement an interface, and it inherit another class.The function start at line 63 and ends at 75. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [63.0] and does ... |
Sema4AI_actions | EPManagedParameters | public | 1 | 1 | get_managed_param_type | def get_managed_param_type(self, param_name: str, *, node: FunctionDef) -> str:"""Provides the type (as a string) of the given managed parameter.Args:param_name: The parameter name for which the type is requested.node: The function definition node of the requested parameterReturn: The type (string) of the managed param... | 1 | 2 | 3 | 22 | 0 | 78 | 88 | 78 | self,param_name,param | [] | type | {"Expr": 1} | 1 | 13 | 1 | ["NotImplementedError"] | 0 | [] | The function (get_managed_param_type) defined within the public class called EPManagedParameters, implement an interface, and it inherit another class.The function start at line 78 and ends at 88. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [78.0] and does ... |
Sema4AI_actions | public | public | 0 | 0 | execfile | def execfile(file, glob=None, loc=None):import tokenizewith tokenize.open(file) as stream:contents = stream.read()exec(compile(contents + "\n", file, "exec"), glob, loc) | 1 | 5 | 3 | 49 | 1 | 52 | 58 | 52 | file,glob,loc | ['contents'] | None | {"Assign": 1, "Expr": 1, "With": 1} | 4 | 7 | 4 | ["tokenize.open", "stream.read", "exec", "compile"] | 11 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706529_openlightingproject_rdm_app.data.controller_test_py.TestControllerData.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706529_openlightingproject_rdm_app.data.manufacturer_test_py.TestManufacturers.se... | The function (execfile) defined within the public class called public.The function start at line 52 and ends at 58. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [52.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called insi... |
Sema4AI_actions | PluginManager | public | 0 | 1 | __init__ | def __init__(self) -> None:self._ep_to_impls: Dict[Type, list] = {}self._ep_to_instance_impls: Dict[Tuple[Type, Optional[str]], list] = {}self._ep_to_context_to_instance: Dict[Type, dict] = {}self._name_to_ep: Dict[str, Type] = {}self.exited = False | 1 | 6 | 1 | 72 | 0 | 86 | 91 | 86 | self | [] | None | {"AnnAssign": 4, "Assign": 1} | 0 | 6 | 0 | [] | 6,243 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec... | The function (__init__) defined within the public class called PluginManager, that inherit another class.The function start at line 86 and ends at 91. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 6243.0 functions cal... |
Sema4AI_actions | PluginManager | public | 0 | 1 | load_plugins_from | def load_plugins_from(self, directory: Path) -> int:found_files_with_plugins = 0filepath: Pathfor filepath in directory.iterdir():if filepath.is_file() and filepath.name.endswith(".py"):namespace: dict = {"__file__": str(filepath)}execfile(str(filepath), glob=namespace, loc=namespace)register_plugins = namespace.get("r... | 5 | 12 | 2 | 92 | 0 | 93 | 104 | 93 | self,directory | [] | int | {"AnnAssign": 2, "Assign": 2, "AugAssign": 1, "Expr": 2, "For": 1, "If": 2, "Return": 1} | 8 | 12 | 8 | ["directory.iterdir", "filepath.is_file", "filepath.name.endswith", "str", "execfile", "str", "namespace.get", "register_plugins"] | 0 | [] | The function (load_plugins_from) defined within the public class called PluginManager, that inherit another class.The function start at line 93 and ends at 104. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [93.0] and does not return any value. It declares 8... |
Sema4AI_actions | PluginManager | public | 0 | 1 | get_implementations | def get_implementations(self, ep: Union[Type, str]) -> list:assert not self.exitedif isinstance(ep, str):ep = self._name_to_ep[ep]impls = self._ep_to_impls.get(ep, [])ret = []for class_, kwargs in impls:instance = class_(**kwargs)ret.append(instance)return ret | 3 | 10 | 2 | 76 | 0 | 109 | 120 | 109 | self,ep | [] | list | {"Assign": 4, "Expr": 1, "For": 1, "If": 1, "Return": 1} | 4 | 12 | 4 | ["isinstance", "self._ep_to_impls.get", "class_", "ret.append"] | 0 | [] | The function (get_implementations) defined within the public class called PluginManager, that inherit another class.The function start at line 109 and ends at 120. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [109.0] and does not return any value. It declar... |
Sema4AI_actions | PluginManager | public | 0 | 1 | register | def register(self,ep: Type,impl,kwargs: Optional[dict] = None,context: Optional[str] = None,keep_instance: bool = False,):""":param ep::param str impl:This is the full path to the class implementation.:param kwargs::param context:If keep_instance is True, it's possible to register it for a givencontext.:param keep_inst... | 6 | 30 | 6 | 159 | 0 | 122 | 166 | 122 | self,ep,impl,kwargs,context,keep_instance | [] | None | {"Assign": 8, "Expr": 2, "If": 5} | 6 | 45 | 6 | ["isinstance", "ValueError", "ep_to_instance_impls.get", "InstanceAlreadyRegisteredError", "ep_to_impl.get", "impls.append"] | 904 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.json.test_json_server_py.json_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.integration.test_error_handling_py.mock_server",... | The function (register) defined within the public class called PluginManager, that inherit another class.The function start at line 122 and ends at 166. It contains 30 lines of code and it has a cyclomatic complexity of 6. It takes 6 parameters, represented as [122.0] and does not return any value. It declares 6.0 func... |
Sema4AI_actions | PluginManager | public | 0 | 1 | unregister | def unregister(self, ep: Type, context: Optional[str] = None, keep_instance: bool = False):self._name_to_ep.pop(ep.__name__, None)if keep_instance:ep_to_instance_impls = self._ep_to_instance_implsep_to_instance_impls.pop((ep, context), None)else:ep_to_impl = self._ep_to_implsep_to_impl.pop(ep, None) | 2 | 10 | 4 | 71 | 0 | 168 | 177 | 168 | self,ep,context,keep_instance | [] | None | {"Assign": 2, "Expr": 3, "If": 1} | 3 | 10 | 3 | ["self._name_to_ep.pop", "ep_to_instance_impls.pop", "ep_to_impl.pop"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._hooks_py.SessionCallback.unregister"] | The function (unregister) defined within the public class called PluginManager, that inherit another class.The function start at line 168 and ends at 177. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [168.0] and does not return any value. It declares 3.0 fu... |
Sema4AI_actions | PluginManager | public | 0 | 1 | set_instance | def set_instance(self, ep: Type, instance, context=None) -> None:if isinstance(ep, str):raise ValueError("Expected the actual EP class to be passed.")self._name_to_ep[ep.__name__] = epinstances = self._ep_to_context_to_instance.get(ep)if instances is None:instances = self._ep_to_context_to_instance[ep] = {}instances[co... | 3 | 8 | 4 | 72 | 0 | 179 | 187 | 179 | self,ep,instance,context | [] | None | {"Assign": 4, "If": 2} | 3 | 9 | 3 | ["isinstance", "ValueError", "self._ep_to_context_to_instance.get"] | 0 | [] | The function (set_instance) defined within the public class called PluginManager, that inherit another class.The function start at line 179 and ends at 187. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [179.0] and does not return any value. It declares 3.0 f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.