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 | VersionOrder | public | 0 | 0 | __str__ | def __str__(self):return str(self.spec) | 1 | 2 | 1 | 12 | 0 | 699 | 700 | 699 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 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 VersionOrder.The function start at line 699 and ends at 700. 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 83.0 functions calling this function which a... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __repr__ | def __repr__(self):return str(self.spec) | 1 | 2 | 1 | 12 | 0 | 702 | 703 | 702 | 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 VersionOrder.The function start at line 702 and ends at 703. 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 calling this function which ... |
Sema4AI_actions | public | public | 0 | 0 | parse_marker.marker_var | def marker_var(remaining):# either identifier, or literal stringm = IDENTIFIER.match(remaining)if m:result = m.groups()[0]remaining = remaining[m.end() :]elif not remaining:raise SyntaxError("unexpected end of input")else:q = remaining[0]if q not in "'\"":raise SyntaxError("invalid expression: %s" % remaining)oq = "'\"... | 8 | 33 | 1 | 213 | 0 | 30 | 64 | 30 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (parse_marker.marker_var) defined within the public class called public.The function start at line 30 and ends at 64. It contains 33 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | parse_marker.marker_expr | def marker_expr(remaining):if remaining and remaining[0] == "(":result, remaining = marker(remaining[1:].lstrip())if remaining[0] != ")":raise SyntaxError("unterminated parenthesis: %s" % remaining)remaining = remaining[1:].lstrip()else:lhs, remaining = marker_var(remaining)while remaining:m = MARKER_OP.match(remaining... | 6 | 18 | 1 | 134 | 0 | 66 | 83 | 66 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (parse_marker.marker_expr) defined within the public class called public.The function start at line 66 and ends at 83. It contains 18 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | parse_marker.marker_and | def marker_and(remaining):lhs, remaining = marker_expr(remaining)while remaining:m = AND.match(remaining)if not m:breakremaining = remaining[m.end() :]rhs, remaining = marker_expr(remaining)lhs = {"op": "and", "lhs": lhs, "rhs": rhs}return lhs, remaining | 3 | 10 | 1 | 67 | 0 | 85 | 94 | 85 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (parse_marker.marker_and) defined within the public class called public.The function start at line 85 and ends at 94. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | parse_marker.marker | def marker(remaining):lhs, remaining = marker_and(remaining)while remaining:m = OR.match(remaining)if not m:breakremaining = remaining[m.end() :]rhs, remaining = marker_and(remaining)lhs = {"op": "or", "lhs": lhs, "rhs": rhs}return lhs, remaining | 3 | 10 | 1 | 67 | 0 | 96 | 105 | 96 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (parse_marker.marker) defined within the public class called public.The function start at line 96 and ends at 105. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | parse_marker | def parse_marker(marker_string):"""Parse a marker string and return a dictionary containing a marker expression.The dictionary will contain keys "op", "lhs" and "rhs" for non-terminals inthe expression grammar, or strings. A string contained in quotes is to beinterpreted as a literal string, and a string not contained ... | 1 | 6 | 1 | 19 | 9 | 20 | 107 | 20 | marker_string | ['remaining', 'op', 'm', 'q', 'lhs', 'oq', 's', 'result', 'parts'] | Returns | {"Assign": 32, "Expr": 4, "If": 11, "Return": 5, "While": 4} | 35 | 88 | 35 | ["IDENTIFIER.match", "m.groups", "m.end", "SyntaxError", "SyntaxError", "replace", "parts.append", "STRING_CHUNK.match", "SyntaxError", "parts.append", "m.groups", "m.end", "join", "SyntaxError", "parts.append", "join", "lstrip", "marker", "lstrip", "SyntaxError", "lstrip", "marker_var", "MARKER_OP.match", "m.groups", ... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.pip_impl.pip_distlib_util_py.parse_requirement", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.com... | The function (parse_marker) defined within the public class called public.The function start at line 20 and ends at 107. 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 35.0 functions, It has 35.0 functions cal... |
Sema4AI_actions | public | public | 0 | 0 | parse_requirement.get_versions | def get_versions(ver_remaining):"""Return a list of operator, version tuples if any arespecified, else None."""m = COMPARE_OP.match(ver_remaining)versions = Noneif m:versions = []while True:op = m.groups()[0]ver_remaining = ver_remaining[m.end() :]m = VERSION_IDENTIFIER.match(ver_remaining)if not m:raise SyntaxError("i... | 9 | 25 | 1 | 156 | 0 | 162 | 192 | 162 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (parse_requirement.get_versions) defined within the public class called public.The function start at line 162 and ends at 192. It contains 25 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | parse_requirement | def parse_requirement(req):"""Parse a requirement passed in as a string. Return a Containerwhose attributes contain the various parts of the requirement."""remaining = req.strip()if not remaining or remaining.startswith("#"):return Nonem = IDENTIFIER.match(remaining)if not m:raise SyntaxError("name expected: %s" % rema... | 28 | 81 | 1 | 567 | 14 | 110 | 238 | 110 | req | ['remaining', 'op', 'rs', 't', 'm', 'extras', 'i', 'mark_expr', 'ver_remaining', 'v', 'distname', 'versions', 's', 'uri'] | Returns | {"Assign": 42, "Expr": 4, "If": 27, "Return": 3, "While": 2} | 54 | 129 | 54 | ["req.strip", "remaining.startswith", "IDENTIFIER.match", "SyntaxError", "m.groups", "m.end", "remaining.find", "SyntaxError", "lstrip", "IDENTIFIER.match", "SyntaxError", "extras.append", "m.groups", "m.end", "SyntaxError", "lstrip", "lstrip", "NON_SPACE.match", "SyntaxError", "m.groups", "urlparse", "SyntaxError", "l... | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.action_package_handling.__init___py._create_package_from_conda_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_act... | The function (parse_requirement) defined within the public class called public.The function start at line 110 and ends at 238. It contains 81 lines of code and it has a cyclomatic complexity of 28. The function does not take any parameters, and this function return a value. It declares 54.0 functions, It has 54.0 funct... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __repr__ | def __repr__(self) -> str:return "Infinity" | 1 | 2 | 1 | 9 | 0 | 7 | 8 | 7 | self | [] | str | {"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 InfinityType.The function start at line 7 and ends at 8. 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 has 54.0 functions calling this function which are ["_.... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __hash__ | def __hash__(self) -> int:return hash(repr(self)) | 1 | 2 | 1 | 15 | 0 | 10 | 11 | 10 | self | [] | int | {"Return": 1} | 2 | 2 | 2 | ["hash", "repr"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683022_datamill_co_target_postgres.target_postgres.json_schema_py.Cachable.__hash__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955243_msiemens_tinydb.tinydb.queries_py.Query.__hash__", "_.content.gdrive.MyDri... | The function (__hash__) defined within the public class called InfinityType.The function start at line 10 and ends at 11. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called i... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __lt__ | def __lt__(self, other: object) -> bool:return False | 1 | 2 | 2 | 13 | 0 | 13 | 14 | 13 | self,other | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (__lt__) defined within the public class called InfinityType.The function start at line 13 and ends at 14. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [13.0] and does not return any value.. |
Sema4AI_actions | InfinityType | public | 0 | 0 | __le__ | def __le__(self, other: object) -> bool:return False | 1 | 2 | 2 | 13 | 0 | 16 | 17 | 16 | self,other | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95100531_dfxml_working_group_dfxml_python.dfxml.__init___py.dftime.__le__"] | The function (__le__) defined within the public class called InfinityType.The function start at line 16 and ends at 17. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [16.0] and does not return any value. It has 1.0 function calling this function which is ["_.... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __eq__ | def __eq__(self, other: object) -> bool:return isinstance(other, self.__class__) | 1 | 2 | 2 | 20 | 0 | 19 | 20 | 19 | self,other | [] | bool | {"Return": 1} | 1 | 2 | 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 public class called InfinityType.The function start at line 19 and ends at 20. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [19.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ins... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __gt__ | def __gt__(self, other: object) -> bool:return True | 1 | 2 | 2 | 13 | 0 | 22 | 23 | 22 | self,other | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95100531_dfxml_working_group_dfxml_python.dfxml.__init___py.dftime.__gt__"] | The function (__gt__) defined within the public class called InfinityType.The function start at line 22 and ends at 23. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [22.0] and does not return any value. It has 1.0 function calling this function which is ["_.... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __ge__ | def __ge__(self, other: object) -> bool:return True | 1 | 2 | 2 | 13 | 0 | 25 | 26 | 25 | self,other | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (__ge__) defined within the public class called InfinityType.The function start at line 25 and ends at 26. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [25.0] and does not return any value.. |
Sema4AI_actions | InfinityType | public | 0 | 0 | __neg__ | def __neg__(self: object) -> "NegativeInfinityType":return NegativeInfinity | 1 | 2 | 1 | 11 | 0 | 28 | 29 | 28 | self | [] | 'NegativeInfinityType' | {"Return": 1} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3962662_django_money_django_money.djmoney.money_py.Money.__neg__"] | The function (__neg__) defined within the public class called InfinityType.The function start at line 28 and ends at 29. 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 has 1.0 function calling this function which is ["_.co... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __repr__ | def __repr__(self) -> str:return "Infinity" | 1 | 2 | 1 | 9 | 0 | 36 | 37 | 7 | self | [] | str | {"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 InfinityType.The function start at line 36 and ends at 37. 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 has 54.0 functions calling this function which are ["... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __hash__ | def __hash__(self) -> int:return hash(repr(self)) | 1 | 2 | 1 | 15 | 0 | 39 | 40 | 10 | self | [] | int | {"Return": 1} | 2 | 2 | 2 | ["hash", "repr"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683022_datamill_co_target_postgres.target_postgres.json_schema_py.Cachable.__hash__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955243_msiemens_tinydb.tinydb.queries_py.Query.__hash__", "_.content.gdrive.MyDri... | The function (__hash__) defined within the public class called InfinityType.The function start at line 39 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 declares 2.0 functions, It has 2.0 functions called i... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __lt__ | def __lt__(self, other: object) -> bool:return False | 1 | 2 | 2 | 13 | 0 | 42 | 43 | 13 | self,other | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (__lt__) defined within the public class called InfinityType.The function start at line 42 and ends at 43. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [13.0] and does not return any value.. |
Sema4AI_actions | InfinityType | public | 0 | 0 | __le__ | def __le__(self, other: object) -> bool:return False | 1 | 2 | 2 | 13 | 0 | 45 | 46 | 16 | self,other | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95100531_dfxml_working_group_dfxml_python.dfxml.__init___py.dftime.__le__"] | The function (__le__) defined within the public class called InfinityType.The function start at line 45 and ends at 46. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [16.0] and does not return any value. It has 1.0 function calling this function which is ["_.... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __eq__ | def __eq__(self, other: object) -> bool:return isinstance(other, self.__class__) | 1 | 2 | 2 | 20 | 0 | 48 | 49 | 19 | self,other | [] | bool | {"Return": 1} | 1 | 2 | 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 public class called InfinityType.The function start at line 48 and ends at 49. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [19.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ins... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __gt__ | def __gt__(self, other: object) -> bool:return True | 1 | 2 | 2 | 13 | 0 | 51 | 52 | 22 | self,other | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95100531_dfxml_working_group_dfxml_python.dfxml.__init___py.dftime.__gt__"] | The function (__gt__) defined within the public class called InfinityType.The function start at line 51 and ends at 52. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [22.0] and does not return any value. It has 1.0 function calling this function which is ["_.... |
Sema4AI_actions | InfinityType | public | 0 | 0 | __ge__ | def __ge__(self, other: object) -> bool:return True | 1 | 2 | 2 | 13 | 0 | 54 | 55 | 25 | self,other | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (__ge__) defined within the public class called InfinityType.The function start at line 54 and ends at 55. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [25.0] and does not return any value.. |
Sema4AI_actions | InfinityType | public | 0 | 0 | __neg__ | def __neg__(self: object) -> "NegativeInfinityType":return NegativeInfinity | 1 | 2 | 1 | 11 | 0 | 57 | 58 | 28 | self | [] | 'NegativeInfinityType' | {"Return": 1} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3962662_django_money_django_money.djmoney.money_py.Money.__neg__"] | The function (__neg__) defined within the public class called InfinityType.The function start at line 57 and ends at 58. 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 has 1.0 function calling this function which is ["_.co... |
Sema4AI_actions | public | public | 0 | 0 | parse | def parse(version: str) -> Union["LegacyVersion", "Version"]:"""Parse the given version string and return either a :class:`Version` objector a :class:`LegacyVersion` object depending on if the given version isa valid PEP 440 version or a legacy version."""try:return Version(version)except InvalidVersion:return LegacyVe... | 2 | 5 | 1 | 30 | 0 | 48 | 57 | 48 | version | [] | Union['LegacyVersion', 'Version'] | {"Expr": 1, "Return": 2, "Try": 1} | 2 | 10 | 2 | ["Version", "LegacyVersion"] | 255 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.dateutil.parser_py.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535344_amarian12_e_pool_net.p2pool.bitcoin.script_py.get_sigop_count", "_.content.gdrive.MyDrive.Phd_Th... | The function (parse) defined within the public class called public.The function start at line 48 and ends at 57. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside whi... |
Sema4AI_actions | _BaseVersion | protected | 0 | 0 | __hash__ | def __hash__(self) -> int:return hash(self._key) | 1 | 2 | 1 | 14 | 0 | 69 | 70 | 69 | self | [] | int | {"Return": 1} | 1 | 2 | 1 | ["hash"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683022_datamill_co_target_postgres.target_postgres.json_schema_py.Cachable.__hash__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955243_msiemens_tinydb.tinydb.queries_py.Query.__hash__", "_.content.gdrive.MyDri... | The function (__hash__) defined within the protected class called _BaseVersion.The function start at line 69 and ends at 70. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called i... |
Sema4AI_actions | _BaseVersion | protected | 0 | 0 | __lt__ | def __lt__(self, other: "_BaseVersion") -> bool:if not isinstance(other, _BaseVersion):return NotImplementedreturn self._key < other._key | 2 | 4 | 2 | 30 | 0 | 75 | 79 | 75 | self,other | [] | bool | {"If": 1, "Return": 2} | 1 | 5 | 1 | ["isinstance"] | 0 | [] | The function (__lt__) defined within the protected class called _BaseVersion.The function start at line 75 and ends at 79. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [75.0] and does not return any value. It declare 1.0 function, and It has 1.0 function ca... |
Sema4AI_actions | _BaseVersion | protected | 0 | 0 | __le__ | def __le__(self, other: "_BaseVersion") -> bool:if not isinstance(other, _BaseVersion):return NotImplementedreturn self._key <= other._key | 2 | 4 | 2 | 30 | 0 | 81 | 85 | 81 | self,other | [] | bool | {"If": 1, "Return": 2} | 1 | 5 | 1 | ["isinstance"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95100531_dfxml_working_group_dfxml_python.dfxml.__init___py.dftime.__le__"] | The function (__le__) defined within the protected class called _BaseVersion.The function start at line 81 and ends at 85. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [81.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ... |
Sema4AI_actions | _BaseVersion | protected | 0 | 0 | __eq__ | def __eq__(self, other: object) -> bool:if not isinstance(other, _BaseVersion):return NotImplementedreturn self._key == other._key | 2 | 4 | 2 | 30 | 0 | 87 | 91 | 87 | self,other | [] | bool | {"If": 1, "Return": 2} | 1 | 5 | 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 _BaseVersion.The function start at line 87 and ends at 91. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [87.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ... |
Sema4AI_actions | _BaseVersion | protected | 0 | 0 | __ge__ | def __ge__(self, other: "_BaseVersion") -> bool:if not isinstance(other, _BaseVersion):return NotImplementedreturn self._key >= other._key | 2 | 4 | 2 | 30 | 0 | 93 | 97 | 93 | self,other | [] | bool | {"If": 1, "Return": 2} | 1 | 5 | 1 | ["isinstance"] | 0 | [] | The function (__ge__) defined within the protected class called _BaseVersion.The function start at line 93 and ends at 97. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [93.0] and does not return any value. It declare 1.0 function, and It has 1.0 function ca... |
Sema4AI_actions | _BaseVersion | protected | 0 | 0 | __gt__ | def __gt__(self, other: "_BaseVersion") -> bool:if not isinstance(other, _BaseVersion):return NotImplementedreturn self._key > other._key | 2 | 4 | 2 | 30 | 0 | 99 | 103 | 99 | self,other | [] | bool | {"If": 1, "Return": 2} | 1 | 5 | 1 | ["isinstance"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95100531_dfxml_working_group_dfxml_python.dfxml.__init___py.dftime.__gt__"] | The function (__gt__) defined within the protected class called _BaseVersion.The function start at line 99 and ends at 103. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [99.0] and does not return any value. It declare 1.0 function, It has 1.0 function called... |
Sema4AI_actions | _BaseVersion | protected | 0 | 0 | __ne__ | def __ne__(self, other: object) -> bool:if not isinstance(other, _BaseVersion):return NotImplementedreturn self._key != other._key | 2 | 4 | 2 | 30 | 0 | 105 | 109 | 105 | self,other | [] | bool | {"If": 1, "Return": 2} | 1 | 5 | 1 | ["isinstance"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561619_pymysql_tornado_mysql.tornado_mysql.__init___py.DBAPISet.__ne__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3630821_adamlwgriffiths_pyrr.pyrr.objects.matrix33_py.Matrix33.__ne__", "_.content.gdrive.MyDri... | The function (__ne__) defined within the protected class called _BaseVersion.The function start at line 105 and ends at 109. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [105.0] and does not return any value. It declare 1.0 function, It has 1.0 function call... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | __init__ | def __init__(self, version: str) -> None:self._version = str(version)self._key = _legacy_cmpkey(self._version)warnings.warn("Creating a LegacyVersion has been deprecated and will be ""removed in the next major release",DeprecationWarning,) | 1 | 8 | 2 | 39 | 0 | 113 | 121 | 113 | self,version | [] | None | {"Assign": 2, "Expr": 1} | 3 | 9 | 3 | ["str", "_legacy_cmpkey", "warnings.warn"] | 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 LegacyVersion, that inherit another class.The function start at line 113 and ends at 121. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [113.0] and does not return any value. It declares 3.0 funct... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | __str__ | def __str__(self) -> str:return self._version | 1 | 2 | 1 | 11 | 0 | 123 | 124 | 123 | self | [] | str | {"Return": 1} | 0 | 2 | 0 | [] | 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 LegacyVersion, that inherit another class.The function start at line 123 and ends at 124. 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 has 83.0 functions call... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | __repr__ | def __repr__(self) -> str:return f"<LegacyVersion('{self}')>" | 1 | 2 | 1 | 10 | 0 | 126 | 127 | 126 | self | [] | str | {"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 LegacyVersion, that inherit another class.The function start at line 126 and ends at 127. 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 has 54.0 functions cal... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | public | def public(self) -> str:return self._version | 1 | 2 | 1 | 11 | 0 | 130 | 131 | 130 | self | [] | str | {"Return": 1} | 0 | 2 | 0 | [] | 16 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69965341_torchbox_wagtail_grapple.grapple.helpers_py.register_paginated_query_field", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69965341_torchbox_wagtail_grapple.grapple.helpers_py.register_query_field", "_.cont... | The function (public) defined within the public class called LegacyVersion, that inherit another class.The function start at line 130 and ends at 131. 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 has 16.0 functions calli... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | base_version | def base_version(self) -> str:return self._version | 1 | 2 | 1 | 11 | 0 | 134 | 135 | 134 | self | [] | str | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (base_version) defined within the public class called LegacyVersion, that inherit another class.The function start at line 134 and ends at 135. 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 | LegacyVersion | public | 0 | 1 | epoch | def epoch(self) -> int:return -1 | 1 | 2 | 1 | 10 | 0 | 138 | 139 | 138 | self | [] | int | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (epoch) defined within the public class called LegacyVersion, that inherit another class.The function start at line 138 and ends at 139. 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 | LegacyVersion | public | 0 | 1 | release | def release(self) -> None:return None | 1 | 2 | 1 | 9 | 0 | 142 | 143 | 142 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 12 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.dateutil.rrule_py.rrulebase._iter_cached", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy.lib.sessions_py.MemcachedSession.... | The function (release) defined within the public class called LegacyVersion, that inherit another class.The function start at line 142 and ends at 143. 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 has 12.0 functions call... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | pre | def pre(self) -> None:return None | 1 | 2 | 1 | 9 | 0 | 146 | 147 | 146 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69411822_minjunkimkr_154algoritm_5weeks.Eastar_DS.1_23_1_31.Graph_py.pre"] | The function (pre) defined within the public class called LegacyVersion, that inherit another class.The function start at line 146 and ends at 147. 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 has 1.0 function calling th... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | post | def post(self) -> None:return None | 1 | 2 | 1 | 9 | 0 | 150 | 151 | 150 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 37 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3572820_fusionbox_django_argonauts.test_argonauts_py.TestJsonResponseMixin.test_decode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3650710_avinashreddy3108_paperplaneextended.userbot.modules.dogbin_py.paste", "_... | The function (post) defined within the public class called LegacyVersion, that inherit another class.The function start at line 150 and ends at 151. 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 has 37.0 functions calling... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | dev | def dev(self) -> None:return None | 1 | 2 | 1 | 9 | 0 | 154 | 155 | 154 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (dev) defined within the public class called LegacyVersion, that inherit another class.The function start at line 154 and ends at 155. 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 | LegacyVersion | public | 0 | 1 | local | def local(self) -> None:return None | 1 | 2 | 1 | 9 | 0 | 158 | 159 | 158 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3931678_tschellenbach_django_facebook.fabfile_py.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3931678_tschellenbach_django_facebook.fabfile_py.docs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Ou... | The function (local) defined within the public class called LegacyVersion, that inherit another class.The function start at line 158 and ends at 159. 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 has 5.0 functions calling... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | is_prerelease | def is_prerelease(self) -> bool:return False | 1 | 2 | 1 | 9 | 0 | 162 | 163 | 162 | self | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (is_prerelease) defined within the public class called LegacyVersion, 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 does not return any value.. |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | is_postrelease | def is_postrelease(self) -> bool:return False | 1 | 2 | 1 | 9 | 0 | 166 | 167 | 166 | self | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (is_postrelease) defined within the public class called LegacyVersion, that inherit another class.The function start at line 166 and ends at 167. 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 | LegacyVersion | public | 0 | 1 | is_devrelease | def is_devrelease(self) -> bool:return False | 1 | 2 | 1 | 9 | 0 | 170 | 171 | 170 | self | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (is_devrelease) defined within the public class called LegacyVersion, that inherit another class.The function start at line 170 and ends at 171. 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 | _parse_version_parts | def _parse_version_parts(s: str) -> Iterator[str]:for part in _legacy_version_component_re.split(s):part = _legacy_version_replacement_map.get(part, part)if not part or part == ".":continueif part[:1] in "0123456789":# pad for numeric comparisonyield part.zfill(8)else:yield "*" + part# ensure that alpha/beta/candidate ... | 5 | 10 | 1 | 65 | 1 | 185 | 199 | 185 | s | ['part'] | Iterator[str] | {"Assign": 1, "Expr": 3, "For": 1, "If": 2} | 3 | 15 | 3 | ["_legacy_version_component_re.split", "_legacy_version_replacement_map.get", "part.zfill"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.pip_impl.pip_packaging_version_py._legacy_cmpkey", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.c... | The function (_parse_version_parts) defined within the public class called public.The function start at line 185 and ends at 199. It contains 10 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions... |
Sema4AI_actions | public | public | 0 | 0 | _legacy_cmpkey | def _legacy_cmpkey(version: str) -> LegacyCmpKey:# We hardcode an epoch of -1 here. A PEP 440 version can only have a epoch# greater than or equal to 0. This will effectively put the LegacyVersion,# which uses the defacto standard originally implemented by setuptools,# as before all PEP 440 versions.epoch = -1# This sc... | 8 | 12 | 1 | 92 | 1 | 202 | 225 | 202 | version | ['epoch'] | LegacyCmpKey | {"AnnAssign": 1, "Assign": 1, "Expr": 3, "For": 1, "If": 2, "Return": 1, "While": 2} | 7 | 24 | 7 | ["_parse_version_parts", "version.lower", "part.startswith", "parts.pop", "parts.pop", "parts.append", "tuple"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.pip_impl.pip_packaging_version_py.LegacyVersion.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_a... | The function (_legacy_cmpkey) defined within the public class called public.The function start at line 202 and ends at 225. It contains 12 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value. It declares 7.0 functions, It has 7.0 functions calle... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | __init__ | def __init__(self, version: str) -> None:# Validate the version and parse it into piecesmatch = self._regex.search(version)if not match:raise InvalidVersion(f"Invalid version: '{version}'")# Store the parsed out pieces of the versionself._version = _Version(epoch=int(match.group("epoch")) if match.group("epoch") else 0... | 5 | 22 | 2 | 202 | 0 | 265 | 291 | 265 | self,version | [] | None | {"Assign": 2, "Expr": 1} | 3 | 9 | 3 | ["str", "_legacy_cmpkey", "warnings.warn"] | 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 LegacyVersion, that inherit another class.The function start at line 265 and ends at 291. It contains 22 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [265.0] and does not return any value. It declares 3.0 func... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | __repr__ | def __repr__(self) -> str:return f"<LegacyVersion('{self}')>" | 1 | 2 | 1 | 10 | 0 | 293 | 294 | 126 | self | [] | str | {"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 LegacyVersion, that inherit another class.The function start at line 293 and ends at 294. 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 has 54.0 functions cal... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | __str__ | def __str__(self) -> str:parts = []# Epochif self.epoch != 0:parts.append(f"{self.epoch}!")# Release segmentparts.append(".".join(str(x) for x in self.release))# Pre-releaseif self.pre is not None:parts.append("".join(str(x) for x in self.pre))# Post-releaseif self.post is not None:parts.append(f".post{self.post}")# De... | 8 | 14 | 1 | 125 | 0 | 296 | 322 | 296 | self | [] | str | {"Return": 1} | 0 | 2 | 0 | [] | 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 LegacyVersion, that inherit another class.The function start at line 296 and ends at 322. It contains 14 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value. It has 83.0 functions cal... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | epoch | def epoch(self) -> int:_epoch: int = self._version.epochreturn _epoch | 1 | 3 | 1 | 18 | 0 | 325 | 327 | 325 | self | [] | int | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (epoch) defined within the public class called LegacyVersion, that inherit another class.The function start at line 325 and ends at 327. 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.. |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | release | def release(self) -> tuple[int, ...]:_release: tuple[int, ...] = self._version.releasereturn _release | 1 | 3 | 1 | 28 | 0 | 330 | 332 | 330 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 12 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.dateutil.rrule_py.rrulebase._iter_cached", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy.lib.sessions_py.MemcachedSession.... | The function (release) defined within the public class called LegacyVersion, that inherit another class.The function start at line 330 and ends at 332. 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 12.0 functions call... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | pre | def pre(self) -> tuple[str, int] | None:_pre: tuple[str, int] | None = self._version.prereturn _pre | 1 | 3 | 1 | 32 | 0 | 335 | 337 | 335 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69411822_minjunkimkr_154algoritm_5weeks.Eastar_DS.1_23_1_31.Graph_py.pre"] | The function (pre) defined within the public class called LegacyVersion, that inherit another class.The function start at line 335 and ends at 337. 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 1.0 function calling th... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | post | def post(self) -> int | None:return self._version.post[1] if self._version.post else None | 2 | 2 | 1 | 26 | 0 | 340 | 341 | 340 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 37 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3572820_fusionbox_django_argonauts.test_argonauts_py.TestJsonResponseMixin.test_decode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3650710_avinashreddy3108_paperplaneextended.userbot.modules.dogbin_py.paste", "_... | The function (post) defined within the public class called LegacyVersion, that inherit another class.The function start at line 340 and ends at 341. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It has 37.0 functions calling... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | dev | def dev(self) -> int | None:return self._version.dev[1] if self._version.dev else None | 2 | 2 | 1 | 26 | 0 | 344 | 345 | 344 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (dev) defined within the public class called LegacyVersion, that inherit another class.The function start at line 344 and ends at 345. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | local | def local(self) -> str | None:if self._version.local:return ".".join(str(x) for x in self._version.local)else:return None | 3 | 5 | 1 | 38 | 0 | 348 | 352 | 348 | self | [] | None | {"Return": 1} | 0 | 2 | 0 | [] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3931678_tschellenbach_django_facebook.fabfile_py.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3931678_tschellenbach_django_facebook.fabfile_py.docs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Ou... | The function (local) defined within the public class called LegacyVersion, that inherit another class.The function start at line 348 and ends at 352. It contains 5 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It has 5.0 functions calling... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | public | def public(self) -> str:return str(self).split("+", 1)[0] | 1 | 2 | 1 | 22 | 0 | 355 | 356 | 355 | self | [] | str | {"Return": 1} | 0 | 2 | 0 | [] | 16 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69965341_torchbox_wagtail_grapple.grapple.helpers_py.register_paginated_query_field", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69965341_torchbox_wagtail_grapple.grapple.helpers_py.register_query_field", "_.cont... | The function (public) defined within the public class called LegacyVersion, that inherit another class.The function start at line 355 and ends at 356. 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 has 16.0 functions calli... |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | base_version | def base_version(self) -> str:parts = []# Epochif self.epoch != 0:parts.append(f"{self.epoch}!")# Release segmentparts.append(".".join(str(x) for x in self.release))return "".join(parts) | 3 | 6 | 1 | 52 | 0 | 359 | 369 | 359 | self | [] | str | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (base_version) defined within the public class called LegacyVersion, that inherit another class.The function start at line 359 and ends at 369. It contains 6 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | is_prerelease | def is_prerelease(self) -> bool:return self.dev is not None or self.pre is not None | 2 | 2 | 1 | 21 | 0 | 372 | 373 | 372 | self | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (is_prerelease) defined within the public class called LegacyVersion, that inherit another class.The function start at line 372 and ends at 373. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | LegacyVersion | public | 0 | 1 | is_postrelease | def is_postrelease(self) -> bool:return self.post is not None | 1 | 2 | 1 | 14 | 0 | 376 | 377 | 376 | self | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (is_postrelease) defined within the public class called LegacyVersion, that inherit another class.The function start at line 376 and ends at 377. 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 | LegacyVersion | public | 0 | 1 | is_devrelease | def is_devrelease(self) -> bool:return self.dev is not None | 1 | 2 | 1 | 14 | 0 | 380 | 381 | 380 | self | [] | bool | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (is_devrelease) defined within the public class called LegacyVersion, that inherit another class.The function start at line 380 and ends at 381. 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 | Version | public | 0 | 1 | major | def major(self) -> int:return self.release[0] if len(self.release) >= 1 else 0 | 2 | 2 | 1 | 25 | 0 | 384 | 385 | 384 | self | [] | int | {"Return": 1} | 1 | 2 | 1 | ["len"] | 0 | [] | The function (major) defined within the public class called Version, that inherit another class.The function start at line 384 and ends at 385. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It h... |
Sema4AI_actions | Version | public | 0 | 1 | minor | def minor(self) -> int:return self.release[1] if len(self.release) >= 2 else 0 | 2 | 2 | 1 | 25 | 0 | 388 | 389 | 388 | self | [] | int | {"Return": 1} | 1 | 2 | 1 | ["len"] | 0 | [] | The function (minor) defined within the public class called Version, that inherit another class.The function start at line 388 and ends at 389. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It h... |
Sema4AI_actions | Version | public | 0 | 1 | micro | def micro(self) -> int:return self.release[2] if len(self.release) >= 3 else 0 | 2 | 2 | 1 | 25 | 0 | 392 | 393 | 392 | self | [] | int | {"Return": 1} | 1 | 2 | 1 | ["len"] | 0 | [] | The function (micro) defined within the public class called Version, that inherit another class.The function start at line 392 and ends at 393. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It h... |
Sema4AI_actions | public | public | 0 | 0 | _parse_letter_version | def _parse_letter_version(letter: str, number: str | bytes | SupportsInt) -> tuple[str, int] | None:if letter:# We consider there to be an implicit 0 in a pre-release if there is# not a numeral associated with it.if number is None:number = 0# We normalize any letters to their lower case formletter = letter.lower()# We ... | 9 | 20 | 2 | 109 | 2 | 396 | 428 | 396 | letter,number | ['letter', 'number'] | tuple[str, int] | None | {"Assign": 7, "If": 7, "Return": 3} | 3 | 33 | 3 | ["letter.lower", "int", "int"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.pip_impl.pip_packaging_version_py.Version.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions... | The function (_parse_letter_version) defined within the public class called public.The function start at line 396 and ends at 428. It contains 20 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [396.0] and does not return any value. It declares 3.0 functions, It has 3.0 func... |
Sema4AI_actions | public | public | 0 | 0 | _parse_local_version | def _parse_local_version(local: str) -> LocalType | None:"""Takes a string like abc.1.twelve and turns it into ("abc", 1, "twelve")."""if local is not None:return tuple(part.lower() if not part.isdigit() else int(part)for part in _local_version_separators.split(local))return None | 4 | 7 | 1 | 50 | 0 | 434 | 443 | 434 | local | [] | LocalType | None | {"Expr": 1, "If": 1, "Return": 2} | 5 | 10 | 5 | ["tuple", "part.isdigit", "part.lower", "int", "_local_version_separators.split"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.pip_impl.pip_packaging_version_py.Version.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions... | The function (_parse_local_version) defined within the public class called public.The function start at line 434 and ends at 443. It contains 7 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 5.0 functions, It has 5.0 functions ... |
Sema4AI_actions | public | public | 0 | 0 | _cmpkey | def _cmpkey(epoch: int,release: tuple[int, ...],pre: tuple[str, int] | None,post: tuple[str, int] | None,dev: tuple[str, int] | None,local: tuple[SubLocalType] | None,) -> CmpKey:# When we compare a release version, we want to compare it with all of the# trailing zeros removed. So we'll use a reverse the list, drop all... | 10 | 32 | 6 | 201 | 5 | 446 | 505 | 446 | epoch,release,pre,post,dev,local | ['_local', '_post', '_dev', '_release', '_pre'] | CmpKey | {"AnnAssign": 4, "Assign": 6, "If": 5, "Return": 1} | 7 | 60 | 7 | ["tuple", "reversed", "list", "itertools.dropwhile", "reversed", "tuple", "isinstance"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.pip_impl.pip_packaging_version_py.Version.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions... | The function (_cmpkey) defined within the public class called public.The function start at line 446 and ends at 505. It contains 32 lines of code and it has a cyclomatic complexity of 10. It takes 6 parameters, represented as [446.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called ... |
Sema4AI_actions | public | public | 0 | 0 | _noop | def _noop(msg):return msg | 1 | 2 | 1 | 7 | 0 | 5 | 6 | 5 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_noop) defined within the public class called public.The function start at line 5 and ends at 6. 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 | bold_yellow | def bold_yellow(msg):return colored(msg, color="yellow", attrs=["bold"]) | 1 | 2 | 1 | 20 | 0 | 13 | 14 | 13 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (bold_yellow) defined within the public class called public.The function start at line 13 and ends at 14. 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 | bold_red | def bold_red(msg):return colored(msg, color="red", attrs=["bold"]) | 1 | 2 | 1 | 20 | 0 | 16 | 17 | 16 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (bold_red) defined within the public class called public.The function start at line 16 and ends at 17. 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 | bold | def bold(msg):return colored(msg, attrs=["bold"]) | 1 | 2 | 1 | 16 | 0 | 19 | 20 | 19 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (bold) defined within the public class called public.The function start at line 19 and ends at 20. 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 | pytest_configure | def pytest_configure(config):config.addinivalue_line("markers", "integration_test: mark test to run only on integration test") | 1 | 4 | 1 | 13 | 0 | 7 | 10 | 7 | config | [] | None | {"Expr": 1} | 1 | 4 | 1 | ["config.addinivalue_line"] | 0 | [] | The function (pytest_configure) defined within the public class called public.The function start at line 7 and ends at 10. 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 calle... |
Sema4AI_actions | public | public | 0 | 0 | setup_logging | def setup_logging():import logginglogger = logging.getLogger()logger.setLevel(logging.DEBUG)handler = logging.StreamHandler()handler.setLevel(logging.DEBUG)formatter = logging.Formatter("TEST PROCESS: %(asctime)s - %(name)s - %(levelname)s - %(message)s")handler.setFormatter(formatter)logger.addHandler(handler)yieldlog... | 1 | 13 | 0 | 63 | 3 | 19 | 32 | 19 | ['formatter', 'handler', 'logger'] | None | {"Assign": 3, "Expr": 6} | 9 | 14 | 9 | ["logging.getLogger", "logger.setLevel", "logging.StreamHandler", "handler.setLevel", "logging.Formatter", "handler.setFormatter", "logger.addHandler", "logger.removeHandler", "pytest.fixture"] | 21 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3607851_andsens_bootstrap_vz.bootstrapvz.remote.server_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3687109_tuhiproject_tuhi.tuhi.base_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Outpu... | The function (setup_logging) defined within the public class called public.The function start at line 19 and ends at 32. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, It has 9.0 functions called i... | |
Sema4AI_actions | public | public | 0 | 0 | _fix_file_info | def _fix_file_info(info_json):import os.pathif isinstance(info_json, dict):# Recursively find `file` and use basename in any dict in the treefor k, v in info_json.items():if k == "file":info_json[k] = os.path.basename(v)elif isinstance(v, dict):_fix_file_info(v)elif isinstance(v, list):_fix_file_info(v)elif isinstance(... | 8 | 13 | 1 | 87 | 0 | 35 | 49 | 35 | info_json | [] | None | {"Assign": 1, "Expr": 3, "For": 2, "If": 5} | 9 | 15 | 9 | ["isinstance", "info_json.items", "os.path.basename", "isinstance", "_fix_file_info", "isinstance", "_fix_file_info", "isinstance", "_fix_file_info"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.fixtures_py._fix_file_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.fixtures_p... | The function (_fix_file_info) defined within the public class called public.The function start at line 35 and ends at 49. It contains 13 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value. It declares 9.0 functions, It has 9.0 functions called ... |
Sema4AI_actions | public | public | 0 | 0 | _sort_datasources_in_data | def _sort_datasources_in_data(data):data["datasources"] = sorted(data["datasources"], key=lambda x: (x["name"], x["defined_at"]["file"])) | 1 | 4 | 1 | 37 | 0 | 52 | 55 | 52 | data | [] | None | {"Assign": 1} | 1 | 4 | 1 | ["sorted"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.fixtures_py.fix_metadata"] | The function (_sort_datasources_in_data) defined within the public class called public.The function start at line 52 and ends at 55. 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, It has 1.0 function ... |
Sema4AI_actions | public | public | 0 | 0 | fix_metadata | def fix_metadata(metadata: dict) -> dict:assert "openapi.json" in metadatafix_openapi_json(metadata["openapi.json"])data = metadata["metadata"].get("data")if data:_sort_datasources_in_data(data)_fix_file_info(data)return metadata | 2 | 8 | 1 | 44 | 1 | 58 | 65 | 58 | metadata | ['data'] | dict | {"Assign": 1, "Expr": 3, "If": 1, "Return": 1} | 4 | 8 | 4 | ["fix_openapi_json", "get", "_sort_datasources_in_data", "_fix_file_info"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.test_data_package_py.test_data_package_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_se... | The function (fix_metadata) defined within the public class called public.The function start at line 58 and ends at 65. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called ins... |
Sema4AI_actions | public | public | 0 | 0 | fix_openapi_json | def fix_openapi_json(openapi: dict) -> dict:from sema4ai.action_server import __version__info = openapi.get("info")assert info is not None, "Expected info to be in the openapi.json"version = info.get("version")assert version is not None, "Expected info/version to be in the openapi.json"assert (version == __version__), ... | 1 | 11 | 1 | 62 | 2 | 68 | 81 | 68 | openapi | ['version', 'info'] | dict | {"Assign": 3, "Return": 1} | 2 | 14 | 2 | ["openapi.get", "info.get"] | 13 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.fixtures_py.fix_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.test_action_... | The function (fix_openapi_json) defined within the public class called public.The function start at line 68 and ends at 81. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions calle... |
Sema4AI_actions | public | public | 0 | 0 | action_server_datadir | def action_server_datadir(tmpdir) -> Path:return Path(str(tmpdir)) / ".sema4ai-test-action-server" | 1 | 2 | 1 | 17 | 0 | 85 | 86 | 85 | tmpdir | [] | Path | {"Return": 1} | 2 | 2 | 2 | ["Path", "str"] | 0 | [] | The function (action_server_datadir) defined within the public class called public.The function start at line 85 and ends at 86. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functi... |
Sema4AI_actions | public | public | 0 | 0 | rcc_config_location | def rcc_config_location(temp_directory_session) -> Path:ret = Path(temp_directory_session) / ".rcc_config"ret.mkdir(parents=True, exist_ok=True)ret = ret / "rcc.yaml"os.environ["S4_ACTION_SERVER_RCC_CONFIG_LOCATION"] = str(ret)return ret | 1 | 6 | 1 | 45 | 1 | 90 | 95 | 90 | temp_directory_session | ['ret'] | Path | {"Assign": 3, "Expr": 1, "Return": 1} | 4 | 6 | 4 | ["Path", "ret.mkdir", "str", "pytest.fixture"] | 0 | [] | The function (rcc_config_location) defined within the public class called public.The function start at line 90 and ends at 95. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 function... |
Sema4AI_actions | public | public | 0 | 0 | disable_feedback | def disable_feedback(temp_directory_session, rcc_config_location) -> None:from sema4ai.action_server._download_rcc import get_default_rcc_locationfrom sema4ai.action_server._rcc import Rccsema4ai_home = temp_directory_session / ".sema4ai_home"sema4ai_home.mkdir(parents=True, exist_ok=True)rcc_location = get_default_rcc... | 3 | 23 | 2 | 117 | 5 | 99 | 124 | 99 | temp_directory_session,rcc_config_location | ['result_msg', 'sema4ai_home', 'rcc_location', 'rcc', 'result'] | None | {"Assign": 5, "Expr": 1, "If": 2} | 10 | 26 | 10 | ["sema4ai_home.mkdir", "get_default_rcc_location", "os.path.exists", "RuntimeError", "Rcc", "rcc._run_rcc", "split", "str", "AssertionError", "pytest.fixture"] | 0 | [] | The function (disable_feedback) defined within the public class called public.The function start at line 99 and ends at 124. It contains 23 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [99.0] and does not return any value. It declares 10.0 functions, and It has 10.0 func... |
Sema4AI_actions | public | public | 0 | 0 | action_server_process | def action_server_process(action_server_datadir, request) -> Iterator[ActionServerProcess]:if not request.node.get_closest_marker("integration_test"):raise RuntimeError("All tests using the `action_server_process` fixture must be marked with the `integration_test` marker.\n""Please fix this for the following test:\n"f"... | 2 | 17 | 2 | 49 | 1 | 128 | 145 | 128 | action_server_datadir,request | ['ret'] | Iterator[ActionServerProcess] | {"Assign": 1, "Expr": 2, "If": 1} | 4 | 18 | 4 | ["request.node.get_closest_marker", "RuntimeError", "ActionServerProcess", "ret.stop"] | 0 | [] | The function (action_server_process) defined within the public class called public.The function start at line 128 and ends at 145. It contains 17 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [128.0] and does not return any value. It declares 4.0 functions, and It has 4.0... |
Sema4AI_actions | public | public | 0 | 0 | get_in_resources | def get_in_resources(*parts) -> Path:curr = CURDIR / "resources"for part in parts:curr = curr / partif not curr.exists():raise FileNotFoundError(f"Resource directory not found: {curr}")return curr | 3 | 7 | 1 | 39 | 1 | 151 | 158 | 151 | *parts | ['curr'] | Path | {"Assign": 2, "For": 1, "If": 1, "Return": 1} | 2 | 8 | 2 | ["curr.exists", "FileNotFoundError"] | 26 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.fixtures_py.base_case", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.mcp.test_mcp_in... | The function (get_in_resources) defined within the public class called public.The function start at line 151 and ends at 158. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions call... |
Sema4AI_actions | public | public | 0 | 0 | temp_directory_session | def temp_directory_session(tmp_path_factory):temp_dir = tmp_path_factory.mktemp("temp_dir")# Can be used to customize a directory that's always the same across runs# (this way some tests can be speed-up by not having to recreate the db from# scratch).# temp_dir = Path("c:/temp")yield temp_dir | 1 | 3 | 1 | 15 | 1 | 168 | 176 | 168 | tmp_path_factory | ['temp_dir'] | None | {"Assign": 1, "Expr": 1} | 2 | 9 | 2 | ["tmp_path_factory.mktemp", "pytest.fixture"] | 0 | [] | The function (temp_directory_session) defined within the public class called public.The function start at line 168 and ends at 176. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 fun... |
Sema4AI_actions | public | public | 0 | 0 | base_case | def base_case(action_server_process: ActionServerProcess, tmpdir, temp_directory_session) -> Iterator[CaseInfo]:from sema4ai.action_server._database import Databasefrom sema4ai.action_server._models import (Action,ActionPackage,get_all_model_classes,)p = Path(str(tmpdir)) / ".sema4ai-test-action-server"p.mkdir(parents=... | 4 | 46 | 3 | 262 | 8 | 180 | 232 | 180 | action_server_process,tmpdir,temp_directory_session | ['p', 'initial_db_version', 'db_path', 'db', 'found', 'pack2', 'pack1', 'persistent_dir'] | Iterator[CaseInfo] | {"Assign": 8, "Expr": 8, "If": 1, "With": 1} | 23 | 53 | 23 | ["Path", "str", "p.mkdir", "db_path.exists", "Path", "persistent_dir.mkdir", "os.path.exists", "get_in_resources", "get_in_resources", "sema4ai_action_server_run", "shutil.copy", "shutil.copy", "db_path.exists", "Database", "db.register_classes", "get_all_model_classes", "db.connect", "set", "db.all", "set", "db.all", ... | 0 | [] | The function (base_case) defined within the public class called public.The function start at line 180 and ends at 232. It contains 46 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [180.0] and does not return any value. It declares 23.0 functions, and It has 23.0 functions... |
Sema4AI_actions | public | public | 0 | 0 | client | def client(action_server_process: ActionServerProcess) -> Iterator[ActionServerClient]:yield ActionServerClient(action_server_process) | 1 | 2 | 1 | 17 | 0 | 236 | 237 | 236 | action_server_process | [] | Iterator[ActionServerClient] | {"Expr": 1} | 1 | 2 | 1 | ["ActionServerClient"] | 31 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953430_aws_aws_encryption_sdk_python.src.aws_encryption_sdk.key_providers.kms_py.KMSMasterKeyConfig.client_default", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3965437_nixos_nixops_aws.nixops_aws.ec2_utils_py.co... | The function (client) defined within the public class called public.The function start at line 236 and ends at 237. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside whi... |
Sema4AI_actions | public | public | 0 | 0 | database_v0 | def database_v0(tmpdir):from sema4ai.action_server._database import Databasedb_path = Path(tmpdir) / "temp.db"initial_sql = ["""CREATE TABLE IF NOT EXISTS migration(id INTEGER NOT NULL PRIMARY KEY,name TEXT NOT NULL)""","""CREATE TABLE IF NOT EXISTS action_package(id TEXT NOT NULL PRIMARY KEY,name TEXT NOT NULL,directo... | 2 | 154 | 1 | 232 | 3 | 241 | 400 | 241 | tmpdir | ['db_path', 'initial_sql', 'db'] | Returns | {"Assign": 3, "Expr": 8, "For": 1, "Return": 1, "With": 2} | 12 | 160 | 12 | ["Path", "Database", "db.connect", "db.transaction", "db.execute", "db.execute", "db.execute", "db.execute", "db.execute", "db.execute", "db.execute", "db.execute"] | 0 | [] | The function (database_v0) defined within the public class called public.The function start at line 241 and ends at 400. It contains 154 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 12.0 functions, and It has 12.0 functi... |
Sema4AI_actions | public | public | 0 | 0 | run_async_in_new_thread.func_in_thread | def func_in_thread():return asyncio.run(async_func()) | 1 | 2 | 0 | 13 | 0 | 408 | 409 | 408 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (run_async_in_new_thread.func_in_thread) defined within the public class called public.The function start at line 408 and ends at 409. 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 | run_async_in_new_thread | def run_async_in_new_thread(async_func: Any) -> Any:import asynciofrom sema4ai.common.run_in_thread import run_in_threaddef func_in_thread():return asyncio.run(async_func())fut = run_in_thread(func_in_thread)return fut.result() | 1 | 6 | 1 | 33 | 1 | 403 | 412 | 403 | async_func | ['fut'] | Any | {"Assign": 1, "Return": 2} | 4 | 10 | 4 | ["asyncio.run", "async_func", "run_in_thread", "fut.result"] | 7 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.mcp.test_mcp_integration_py.test_mcp_integration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_s... | The function (run_async_in_new_thread) defined within the public class called public.The function start at line 403 and ends at 412. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functio... |
Sema4AI_actions | public | public | 0 | 0 | test_action_description_from_docs | def test_action_description_from_docs():from sema4ai.action_server._api_action_routes import (get_action_description_from_docs,)docs = """This is my docstringArgs:arg1: foo"""desc = get_action_description_from_docs(docs)assert desc == "This is my docstring" | 1 | 11 | 0 | 28 | 2 | 1 | 13 | 1 | ['docs', 'desc'] | None | {"Assign": 2} | 1 | 13 | 1 | ["get_action_description_from_docs"] | 0 | [] | The function (test_action_description_from_docs) defined within the public class called public.The function start at line 1 and ends at 13. It contains 11 lines of code and it has a cyclomatic complexity of 1. It take 0 parameter, represented as [1.0] and does not return any value. It declare 1.0 function, and It has ... | |
Sema4AI_actions | public | public | 0 | 0 | test_action_description_from_docs_multiline | def test_action_description_from_docs_multiline():from sema4ai.action_server._api_action_routes import (get_action_description_from_docs,)docs = """This is my docstringIt containsMultiple linesArgs:arg1: foo"""desc = get_action_description_from_docs(docs)assert desc == "This is my docstring\nIt contains\nMultiple lines... | 1 | 13 | 0 | 28 | 2 | 16 | 30 | 16 | ['docs', 'desc'] | None | {"Assign": 2} | 1 | 15 | 1 | ["get_action_description_from_docs"] | 0 | [] | The function (test_action_description_from_docs_multiline) defined within the public class called public.The function start at line 16 and ends at 30. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, a... | |
Sema4AI_actions | public | public | 0 | 0 | test_action_unicode | def test_action_unicode(action_server_process: ActionServerProcess,client: ActionServerClient,datadir,str_regression,) -> None:from action_server_tests.fixtures import (BUILD_ENV_IN_TESTS_TIMEOUT,fix_openapi_json,)dir_contents = [x for x in os.listdir(datadir) if not x.startswith("test")]assert len(dir_contents) == 1ac... | 3 | 27 | 4 | 147 | 2 | 10 | 38 | 10 | action_server_process,client,datadir,str_regression | ['dir_contents', 'found'] | None | {"Assign": 2, "Expr": 2} | 13 | 29 | 13 | ["os.listdir", "x.startswith", "len", "action_server_process.start", "str", "os.path.join", "str", "str_regression.check", "json.dumps", "fix_openapi_json", "json.loads", "client.get_openapi_json", "client.post_get_str"] | 0 | [] | The function (test_action_unicode) defined within the public class called public.The function start at line 10 and ends at 38. It contains 27 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [10.0] and does not return any value. It declares 13.0 functions, and It has 13.0 fu... |
Sema4AI_actions | public | public | 0 | 0 | test_slugify | def test_slugify():from sema4ai.action_server._slugify import slugifyassert slugify("ação", allow_unicode=True) == "ação"assert slugify("ação", allow_unicode=False) == "acao"assert slugify("ação /?*Σ 22", allow_unicode=False) == "acao-22" | 1 | 5 | 0 | 45 | 0 | 41 | 46 | 41 | [] | None | {} | 3 | 6 | 3 | ["slugify", "slugify", "slugify"] | 0 | [] | The function (test_slugify) defined within the public class called public.The function start at line 41 and ends at 46. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions calle... | |
Sema4AI_actions | public | public | 0 | 0 | actions_process_pool | def actions_process_pool(tmpdir):from sema4ai.action_server._models import Action, ActionPackagefrom sema4ai.action_server._settings import Settingsdatadir = Path(tmpdir / "datadir")artifacts_dir = datadir / "artifacts"settings = Settings(datadir=datadir, artifacts_dir=artifacts_dir, verbose=True)settings.reuse_process... | 2 | 61 | 1 | 299 | 15 | 20 | 90 | 20 | tmpdir | ['action', 'action_file', 'action_package', 'action_package_dir', 'formatter', 'logger', 'action_package_id_to_action_package', 'settings', 'ret', 'old_level', 'artifacts_dir', 'actions', 'env_json', 'datadir', 'stream_handler'] | None | {"Assign": 19, "Expr": 11, "Try": 1} | 21 | 71 | 21 | ["Path", "Settings", "Path", "action_package_dir.mkdir", "action_file.write_text", "json.dumps", "ActionPackage", "str", "Action", "str", "actions.append", "ActionsProcessPool", "StreamHandler", "stream_handler.setLevel", "logging.Formatter", "stream_handler.setFormatter", "logger.setLevel", "logger.addHandler", "ret.d... | 0 | [] | The function (actions_process_pool) defined within the public class called public.The function start at line 20 and ends at 90. It contains 61 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 21.0 functions, and It has 21.0 func... |
Sema4AI_actions | _DummyRequest | protected | 0 | 0 | __init__ | def __init__(self, headers=None, cookies=None):self.headers = headers or {}self.cookies = cookies or {} | 3 | 3 | 3 | 29 | 0 | 103 | 105 | 103 | self,headers,cookies | [] | 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 _DummyRequest.The function start at line 103 and ends at 105. It contains 3 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [103.0] and does not return any value. It has 6243.0 functions calling this function ... |
Sema4AI_actions | public | public | 0 | 0 | _create_run._run_action | def _run_action():return process_handle.run_action(run,action_package,action,input_json,robot_artifacts,output_file,result_json,dict(request.headers),dict(request.cookies),actions_process_pool._reuse_processes,) | 1 | 13 | 0 | 42 | 0 | 150 | 162 | 150 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_create_run._run_action) defined within the public class called public.The function start at line 150 and ends at 162. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
Sema4AI_actions | public | public | 0 | 0 | _create_run | def _create_run(tmpdir, actions_process_pool: ActionsProcessPool, action, i) -> Iterator[_RunInfo]:"""Returns a future which provides the returncode. Note: the `with` statementthat uses this method should not return before `future.result()` is given."""import datetimeimport typingfrom starlette.requests import Requestf... | 1 | 41 | 4 | 243 | 6 | 109 | 171 | 109 | tmpdir,actions_process_pool,action,i | ['action_package', 'result_json', 'input_json', 'output_file', 'robot_artifacts', 'p'] | Iterator[_RunInfo] | {"AnnAssign": 3, "Assign": 6, "Expr": 4, "Return": 1, "With": 1} | 16 | 63 | 16 | ["Path", "robot_artifacts.mkdir", "typing.cast", "_DummyRequest", "input_json.write_text", "json.dumps", "Run", "datetime_to_str", "datetime.datetime.now", "json.dumps", "actions_process_pool.obtain_process_for_action", "process_handle.run_action", "dict", "dict", "run_in_thread", "_RunInfo"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server._actions_run_py._ActionsRunner.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tes... | The function (_create_run) defined within the public class called public.The function start at line 109 and ends at 171. It contains 41 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [109.0] and does not return any value. It declares 16.0 functions, It has 16.0 functions ca... |
Sema4AI_actions | public | public | 0 | 0 | test_actions_process_pool_run | def test_actions_process_pool_run(actions_process_pool: ActionsProcessPool, tmpdir):actions = actions_process_pool.actionsassert len(actions) == 1action = next(iter(actions))for i in range(3):# Creates one action at a time here as we get the result and then move# on to the next.with _create_run(tmpdir, actions_process_... | 2 | 9 | 2 | 78 | 2 | 174 | 185 | 174 | actions_process_pool,tmpdir | ['action', 'actions'] | None | {"Assign": 2, "For": 1, "With": 1} | 8 | 12 | 8 | ["len", "next", "iter", "range", "_create_run", "run_info.future.result", "run_info.output_file.exists", "run_info.result_json.exists"] | 0 | [] | The function (test_actions_process_pool_run) defined within the public class called public.The function start at line 174 and ends at 185. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [174.0] and does not return any value. It declares 8.0 functions, and It ... |
Sema4AI_actions | public | public | 0 | 0 | test_actions_process_pool_process_crash | def test_actions_process_pool_process_crash(actions_process_pool: ActionsProcessPool, tmpdir):actions = actions_process_pool.actionsassert len(actions) == 1action = next(iter(actions))# Creates one action at a time here as we get the result and then move# on to the next.with _create_run(tmpdir, actions_process_pool, ac... | 1 | 27 | 2 | 228 | 2 | 188 | 227 | 188 | actions_process_pool,tmpdir | ['action', 'actions'] | None | {"Assign": 2, "Expr": 2, "With": 4} | 23 | 40 | 23 | ["len", "next", "iter", "_create_run", "actions_process_pool.get_running_processes_count", "_create_run", "actions_process_pool.get_running_processes_count", "_create_run", "actions_process_pool.get_running_processes_count", "run_info1.future.result", "run_info2.future.result", "run_info3.future.result", "run_info3.pro... | 0 | [] | The function (test_actions_process_pool_process_crash) defined within the public class called public.The function start at line 188 and ends at 227. It contains 27 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [188.0] and does not return any value. It declares 23.0 functio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.