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 | public | public | 0 | 0 | get_python_short_path | def get_python_short_path(python_version=None):if on_win:return "python.exe"if python_version and "." not in python_version:python_version = ".".join(python_version)return join("bin", "python%s" % (python_version or "")) | 5 | 6 | 1 | 41 | 1 | 131 | 136 | 131 | python_version | ['python_version'] | Returns | {"Assign": 1, "If": 2, "Return": 2} | 2 | 6 | 2 | ["join", "join"] | 0 | [] | The function (get_python_short_path) defined within the public class called public.The function start at line 131 and ends at 136. It contains 6 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 2.0 functions, and It has 2.0 ... |
Sema4AI_actions | public | public | 0 | 0 | get_python_site_packages_short_path | def get_python_site_packages_short_path(python_version):if python_version is None:return Noneelif on_win:return "Lib/site-packages"else:py_ver = get_major_minor_version(python_version)return "lib/python%s/site-packages" % py_ver | 3 | 8 | 1 | 29 | 1 | 139 | 146 | 139 | python_version | ['py_ver'] | Returns | {"Assign": 1, "If": 2, "Return": 3} | 1 | 8 | 1 | ["get_major_minor_version"] | 0 | [] | The function (get_python_site_packages_short_path) defined within the public class called public.The function start at line 139 and ends at 146. 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 declare 1.0 function, and ... |
Sema4AI_actions | public | public | 0 | 0 | get_major_minor_version | def get_major_minor_version(string, with_dot=True):# returns None if not found, otherwise two digits as a string# should work for# - 3.5.2# - 27# - bin/python2.7# - lib/python34/site-packages/# the last two are dangers because windows doesn't have version information thereassert isinstance(string, str)if string.startsw... | 10 | 26 | 2 | 224 | 6 | 152 | 185 | 152 | string,with_dot | ['pythonstr', 'maj_min', 'start', 'digits', 'version', 'match'] | Returns | {"Assign": 11, "If": 6, "Return": 4} | 17 | 34 | 17 | ["isinstance", "string.startswith", "string.split", "len", "len", "string.startswith", "string.split", "len", "len", "_VERSION_REGEX.match", "split", "match.group", "join", "c.isdigit", "len", "join", "join"] | 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.conda_impl.conda_path_py.get_python_site_packages_short_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4... | The function (get_major_minor_version) defined within the public class called public.The function start at line 152 and ends at 185. It contains 26 lines of code and it has a cyclomatic complexity of 10. It takes 2 parameters, represented as [152.0], and this function return a value. It declares 17.0 functions, It has ... |
Sema4AI_actions | public | public | 0 | 0 | get_bin_directory_short_path | def get_bin_directory_short_path():return "Scripts" if on_win else "bin" | 2 | 2 | 0 | 10 | 0 | 188 | 189 | 188 | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 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.conda_impl.conda_path_py.get_python_noarch_target_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_act... | The function (get_bin_directory_short_path) defined within the public class called public.The function start at line 188 and ends at 189. It contains 2 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 has 2.0 functions calling this fu... | |
Sema4AI_actions | public | public | 0 | 0 | win_path_ok | def win_path_ok(path):return path.replace("/", "\\") if on_win else path | 2 | 2 | 1 | 18 | 0 | 192 | 193 | 192 | path | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["path.replace"] | 0 | [] | The function (win_path_ok) defined within the public class called public.The function start at line 192 and ends at 193. It contains 2 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, and It has 1.0 function cal... |
Sema4AI_actions | public | public | 0 | 0 | win_path_double_escape | def win_path_double_escape(path):return path.replace("\\", "\\\\") if on_win else path | 2 | 2 | 1 | 18 | 0 | 196 | 197 | 196 | path | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["path.replace"] | 0 | [] | The function (win_path_double_escape) defined within the public class called public.The function start at line 196 and ends at 197. It contains 2 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, and It has 1.0 f... |
Sema4AI_actions | public | public | 0 | 0 | win_path_backout | def win_path_backout(path):# replace all backslashes except those escaping spaces# if we pass a file url, something like file://\\unc\path\on\win, make sure# we clean that up tooreturn re.sub(r"(\\(?! ))", r"/", path).replace(":////", "://") | 1 | 2 | 1 | 25 | 0 | 200 | 204 | 200 | path | [] | Returns | {"Return": 1} | 2 | 5 | 2 | ["replace", "re.sub"] | 0 | [] | The function (win_path_backout) defined within the public class called public.The function start at line 200 and ends at 204. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 funct... |
Sema4AI_actions | public | public | 0 | 0 | ensure_pad | def ensure_pad(name, pad="_"):"""Examples:>>> ensure_pad('conda')'_conda_'>>> ensure_pad('_conda')'__conda_'>>> ensure_pad('')''"""if not name or name[0] == name[-1] == pad:return nameelse:return f"{pad}{name}{pad}" | 3 | 5 | 2 | 34 | 0 | 207 | 222 | 207 | name,pad | [] | Returns | {"Expr": 1, "If": 1, "Return": 2} | 0 | 16 | 0 | [] | 0 | [] | The function (ensure_pad) defined within the public class called public.The function start at line 207 and ends at 222. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [207.0], and this function return a value.. |
Sema4AI_actions | public | public | 0 | 0 | is_private_env_name | def is_private_env_name(env_name):"""Examples:>>> is_private_env_name("_conda")False>>> is_private_env_name("_conda_")True"""return env_name and env_name[0] == env_name[-1] == "_" | 2 | 2 | 1 | 21 | 0 | 225 | 235 | 225 | env_name | [] | Returns | {"Expr": 1, "Return": 1} | 0 | 11 | 0 | [] | 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.conda_impl.conda_path_py.is_private_env_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.commo... | The function (is_private_env_name) defined within the public class called public.The function start at line 225 and ends at 235. It contains 2 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 has 2.0 functions calling this function wh... |
Sema4AI_actions | public | public | 0 | 0 | is_private_env_path | def is_private_env_path(env_path):"""Examples:>>> is_private_env_path('/some/path/to/envs/_conda_')True>>> is_private_env_path('/not/an/envs_dir/_conda_')False"""if env_path is not None:envs_directory, env_name = split(env_path)if basename(envs_directory) != "envs":return Falsereturn is_private_env_name(env_name)return... | 3 | 7 | 1 | 37 | 0 | 238 | 253 | 238 | env_path | [] | Returns | {"Assign": 1, "Expr": 1, "If": 2, "Return": 3} | 3 | 16 | 3 | ["split", "basename", "is_private_env_name"] | 0 | [] | The function (is_private_env_path) defined within the public class called public.The function start at line 238 and ends at 253. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It has 3.0 fu... |
Sema4AI_actions | public | public | 0 | 0 | right_pad_os_sep | def right_pad_os_sep(path):return path if path.endswith(os.sep) else path + os.sep | 2 | 2 | 1 | 22 | 0 | 256 | 257 | 256 | path | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["path.endswith"] | 0 | [] | The function (right_pad_os_sep) defined within the public class called public.The function start at line 256 and ends at 257. It contains 2 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, and It has 1.0 functio... |
Sema4AI_actions | public | public | 0 | 0 | split_filename | def split_filename(path_or_url):dn, fn = split(path_or_url)return (dn or None, fn) if "." in fn else (path_or_url, None) | 3 | 3 | 1 | 31 | 0 | 260 | 262 | 260 | path_or_url | [] | Returns | {"Assign": 1, "Return": 1} | 1 | 3 | 1 | ["split"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963889_stevearc_pypicloud.pypicloud.util_py.parse_filename", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.conda_impl.cond... | The function (split_filename) defined within the public class called public.The function start at line 260 and ends at 262. It contains 3 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 declare 1.0 function, It has 1.0 function calle... |
Sema4AI_actions | public | public | 0 | 0 | get_python_noarch_target_path | def get_python_noarch_target_path(source_short_path, target_site_packages_short_path):if source_short_path.startswith("site-packages/"):sp_dir = target_site_packages_short_pathreturn source_short_path.replace("site-packages", sp_dir, 1)elif source_short_path.startswith("python-scripts/"):bin_dir = get_bin_directory_sho... | 3 | 9 | 2 | 57 | 2 | 265 | 273 | 265 | source_short_path,target_site_packages_short_path | ['bin_dir', 'sp_dir'] | Returns | {"Assign": 2, "If": 2, "Return": 3} | 5 | 9 | 5 | ["source_short_path.startswith", "source_short_path.replace", "source_short_path.startswith", "get_bin_directory_short_path", "source_short_path.replace"] | 0 | [] | The function (get_python_noarch_target_path) defined within the public class called public.The function start at line 265 and ends at 273. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [265.0], and this function return a value. It declares 5.0 functions, and ... |
Sema4AI_actions | public | public | 0 | 0 | strip_pkg_extension | def strip_pkg_extension(path: str):"""Examples:>>> strip_pkg_extension("/path/_license-1.1-py27_1.tar.bz2")('/path/_license-1.1-py27_1', '.tar.bz2')>>> strip_pkg_extension("/path/_license-1.1-py27_1.conda")('/path/_license-1.1-py27_1', '.conda')>>> strip_pkg_extension("/path/_license-1.1-py27_1")('/path/_license-1.1-py... | 3 | 5 | 1 | 37 | 0 | 276 | 291 | 276 | path | [] | Returns | {"Expr": 1, "For": 1, "If": 1, "Return": 2} | 2 | 16 | 2 | ["path.endswith", "len"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.conda_impl.conda_match_spec_py._parse_legacy_dist", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.... | The function (strip_pkg_extension) defined within the public class called public.The function start at line 276 and ends at 291. It contains 5 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 functions, It has 2.0 functio... |
Sema4AI_actions | public | public | 0 | 0 | is_package_file | def is_package_file(path):"""Examples:>>> is_package_file("/path/_license-1.1-py27_1.tar.bz2")True>>> is_package_file("/path/_license-1.1-py27_1.conda")True>>> is_package_file("/path/_license-1.1-py27_1")False"""# NOTE: not using CONDA_TARBALL_EXTENSION_V1 or CONDA_TARBALL_EXTENSION_V2 to comply with# import rules and ... | 2 | 2 | 1 | 24 | 0 | 294 | 306 | 294 | path | [] | Returns | {"Expr": 1, "Return": 1} | 0 | 13 | 0 | [] | 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.conda_impl.conda_match_spec_py.parse_spec_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.comm... | The function (is_package_file) defined within the public class called public.The function start at line 294 and ends at 306. It contains 2 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 has 2.0 functions calling this function which ... |
Sema4AI_actions | public | public | 0 | 0 | hex_octal_to_int | def hex_octal_to_int(ho):ho = ord(ho.upper())o0 = ord("0")o9 = ord("9")oA = ord("A")oF = ord("F")res = (ho - o0if ho >= o0 and ho <= o9else (ho - oA + 10)if ho >= oA and ho <= oFelse None)return res | 5 | 14 | 1 | 74 | 6 | 19 | 32 | 19 | ho | ['res', 'o9', 'oA', 'o0', 'oF', 'ho'] | Returns | {"Assign": 6, "Return": 1} | 6 | 14 | 6 | ["ord", "ho.upper", "ord", "ord", "ord", "ord"] | 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.conda_impl.conda_url_py.percent_decode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.... | The function (hex_octal_to_int) defined within the public class called public.The function start at line 19 and ends at 32. 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 6.0 functions, It has 6.0 functions c... |
Sema4AI_actions | public | public | 0 | 0 | percent_decode | def percent_decode(path):# This is not fast so avoid when we can.if "%" not in path:return pathranges = []for m in re.finditer(r"(%[0-9A-F]{2})", path, flags=re.IGNORECASE):ranges.append((m.start(), m.end()))if not len(ranges):return path# Sorry! Correctness is more important than speed at the moment.# Should use a map... | 10 | 30 | 1 | 172 | 5 | 36 | 70 | 36 | path | ['skips', 'emit', 'c', 'ranges', 'result'] | Returns | {"Assign": 7, "AugAssign": 2, "Expr": 1, "For": 3, "If": 6, "Return": 3} | 12 | 35 | 12 | ["re.finditer", "ranges.append", "m.start", "m.end", "len", "enumerate", "c.encode", "struct.pack", "hex_octal_to_int", "hex_octal_to_int", "codecs.utf_8_decode", "lru_cache"] | 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.conda_impl.conda_path_py.url_to_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.se... | The function (percent_decode) defined within the public class called public.The function start at line 36 and ends at 70. It contains 30 lines of code and it has a cyclomatic complexity of 10. The function does not take any parameters, and this function return a value. It declares 12.0 functions, It has 12.0 functions ... |
Sema4AI_actions | public | public | 0 | 0 | path_to_url.percent_encode | def percent_encode(s):return "".join(["%%%02X" % ord(c), c][c < "{" and c.isalnum() or c in percent_encode_chars]for c in s) | 4 | 5 | 1 | 40 | 0 | 115 | 119 | 115 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (path_to_url.percent_encode) defined within the public class called public.The function start at line 115 and ends at 119. It contains 5 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 | path_to_url | def path_to_url(path):if not path:raise ValueError("Not allowed: %r" % path)if path.startswith(file_scheme):try:path.decode("ascii")except UnicodeDecodeError:raise ValueError("Non-ascii not allowed for things claiming to be URLs: %r" % path)return pathpath = abspath(expanduser(path)).replace("\\", "/")# We do not use u... | 9 | 25 | 1 | 141 | 2 | 88 | 133 | 88 | path | ['percent_encode_chars', 'path'] | Returns | {"Assign": 5, "Expr": 1, "If": 4, "Return": 3, "Try": 1} | 19 | 46 | 19 | ["ValueError", "path.startswith", "path.decode", "ValueError", "replace", "abspath", "expanduser", "join", "ord", "c.isalnum", "any", "ord", "percent_encode", "hasattr", "path.decode", "decode", "bytes", "len", "lru_cache"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3931678_tschellenbach_django_facebook.docs.docs_env.Lib.site_packages.pip_1_0_py2_5_egg.pip.req_py.InstallRequirement.from_line", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3931678_tschellenbach_django_facebook.d... | The function (path_to_url) defined within the public class called public.The function start at line 88 and ends at 133. It contains 25 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters, and this function return a value. It declares 19.0 functions, It has 19.0 functions cal... |
Sema4AI_actions | Url | public | 0 | 1 | __new__ | def __new__(cls,scheme=None,path=None,query=None,fragment=None,username=None,password=None,hostname=None,port=None,):if path and not path.startswith("/"):path = "/" + pathif scheme:scheme = scheme.lower()if hostname:hostname = hostname.lower()return super().__new__(cls, scheme, path, query, fragment, username, password... | 5 | 20 | 9 | 99 | 0 | 160 | 179 | 160 | cls,scheme,path,query,fragment,username,password,hostname,port | [] | Returns | {"Assign": 3, "If": 3, "Return": 1} | 5 | 20 | 5 | ["path.startswith", "scheme.lower", "hostname.lower", "__new__", "super"] | 101 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.enums_py.EnumMeta.__new__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544475_chromium_web_page_replay.rules_parser_test_py.FakeRequest.__new__", "_.content.gdrive.MyDrive.Phd... | The function (__new__) defined within the public class called Url, that inherit another class.The function start at line 160 and ends at 179. It contains 20 lines of code and it has a cyclomatic complexity of 5. It takes 9 parameters, represented as [160.0], and this function return a value. It declares 5.0 functions, ... |
Sema4AI_actions | Url | public | 0 | 1 | auth | def auth(self):if self.username and self.password:return f"{self.username}:{self.password}"elif self.username:return self.username | 4 | 5 | 1 | 26 | 0 | 182 | 186 | 182 | self | [] | Returns | {"If": 2, "Return": 2} | 0 | 5 | 0 | [] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675044_kofemann_pynfs.rpc.security_py.instances", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956384_mlbench_mlbench_core.tests.test_gcloud_cli_py.create_gcloud_test_helper"] | The function (auth) defined within the public class called Url, that inherit another class.The function start at line 182 and ends at 186. It contains 5 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It has 2.0 functions calling this f... |
Sema4AI_actions | Url | public | 0 | 1 | netloc | def netloc(self):if self.port:return f"{self.hostname}:{self.port}"return self.hostname | 2 | 4 | 1 | 17 | 0 | 189 | 192 | 189 | self | [] | Returns | {"If": 1, "Return": 2} | 0 | 4 | 0 | [] | 0 | [] | The function (netloc) defined within the public class called Url, that inherit another class.The function start at line 189 and ends at 192. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value.. |
Sema4AI_actions | Url | public | 0 | 1 | __str__ | def __str__(self):scheme, path, query, fragment, username, password, hostname, port = selfurl = ""if scheme:url += f"{scheme}://"if password and username:url += f"{username}:{password}@"if hostname:url += hostnameif port:url += f":{port}"if path:url += pathif query:url += f"?{query}"if fragment:url += f"#{fragment}"ret... | 9 | 18 | 1 | 76 | 0 | 194 | 213 | 194 | self | [] | Returns | {"Assign": 2, "AugAssign": 7, "If": 7, "Return": 1} | 0 | 20 | 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 Url, that inherit another class.The function start at line 194 and ends at 213. It contains 18 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters, and this function return a value. It has 83.0 functions calling t... |
Sema4AI_actions | Url | public | 0 | 1 | as_dict | def as_dict(self) -> dict:"""Provide a public interface for namedtuple's _asdict"""return self._asdict() | 1 | 2 | 1 | 14 | 0 | 215 | 217 | 215 | self | [] | dict | {"Expr": 1, "Return": 1} | 1 | 3 | 1 | ["self._asdict"] | 44 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.handlers.api.package_versions_py.PackageVersions.show", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670790_opencivicdata_pupa.pupa.tests.importers.test_base_importer_py.test_... | The function (as_dict) defined within the public class called Url, that inherit another class.The function start at line 215 and ends at 217. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 ... |
Sema4AI_actions | Url | public | 0 | 1 | replace | def replace(self, **kwargs) -> "Url":"""Provide a public interface for namedtuple's _replace"""return self._replace(**kwargs)# type: ignore | 1 | 2 | 2 | 19 | 0 | 219 | 221 | 219 | self,**kwargs | [] | 'Url' | {"Expr": 1, "Return": 1} | 1 | 3 | 1 | ["self._replace"] | 1,051 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.asset_py.Asset.replace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.asset_py.Asset.with_size", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_... | The function (replace) defined within the public class called Url, that inherit another class.The function start at line 219 and ends at 221. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [219.0] and does not return any value. It declare 1.0 function, It has ... |
Sema4AI_actions | Url | public | 0 | 1 | from_parse_result | def from_parse_result(cls, parse_result: ParseResult) -> "Url":values = {fld: getattr(parse_result, fld, "") for fld in url_attrs}return cls(**values) | 2 | 3 | 2 | 35 | 0 | 224 | 226 | 224 | cls,parse_result | [] | 'Url' | {"Assign": 1, "Return": 1} | 2 | 3 | 2 | ["getattr", "cls"] | 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.conda_impl.conda_url_py.urlparse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4a... | The function (from_parse_result) defined within the public class called Url, that inherit another class.The function start at line 224 and ends at 226. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [224.0] and does not return any value. It declares 2.0 functi... |
Sema4AI_actions | public | public | 0 | 0 | urlparse | def urlparse(url: str) -> Url:if on_win and url.startswith("file:"):url.replace("\\", "/")# Allows us to pass in strings like 'example.com:8080/path/1'.if not has_scheme(url):url = "//" + urlreturn Url.from_parse_result(_urlparse(url)) | 4 | 6 | 1 | 49 | 1 | 233 | 239 | 233 | url | ['url'] | Url | {"Assign": 1, "Expr": 1, "If": 2, "Return": 1} | 6 | 7 | 6 | ["url.startswith", "url.replace", "has_scheme", "Url.from_parse_result", "_urlparse", "lru_cache"] | 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 233 and ends at 239. It contains 6 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 6.0 functions, It has 6.0 functions called insid... |
Sema4AI_actions | public | public | 0 | 0 | url_to_s3_info | def url_to_s3_info(url):"""Convert an s3 url to a tuple of bucket and key.Examples:>>> url_to_s3_info("s3://bucket-name.bucket/here/is/the/key")('bucket-name.bucket', '/here/is/the/key')"""parsed_url = urlparse(url)assert parsed_url.scheme == "s3", "You can only use s3: urls (not %r)" % urlbucket, key = parsed_url.host... | 1 | 5 | 1 | 37 | 1 | 242 | 252 | 242 | url | ['parsed_url'] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 1 | 11 | 1 | ["urlparse"] | 0 | [] | The function (url_to_s3_info) defined within the public class called public.The function start at line 242 and ends at 252. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function ... |
Sema4AI_actions | public | public | 0 | 0 | is_url | def is_url(url):"""Examples:>>> is_url(None)False>>> is_url("s3://some/bucket")True"""if not url:return Falsetry:return urlparse(url).scheme != ""except ValueError:return False | 3 | 7 | 1 | 28 | 0 | 255 | 268 | 255 | url | [] | Returns | {"Expr": 1, "If": 1, "Return": 3, "Try": 1} | 1 | 14 | 1 | ["urlparse"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3931678_tschellenbach_django_facebook.docs.docs_env.Lib.site_packages.pip_1_0_py2_5_egg.pip.req_py.InstallRequirement.from_line", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94638225_rozari0_NezukoBot.nezuko.core.... | The function (is_url) defined within the public class called public.The function start at line 255 and ends at 268. It contains 7 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 declare 1.0 function, It has 1.0 function called inside... |
Sema4AI_actions | public | public | 0 | 0 | is_ipv4_address | def is_ipv4_address(string_ip):"""Examples:>>> [is_ipv4_address(ip) for ip in ('8.8.8.8', '192.168.10.10', '255.255.255.255')][True, True, True]>>> [is_ipv4_address(ip) for ip in ('8.8.8', '192.168.10.10.20', '256.255.255.255', '::1')][False, False, False, False]"""try:socket.inet_aton(string_ip)except OSError:return F... | 2 | 6 | 1 | 28 | 0 | 271 | 283 | 271 | string_ip | [] | Returns | {"Expr": 2, "Return": 2, "Try": 1} | 2 | 13 | 2 | ["socket.inet_aton", "string_ip.count"] | 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.conda_impl.conda_url_py.is_ip_address", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.s... | The function (is_ipv4_address) defined within the public class called public.The function start at line 271 and ends at 283. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions c... |
Sema4AI_actions | public | public | 0 | 0 | is_ipv6_address | def is_ipv6_address(string_ip):"""Examples:>> [is_ipv6_address(ip) for ip in ('::1', '2001:db8:85a3::370:7334', '1234:'*7+'1234')][True, True, True]>> [is_ipv6_address(ip) for ip in ('192.168.10.10', '1234:'*8+'1234')][False, False]"""try:socket.inet_pton(socket.AF_INET6, string_ip)except OSError:return Falsereturn Tru... | 2 | 6 | 1 | 25 | 0 | 286 | 298 | 286 | string_ip | [] | Returns | {"Expr": 2, "Return": 2, "Try": 1} | 1 | 13 | 1 | ["socket.inet_pton"] | 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.conda_impl.conda_url_py.is_ip_address", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.s... | The function (is_ipv6_address) defined within the public class called public.The function start at line 286 and ends at 298. It contains 6 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 call... |
Sema4AI_actions | public | public | 0 | 0 | is_ip_address | def is_ip_address(string_ip):"""Examples:>> is_ip_address('192.168.10.10')True>> is_ip_address('::1')True>> is_ip_address('www.google.com')False"""return is_ipv4_address(string_ip) or is_ipv6_address(string_ip) | 2 | 2 | 1 | 16 | 0 | 301 | 311 | 301 | string_ip | [] | Returns | {"Expr": 1, "Return": 1} | 2 | 11 | 2 | ["is_ipv4_address", "is_ipv6_address"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689772_zalando_stups_senza.senza.cli_py.console", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689772_zalando_stups_senza.tests.test_cli_py.test_is_ip_address", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creati... | The function (is_ip_address) defined within the public class called public.The function start at line 301 and ends at 311. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions cal... |
Sema4AI_actions | public | public | 0 | 0 | join | def join(*args):start = "/" if not args[0] or args[0].startswith("/") else ""return start + "/".join(y for y in (x.strip("/") for x in args if x) if y) | 7 | 3 | 1 | 55 | 1 | 314 | 316 | 314 | *args | ['start'] | Returns | {"Assign": 1, "Return": 1} | 3 | 3 | 3 | ["startswith", "join", "x.strip"] | 6,259 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.tests.TestCollectors_py.TestCollectors.test_collector_metrics", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.tools.Vrops_py.Vrops.get_resources", "_.conte... | The function (join) defined within the public class called public.The function start at line 314 and ends at 316. It contains 3 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called insid... |
Sema4AI_actions | public | public | 0 | 0 | has_scheme | def has_scheme(value):return re.match(r"[a-z][a-z0-9]{0,11}://", value) | 1 | 2 | 1 | 15 | 0 | 322 | 323 | 322 | value | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["re.match"] | 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.conda_impl.conda_url_py.urlparse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4a... | The function (has_scheme) defined within the public class called public.The function start at line 322 and ends at 323. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called in... |
Sema4AI_actions | public | public | 0 | 0 | strip_scheme | def strip_scheme(url):"""Examples:>>> strip_scheme("https://www.conda.io")'www.conda.io'>>> strip_scheme("s3://some.bucket/plus/a/path.ext")'some.bucket/plus/a/path.ext'"""return url.split("://", 1)[-1] | 1 | 2 | 1 | 19 | 0 | 326 | 334 | 326 | url | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 9 | 1 | ["url.split"] | 0 | [] | The function (strip_scheme) defined within the public class called public.The function start at line 326 and ends at 334. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function ca... |
Sema4AI_actions | public | public | 0 | 0 | mask_anaconda_token | def mask_anaconda_token(url):_, token = split_anaconda_token(url)return url.replace(token, "<TOKEN>", 1) if token else url | 2 | 3 | 1 | 28 | 0 | 337 | 339 | 337 | url | [] | Returns | {"Assign": 1, "Return": 1} | 2 | 3 | 2 | ["split_anaconda_token", "url.replace"] | 0 | [] | The function (mask_anaconda_token) defined within the public class called public.The function start at line 337 and ends at 339. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 fu... |
Sema4AI_actions | public | public | 0 | 0 | split_anaconda_token | def split_anaconda_token(url):"""Examples:>>> split_anaconda_token("https://1.2.3.4/t/tk-123-456/path")(u'https://1.2.3.4/path', u'tk-123-456')>>> split_anaconda_token("https://1.2.3.4/t//path")(u'https://1.2.3.4/path', u'')>>> split_anaconda_token("https://some.domain/api/t/tk-123-456/path")(u'https://some.domain/api/... | 3 | 5 | 1 | 61 | 3 | 342 | 361 | 342 | url | ['cleaned_url', 'token', '_token_match'] | Returns | {"Assign": 3, "Expr": 1, "Return": 1} | 4 | 20 | 4 | ["re.search", "_token_match.groups", "url.replace", "cleaned_url.rstrip"] | 7 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3913890_conda_constructor.constructor.build_outputs_py.dump_lockfile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.conda_... | The function (split_anaconda_token) defined within the public class called public.The function start at line 342 and ends at 361. It contains 5 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 4.0 functions, It has 4.0 functi... |
Sema4AI_actions | public | public | 0 | 0 | split_platform | def split_platform(known_subdirs, url):"""Examples:>>> from conda.base.constants import KNOWN_SUBDIRS>>> split_platform(KNOWN_SUBDIRS, "https://1.2.3.4/t/tk-123/linux-ppc64le/path")(u'https://1.2.3.4/t/tk-123/path', u'linux-ppc64le')"""_platform_match = _split_platform_re(known_subdirs).search(url)platform = _platform_... | 3 | 5 | 2 | 63 | 3 | 364 | 376 | 364 | known_subdirs,url | ['_platform_match', 'cleaned_url', 'platform'] | Returns | {"Assign": 3, "Expr": 1, "Return": 1} | 5 | 13 | 5 | ["search", "_split_platform_re", "_platform_match.groups", "url.replace", "cleaned_url.rstrip"] | 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.conda_impl.conda_url_py.split_conda_url_easy_parts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions... | The function (split_platform) defined within the public class called public.The function start at line 364 and ends at 376. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [364.0], and this function return a value. It declares 5.0 functions, It has 5.0 function... |
Sema4AI_actions | public | public | 0 | 0 | _split_platform_re | def _split_platform_re(known_subdirs):_platform_match_regex = r"/(%s)(?:/|$)" % r"|".join(r"%s" % d for d in known_subdirs)return re.compile(_platform_match_regex, re.IGNORECASE) | 2 | 5 | 1 | 35 | 1 | 380 | 384 | 380 | known_subdirs | ['_platform_match_regex'] | Returns | {"Assign": 1, "Return": 1} | 3 | 5 | 3 | ["join", "re.compile", "lru_cache"] | 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.conda_impl.conda_url_py.split_platform", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.... | The function (_split_platform_re) defined within the public class called public.The function start at line 380 and ends at 384. 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 declares 3.0 functions, It has 3.0 function... |
Sema4AI_actions | public | public | 0 | 0 | has_platform | def has_platform(url, known_subdirs):from .conda_path import split_filenameurl_no_package_name, _ = split_filename(url)if not url_no_package_name:return Nonemaybe_a_platform = url_no_package_name.rsplit("/", 1)[-1]return maybe_a_platform in known_subdirs and maybe_a_platform or None | 4 | 7 | 2 | 48 | 1 | 387 | 394 | 387 | url,known_subdirs | ['maybe_a_platform'] | Returns | {"Assign": 2, "If": 1, "Return": 2} | 2 | 8 | 2 | ["split_filename", "url_no_package_name.rsplit"] | 0 | [] | The function (has_platform) defined within the public class called public.The function start at line 387 and ends at 394. It contains 7 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [387.0], and this function return a value. It declares 2.0 functions, and It has 2.0 funct... |
Sema4AI_actions | public | public | 0 | 0 | split_scheme_auth_token | def split_scheme_auth_token(url):"""Examples:>>> split_scheme_auth_token("https://u:p@conda.io/t/x1029384756/more/path")('conda.io/more/path', 'https', 'u:p', 'x1029384756')>>> split_scheme_auth_token(None)(None, None, None, None)"""if not url:return None, None, None, Nonecleaned_url, token = split_anaconda_token(url)u... | 2 | 12 | 1 | 76 | 2 | 397 | 416 | 397 | url | ['remainder_url', 'url_parts'] | Returns | {"Assign": 3, "Expr": 1, "If": 1, "Return": 2} | 4 | 20 | 4 | ["split_anaconda_token", "urlparse", "Url", "str"] | 0 | [] | The function (split_scheme_auth_token) defined within the public class called public.The function start at line 397 and ends at 416. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 4.0 functions, and It has 4... |
Sema4AI_actions | public | public | 0 | 0 | split_conda_url_easy_parts | def split_conda_url_easy_parts(known_subdirs, url):from .conda_path import strip_pkg_extension# scheme, auth, token, platform, package_filename, host, port, path, querycleaned_url, token = split_anaconda_token(url)cleaned_url, platform = split_platform(known_subdirs, cleaned_url)_, ext = strip_pkg_extension(cleaned_url... | 3 | 22 | 2 | 103 | 1 | 419 | 445 | 419 | known_subdirs,url | ['url_parts'] | Returns | {"Assign": 5, "Return": 1} | 5 | 27 | 5 | ["split_anaconda_token", "split_platform", "strip_pkg_extension", "cleaned_url.rsplit", "urlparse"] | 0 | [] | The function (split_conda_url_easy_parts) defined within the public class called public.The function start at line 419 and ends at 445. It contains 22 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [419.0], and this function return a value. It declares 5.0 functions, and I... |
Sema4AI_actions | public | public | 0 | 0 | get_proxy_username_and_pass | def get_proxy_username_and_pass(scheme):username = input("\n%s proxy username: " % scheme)passwd = getpass("Password: ")return username, passwd | 1 | 4 | 1 | 23 | 2 | 449 | 452 | 449 | scheme | ['username', 'passwd'] | Returns | {"Assign": 2, "Return": 1} | 3 | 4 | 3 | ["input", "getpass", "lru_cache"] | 0 | [] | The function (get_proxy_username_and_pass) defined within the public class called public.The function start at line 449 and ends at 452. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It ha... |
Sema4AI_actions | public | public | 0 | 0 | normalized_version | def normalized_version(version: str) -> "VersionOrder":"""Parse a version string and return VersionOrder object."""return VersionOrder(version) | 1 | 2 | 1 | 15 | 0 | 26 | 28 | 26 | version | [] | 'VersionOrder' | {"Expr": 1, "Return": 1} | 1 | 3 | 1 | ["VersionOrder"] | 0 | [] | The function (normalized_version) defined within the public class called public.The function start at line 26 and ends at 28. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function ca... |
Sema4AI_actions | public | public | 0 | 0 | ver_eval | def ver_eval(vtest, spec):return VersionSpec(spec).match(vtest) | 1 | 2 | 2 | 17 | 0 | 31 | 32 | 31 | vtest,spec | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["match", "VersionSpec"] | 0 | [] | The function (ver_eval) defined within the public class called public.The function start at line 31 and ends at 32. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [31.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions ca... |
Sema4AI_actions | SingleStrArgCachingType | public | 0 | 1 | __call__ | def __call__(cls, arg):# noqaif isinstance(arg, cls):return argelif isinstance(arg, str):try:return cls._cache_[arg]except KeyError:val = cls._cache_[arg] = super().__call__(arg)return valelse:return super().__call__(arg) | 4 | 11 | 2 | 67 | 0 | 41 | 51 | 41 | cls,arg | [] | Returns | {"Assign": 1, "If": 2, "Return": 4, "Try": 1} | 6 | 11 | 6 | ["isinstance", "isinstance", "__call__", "super", "__call__", "super"] | 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 SingleStrArgCachingType, that inherit another class.The function start at line 41 and ends at 51. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [41.0], and this function return a value. It declar... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __init__ | def __init__(self, vstr):# version comparison is case-insensitiveversion = vstr.strip().rstrip().lower()# basic validity checksif version == "":raise InvalidVersionSpec(vstr, "empty version string")invalid = not version_check_re.match(version)if invalid and "-" in version and "_" not in version:# Allow for dashes as lo... | 21 | 54 | 2 | 448 | 0 | 161 | 247 | 161 | self,vstr | [] | None | {"Assign": 21, "AugAssign": 1, "For": 3, "If": 15} | 35 | 87 | 35 | ["lower", "rstrip", "vstr.strip", "InvalidVersionSpec", "version_check_re.match", "version.replace", "version_check_re.match", "InvalidVersionSpec", "version.split", "len", "len", "isdigit", "InvalidVersionSpec", "InvalidVersionSpec", "split", "len", "len", "split", "replace", "InvalidVersionSpec", "InvalidVersionSpec"... | 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 VersionOrder.The function start at line 161 and ends at 247. It contains 54 lines of code and it has a cyclomatic complexity of 21. It takes 2 parameters, represented as [161.0] and does not return any value. It declares 35.0 functions, It has 35.0 function... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __str__ | def __str__(self):return self.norm_version | 1 | 2 | 1 | 9 | 0 | 249 | 250 | 249 | 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 249 and ends at 250. 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 f'{self.__class__.__name__}("{self}")' | 1 | 2 | 1 | 8 | 0 | 252 | 253 | 252 | 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 252 and ends at 253. 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 | VersionOrder | public | 0 | 0 | _eq | def _eq(self, t1, t2):for v1, v2 in zip_longest(t1, t2, fillvalue=[]):for c1, c2 in zip_longest(v1, v2, fillvalue=self.fillvalue):if c1 != c2:return Falsereturn True | 4 | 6 | 3 | 53 | 0 | 255 | 260 | 255 | self,t1,t2 | [] | Returns | {"For": 2, "If": 1, "Return": 2} | 2 | 6 | 2 | ["zip_longest", "zip_longest"] | 0 | [] | The function (_eq) defined within the public class called VersionOrder.The function start at line 255 and ends at 260. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [255.0], and this function return a value. It declares 2.0 functions, and It has 2.0 function... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __eq__ | def __eq__(self, other):return self._eq(self.version, other.version) and self._eq(self.local, other.local) | 2 | 4 | 2 | 33 | 0 | 262 | 265 | 262 | self,other | [] | Returns | {"Return": 1} | 2 | 4 | 2 | ["self._eq", "self._eq"] | 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 VersionOrder.The function start at line 262 and ends at 265. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [262.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions ... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | startswith | def startswith(self, other):# Tests if the version lists match up to the last element in "other".if other.local:if not self._eq(self.version, other.version):return Falset1 = self.localt2 = other.localelse:t1 = self.versiont2 = other.versionnt = len(t2) - 1if not self._eq(t1[:nt], t2[:nt]):return Falsev1 = [] if len(t1)... | 9 | 22 | 2 | 184 | 0 | 267 | 289 | 267 | self,other | [] | Returns | {"Assign": 10, "If": 5, "Return": 5} | 10 | 23 | 10 | ["self._eq", "len", "self._eq", "len", "len", "self._eq", "len", "isinstance", "isinstance", "c1.startswith"] | 626 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26792465_fosslight_fosslight_source_scanner.src.fosslight_source.cli_py.create_report_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.test.testcase_py.TestCase.assert_oauth_err... | The function (startswith) defined within the public class called VersionOrder.The function start at line 267 and ends at 289. It contains 22 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [267.0], and this function return a value. It declares 10.0 functions, It has 10.0 fun... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __ne__ | def __ne__(self, other):return not (self == other) | 1 | 2 | 2 | 14 | 0 | 291 | 292 | 291 | self,other | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 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 public class called VersionOrder.The function start at line 291 and ends at 292. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [291.0], and this function return a value. It has 6.0 functions calling this function which... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __lt__ | def __lt__(self, other):for t1, t2 in zip([self.version, self.local], [other.version, other.local]):for v1, v2 in zip_longest(t1, t2, fillvalue=[]):for c1, c2 in zip_longest(v1, v2, fillvalue=self.fillvalue):if c1 == c2:continueelif isinstance(c1, str):if not isinstance(c2, str):# str < intreturn Trueelif isinstance(c2... | 8 | 13 | 2 | 111 | 0 | 294 | 310 | 294 | self,other | [] | Returns | {"For": 3, "If": 4, "Return": 4} | 6 | 17 | 6 | ["zip", "zip_longest", "zip_longest", "isinstance", "isinstance", "isinstance"] | 0 | [] | The function (__lt__) defined within the public class called VersionOrder.The function start at line 294 and ends at 310. It contains 13 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [294.0], and this function return a value. It declares 6.0 functions, and It has 6.0 func... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __gt__ | def __gt__(self, other):return other < self | 1 | 2 | 2 | 11 | 0 | 312 | 313 | 312 | self,other | [] | Returns | {"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 VersionOrder.The function start at line 312 and ends at 313. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [312.0], and this function return a value. It has 1.0 function calling this function which ... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __le__ | def __le__(self, other):return not (other < self) | 1 | 2 | 2 | 14 | 0 | 315 | 316 | 315 | self,other | [] | Returns | {"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 VersionOrder.The function start at line 315 and ends at 316. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [315.0], and this function return a value. It has 1.0 function calling this function which ... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __ge__ | def __ge__(self, other):return not (self < other) | 1 | 2 | 2 | 14 | 0 | 318 | 319 | 318 | self,other | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (__ge__) defined within the public class called VersionOrder.The function start at line 318 and ends at 319. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [318.0], and this function return a value.. |
Sema4AI_actions | public | public | 0 | 0 | treeify.apply_ops | def apply_ops(cstop):# cstop: operators with lower precedencewhile stack and stack[-1] not in cstop:if len(output) < 2:raise InvalidVersionSpec(spec_str, "cannot join single expression")c = stack.pop()r = output.pop()# Fuse expressions with the same operator; e.g.,# ('|', ('|', a, b), ('|', c, d))becomes# ('|', a, b, c... | 6 | 10 | 1 | 104 | 0 | 353 | 370 | 353 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (treeify.apply_ops) defined within the public class called public.The function start at line 353 and ends at 370. It contains 10 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 | treeify | def treeify(spec_str):"""Examples:>>> treeify("1.2.3")'1.2.3'>>> treeify("1.2.3,>4.5.6")(',', '1.2.3', '>4.5.6')>>> treeify("1.2.3,4.5.6|<=7.8.9")('|', (',', '1.2.3', '4.5.6'), '<=7.8.9')>>> treeify("(1.2.3|4.5.6),<=7.8.9")(',', ('|', '1.2.3', '4.5.6'), '<=7.8.9')>>> treeify("((1.5|((1.6|1.7), 1.8), 1.9 |2.0))|2.1")('|... | 10 | 30 | 1 | 157 | 7 | 330 | 395 | 330 | spec_str | ['stack', 'output', 'r', 'left', 'tokens', 'item', 'c'] | Returns | {"Assign": 9, "Expr": 10, "For": 1, "If": 8, "Return": 1, "While": 1} | 20 | 66 | 20 | ["isinstance", "re.findall", "len", "InvalidVersionSpec", "stack.pop", "output.pop", "output.pop", "output.append", "item.strip", "apply_ops", "stack.append", "apply_ops", "stack.append", "stack.append", "apply_ops", "InvalidVersionSpec", "stack.pop", "output.append", "InvalidVersionSpec", "InvalidVersionSpec"] | 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.conda_impl.conda_version_py.VersionSpec.get_matcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_action... | The function (treeify) defined within the public class called public.The function start at line 330 and ends at 395. It contains 30 lines of code and it has a cyclomatic complexity of 10. The function does not take any parameters, and this function return a value. It declares 20.0 functions, It has 20.0 functions calle... |
Sema4AI_actions | public | public | 0 | 0 | untreeify | def untreeify(spec, _inand=False, depth=0):"""Examples:>>> untreeify('1.2.3')'1.2.3'>>> untreeify((',', '1.2.3', '>4.5.6'))'1.2.3,>4.5.6'>>> untreeify(('|', (',', '1.2.3', '4.5.6'), '<=7.8.9'))'(1.2.3,4.5.6)|<=7.8.9'>>> untreeify((',', ('|', '1.2.3', '4.5.6'), '<=7.8.9'))'(1.2.3|4.5.6),<=7.8.9'>>> untreeify(('|', '1.5'... | 6 | 14 | 3 | 120 | 1 | 398 | 424 | 398 | spec,_inand,depth | ['res'] | Returns | {"Assign": 4, "Expr": 1, "If": 4, "Return": 2} | 7 | 27 | 7 | ["isinstance", "join", "map", "untreeify", "join", "map", "untreeify"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.conda_impl.conda_version_py.VersionSpec.get_matcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_action... | The function (untreeify) defined within the public class called public.The function start at line 398 and ends at 424. It contains 14 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [398.0], and this function return a value. It declares 7.0 functions, It has 7.0 functions ca... |
Sema4AI_actions | public | public | 0 | 0 | compatible_release_operator | def compatible_release_operator(x, y):return op.__ge__(x, y) and x.startswith(VersionOrder(".".join(str(y).split(".")[:-1]))) | 2 | 4 | 2 | 44 | 0 | 427 | 430 | 427 | x,y | [] | Returns | {"Return": 1} | 6 | 4 | 6 | ["op.__ge__", "x.startswith", "VersionOrder", "join", "split", "str"] | 0 | [] | The function (compatible_release_operator) defined within the public class called public.The function start at line 427 and ends at 430. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [427.0], and this function return a value. It declares 6.0 functions, and I... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __init__ | def __init__(self, spec_str, matcher, is_exact):self.spec_str = spec_strself._is_exact = is_exactself.match = matcher | 1 | 4 | 4 | 26 | 0 | 454 | 457 | 454 | self,vstr | [] | None | {"Assign": 21, "AugAssign": 1, "For": 3, "If": 15} | 35 | 87 | 35 | ["lower", "rstrip", "vstr.strip", "InvalidVersionSpec", "version_check_re.match", "version.replace", "version_check_re.match", "InvalidVersionSpec", "version.split", "len", "len", "isdigit", "InvalidVersionSpec", "InvalidVersionSpec", "split", "len", "len", "split", "replace", "InvalidVersionSpec", "InvalidVersionSpec"... | 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 VersionOrder.The function start at line 454 and ends at 457. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [454.0] and does not return any value. It declares 35.0 functions, It has 35.0 functions ... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | spec | def spec(self):return self.spec_str | 1 | 2 | 1 | 9 | 0 | 460 | 461 | 460 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (spec) defined within the public class called BaseSpec.The function start at line 460 and ends at 461. 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.. |
Sema4AI_actions | BaseSpec | public | 0 | 0 | is_exact | def is_exact(self):return self._is_exact | 1 | 2 | 1 | 9 | 0 | 463 | 464 | 463 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (is_exact) defined within the public class called BaseSpec.The function start at line 463 and ends at 464. 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.. |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __eq__ | def __eq__(self, other):return self._eq(self.version, other.version) and self._eq(self.local, other.local) | 2 | 6 | 2 | 33 | 0 | 466 | 471 | 262 | self,other | [] | Returns | {"Return": 1} | 2 | 4 | 2 | ["self._eq", "self._eq"] | 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 VersionOrder.The function start at line 466 and ends at 471. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [262.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions ... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __ne__ | def __ne__(self, other):return not self.__eq__(other) | 1 | 2 | 2 | 15 | 0 | 473 | 474 | 473 | self,other | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 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 public class called VersionOrder.The function start at line 473 and ends at 474. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [473.0], and this function return a value. It has 6.0 functions calling this function which... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | __hash__ | def __hash__(self):return hash(self.spec) | 1 | 2 | 1 | 12 | 0 | 476 | 477 | 476 | self | [] | Returns | {"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 public class called BaseSpec.The function start at line 476 and ends at 477. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called in... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __str__ | def __str__(self):return self.norm_version | 1 | 2 | 1 | 9 | 0 | 479 | 480 | 249 | 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 479 and ends at 480. 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 f'{self.__class__.__name__}("{self}")' | 1 | 2 | 1 | 8 | 0 | 482 | 483 | 252 | 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 482 and ends at 483. 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 | BaseSpec | public | 0 | 0 | raw_value | def raw_value(self):return self.spec | 1 | 2 | 1 | 9 | 0 | 486 | 487 | 486 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (raw_value) defined within the public class called BaseSpec.The function start at line 486 and ends at 487. 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.. |
Sema4AI_actions | BaseSpec | public | 0 | 0 | exact_value | def exact_value(self):return self.is_exact() and self.spec or None | 3 | 2 | 1 | 17 | 0 | 490 | 491 | 490 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.is_exact"] | 0 | [] | The function (exact_value) defined within the public class called BaseSpec.The function start at line 490 and ends at 491. It contains 2 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function c... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | merge | def merge(self, other):raise NotImplementedError() | 1 | 2 | 2 | 11 | 0 | 493 | 494 | 493 | self,other | [] | None | {} | 1 | 2 | 1 | ["NotImplementedError"] | 43 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy._cpdispatch_py.RoutesDispatcher.find_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3607851_andsens_bootstrap_vz.tests.system.manifests.__init___py.mer... | The function (merge) defined within the public class called BaseSpec.The function start at line 493 and ends at 494. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [493.0] and does not return any value. It declare 1.0 function, It has 1.0 function called insid... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | regex_match | def regex_match(self, spec_str):return bool(self.regex.match(spec_str)) | 1 | 2 | 2 | 19 | 0 | 496 | 497 | 496 | self,spec_str | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["bool", "self.regex.match"] | 0 | [] | The function (regex_match) defined within the public class called BaseSpec.The function start at line 496 and ends at 497. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [496.0], and this function return a value. It declares 2.0 functions, and It has 2.0 func... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | operator_match | def operator_match(self, spec_str):return self.operator_func(VersionOrder(str(spec_str)), self.matcher_vo) | 1 | 2 | 2 | 24 | 0 | 499 | 500 | 499 | self,spec_str | [] | Returns | {"Return": 1} | 3 | 2 | 3 | ["self.operator_func", "VersionOrder", "str"] | 0 | [] | The function (operator_match) defined within the public class called BaseSpec.The function start at line 499 and ends at 500. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [499.0], and this function return a value. It declares 3.0 functions, and It has 3.0 f... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | any_match | def any_match(self, spec_str):return any(s.match(spec_str) for s in self.tup) | 2 | 2 | 2 | 23 | 0 | 502 | 503 | 502 | self,spec_str | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["any", "s.match"] | 0 | [] | The function (any_match) defined within the public class called BaseSpec.The function start at line 502 and ends at 503. It contains 2 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [502.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functi... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | all_match | def all_match(self, spec_str):return all(s.match(spec_str) for s in self.tup) | 2 | 2 | 2 | 23 | 0 | 505 | 506 | 505 | self,spec_str | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["all", "s.match"] | 0 | [] | The function (all_match) defined within the public class called BaseSpec.The function start at line 505 and ends at 506. It contains 2 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [505.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functi... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | exact_match | def exact_match(self, spec_str):return self.spec == spec_str | 1 | 2 | 2 | 13 | 0 | 508 | 509 | 508 | self,spec_str | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (exact_match) defined within the public class called BaseSpec.The function start at line 508 and ends at 509. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [508.0], and this function return a value.. |
Sema4AI_actions | BaseSpec | public | 0 | 0 | always_true_match | def always_true_match(self, spec_str):return True | 1 | 2 | 2 | 9 | 0 | 511 | 512 | 511 | self,spec_str | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (always_true_match) defined within the public class called BaseSpec.The function start at line 511 and ends at 512. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [511.0], and this function return a value.. |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __init__ | def __init__(self, vspec):vspec_str, matcher, is_exact = self.get_matcher(vspec)super().__init__(vspec_str, matcher, is_exact) | 1 | 3 | 2 | 31 | 0 | 518 | 520 | 518 | self,vstr | [] | None | {"Assign": 21, "AugAssign": 1, "For": 3, "If": 15} | 35 | 87 | 35 | ["lower", "rstrip", "vstr.strip", "InvalidVersionSpec", "version_check_re.match", "version.replace", "version_check_re.match", "InvalidVersionSpec", "version.split", "len", "len", "isdigit", "InvalidVersionSpec", "InvalidVersionSpec", "split", "len", "len", "split", "replace", "InvalidVersionSpec", "InvalidVersionSpec"... | 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 VersionOrder.The function start at line 518 and ends at 520. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [518.0] and does not return any value. It declares 35.0 functions, It has 35.0 functions ... |
Sema4AI_actions | VersionSpec | public | 0 | 1 | get_matcher | def get_matcher(self, vspec):if isinstance(vspec, str) and regex_split_re.match(vspec):vspec = treeify(vspec)if isinstance(vspec, tuple):vspec_tree = vspec_matcher = self.any_match if vspec_tree[0] == "|" else self.all_matchtup = tuple(VersionSpec(s) for s in vspec_tree[1:])vspec_str = untreeify((vspec_tree[0],) + tupl... | 23 | 78 | 2 | 527 | 0 | 522 | 613 | 522 | self,vspec | [] | Returns | {"Assign": 41, "Expr": 1, "If": 15, "Return": 2, "Try": 1} | 29 | 92 | 29 | ["isinstance", "regex_split_re.match", "treeify", "isinstance", "tuple", "VersionSpec", "untreeify", "tuple", "strip", "str", "InvalidVersionSpec", "re.compile", "version_relation_re.match", "InvalidVersionSpec", "m.groups", "InvalidVersionSpec", "log.warning", "format", "InvalidVersionSpec", "VersionOrder", "vspec_str... | 0 | [] | The function (get_matcher) defined within the public class called VersionSpec, that inherit another class.The function start at line 522 and ends at 613. It contains 78 lines of code and it has a cyclomatic complexity of 23. It takes 2 parameters, represented as [522.0], and this function return a value. It declares 29... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | merge | def merge(self, other):assert isinstance(other, self.__class__)return self.__class__(",".join(sorted((self.raw_value, other.raw_value)))) | 1 | 3 | 2 | 39 | 0 | 615 | 617 | 615 | self,other | [] | None | {} | 1 | 2 | 1 | ["NotImplementedError"] | 43 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy._cpdispatch_py.RoutesDispatcher.find_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3607851_andsens_bootstrap_vz.tests.system.manifests.__init___py.mer... | The function (merge) defined within the public class called BaseSpec.The function start at line 615 and ends at 617. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [615.0] and does not return any value. It declare 1.0 function, It has 1.0 function called insid... |
Sema4AI_actions | VersionSpec | public | 0 | 1 | union | def union(self, other):assert isinstance(other, self.__class__)options = {self.raw_value, other.raw_value}# important: we only return a string here because the parens get gobbled otherwise#this info is for visual display only, not for feeding into actual matchesreturn "|".join(sorted(options)) | 1 | 4 | 2 | 37 | 0 | 619 | 624 | 619 | self,other | [] | Returns | {"Assign": 1, "Return": 1} | 3 | 6 | 3 | ["isinstance", "join", "sorted"] | 35 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569128_timothycrosley_deprecated_frosted.frosted.api_py.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3654448_hasgeek_lastuser.lastuser_core.models.auth_client_py.ScopeMixin.add_scope", "_.content.gdrive.My... | The function (union) defined within the public class called VersionSpec, that inherit another class.The function start at line 619 and ends at 624. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [619.0], and this function return a value. It declares 3.0 functi... |
Sema4AI_actions | VersionOrder | public | 0 | 0 | __init__ | def __init__(self, vspec):vspec_str, matcher, is_exact = self.get_matcher(vspec)super().__init__(vspec_str, matcher, is_exact) | 1 | 3 | 2 | 31 | 0 | 630 | 632 | 518 | self,vstr | [] | None | {"Assign": 21, "AugAssign": 1, "For": 3, "If": 15} | 35 | 87 | 35 | ["lower", "rstrip", "vstr.strip", "InvalidVersionSpec", "version_check_re.match", "version.replace", "version_check_re.match", "InvalidVersionSpec", "version.split", "len", "len", "isdigit", "InvalidVersionSpec", "InvalidVersionSpec", "split", "len", "len", "split", "replace", "InvalidVersionSpec", "InvalidVersionSpec"... | 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 VersionOrder.The function start at line 630 and ends at 632. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [518.0] and does not return any value. It declares 35.0 functions, It has 35.0 functions ... |
Sema4AI_actions | VersionSpec | public | 0 | 1 | get_matcher | def get_matcher(self, vspec):try:vspec = int(vspec)except ValueError:passelse:matcher = self.exact_matchis_exact = Truereturn vspec, matcher, is_exactvspec_str = str(vspec).strip()if vspec_str == "*":matcher = self.always_true_matchis_exact = Falseelif vspec_str.startswith(("=", "<", ">", "!")):m = version_relation_re.... | 10 | 39 | 2 | 217 | 0 | 634 | 678 | 634 | self,vspec | [] | Returns | {"Assign": 41, "Expr": 1, "If": 15, "Return": 2, "Try": 1} | 29 | 92 | 29 | ["isinstance", "regex_split_re.match", "treeify", "isinstance", "tuple", "VersionSpec", "untreeify", "tuple", "strip", "str", "InvalidVersionSpec", "re.compile", "version_relation_re.match", "InvalidVersionSpec", "m.groups", "InvalidVersionSpec", "log.warning", "format", "InvalidVersionSpec", "VersionOrder", "vspec_str... | 0 | [] | The function (get_matcher) defined within the public class called VersionSpec, that inherit another class.The function start at line 634 and ends at 678. It contains 39 lines of code and it has a cyclomatic complexity of 10. It takes 2 parameters, represented as [634.0], and this function return a value. It declares 29... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | merge | def merge(self, other):if self.raw_value != other.raw_value:raise ValueError("Incompatible component merge:\n- %r\n- %r"% (self.raw_value, other.raw_value))return self.raw_value | 2 | 7 | 2 | 35 | 0 | 680 | 686 | 680 | self,other | [] | None | {} | 1 | 2 | 1 | ["NotImplementedError"] | 43 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy._cpdispatch_py.RoutesDispatcher.find_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3607851_andsens_bootstrap_vz.tests.system.manifests.__init___py.mer... | The function (merge) defined within the public class called BaseSpec.The function start at line 680 and ends at 686. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [680.0] and does not return any value. It declare 1.0 function, It has 1.0 function called insid... |
Sema4AI_actions | VersionSpec | public | 0 | 1 | union | def union(self, other):options = {self.raw_value, other.raw_value}return "|".join(options) | 1 | 3 | 2 | 25 | 0 | 688 | 690 | 688 | self,other | [] | Returns | {"Assign": 1, "Return": 1} | 3 | 6 | 3 | ["isinstance", "join", "sorted"] | 35 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569128_timothycrosley_deprecated_frosted.frosted.api_py.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3654448_hasgeek_lastuser.lastuser_core.models.auth_client_py.ScopeMixin.add_scope", "_.content.gdrive.My... | The function (union) defined within the public class called VersionSpec, that inherit another class.The function start at line 688 and ends at 690. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [688.0], and this function return a value. It declares 3.0 functi... |
Sema4AI_actions | BaseSpec | public | 0 | 0 | exact_value | def exact_value(self) -> int | None:try:return int(self.raw_value)except ValueError:return None | 2 | 5 | 1 | 23 | 0 | 693 | 697 | 693 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.is_exact"] | 0 | [] | The function (exact_value) defined within the public class called BaseSpec.The function start at line 693 and ends at 697. 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, and It has 1.0 function c... |
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 ["_.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.