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_tid
def get_tid():return threading.get_ident()# @UndefinedVariable
1
2
0
10
0
58
59
58
[]
Returns
{"Return": 1}
1
2
1
["threading.get_ident"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server._robo_utils.system_mutex_py._verify_prev_acquired_in_thread", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4a...
The function (get_tid) defined within the public class called public.The function start at line 58 and ends at 59. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside ...
Sema4AI_actions
public
public
0
0
_mark_prev_acquired_in_thread
def _mark_prev_acquired_in_thread(system_mutex):with _lock:_mutex_name_to_info[system_mutex.mutex_name] = system_mutex
1
3
1
16
0
62
64
62
system_mutex
[]
None
{"Assign": 1, "With": 1}
0
3
0
[]
0
[]
The function (_mark_prev_acquired_in_thread) defined within the public class called public.The function start at line 62 and ends at 64. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
Sema4AI_actions
public
public
0
0
_verify_prev_acquired_in_thread
def _verify_prev_acquired_in_thread(mutex_name):with _lock:system_mutex = _mutex_name_to_info.get(mutex_name)if (system_mutex is not Noneand system_mutex.get_mutex_aquired()and not system_mutex.disposedand system_mutex.thread_id == get_tid()):raise RuntimeError("Error: this thread has already acquired a SystemMutex(%s)...
5
13
1
53
1
67
79
67
mutex_name
['system_mutex']
None
{"Assign": 1, "If": 1, "With": 1}
4
13
4
["_mutex_name_to_info.get", "system_mutex.get_mutex_aquired", "get_tid", "RuntimeError"]
0
[]
The function (_verify_prev_acquired_in_thread) defined within the public class called public.The function start at line 67 and ends at 79. It contains 13 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has...
Sema4AI_actions
public
public
0
0
_collect_mutex_allocation_msg
def _collect_mutex_allocation_msg(mutex_name):try:# Note: the first line of the file used as a mutex MUST always have the# format: PID: <pid>\n# (other tools may rely on that to show information to the user).write_contents = []try:write_contents.append(f"PID: {os.getpid()}")except Exception:write_contents.append("PID: ...
4
19
1
104
2
82
107
82
mutex_name
['write_contents', 's']
Returns
{"Assign": 2, "Expr": 7, "Return": 3, "Try": 3}
13
26
13
["write_contents.append", "os.getpid", "write_contents.append", "write_contents.append", "write_contents.append", "io.StringIO", "traceback.print_stack", "sys._getframe", "write_contents.append", "write_contents.append", "s.getvalue", "join", "os.getpid"]
0
[]
The function (_collect_mutex_allocation_msg) defined within the public class called public.The function start at line 82 and ends at 107. It contains 19 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 declares 13.0 functions, and It...
Sema4AI_actions
public
public
0
0
_log_mutex_info
def _log_mutex_info(filename):try:try:with open(filename, "r") as stream:curr_pid = stream.readline().strip()[-1]curr_pid.replace("PID:", "").strip()except BaseException:log.exception("Unable to get locking pid.")curr_pid = "<unable to get locking pid>"try:from .process import is_process_aliveis_alive = is_process_aliv...
5
24
1
119
2
110
135
110
filename
['curr_pid', 'is_alive']
None
{"Assign": 4, "Expr": 4, "If": 1, "Try": 3, "With": 1}
11
26
11
["open", "strip", "stream.readline", "strip", "curr_pid.replace", "log.exception", "is_process_alive", "int", "log.info", "os.getpid", "log.exception"]
0
[]
The function (_log_mutex_info) defined within the public class called public.The function start at line 110 and ends at 135. It contains 24 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 11.0 functions, and It has 11.0 functio...
Sema4AI_actions
public
public
0
0
__init__.release_mutex
def release_mutex(*args, **kwargs):# Note: can't use self here!if not getattr(release_mutex, "called", False):release_mutex.called = Truetry:os.close(handle)except Exception:traceback.print_exc()try:# Removing is optional as we'll try to remove on startup anyways (but# let's do it to keep the filesystem cleaner).os.unl...
4
11
2
53
0
200
213
200
null
[]
None
null
0
0
0
null
0
null
The function (__init__.release_mutex) defined within the public class called public.The function start at line 200 and ends at 213. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [200.0] and does not return any value..
Sema4AI_actions
_MutexHandle
protected
0
1
__init__
def __init__(self,mutex_name,check_reentrant=True,log_info=False,base_dir=None,write_to_mutex_file: str | None = None,):"""Args:write_to_mutex_file:If provided, the given string will be written to the mutex file.If not provided, the default message will be used.check_reentrant:Should only be False if this mutex is expe...
9
47
6
231
0
144
220
144
self,system_mutex,mutex_name
[]
None
{"Assign": 2}
0
3
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the protected class called _MutexHandle, that inherit another class.The function start at line 144 and ends at 220. It contains 47 lines of code and it has a cyclomatic complexity of 9. It takes 6 parameters, represented as [144.0] and does not return any value. It has 6243.0 func...
Sema4AI_actions
public
public
0
0
disposed
def disposed(self):if not self._acquired:return Truerelease_mutex = self._release_mutexif release_mutex is NULL:return Trueif getattr(release_mutex, "called", False):return Truereturn False
4
9
1
39
0
223
231
223
null
[]
None
null
0
0
0
null
0
null
The function (disposed) defined within the public class called public.The function start at line 223 and ends at 231. It contains 9 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
get_mutex_aquired
def get_mutex_aquired(self):return self._acquired
1
2
1
9
0
233
234
233
null
[]
None
null
0
0
0
null
0
null
The function (get_mutex_aquired) defined within the public class called public.The function start at line 233 and ends at 234. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
Sema4AI_actions
public
public
0
0
release_mutex
def release_mutex(self):self._release_mutex()
1
2
1
10
0
236
237
236
null
[]
None
null
0
0
0
null
0
null
The function (release_mutex) defined within the public class called public.The function start at line 236 and ends at 237. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
Sema4AI_actions
public
public
0
0
__init__.release_mutex
def release_mutex(*args, **kwargs):# Note: can't use self here!if not getattr(release_mutex, "called", False):release_mutex.called = Truetry:handle.seek(0)handle.truncate()handle.write("Releasing lock\n")handle.flush()except Exception:traceback.print_exc()try:fcntl.flock(handle, fcntl.LOCK_UN)except Exception:traceback...
5
18
2
92
0
302
320
302
null
[]
None
null
0
0
0
null
0
null
The function (__init__.release_mutex) defined within the public class called public.The function start at line 302 and ends at 320. It contains 18 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [302.0] and does not return any value..
Sema4AI_actions
_MutexHandle
protected
0
1
__init__
def __init__(self,mutex_name,check_reentrant=True,log_info=False,base_dir=None,write_to_mutex_file: str | None = None,):"""Args:write_to_mutex_file:If provided, the given string will be written to the mutex file.If not provided, the default message will be used.check_reentrant:Should only be False if this mutex is expe...
8
48
6
233
0
246
332
246
self,system_mutex,mutex_name
[]
None
{"Assign": 2}
0
3
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the protected class called _MutexHandle, that inherit another class.The function start at line 246 and ends at 332. It contains 48 lines of code and it has a cyclomatic complexity of 8. It takes 6 parameters, represented as [246.0] and does not return any value. It has 6243.0 func...
Sema4AI_actions
public
public
0
0
disposed
def disposed(self):if not self._acquired:return Truerelease_mutex = self._release_mutexif release_mutex is NULL:return Trueif getattr(release_mutex, "called", False):return Truereturn False
4
9
1
39
0
335
343
223
null
[]
None
null
0
0
0
null
0
null
The function (disposed) defined within the public class called public.The function start at line 335 and ends at 343. It contains 9 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
get_mutex_aquired
def get_mutex_aquired(self):return self._acquired
1
2
1
9
0
345
346
233
null
[]
None
null
0
0
0
null
0
null
The function (get_mutex_aquired) defined within the public class called public.The function start at line 345 and ends at 346. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
Sema4AI_actions
public
public
0
0
release_mutex
def release_mutex(self):self._release_mutex()
1
2
1
10
0
348
349
236
null
[]
None
null
0
0
0
null
0
null
The function (release_mutex) defined within the public class called public.The function start at line 348 and ends at 349. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
Sema4AI_actions
_MutexHandle
protected
0
1
__init__
def __init__(self, system_mutex, mutex_name):self._system_mutex = system_mutexself._mutex_name = mutex_name
1
3
3
19
0
353
355
353
self,system_mutex,mutex_name
[]
None
{"Assign": 2}
0
3
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the protected class called _MutexHandle, that inherit another class.The function start at line 353 and ends at 355. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [353.0] and does not return any value. It has 6243.0 funct...
Sema4AI_actions
_MutexHandle
protected
0
1
__enter__
def __enter__(self, *args, **kwargs):return self
1
2
3
13
0
358
359
358
self,*args,**kwargs
[]
Returns
{"Return": 1}
0
2
0
[]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3662468_esss_jobs_done10.tests.server.test_server_py.test_error_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3687355_datarobot_batch_scoring.datarobot_batch_scoring.writer_py.NewRunContext.__enter__", "_...
The function (__enter__) defined within the protected class called _MutexHandle, that inherit another class.The function start at line 358 and ends at 359. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [358.0], and this function return a value. It has 4.0 fun...
Sema4AI_actions
_MutexHandle
protected
0
1
__exit__
def __exit__(self, *args, **kwargs):self._system_mutex.release_mutex()
1
2
3
18
0
361
362
361
self,*args,**kwargs
[]
None
{"Expr": 1}
1
2
1
["self._system_mutex.release_mutex"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3544998_workiva_furious.furious.context.auto_context_py.AutoContext.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3687355_datarobot_batch_scoring.datarobot_batch_scoring.writer_py.NewRunContext.__exit__",...
The function (__exit__) defined within the protected class called _MutexHandle, that inherit another class.The function start at line 361 and ends at 362. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [361.0] and does not return any value. It declare 1.0 func...
Sema4AI_actions
public
public
0
0
timed_acquire_mutex
def timed_acquire_mutex(mutex_name,timeout=20,sleep_time=0.15,check_reentrant=True,base_dir=None,raise_error_on_timeout=False,) -> ContextManager:"""Acquires the mutex given its name, a number of attempts and a time to sleep between each attempt.:throws RuntimeError if it was not possible to get the mutex in the given ...
7
40
6
145
5
366
425
366
mutex_name,timeout,sleep_time,check_reentrant,base_dir,raise_error_on_timeout
['finish_at', 'logged', 'last_attempt', 'will_retry_msg', 'mutex']
ContextManager
{"Assign": 7, "Expr": 3, "If": 5, "Return": 1, "While": 1}
8
60
8
["time.monotonic", "time.monotonic", "SystemMutex", "mutex.get_mutex_aquired", "log.info", "RuntimeError", "time.sleep", "_MutexHandle"]
7
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server._rcc_py.Rcc._run_rcc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.robo_utils.test_...
The function (timed_acquire_mutex) defined within the public class called public.The function start at line 366 and ends at 425. It contains 40 lines of code and it has a cyclomatic complexity of 7. It takes 6 parameters, represented as [366.0] and does not return any value. It declares 8.0 functions, It has 8.0 functi...
Sema4AI_actions
public
public
0
0
generate_mutex_name
def generate_mutex_name(target_name, prefix=""):"""A mutex name must be a valid filesystem path, so, this generates a hashthat can be used in case the original name would have conflicts."""import hashlibif not isinstance(target_name, bytes):target_name = target_name.encode("utf-8")return prefix + (hashlib.sha224(target...
2
5
2
48
1
428
438
428
target_name,prefix
['target_name']
Returns
{"Assign": 1, "Expr": 1, "If": 1, "Return": 1}
4
11
4
["isinstance", "target_name.encode", "hexdigest", "hashlib.sha224"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.robo_utils.test_system_mutex_py.test_gen_mutex_name_from_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.tests.se...
The function (generate_mutex_name) defined within the public class called public.The function start at line 428 and ends at 438. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [428.0], and this function return a value. It declares 4.0 functions, It has 4.0 fun...
Sema4AI_actions
public
public
0
0
slugify
def slugify(value: str, allow_unicode: bool = False) -> str:"""Convert to ASCII if 'allow_unicode' is False. Convert spaces or repeateddashes to single dashes. Remove characters that aren't alphanumerics,underscores, or hyphens. Convert to lowercase. Also strip leading andtrailing whitespace, dashes, and underscores.""...
2
7
2
83
1
22
35
22
value,allow_unicode
['value']
str
{"Assign": 3, "Expr": 1, "If": 1, "Return": 1}
8
14
8
["unicodedata.normalize", "decode", "encode", "_remove_accents", "re.sub", "value.lower", "strip", "re.sub"]
39
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.markdown.extensions.headerid_py.HeaderIdTreeprocessor.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.blog_py.Collection.__init__", "_....
The function (slugify) defined within the public class called public.The function start at line 22 and ends at 35. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [22.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions called insid...
Sema4AI_actions
public
public
0
0
_remove_accents
def _remove_accents(input_str):nfkd_form = unicodedata.normalize("NFKD", input_str)return "".join([c for c in nfkd_form if not unicodedata.combining(c)])
3
3
1
36
1
38
40
38
input_str
['nfkd_form']
Returns
{"Assign": 1, "Return": 1}
3
3
3
["unicodedata.normalize", "join", "unicodedata.combining"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server._slugify_py.slugify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.text_py.slugify"]
The function (_remove_accents) defined within the public class called public.The function start at line 38 and ends at 40. 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 declares 3.0 functions, It has 3.0 functions cal...
Sema4AI_actions
BaseTool
public
0
0
get_default_executable
def get_default_executable(cls, *, version: str, download: bool = False) -> Path:"""This should be the preferred way to get the executable.i.e.:action_server_executable = ActionServerTool.get_executable_path(version="0.1.0", download=True)Then the `action_server_executable` will be a Path to the executable and will bed...
2
13
3
82
0
31
60
31
cls,version,download
[]
Path
{"Assign": 2, "Expr": 3, "If": 1, "Return": 1}
5
30
5
["get_default_executable_path", "target_location.parent.mkdir", "cls", "str", "action_server_tool.download"]
0
[]
The function (get_default_executable) defined within the public class called BaseTool.The function start at line 31 and ends at 60. It contains 13 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [31.0] and does not return any value. It declares 5.0 functions, and It has 5.0...
Sema4AI_actions
BaseTool
public
0
0
__init__
def __init__(self, target_location: str, tool_version: str):self._target_location = target_locationself._tool_version = tool_version
1
3
3
23
0
62
64
62
self,target_location,tool_version
[]
None
{"Assign": 2}
0
3
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the public class called BaseTool.The function start at line 62 and ends at 64. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [62.0] and does not return any value. It has 6243.0 functions calling this function which are [...
Sema4AI_actions
BaseTool
public
0
0
download
def download(self) -> None:_download_tool(self, self._target_location, self._tool_version)
1
2
1
19
0
66
67
66
self
[]
None
{"Expr": 1}
1
2
1
["_download_tool"]
16
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.data_py.getfile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692576_megagonlabs_ginza.ginza.command_line_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output...
The function (download) defined within the public class called BaseTool.The function start at line 66 and ends at 67. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside w...
Sema4AI_actions
BaseTool
public
0
0
verify
def verify(self) -> bool:return _verify_tool_downloaded_ok(self,self._target_location,force=True,make_run_check=self.make_run_check,version=self._tool_version,)
1
8
1
33
0
69
76
69
self
[]
bool
{"Return": 1}
1
8
1
["_verify_tool_downloaded_ok"]
131
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.container.test_heap_py.test_heap_fuzz", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.tests.container.test_heap_py.test_init", "_.content.gdrive.MyDriv...
The function (verify) defined within the public class called BaseTool.The function start at line 69 and ends at 76. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside whi...
Sema4AI_actions
BaseTool
public
0
0
_get_release_artifact_relative_path
def _get_release_artifact_relative_path(self, executable_name: str) -> str:"""Helper function for getting the release artifact relative path as defined in S3 bucket.Args:sys_platform: Platform for which the release artifact is being retrieved.executable_name: Name of the executable we want to get the path for."""import...
11
23
2
116
0
78
112
78
self,executable_name
[]
str
{"Assign": 5, "Expr": 1, "If": 6, "Return": 4}
4
35
4
["platform.machine", "RuntimeError", "getattr", "RuntimeError"]
0
[]
The function (_get_release_artifact_relative_path) defined within the public class called BaseTool.The function start at line 78 and ends at 112. It contains 23 lines of code and it has a cyclomatic complexity of 11. It takes 2 parameters, represented as [78.0] and does not return any value. It declares 4.0 functions, ...
Sema4AI_actions
public
public
0
0
_get_tool_version
def _get_tool_version(tool: BaseTool, location: str) -> ProcessRunResult:from sema4ai.common.process import launch_and_return_futureversion_command = tool.version_commandcwd = "."env: dict[str, str] = {}future = launch_and_return_future((location,) + version_command, environ=env, cwd=cwd)return future.result()
1
9
2
65
3
115
125
115
tool,location
['future', 'version_command', 'cwd']
ProcessRunResult
{"AnnAssign": 1, "Assign": 3, "Return": 1}
2
11
2
["launch_and_return_future", "future.result"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.tools_py._verify_tool_downloaded_ok"]
The function (_get_tool_version) defined within the public class called public.The function start at line 115 and ends at 125. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [115.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions...
Sema4AI_actions
public
public
0
0
_verify_tool_downloaded_ok
def _verify_tool_downloaded_ok(tool: BaseTool, location: str, force: bool, make_run_check: bool, version: str) -> bool:"""Args:version: If `make_run_check` is True, the version is matched against thedownloaded version (and if it doesn't match `False` will be returned).Returns:True if everything is ok and False otherwis...
11
39
5
192
3
128
181
128
tool,location,force,make_run_check,version
['times', 'version_result', 'timeout']
bool
{"Assign": 3, "Expr": 8, "For": 1, "If": 7, "Return": 7}
14
54
14
["os.path.isfile", "os.path.isfile", "log.info", "os.access", "log.info", "_checked_downloaded_tools.add", "range", "_get_tool_version", "version_result.stdout.strip", "version.strip", "_checked_downloaded_tools.add", "log.info", "time.sleep", "log.info"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.tools_py.BaseTool.verify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.tools_py._download_tool"]
The function (_verify_tool_downloaded_ok) defined within the public class called public.The function start at line 128 and ends at 181. It contains 39 lines of code and it has a cyclomatic complexity of 11. It takes 5 parameters, represented as [128.0] and does not return any value. It declares 14.0 functions, It has 1...
Sema4AI_actions
public
public
0
0
_download_tool
def _download_tool(tool: BaseTool,location: str,tool_version: str,force: bool = False,) -> None:"""Downloads the given Sema4.ai tool to the specified location. Note that it doesn't overwrite it if italready exists (unless force == True).Args:tool: The type of the tool to download. Available tools are specified with Too...
7
51
4
181
3
188
260
188
tool,location,tool_version,force
['url', 'executable_name', 'relative_path']
None
{"Assign": 3, "Expr": 2, "If": 5, "Return": 2, "Try": 1, "With": 1}
9
73
9
["_verify_tool_downloaded_ok", "timed_acquire_mutex", "_verify_tool_downloaded_ok", "tool._get_release_artifact_relative_path", "download_with_resume", "Path", "RuntimeError", "_verify_tool_downloaded_ok", "Exception"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.tools_py.BaseTool.download"]
The function (_download_tool) defined within the public class called public.The function start at line 188 and ends at 260. It contains 51 lines of code and it has a cyclomatic complexity of 7. It takes 4 parameters, represented as [188.0] and does not return any value. It declares 9.0 functions, It has 9.0 functions c...
Sema4AI_actions
BaseTool
public
0
0
__init__
def __init__(self, target_location: str, tool_version: str):self._target_location = target_locationself._tool_version = tool_version
1
2
3
23
0
271
272
62
self,target_location,tool_version
[]
None
{"Assign": 2}
0
3
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the public class called BaseTool.The function start at line 271 and ends at 272. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [62.0] and does not return any value. It has 6243.0 functions calling this function which are...
Sema4AI_actions
BaseTool
public
0
0
__init__
def __init__(self, target_location: str, tool_version: str):self._target_location = target_locationself._tool_version = tool_version
1
2
3
23
0
281
282
62
self,target_location,tool_version
[]
None
{"Assign": 2}
0
3
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the public class called BaseTool.The function start at line 281 and ends at 282. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [62.0] and does not return any value. It has 6243.0 functions calling this function which are...
Sema4AI_actions
BaseTool
public
0
0
__init__
def __init__(self, target_location: str, tool_version: str):self._target_location = target_locationself._tool_version = tool_version
1
2
3
23
0
290
291
62
self,target_location,tool_version
[]
None
{"Assign": 2}
0
3
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the public class called BaseTool.The function start at line 290 and ends at 291. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [62.0] and does not return any value. It has 6243.0 functions calling this function which are...
Sema4AI_actions
BaseTool
public
0
0
__init__
def __init__(self, target_location: str, tool_version: str):self._target_location = target_locationself._tool_version = tool_version
1
2
3
23
0
302
303
62
self,target_location,tool_version
[]
None
{"Assign": 2}
0
3
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the public class called BaseTool.The function start at line 302 and ends at 303. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [62.0] and does not return any value. It has 6243.0 functions calling this function which are...
Sema4AI_actions
public
public
0
0
normalize_drive
def normalize_drive(filename):if len(filename) > 1 and filename[1] == ":" and not filename[0].islower():return filename[0].lower() + filename[1:]return filename
4
4
1
47
0
37
40
37
null
[]
None
null
0
0
0
null
0
null
The function (normalize_drive) defined within the public class called public.The function start at line 37 and ends at 40. It contains 4 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value..
Sema4AI_actions
public
public
0
0
normalize_drive
def normalize_drive(filename):return filename
1
2
1
7
0
44
45
44
null
[]
None
null
0
0
0
null
0
null
The function (normalize_drive) defined within the public class called public.The function start at line 44 and ends at 45. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
Sema4AI_actions
public
public
0
0
_normalize_win_path
def _normalize_win_path(path):netloc = ""# normalize to fwd-slashes on windows,# on other systems bwd-slashes are valid# filename character, eg /f\oo/ba\r.txtif sys.platform == "win32":path = path.replace("\\", "/")# check for authority as used in UNC shares# or use the path as givenif path[:2] == "//":idx = path.index...
6
16
1
121
3
48
76
48
path
['idx', 'path', 'netloc']
Returns
{"Assign": 8, "If": 5, "Return": 1}
5
29
5
["path.replace", "path.index", "path.startswith", "RE_DRIVE_LETTER_PATH.match", "lower"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.from_fs_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.uri_with", "_.content.gdrive.M...
The function (_normalize_win_path) defined within the public class called public.The function start at line 48 and ends at 76. It contains 16 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters, and this function return a value. It declares 5.0 functions, It has 5.0 function...
Sema4AI_actions
public
public
0
0
from_fs_path
def from_fs_path(path: str) -> str:"""Returns a URI for the given filesystem path."""scheme = "file"params, query, fragment = "", "", ""path, netloc = _normalize_win_path(path)return urlunparse((scheme, netloc, path, params, query, fragment))
1
5
1
49
1
80
85
80
path
['scheme']
str
{"Assign": 3, "Expr": 1, "Return": 1}
3
6
3
["_normalize_win_path", "urlunparse", "lru_cache"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.normalize_uri", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.uris_py.normalize_uri"]
The function (from_fs_path) defined within the public class called public.The function start at line 80 and ends at 85. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called ins...
Sema4AI_actions
public
public
0
0
normalize_uri
def normalize_uri(uri: str) -> str:if uri_scheme(uri) == "file":return from_fs_path(to_fs_path(uri))return uri
2
4
1
27
0
89
92
89
uri
[]
str
{"If": 1, "Return": 2}
4
4
4
["uri_scheme", "from_fs_path", "to_fs_path", "lru_cache"]
0
[]
The function (normalize_uri) defined within the public class called public.The function start at line 89 and ends at 92. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions call...
Sema4AI_actions
public
public
0
0
to_fs_path
def to_fs_path(uri: str) -> str:"""Returns the filesystem path of the given URI.Will handle UNC paths and normalize windows drive letters to lower-case.Also uses the platform specific path separator. Will *not* validate thepath for invalid characters and semantics.Will *not* look at the scheme of this URI."""# scheme:/...
6
12
1
93
1
96
123
96
uri
['value']
str
{"Assign": 6, "Expr": 1, "If": 3, "Return": 1}
6
28
6
["urlparse", "RE_DRIVE_LETTER_PATH.match", "lower", "value.replace", "normalize_drive", "lru_cache"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.normalize_uri", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.uris_py.normalize_uri"]
The function (to_fs_path) defined within the public class called public.The function start at line 96 and ends at 123. It contains 12 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 6.0 functions, It has 6.0 functions called ins...
Sema4AI_actions
public
public
0
0
uri_scheme
def uri_scheme(uri):try:return urlparse(uri)[0]except (TypeError, IndexError):return None
2
5
1
24
0
126
130
126
uri
[]
Returns
{"Return": 2, "Try": 1}
1
5
1
["urlparse"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.actions.src.sema4ai.actions._uris_py.normalize_uri", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common.uris_py.normalize_uri"]
The function (uri_scheme) defined within the public class called public.The function start at line 126 and ends at 130. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called in...
Sema4AI_actions
public
public
0
0
uri_with
def uri_with(uri, scheme=None, netloc=None, path=None, params=None, query=None, fragment=None):"""Return a URI with the given part(s) replaced.Parts are decoded / encoded."""old_scheme, old_netloc, old_path, old_params, old_query, old_fragment = urlparse(uri)path, _netloc = _normalize_win_path(path)return urlunparse((s...
7
17
7
84
0
133
154
133
uri,scheme,netloc,path,params,query,fragment
[]
Returns
{"Assign": 2, "Expr": 1, "Return": 1}
3
22
3
["urlparse", "_normalize_win_path", "urlunparse"]
0
[]
The function (uri_with) defined within the public class called public.The function start at line 133 and ends at 154. It contains 17 lines of code and it has a cyclomatic complexity of 7. It takes 7 parameters, represented as [133.0], and this function return a value. It declares 3.0 functions, and It has 3.0 function...
Sema4AI_actions
public
public
0
0
urlparse
def urlparse(uri):"""Parse and decode the parts of a URI."""scheme, netloc, path, params, query, fragment = parse_urlparse(uri)return (parse_unquote(scheme),parse_unquote(netloc),parse_unquote(path),parse_unquote(params),parse_unquote(query),parse_unquote(fragment),)
1
10
1
55
0
157
167
157
uri
[]
Returns
{"Assign": 1, "Expr": 1, "Return": 1}
7
11
7
["parse_urlparse", "parse_unquote", "parse_unquote", "parse_unquote", "parse_unquote", "parse_unquote", "parse_unquote"]
251
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.asset_py.AssetMixin.signed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.evok_py.WsHandler.check_origin", "_.content.gdrive.MyDrive.Phd_Thesis....
The function (urlparse) defined within the public class called public.The function start at line 157 and ends at 167. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 7.0 functions, It has 7.0 functions called ...
Sema4AI_actions
public
public
0
0
urlunparse
def urlunparse(parts):"""Unparse and encode parts of a URI."""scheme, netloc, path, params, query, fragment = parts# Avoid encoding the windows drive letter colonif RE_DRIVE_LETTER_PATH.match(path):quoted_path = path[:3] + parse_quote(path[3:])else:quoted_path = parse_quote(path)return parse_urlunparse((parse_quote(sch...
2
16
1
84
1
170
189
170
parts
['quoted_path']
Returns
{"Assign": 3, "Expr": 1, "If": 1, "Return": 1}
9
20
9
["RE_DRIVE_LETTER_PATH.match", "parse_quote", "parse_quote", "parse_urlunparse", "parse_quote", "parse_quote", "parse_quote", "parse_quote", "parse_quote"]
30
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.markdown.inlinepatterns_py.LinkPattern.sanitize_url", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681862_fschulze_mr_developer.src.mr.developer.svn_py.SVNWorkingCopy....
The function (urlunparse) defined within the public class called public.The function start at line 170 and ends at 189. It contains 16 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 9.0 functions, It has 9.0 functions calle...
Sema4AI_actions
_RedirectWSGIApp
protected
0
0
__init__
def __init__(self, success_message: str):"""Args:success_message: The message to display in the web browserthe authorization flow is complete."""self.last_request_uri: str | None = Noneself.last_body: str | None = Noneself.last_headers: Optional[dict[str, str]] = Noneself._success_message = success_message
1
5
2
48
0
27
36
27
self,success_message
[]
None
{"AnnAssign": 3, "Assign": 1, "Expr": 1}
0
10
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the protected class called _RedirectWSGIApp.The function start at line 27 and ends at 36. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value. It has 6243.0 functions calling this function ...
Sema4AI_actions
_RedirectWSGIApp
protected
0
0
__call__
def __call__(self, environ: dict[str, Any], start_response: Callable[[str, list], Any]) -> list[bytes]:"""Store the requested uri and return a text message.Args:environ: The WSGI environment.start_response: Callable to provide response headers.Returns:The response body."""headers = {}for header, value in environ.items(...
5
35
3
191
0
38
87
38
self,environ,start_response
[]
list[bytes]
{"Assign": 8, "Expr": 3, "For": 1, "If": 2, "Return": 2, "Try": 1}
12
50
12
["environ.items", "header.startswith", "lower", "replace", "int", "environ.get", "decode", "read", "start_response", "start_response", "wsgiref.util.request_uri", "self._success_message.encode"]
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 protected class called _RedirectWSGIApp.The function start at line 38 and ends at 87. It contains 35 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [38.0] and does not return any value. It declares 12.0 functions, It has 12.0 funct...
Sema4AI_actions
_WSGIRequestHandler
protected
0
1
log_message
def log_message(self, fmt, *args):pass# No need to log anything.
1
2
3
11
0
91
92
91
self,fmt,*args
[]
None
{}
0
2
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3683022_datamill_co_target_postgres.target_postgres.sql_base_py.SQLInterface.upsert_table_helper"]
The function (log_message) defined within the protected class called _WSGIRequestHandler, that inherit another class.The function start at line 91 and ends at 92. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [91.0] and does not return any value. It has 1.0 f...
Sema4AI_actions
public
public
0
0
_wrap_socket
def _wrap_socket(sock,keyfile=None,certfile=None,):"""Converts a regular socket into as SSL socket."""from ssl import SSLContextif keyfile and not certfile:raise ValueError("certfile must be specified")context = SSLContext(ssl.PROTOCOL_TLS_SERVER)context.minimum_version = ssl.TLSVersion.TLSv1_2context.verify_mode = ssl...
4
19
3
89
1
95
117
95
sock,keyfile,certfile
['context']
Returns
{"Assign": 3, "Expr": 2, "If": 2, "Return": 1}
4
23
4
["ValueError", "SSLContext", "context.load_cert_chain", "context.wrap_socket"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.url_callback_server_py._start_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common....
The function (_wrap_socket) defined within the public class called public.The function start at line 95 and ends at 117. It contains 19 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [95.0], and this function return a value. It declares 4.0 functions, It has 4.0 functions c...
Sema4AI_actions
public
public
0
0
_get_action_server_user_sema4_path
def _get_action_server_user_sema4_path() -> Path:"""Note: use the same folder as the action server (to reuse the certificatethat was generated there if available)."""if sys.platform == "win32":localappdata = os.environ.get("LOCALAPPDATA")if not localappdata:raise RuntimeError("Error. LOCALAPPDATA not defined in environ...
3
11
0
72
3
121
137
121
['user_sema4_path', 'home', 'localappdata']
Path
{"Assign": 4, "Expr": 2, "If": 2, "Return": 1}
6
17
6
["os.environ.get", "RuntimeError", "Path", "expanduser", "Path", "user_sema4_path.mkdir"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.url_callback_server_py._start_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4ai.common....
The function (_get_action_server_user_sema4_path) defined within the public class called public.The function start at line 121 and ends at 137. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 6.0 functions, It has...
Sema4AI_actions
public
public
0
0
_start_server
def _start_server(host: str = "localhost",port: int = 4444,*,use_https: bool = False,ssl_self_signed: bool = False,ssl_keyfile: str | None = None,ssl_certfile: str | None = None,show_message: str = "Ok, it worked.",) -> tuple[WSGIServer, _RedirectWSGIApp, str]:"""Args:keyfile:Required if SSL is required.certfile:Requir...
11
50
7
244
11
140
215
140
host,port,use_https,ssl_self_signed,ssl_keyfile,ssl_certfile,show_message
['protocol', 'address', 'public_path', 'ssl_certfile', 'sockname', 'user_path', 'wsgi_app', 'local_server', 'ssl_keyfile', 'KEY_FILE_PERMISSIONS', 'private_path']
tuple[WSGIServer, _RedirectWSGIApp, str]
{"Assign": 14, "Expr": 4, "If": 6, "Return": 1}
13
76
13
["_RedirectWSGIApp", "wsgiref.simple_server.make_server", "RuntimeError", "RuntimeError", "_get_action_server_user_sema4_path", "gen_certificate.gen_self_signed_certificate", "public_path.write_bytes", "private_path.write_bytes", "private_path.chmod", "str", "str", "_wrap_socket", "local_server.socket.getsockname"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.url_callback_server_py.start_server_in_thread", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.sema4a...
The function (_start_server) defined within the public class called public.The function start at line 140 and ends at 215. It contains 50 lines of code and it has a cyclomatic complexity of 11. It takes 7 parameters, represented as [140.0] and does not return any value. It declares 13.0 functions, It has 13.0 functions...
Sema4AI_actions
public
public
0
0
start_server_in_thread.start_server_in_thread.method.on_done
def on_done(*args, **kwargs):# Close when done (either cancelled or in regular flow)local_server.server_close()
1
2
2
14
0
244
246
244
null
[]
None
null
0
0
0
null
0
null
The function (start_server_in_thread.start_server_in_thread.method.on_done) defined within the public class called public.The function start at line 244 and ends at 246. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [244.0] and does not return any value..
Sema4AI_actions
public
public
0
0
start_server_in_thread.method
def method() -> None:try:# Start the serverlocal_server, app, address = _start_server(**kwargs)fut_provide_callback_address.set_result(address)def on_done(*args, **kwargs):# Close when done (either cancelled or in regular flow)local_server.server_close()fut_provide_uri.add_done_callback(on_done)local_server.handle_requ...
9
27
0
132
0
238
272
238
null
[]
None
null
0
0
0
null
0
null
The function (start_server_in_thread.method) defined within the public class called public.The function start at line 238 and ends at 272. It contains 27 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
start_server_in_thread
def start_server_in_thread(**kwargs,) -> tuple[Future[LastRequestInfoTypedDict], Future[str]]:"""Calls `_start_server` with the passed args in a thread and returnsa future which returns the last uri accessed.If the returned `Future` is cancelled, the server is also closed."""import threadingfut_provide_uri: Future[Last...
1
10
1
72
1
224
276
224
**kwargs
['t']
tuple[Future[LastRequestInfoTypedDict], Future[str]]
{"AnnAssign": 3, "Assign": 2, "Expr": 10, "If": 3, "Return": 1, "Try": 2}
16
53
16
["Future", "Future", "_start_server", "fut_provide_callback_address.set_result", "local_server.server_close", "fut_provide_uri.add_done_callback", "local_server.handle_request", "fut_provide_uri.cancelled", "fut_provide_uri.set_result", "fut_provide_uri.set_exception", "RuntimeError", "fut_provide_uri.cancelled", "fut_...
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.test_oauth2_py.manual_test_oauth2_action_server_ui", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action...
The function (start_server_in_thread) defined within the public class called public.The function start at line 224 and ends at 276. It contains 10 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 16.0 functions, It has 16.0 funct...
Sema4AI_actions
public
public
0
0
wait_for_condition
def wait_for_condition(condition, msg=None, timeout=DEFAULT_TIMEOUT, sleep=1 / 20.0):"""Note: wait_for_non_error_condition or wait_for_expected_func_return are usually a better APIsto use as the error message is automatically built.Args:condition: A function that returns True or False.msg: A message to be displayed if ...
7
16
4
101
2
4
35
4
condition,msg,timeout,sleep
['error_msg', 'curtime']
None
{"Assign": 2, "AugAssign": 3, "Expr": 2, "If": 4, "While": 1}
8
32
8
["time.monotonic", "condition", "time.monotonic", "callable", "msg", "str", "TimeoutError", "time.sleep"]
11
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.mcp.test_mcp_integration_py.mcp_server_port", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server...
The function (wait_for_condition) defined within the public class called public.The function start at line 4 and ends at 35. It contains 16 lines of code and it has a cyclomatic complexity of 7. It takes 4 parameters, represented as [4.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions ca...
Sema4AI_actions
public
public
0
0
wait_for_non_error_condition
def wait_for_non_error_condition(generate_error_or_none, timeout=DEFAULT_TIMEOUT, sleep=1 / 20.0):"""Args:generate_error_or_none: A function that returns an error message or None.timeout: The maximum time to wait for the condition to be met.sleep: The time to sleep between each check.Example:def generate_error_or_none(...
6
17
3
84
2
38
69
38
generate_error_or_none,timeout,sleep
['error_msg', 'curtime']
None
{"Assign": 3, "Expr": 2, "If": 2, "Try": 1, "While": 1}
6
32
6
["time.monotonic", "generate_error_or_none", "str", "time.monotonic", "TimeoutError", "time.sleep"]
9
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.tests.action_server_tests.test_server_async_py.test_server_async_api_requests_while_waiting_for_action_to_complete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema...
The function (wait_for_non_error_condition) defined within the public class called public.The function start at line 38 and ends at 69. It contains 17 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [38.0] and does not return any value. It declares 6.0 functions, It has 6.0 ...
Sema4AI_actions
public
public
0
0
wait_for_expected_func_return.check
def check():found = func()if found != expected_return:return "Expected: %s. Found: %s" % (expected_return, found)return None
2
5
0
24
0
86
91
86
null
[]
None
null
0
0
0
null
0
null
The function (wait_for_expected_func_return.check) defined within the public class called public.The function start at line 86 and ends at 91. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
Sema4AI_actions
public
public
0
0
wait_for_expected_func_return
def wait_for_expected_func_return(func, expected_return, timeout=DEFAULT_TIMEOUT, sleep=1 / 20.0):"""Args:func: A function that returns a value.expected_return: The expected return value.timeout: The maximum time to wait for the condition to be met.sleep: The time to sleep between each check.Example:wait_for_expected_f...
1
5
4
30
1
72
93
72
func,expected_return,timeout,sleep
['found']
Returns
{"Assign": 1, "Expr": 2, "If": 1, "Return": 2}
2
22
2
["func", "wait_for_non_error_condition"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.tests.sema4ai_common_tests.test_app_locked_startup_py.test_obtain_app_mutex"]
The function (wait_for_expected_func_return) defined within the public class called public.The function start at line 72 and ends at 93. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [72.0], and this function return a value. It declares 2.0 functions, It has ...
Sema4AI_actions
public
public
0
0
create_range_from_location
def create_range_from_location(start_line: int,start_col: int,end_line: int | None = None,end_col: int | None = None,) -> _RangeTypedDict:"""If the end_line and end_col aren't passed we considerthat the location should go up until the end of the line."""if end_line is None:assert end_col is Noneend_line = start_line + ...
2
22
4
87
2
6
31
6
start_line,start_col,end_line,end_col
['end_line', 'end_col']
_RangeTypedDict
{"AnnAssign": 1, "Assign": 2, "Expr": 1, "If": 1, "Return": 1}
0
26
0
[]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.vendored_deps.package_deps.analyzer_py.BaseAnalyzer._load_yaml_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_se...
The function (create_range_from_location) defined within the public class called public.The function start at line 6 and ends at 31. It contains 22 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [6.0] and does not return any value. It has 14.0 functions calling this functio...
Sema4AI_actions
str_with_location
public
0
1
scalar
def scalar(self):return self
1
2
1
7
0
39
40
39
self
[]
Returns
{"Return": 1}
0
2
0
[]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3654448_hasgeek_lastuser.lastuser_ui.views.dashboard_py.dashboard", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3695233_trigger_trigger.trigger.packages.peewee_py.SelectQuery.aggregate", "_.content.gdrive.MyDrive....
The function (scalar) defined within the public class called str_with_location, that inherit another class.The function start at line 39 and ends at 40. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 43.0 functions...
Sema4AI_actions
str_with_location
public
0
1
as_range
def as_range(self) -> _RangeTypedDict:assert self.locationstart_line, start_col, end_line, end_col = self.locationreturn create_range_from_location(start_line, start_col, end_line, end_col)
1
4
1
33
0
42
45
42
self
[]
_RangeTypedDict
{"Assign": 1, "Return": 1}
1
4
1
["create_range_from_location"]
0
[]
The function (as_range) defined within the public class called str_with_location, that inherit another class.The function start at line 42 and ends at 45. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function...
Sema4AI_actions
str_with_location_capture
public
0
1
__eq__
def __eq__(self, value: object) -> bool:equals = str.__eq__(self, value)if equals and hasattr(value, "location"):self.location = value.locationreturn equals
3
5
2
40
0
59
63
59
self,value
[]
bool
{"Assign": 2, "If": 1, "Return": 1}
2
5
2
["str.__eq__", "hasattr"]
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 str_with_location_capture, that inherit another class.The function start at line 59 and ends at 63. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [59.0] and does not return any value. It declares 2....
Sema4AI_actions
str_with_location_capture
public
0
1
__hash__
def __hash__(self) -> int:return str.__hash__(self)
1
2
1
14
0
65
66
65
self
[]
int
{"Return": 1}
1
2
1
["str.__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 str_with_location_capture, that inherit another class.The function start at line 65 and ends at 66. 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 ...
Sema4AI_actions
str_with_location
public
0
1
scalar
def scalar(self):return self
1
2
1
7
0
74
75
39
self
[]
Returns
{"Return": 1}
0
2
0
[]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3654448_hasgeek_lastuser.lastuser_ui.views.dashboard_py.dashboard", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3695233_trigger_trigger.trigger.packages.peewee_py.SelectQuery.aggregate", "_.content.gdrive.MyDrive....
The function (scalar) defined within the public class called str_with_location, that inherit another class.The function start at line 74 and ends at 75. 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 43.0 functions...
Sema4AI_actions
str_with_location
public
0
1
as_range
def as_range(self) -> _RangeTypedDict:assert self.locationstart_line, start_col, end_line, end_col = self.locationreturn create_range_from_location(start_line, start_col, end_line, end_col)
1
4
1
33
0
77
80
42
self
[]
_RangeTypedDict
{"Assign": 1, "Return": 1}
1
4
1
["create_range_from_location"]
0
[]
The function (as_range) defined within the public class called str_with_location, that inherit another class.The function start at line 77 and ends at 80. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function...
Sema4AI_actions
str_with_location
public
0
1
as_range
def as_range(self) -> _RangeTypedDict:assert self.locationstart_line, start_col, end_line, end_col = self.locationreturn create_range_from_location(start_line, start_col, end_line, end_col)
1
4
1
33
0
87
90
42
self
[]
_RangeTypedDict
{"Assign": 1, "Return": 1}
1
4
1
["create_range_from_location"]
0
[]
The function (as_range) defined within the public class called str_with_location, that inherit another class.The function start at line 87 and ends at 90. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function...
Sema4AI_actions
str_with_location
public
0
1
as_range
def as_range(self) -> _RangeTypedDict:assert self.locationstart_line, start_col, end_line, end_col = self.locationreturn create_range_from_location(start_line, start_col, end_line, end_col)
1
4
1
33
0
97
100
42
self
[]
_RangeTypedDict
{"Assign": 1, "Return": 1}
1
4
1
["create_range_from_location"]
0
[]
The function (as_range) defined within the public class called str_with_location, that inherit another class.The function start at line 97 and ends at 100. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 functio...
Sema4AI_actions
LoaderWithLines
public
0
1
__init__
def __init__(self, stream):yaml.SafeLoader.__init__(self, stream)self.add_constructor("tag:yaml.org,2002:int", LoaderWithLines.construct_yaml_int)self.add_constructor("tag:yaml.org,2002:str", LoaderWithLines.construct_yaml_str)self.add_constructor("tag:yaml.org,2002:map", LoaderWithLines.construct_yaml_map)self.add_con...
1
14
2
57
0
104
117
104
self,stream
[]
None
{"Expr": 5}
5
14
5
["yaml.SafeLoader.__init__", "self.add_constructor", "self.add_constructor", "self.add_constructor", "self.add_constructor"]
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 LoaderWithLines, that inherit another class.The function start at line 104 and ends at 117. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [104.0] and does not return any value. It declares 5.0 fu...
Sema4AI_actions
LoaderWithLines
public
0
1
construct_yaml_float
def construct_yaml_float(self, node, *args, **kwargs):scalar = yaml.SafeLoader.construct_yaml_float(self, node, *args, **kwargs)ret = float_with_location(scalar)ret.location = (node.start_mark.line,node.start_mark.column,node.end_mark.line,node.end_mark.column,)return ret
1
10
4
69
0
119
128
119
self,node,*args,**kwargs
[]
Returns
{"Assign": 3, "Return": 1}
2
10
2
["yaml.SafeLoader.construct_yaml_float", "float_with_location"]
0
[]
The function (construct_yaml_float) defined within the public class called LoaderWithLines, that inherit another class.The function start at line 119 and ends at 128. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [119.0], and this function return a value. It...
Sema4AI_actions
LoaderWithLines
public
0
1
construct_yaml_map
def construct_yaml_map(self, node, *args, **kwargs):(obj,) = yaml.SafeLoader.construct_yaml_map(self, node, *args, **kwargs)ret = dict_with_location(obj)ret.location = (node.start_mark.line,node.start_mark.column,node.end_mark.line,node.end_mark.column,)return ret
1
10
4
72
0
130
139
130
self,node,*args,**kwargs
[]
Returns
{"Assign": 3, "Return": 1}
2
10
2
["yaml.SafeLoader.construct_yaml_map", "dict_with_location"]
0
[]
The function (construct_yaml_map) defined within the public class called LoaderWithLines, that inherit another class.The function start at line 130 and ends at 139. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [130.0], and this function return a value. It d...
Sema4AI_actions
LoaderWithLines
public
0
1
construct_yaml_int
def construct_yaml_int(self, node, *args, **kwargs):scalar = yaml.SafeLoader.construct_yaml_int(self, node, *args, **kwargs)ret = int_with_location(scalar)ret.location = (node.start_mark.line,node.start_mark.column,node.end_mark.line,node.end_mark.column,)return ret
1
10
4
69
0
141
150
141
self,node,*args,**kwargs
[]
Returns
{"Assign": 3, "Return": 1}
2
10
2
["yaml.SafeLoader.construct_yaml_int", "int_with_location"]
0
[]
The function (construct_yaml_int) defined within the public class called LoaderWithLines, that inherit another class.The function start at line 141 and ends at 150. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [141.0], and this function return a value. It d...
Sema4AI_actions
LoaderWithLines
public
0
1
construct_yaml_str
def construct_yaml_str(self, node, *args, **kwargs):scalar = yaml.SafeLoader.construct_scalar(self, node, *args, **kwargs)ret = str_with_location(scalar)ret.location = (node.start_mark.line,node.start_mark.column,node.end_mark.line,node.end_mark.column,)return ret
1
10
4
69
0
152
161
152
self,node,*args,**kwargs
[]
Returns
{"Assign": 3, "Return": 1}
2
10
2
["yaml.SafeLoader.construct_scalar", "str_with_location"]
0
[]
The function (construct_yaml_str) defined within the public class called LoaderWithLines, that inherit another class.The function start at line 152 and ends at 161. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [152.0], and this function return a value. It d...
Sema4AI_actions
LoaderWithLines
public
0
1
__init__
def __init__(self, line: int = 0, character: int = 0):self.line: int = lineself.character: int = character
1
3
3
31
0
165
167
165
self,stream
[]
None
{"Expr": 5}
5
14
5
["yaml.SafeLoader.__init__", "self.add_constructor", "self.add_constructor", "self.add_constructor", "self.add_constructor"]
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 LoaderWithLines, that inherit another class.The function start at line 165 and ends at 167. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [165.0] and does not return any value. It declares 5.0 fun...
Sema4AI_actions
_Position
protected
0
0
to_dict
def to_dict(self):return {"line": self.line, "character": self.character}
1
2
1
19
0
169
170
169
self
[]
Returns
{"Return": 1}
0
2
0
[]
108
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.create_event", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.edit", "_.content.gdrive.MyDri...
The function (to_dict) defined within the protected class called _Position.The function start at line 169 and ends at 170. 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 108.0 functions calling this function which ...
Sema4AI_actions
_Position
protected
0
0
__repr__
def __repr__(self):import jsonreturn json.dumps(self.to_dict(), indent=4)
1
3
1
22
0
172
175
172
self
[]
Returns
{"Return": 1}
2
4
2
["json.dumps", "self.to_dict"]
54
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3581153_zetaops_pyoko.pyoko.listnode_py.ListNode.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3585282_geier_pycarddav.pycarddav.model_py.VCard.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Cre...
The function (__repr__) defined within the protected class called _Position.The function start at line 172 and ends at 175. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions ca...
Sema4AI_actions
_Position
protected
0
0
__getitem__
def __getitem__(self, name):# provide tuple-access, not just dict access.if name == 0:return self.lineif name == 1:return self.characterreturn getattr(self, name)
3
6
2
32
0
177
183
177
self,name
[]
Returns
{"If": 2, "Return": 3}
1
7
1
["getattr"]
33
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3392496_unipitechnology_evok.evok.devices_py.DeviceList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.structure.buffer_views_py.BufferView.__getitem__", "_.content.g...
The function (__getitem__) defined within the protected class called _Position.The function start at line 177 and ends at 183. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [177.0], and this function return a value. It declare 1.0 function, It has 1.0 functio...
Sema4AI_actions
str_with_location_capture
public
0
1
__eq__
def __eq__(self, other):return (isinstance(other, _Position)and self.line == other.lineand self.character == other.character)
3
6
2
32
0
185
190
185
self,value
[]
bool
{"Assign": 2, "If": 1, "Return": 1}
2
5
2
["str.__eq__", "hasattr"]
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 str_with_location_capture, that inherit another class.The function start at line 185 and ends at 190. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [185.0] and does not return any value. It declares...
Sema4AI_actions
_Position
protected
0
0
__ge__
def __ge__(self, other):line_gt = self.line > other.lineif line_gt:return line_gtif self.line == other.line:return self.character >= other.characterreturn False
3
7
2
40
0
192
201
192
self,other
[]
Returns
{"Assign": 1, "If": 2, "Return": 3}
0
10
0
[]
0
[]
The function (__ge__) defined within the protected class called _Position.The function start at line 192 and ends at 201. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [192.0], and this function return a value..
Sema4AI_actions
_Position
protected
0
0
__gt__
def __gt__(self, other):line_gt = self.line > other.lineif line_gt:return line_gtif self.line == other.line:return self.character > other.characterreturn False
3
7
2
40
0
203
212
203
self,other
[]
Returns
{"Assign": 1, "If": 2, "Return": 3}
0
10
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 protected class called _Position.The function start at line 203 and ends at 212. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [203.0], and this function return a value. It has 1.0 function calling this function which ...
Sema4AI_actions
_Position
protected
0
0
__le__
def __le__(self, other):line_lt = self.line < other.lineif line_lt:return line_ltif self.line == other.line:return self.character <= other.characterreturn False
3
7
2
40
0
214
223
214
self,other
[]
Returns
{"Assign": 1, "If": 2, "Return": 3}
0
10
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 protected class called _Position.The function start at line 214 and ends at 223. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [214.0], and this function return a value. It has 1.0 function calling this function which ...
Sema4AI_actions
_Position
protected
0
0
__lt__
def __lt__(self, other):line_lt = self.line < other.lineif line_lt:return line_ltif self.line == other.line:return self.character < other.characterreturn False
3
7
2
40
0
225
234
225
self,other
[]
Returns
{"Assign": 1, "If": 2, "Return": 3}
0
10
0
[]
0
[]
The function (__lt__) defined within the protected class called _Position.The function start at line 225 and ends at 234. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [225.0], and this function return a value..
Sema4AI_actions
_Position
protected
0
0
__ne__
def __ne__(self, other):return not self.__eq__(other)
1
2
2
15
0
236
237
236
self,other
[]
Returns
{"Return": 1}
1
2
1
["self.__eq__"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561619_pymysql_tornado_mysql.tornado_mysql.__init___py.DBAPISet.__ne__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3630821_adamlwgriffiths_pyrr.pyrr.objects.matrix33_py.Matrix33.__ne__", "_.content.gdrive.MyDri...
The function (__ne__) defined within the protected class called _Position.The function start at line 236 and ends at 237. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [236.0], and this function return a value. It declare 1.0 function, It has 1.0 function cal...
Sema4AI_actions
public
public
0
0
is_inside
def is_inside(range_dct: _RangeTypedDict, line: int, col: int) -> bool:start = range_dct["start"]end = range_dct["end"]start_pos = _Position(start["line"], start["character"])end_pos = _Position(end["line"], end["character"])curr_pos = _Position(line, col)return start_pos <= curr_pos <= end_pos
1
7
3
71
5
240
246
240
range_dct,line,col
['end', 'end_pos', 'start', 'curr_pos', 'start_pos']
bool
{"Assign": 5, "Return": 1}
3
7
3
["_Position", "_Position", "_Position"]
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.analyzer_py.BaseAnalyzer.find_conda_dep_at", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_...
The function (is_inside) defined within the public class called public.The function start at line 240 and ends at 246. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [240.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called ...
Sema4AI_actions
public
public
0
0
_verify_name
def _verify_name(package_yaml: Path | None, name: str) -> None:# Could be used to verify that something is not declared (no-op for now).pass
1
2
2
16
0
12
14
12
package_yaml,name
[]
None
{}
0
3
0
[]
2
["_.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._interpret_entry", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src...
The function (_verify_name) defined within the public class called public.The function start at line 12 and ends at 14. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [12.0] and does not return any value. It has 2.0 functions calling this function which are ["...
Sema4AI_actions
public
public
0
0
_interpret_entry
def _interpret_entry(package_yaml: Path | None, entry: str) -> tuple[str, str, str]:# https://packaging.python.org/en/latest/specifications/version-specifiers/#version-specifiers# https://packaging.python.org/en/latest/specifications/version-specifiers/#compatible-releasefor c in _version_chars_without_eq:if c in entry...
6
23
2
120
2
20
47
20
package_yaml,entry
['i', 'name']
tuple[str, str, str]
{"Assign": 3, "Expr": 2, "For": 1, "If": 4, "Return": 2}
6
28
6
["ActionPackageError", "ActionPackageError", "entry.find", "_verify_name", "ActionPackageError", "_verify_name"]
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.convert_conda_entry", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_...
The function (_interpret_entry) defined within the public class called public.The function start at line 20 and ends at 47. It contains 23 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [20.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions ca...
Sema4AI_actions
public
public
0
0
convert_conda_entry
def convert_conda_entry(package_yaml: Path | None, entry: str) -> tuple[str, str, str, str]:name, op, version = _interpret_entry(package_yaml, entry)if op:if op == "=":return name, f"{name}={version}", "=", versionif package_yaml is None:raise ActionPackageError(f"Error in entry: {entry}. {op!r} not supported.")else:ra...
4
15
2
83
0
50
66
50
package_yaml,entry
[]
tuple[str, str, str, str]
{"Assign": 1, "If": 3, "Return": 2}
3
17
3
["_interpret_entry", "ActionPackageError", "ActionPackageError"]
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_conda_contents_from_package_yaml_contents", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.950...
The function (convert_conda_entry) defined within the public class called public.The function start at line 50 and ends at 66. It contains 15 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [50.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions...
Sema4AI_actions
public
public
0
0
convert_pip_entry
def convert_pip_entry(package_yaml: Path | None, entry: str) -> tuple[str, str, str, str]:name, op, version = _interpret_entry(package_yaml, entry)if op:if op == "=":return name, f"{name}=={version}", "==", versionif package_yaml is None:raise ActionPackageError(f"Error in entry: {entry}. {op!r} not supported.")else:ra...
4
15
2
83
0
69
84
69
package_yaml,entry
[]
tuple[str, str, str, str]
{"Assign": 1, "If": 3, "Return": 2}
3
16
3
["_interpret_entry", "ActionPackageError", "ActionPackageError"]
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_conda_contents_from_package_yaml_contents", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.950...
The function (convert_pip_entry) defined within the public class called public.The function start at line 69 and ends at 84. It contains 15 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [69.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions c...
Sema4AI_actions
public
public
0
0
_create_package_from_conda_yaml
def _create_package_from_conda_yaml(conda_yaml: Path, dry_run: bool, backup: bool, *, stream: typing.IO | None = None):import yamlfrom ..package_deps.conda_impl import conda_match_specfrom ..package_deps.pip_impl.pip_distlib_util import parse_requirementfrom ..termcolors import bold_yellowwith conda_yaml.open("r", enco...
31
119
4
666
19
87
248
87
conda_yaml,dry_run,backup,stream
['new_robot_yaml_path', 'spec', 'robot_yaml', 'new_conda_yaml_path', 'removed', 'target', 'op', 'new_pypi_deps', 'dependencies', 'all_version_chars', 'name', 'new_dependencies', 'parsed', 'output', 'post_install', 'new_conda_deps', 'version_spec', 'post_install_str', 'contents']
None
{"AnnAssign": 2, "Assign": 22, "Expr": 21, "For": 6, "If": 20, "Try": 2, "While": 2, "With": 1}
53
162
53
["conda_yaml.open", "yaml.safe_load", "contents.get", "isinstance", "isinstance", "tuple", "dep.keys", "ActionPackageError", "isinstance", "ActionPackageError", "type", "pip_deps.append", "isinstance", "ActionPackageError", "type", "conda_deps.append", "dep.startswith", "parse_requirement", "print", "bold_yellow", "new...
2
["_.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.update_package", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.src.s...
The function (_create_package_from_conda_yaml) defined within the public class called public.The function start at line 87 and ends at 248. It contains 119 lines of code and it has a cyclomatic complexity of 31. It takes 4 parameters, represented as [87.0] and does not return any value. It declares 53.0 functions, It h...
Sema4AI_actions
public
public
0
0
update_package
def update_package(cwd: Path, dry_run: bool, backup: bool = True, *, stream=None) -> None:"""Updates a given package to conform to the latest structure.Current operations done:Convert conda.yaml or action-server.yaml to package.yamlArgs:cwd: This is the directory where the action package is(i.e.: the directory with pac...
4
13
4
86
2
251
275
251
cwd,dry_run,backup,stream
['stream', 'conda_yaml']
None
{"Assign": 3, "Expr": 3, "If": 3}
4
25
4
["conda_yaml.exists", "conda_yaml.exists", "print", "_create_package_from_conda_yaml"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925449_gabrielrf_rastreiobot.rastreio.db_py.remove_user_from_package", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.action_server.src.sema4ai.action_server.package._package_build_cli_py.ha...
The function (update_package) defined within the public class called public.The function start at line 251 and ends at 275. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [251.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions c...
Sema4AI_actions
public
public
0
0
create_hash
def create_hash(contents: str) -> str:import hashlibsha256_hash = hashlib.sha256()sha256_hash.update(contents.encode("utf-8"))return sha256_hash.hexdigest()
1
5
1
35
1
278
283
278
contents
['sha256_hash']
str
{"Assign": 1, "Expr": 1, "Return": 1}
4
6
4
["hashlib.sha256", "sha256_hash.update", "contents.encode", "sha256_hash.hexdigest"]
2
["_.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_conda_from_package_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_acti...
The function (create_hash) defined within the public class called public.The function start at line 278 and ends at 283. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called in...
Sema4AI_actions
public
public
0
0
create_conda_contents_from_package_yaml_contents._get_in_dict
def _get_in_dict(dct: dict,entry: str,expected_result_type: type | None,required: bool = True,):v = dct.get(entry)if v is None:if not required:return Noneraise ActionPackageError(f"'Required session: {entry}' not specified (in {package_yaml}).")if expected_result_type is not None and not isinstance(v, expected_result_t...
5
18
4
71
0
291
310
291
null
[]
None
null
0
0
0
null
0
null
The function (create_conda_contents_from_package_yaml_contents._get_in_dict) defined within the public class called public.The function start at line 291 and ends at 310. It contains 18 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [291.0] and does not return any value..
Sema4AI_actions
public
public
0
0
create_conda_contents_from_package_yaml_contents._validate_name
def _validate_name(name):if name in found_names:raise ActionPackageError(f"Dependency: {name} specified more than once (in {package_yaml}).")found_names.add(name)
2
6
1
22
0
314
319
314
null
[]
None
null
0
0
0
null
0
null
The function (create_conda_contents_from_package_yaml_contents._validate_name) defined within the public class called public.The function start at line 314 and ends at 319. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
Sema4AI_actions
public
public
0
0
create_conda_contents_from_package_yaml_contents
def create_conda_contents_from_package_yaml_contents(package_yaml: Path, package_yaml_contents: dict) -> dict:from ..termcolors import bold_yellowdef _get_in_dict(dct: dict,entry: str,expected_result_type: type | None,required: bool = True,):v = dct.get(entry)if v is None:if not required:return Noneraise ActionPackageE...
19
75
2
418
13
286
407
286
package_yaml,package_yaml_contents
['conda_forge', 'cwd_dir', 'found_names', 'wheel', 'found_uv', 'v', 'python_deps', 'local_wheels', 'post_install', 'found_truststore', 'pip', 'original', 'pypi']
dict
{"AnnAssign": 3, "Assign": 20, "Expr": 9, "For": 3, "If": 17, "Return": 3}
40
122
40
["dct.get", "ActionPackageError", "isinstance", "ActionPackageError", "type", "set", "ActionPackageError", "found_names.add", "isinstance", "ActionPackageError", "_get_in_dict", "_get_in_dict", "_get_in_dict", "_get_in_dict", "_get_in_dict", "ActionPackageError", "_get_in_dict", "convert_conda_entry", "_validate_name",...
2
["_.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_conda_from_package_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_acti...
The function (create_conda_contents_from_package_yaml_contents) defined within the public class called public.The function start at line 286 and ends at 407. It contains 75 lines of code and it has a cyclomatic complexity of 19. It takes 2 parameters, represented as [286.0] and does not return any value. It declares 40...
Sema4AI_actions
public
public
0
0
create_conda_from_package_yaml
def create_conda_from_package_yaml(datadir: Path, package_yaml: Path) -> Path:"""Args:package_yaml: This is the package.yaml from which the conda.yaml(to be supplied to rcc to create the env) should be created.package_yaml_contents: If specified this are the yaml-loaded contentsof the package yaml.Returns: The path to ...
4
19
2
114
5
410
445
410
datadir,package_yaml
['conda_path', 'package_yaml_contents', 'new_package_yaml_contents', 'data', 'tmpdir']
Path
{"Assign": 5, "Expr": 3, "If": 2, "Return": 1, "Try": 1, "With": 1}
11
36
11
["package_yaml.exists", "ActionPackageError", "open", "yaml.safe_load", "ActionPackageError", "create_conda_contents_from_package_yaml_contents", "tmpdir.exists", "tmpdir.mkdir", "yaml.dump", "create_hash", "conda_path.write_text"]
0
[]
The function (create_conda_from_package_yaml) defined within the public class called public.The function start at line 410 and ends at 445. It contains 19 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [410.0] and does not return any value. It declares 11.0 functions, and ...
Sema4AI_actions
CondaDepInfo
public
0
0
get_dep_vspec
def get_dep_vspec(self) -> conda_version.VersionSpec | None:try:vspec = conda_version.VersionSpec(self.version_spec)except Exception:return Nonereturn vspec
2
6
1
30
0
18
23
18
self
[]
conda_version.VersionSpec | None
{"Assign": 1, "Return": 2, "Try": 1}
1
6
1
["conda_version.VersionSpec"]
0
[]
The function (get_dep_vspec) defined within the public class called CondaDepInfo.The function start at line 18 and ends at 23. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function c...
Sema4AI_actions
CondaDeps
public
0
0
__init__
def __init__(self) -> None:self._deps: dict[str, CondaDepInfo] = {}
1
2
1
20
0
27
28
27
self
[]
None
{"AnnAssign": 1}
0
2
0
[]
6,243
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.AlertCollector_py.AlertCollector.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11269405_sapcc_vrops_exporter.collectors.ClusterAlertCollector_py.ClusterAlertCollec...
The function (__init__) defined within the public class called CondaDeps.The function start at line 27 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 has 6243.0 functions calling this function which are ["_...
Sema4AI_actions
CondaDeps
public
0
0
add_dep
def add_dep(self, value: str, dep_range: _RangeTypedDict):"""Args:value: This is the value found in the spec. Something as:'python==3.7'."""try:spec = conda_match_spec.parse_spec_str(value)# It may not have a version if it wasn't specified.version_spec = spec.get("version", "*")name = spec["name"]except Exception:passe...
2
9
3
63
0
30
45
30
self,value,dep_range
[]
None
{"Assign": 4, "Expr": 1, "Try": 1}
3
16
3
["conda_match_spec.parse_spec_str", "spec.get", "CondaDepInfo"]
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._package_deps_py.PackageDepsConda.add_dep", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053458_Sema4AI_actions.common.s...
The function (add_dep) defined within the public class called CondaDeps.The function start at line 30 and ends at 45. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [30.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called in...
Sema4AI_actions
CondaDepInfo
public
0
0
get_dep_vspec
def get_dep_vspec(self, spec_name: str) -> conda_version.VersionSpec | None:conda_dep_info = self._deps.get(spec_name)if conda_dep_info is None:return Nonereturn conda_dep_info.get_dep_vspec()
2
5
2
38
0
47
51
47
self
[]
conda_version.VersionSpec | None
{"Assign": 1, "Return": 2, "Try": 1}
1
6
1
["conda_version.VersionSpec"]
0
[]
The function (get_dep_vspec) defined within the public class called CondaDepInfo.The function start at line 47 and ends at 51. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [47.0] and does not return any value. It declare 1.0 function, and It has 1.0 functio...
Sema4AI_actions
CondaDeps
public
0
0
get_dep_range
def get_dep_range(self, spec_name: str) -> _RangeTypedDict:return self._deps[spec_name].dep_range
1
2
2
20
0
53
54
53
self,spec_name
[]
_RangeTypedDict
{"Return": 1}
0
2
0
[]
0
[]
The function (get_dep_range) defined within the public class called CondaDeps.The function start at line 53 and ends at 54. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [53.0] and does not return any value..
Sema4AI_actions
CondaDeps
public
0
0
iter_deps_infos
def iter_deps_infos(self) -> Iterator[CondaDepInfo]:yield from self._deps.values()
1
2
1
19
0
56
57
56
self
[]
Iterator[CondaDepInfo]
{"Expr": 1}
1
2
1
["self._deps.values"]
0
[]
The function (iter_deps_infos) defined within the public class called CondaDeps.The function start at line 56 and ends at 57. 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
Versions
public
1
1
__lt__
def __lt__(self, other):pass
1
2
2
8
0
26
27
26
self,other
[]
None
{}
0
2
0
[]
0
[]
The function (__lt__) defined within the public class called Versions, implement an interface, and it inherit another class.The function start at line 26 and ends at 27. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [26.0] and does not return any value..