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
unifyai_unify
Project
public
0
0
create
def create(self) -> None:create_project(self._project, overwrite=self._overwrite, api_key=self._api_key)
1
2
1
25
0
146
147
146
self
[]
None
{"Expr": 1}
1
2
1
["create_project"]
229
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.behaviour.concept.thing.entity.entity_steps_py.step_impl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.behaviour.concept.thin...
The function (create) defined within the public class called Project.The function start at line 146 and ends at 147. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside wh...
unifyai_unify
Project
public
0
0
delete
def delete(self):delete_project(self._project, api_key=self._api_key)
1
2
1
17
0
149
150
149
self
[]
None
{"Expr": 1}
1
2
1
["delete_project"]
303
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.behaviour.concept.thing.thing_steps_py.step_impl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.behaviour.concept.type.relatio...
The function (delete) defined within the public class called Project.The function start at line 149 and ends at 150. 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 wh...
unifyai_unify
Project
public
0
0
rename
def rename(self, new_name: str):rename_project(self._project, new_name, api_key=self._api_key)self._project = new_nameif self._entered:activate(self._project)
2
5
2
39
0
152
156
152
self,new_name
[]
None
{"Assign": 1, "Expr": 2, "If": 1}
2
5
2
["rename_project", "activate"]
50
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3685324_prologin_stechec2.tools.gendiff_py.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_transform_py.RenameTest._rename", "_.content.gdrive.MyDrive.Phd_T...
The function (rename) defined within the public class called Project.The function start at line 152 and ends at 156. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [152.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called in...
unifyai_unify
Project
public
0
0
__enter__
def __enter__(self):activate(self._project)if self._project not in list_projects(api_key=self._api_key) or self._overwrite:self.create()self._entered = True
3
5
1
40
0
158
162
158
self
[]
None
{"Assign": 1, "Expr": 2, "If": 1}
3
5
3
["activate", "list_projects", "self.create"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Project.The function start at line 158 and ends at 162. It contains 5 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called ins...
unifyai_unify
Project
public
0
0
__exit__
def __exit__(self, exc_type, exc_val, exc_tb):deactivate()self._entered = False
1
3
4
19
0
164
166
164
self,exc_type,exc_val,exc_tb
[]
None
{"Assign": 1, "Expr": 1}
1
3
1
["deactivate"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Project.The function start at line 164 and ends at 166. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [164.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ins...
unifyai_unify
public
public
0
0
create_assistant
def create_assistant(*,first_name: Optional[str] = None,surname: Optional[str] = None,age: Optional[int] = None,weekly_limit: Optional[float] = None,max_parallel: Optional[int] = None,region: Optional[str] = None,profile_photo: Optional[str] = None,profile_video: Optional[str] = None,about: Optional[str] = None,country...
3
44
18
310
3
8
56
8
first_name,surname,age,weekly_limit,max_parallel,region,profile_photo,profile_video,about,country,email,voice_id,user_phone,user_whatsapp_number,create_infra,phone,pre_hire_chat,api_key
['headers', 'payload', 'response']
Dict[str, Any]
{"Assign": 4, "Expr": 1, "Return": 1}
4
49
4
["_create_request_header", "payload.items", "http.post", "response.json"]
0
[]
The function (create_assistant) defined within the public class called public.The function start at line 8 and ends at 56. It contains 44 lines of code and it has a cyclomatic complexity of 3. It takes 18 parameters, represented as [8.0] and does not return any value. It declares 4.0 functions, and It has 4.0 function...
unifyai_unify
public
public
0
0
list_assistants
def list_assistants(*,phone: Optional[str] = None,email: Optional[str] = None,api_key: Optional[str] = None,) -> List[Dict[str, Any]]:"""List all assistants. Returns the API response JSON.Optional filters: phone, email."""headers = _create_request_header(api_key)params = {"phone": phone, "email": email}params = {k: v f...
3
11
3
109
3
59
76
59
phone,email,api_key
['headers', 'response', 'params']
List[Dict[str, Any]]
{"Assign": 4, "Expr": 1, "Return": 1}
4
18
4
["_create_request_header", "params.items", "http.get", "response.json"]
0
[]
The function (list_assistants) defined within the public class called public.The function start at line 59 and ends at 76. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [59.0] and does not return any value. It declares 4.0 functions, and It has 4.0 function...
unifyai_unify
public
public
0
0
update_assistant
def update_assistant(assistant_id: Union[int, str],*,first_name: Optional[str] = None,surname: Optional[str] = None,age: Optional[int] = None,weekly_limit: Optional[float] = None,max_parallel: Optional[int] = None,region: Optional[str] = None,profile_photo: Optional[str] = None,profile_video: Optional[str] = None,about...
3
49
19
317
3
79
132
79
assistant_id,first_name,surname,age,weekly_limit,max_parallel,region,profile_photo,profile_video,about,country,email,voice_id,user_phone,user_whatsapp_number,create_infra,phone,pre_hire_chat,api_key
['headers', 'payload', 'response']
Dict[str, Any]
{"Assign": 4, "Expr": 1, "Return": 1}
4
54
4
["_create_request_header", "payload.items", "http.patch", "response.json"]
0
[]
The function (update_assistant) defined within the public class called public.The function start at line 79 and ends at 132. It contains 49 lines of code and it has a cyclomatic complexity of 3. It takes 19 parameters, represented as [79.0] and does not return any value. It declares 4.0 functions, and It has 4.0 funct...
unifyai_unify
public
public
0
0
delete_assistant
def delete_assistant(assistant_id: Union[int, str],*,api_key: Optional[str] = None,) -> Dict[str, Any]:"""Delete an assistant by id. Returns the API response JSON."""headers = _create_request_header(api_key)response = http.delete(f"{BASE_URL}/assistant/{assistant_id}",headers=headers,)return response.json()
1
11
2
58
2
135
149
135
assistant_id,api_key
['headers', 'response']
Dict[str, Any]
{"Assign": 2, "Expr": 1, "Return": 1}
3
15
3
["_create_request_header", "http.delete", "response.json"]
0
[]
The function (delete_assistant) defined within the public class called public.The function start at line 135 and ends at 149. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [135.0] and does not return any value. It declares 3.0 functions, and It has 3.0 func...
unifyai_unify
public
public
0
0
_to_raw_data
def _to_raw_data(x: Dict[str, Any]):return x["data"] if "data" in x and len(x) == 1 else x
3
2
1
30
0
16
17
16
x
[]
Returns
{"Return": 1}
1
2
1
["len"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.dataset_py.Dataset.data"]
The function (_to_raw_data) defined within the public class called public.The function start at line 16 and ends at 17. It contains 2 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called in...
unifyai_unify
Dataset
public
0
1
__init__
def __init__(self,data: Optional[Any] = None,*,name: str = None,allow_duplicates: bool = False,api_key: Optional[str] = None,) -> None:"""Initialize a local dataset.Args:data: The data for populating the dataset.This needs to be a list of JSON serializable objects.name: The name of the dataset. To create a dataset for ...
6
26
5
140
0
21
65
21
self,data,name,allow_duplicates,api_key
[]
None
{"Assign": 6, "Expr": 2, "If": 2}
9
45
9
["isinstance", "list", "isinstance", "_validate_api_key", "isinstance", "unify.Log", "isinstance", "__init__", "super"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Dataset, that inherit another class.The function start at line 21 and ends at 65. It contains 26 lines of code and it has a cyclomatic complexity of 6. It takes 5 parameters, represented as [21.0] and does not return any value. It declares 9.0 functions, It...
unifyai_unify
Dataset
public
0
1
name
def name(self) -> str:"""Name of the dataset."""return self._name
1
2
1
12
0
68
72
68
self
[]
str
{"Expr": 1, "Return": 1}
0
5
0
[]
13
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3594492_mangroveorg_mangrove.mangrove.form_model.tests.test_form_model_py.FormModelTest._create_form_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3594492_mangroveorg_mangrove.mangrove.form_model.tests.test_...
The function (name) defined within the public class called Dataset, that inherit another class.The function start at line 68 and ends at 72. 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 13.0 functions calling this fu...
unifyai_unify
Dataset
public
0
1
allow_duplicates
def allow_duplicates(self) -> bool:"""Whether to allow duplicates in the dataset."""return self._allow_duplicates
1
2
1
12
0
75
79
75
self
[]
bool
{"Expr": 1, "Return": 1}
0
5
0
[]
0
[]
The function (allow_duplicates) defined within the public class called Dataset, that inherit another class.The function start at line 75 and ends at 79. 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..
unifyai_unify
Dataset
public
0
1
data
def data(self):"""Dataset entries."""return [_to_raw_data(l.entries) for l in self._logs]
2
2
1
21
0
82
86
82
self
[]
Returns
{"Expr": 1, "Return": 1}
1
5
1
["_to_raw_data"]
49
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudObjFilterModel._index_hasfield", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudObjFilterModel._index_haspart"...
The function (data) defined within the public class called Dataset, that inherit another class.The function start at line 82 and ends at 86. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1...
unifyai_unify
Dataset
public
0
1
_set_data
def _set_data(self, data):self._logs = [unify.Log(**(entry if isinstance(entry, dict) else {"data": entry}))for entry in data]
3
5
2
39
0
88
92
88
self,data
[]
None
{"Assign": 1}
2
5
2
["unify.Log", "isinstance"]
0
[]
The function (_set_data) defined within the public class called Dataset, that inherit another class.The function start at line 88 and ends at 92. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [88.0] and does not return any value. It declares 2.0 functions, an...
unifyai_unify
Dataset
public
0
1
set_name
def set_name(self, name: str) -> Self:"""Set the name of the dataset.Args:name: The name to set the dataset to.Returns:This dataset, useful for chaining methods."""self._name = namereturn self
1
3
2
19
0
94
105
94
self,name
[]
Self
{"Assign": 1, "Expr": 1, "Return": 1}
0
12
0
[]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.plugins.docker_py.DockerNetworkNamespace.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_logging.test_dataset_py.TestDatasetManipulation.tes...
The function (set_name) defined within the public class called Dataset, that inherit another class.The function start at line 94 and ends at 105. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [94.0] and does not return any value. It has 3.0 functions calling ...
unifyai_unify
Dataset
public
0
1
set_allow_duplicates
def set_allow_duplicates(self, allow_duplicates: bool) -> Self:"""Set whether to allow duplicates in the dataset.Args:allow_duplicates: Whether to allow duplicates in the dataset.Returns:This dataset, useful for chaining methods."""self._allow_duplicates = allow_duplicatesreturn self
1
3
2
19
0
107
118
107
self,allow_duplicates
[]
Self
{"Assign": 1, "Expr": 1, "Return": 1}
0
12
0
[]
0
[]
The function (set_allow_duplicates) defined within the public class called Dataset, that inherit another class.The function start at line 107 and ends at 118. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [107.0] and does not return any value..
unifyai_unify
Dataset
public
0
1
from_upstream
def from_upstream(name: str,api_key: Optional[str] = None,) -> Dataset:"""Initialize a local dataset from the upstream dataset.Args:name: The name of the dataset.api_key: API key for accessing the Unify API. If None, it attempts toretrieve the API key from the environment variable UNIFY_KEY. Defaults toNone.Returns:The...
1
10
2
48
0
121
146
121
name,api_key
[]
Dataset
{"Assign": 1, "Expr": 1, "Return": 1}
2
26
2
["unify.download_dataset", "Dataset"]
0
[]
The function (from_upstream) defined within the public class called Dataset, that inherit another class.The function start at line 121 and ends at 146. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [121.0] and does not return any value. It declares 2.0 funct...
unifyai_unify
Dataset
public
0
1
_assert_name_exists
def _assert_name_exists(self) -> None:assert self._name is not None, ("Dataset name must be specified in order to upload, download, sync or ""compare to a corresponding dataset in your upstream account. ""You can simply use .set_name() and set it to the same name as your ""upstream dataset, or create a new name if it d...
1
7
1
21
0
148
154
148
self
[]
None
{}
0
7
0
[]
0
[]
The function (_assert_name_exists) defined within the public class called Dataset, that inherit another class.The function start at line 148 and ends at 154. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
unifyai_unify
Dataset
public
0
1
upload
def upload(self, overwrite: bool = False) -> Self:"""Uploads all unique local data in the dataset to the user account upstream.This function will not download any uniques from upstream.Use `sync` to synchronize and superset the datasets in both directions.Set `overwrite=True` to disregard any pre-existing upstream data...
1
12
2
65
0
156
179
156
self,overwrite
[]
Self
{"Assign": 1, "Expr": 2, "Return": 1}
4
24
4
["self._assert_name_exists", "unify.upload_dataset", "len", "len"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517196_debian_dput_ng.tests.test_upload_py.test_double_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517196_debian_dput_ng.tests.test_upload_py.test_ppa_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Datas...
The function (upload) defined within the public class called Dataset, that inherit another class.The function start at line 156 and ends at 179. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [156.0] and does not return any value. It declares 4.0 functions, I...
unifyai_unify
Dataset
public
0
1
download
def download(self, overwrite: bool = False) -> Self:"""Downloads all unique upstream data from the user account to the local dataset.This function will not upload any unique values stored locally.Use `sync` to synchronize and superset the datasets in both directions.Set `overwrite=True` to disregard any pre-existing da...
14
32
2
237
0
181
226
181
self,overwrite
[]
Self
{"Assign": 12, "AugAssign": 1, "Expr": 5, "For": 1, "If": 6, "Return": 2}
15
46
15
["self._assert_name_exists", "unify.get_contexts", "list", "unify.download_dataset", "set", "json.dumps", "set", "json.dumps", "set", "list", "json.dumps", "local_values.union", "new_data.append", "upstream_values.add", "local_log.set_id"]
48
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.update_py.download_by_tag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.update_py.download_latest", "_.content.gd...
The function (download) defined within the public class called Dataset, that inherit another class.The function start at line 181 and ends at 226. It contains 32 lines of code and it has a cyclomatic complexity of 14. It takes 2 parameters, represented as [181.0] and does not return any value. It declares 15.0 function...
unifyai_unify
Dataset
public
0
1
sync
def sync(self) -> Self:"""Synchronize the dataset in both directions, downloading any values missinglocally, and uploading any values missing from upstream in the account.Returns:This dataset after the in-place sync, useful for chaining methods."""self.upload()self.download(overwrite=True)return self
1
4
1
23
0
228
238
228
self
[]
Self
{"Expr": 3, "Return": 1}
2
11
2
["self.upload", "self.download"]
15
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.DEC_MMFM.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.IBMTrack.fm_master_track", ...
The function (sync) defined within the public class called Dataset, that inherit another class.The function start at line 228 and ends at 238. 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 declares 2.0 functions, It has 2...
unifyai_unify
Dataset
public
0
1
upstream_diff
def upstream_diff(self) -> Self:"""Prints the difference between the local dataset and the upstream dataset.Returns:This dataset after printing the diff, useful for chaining methods."""self._assert_name_exists()upstream_dataset = unify.download_dataset(name=self._name,api_key=self._api_key,)unique_upstream = [item["ent...
5
19
1
104
0
240
264
240
self
[]
Self
{"Assign": 3, "Expr": 4, "Return": 1}
8
25
8
["self._assert_name_exists", "unify.download_dataset", "print", "format", "len", "print", "format", "len"]
0
[]
The function (upstream_diff) defined within the public class called Dataset, that inherit another class.The function start at line 240 and ends at 264. It contains 19 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 8.0 functions...
unifyai_unify
Dataset
public
0
1
add
def add(self,other: Union[Dataset,str,Dict,Prompt,int,List[Union[str, Dict, Prompt]],],) -> Self:"""Adds another dataset to this one, return a new Dataset instance, with thisnew dataset receiving all unique queries from the other added dataset.Args:other: The other dataset being added to this one.Returns:The new datase...
5
16
2
94
0
266
291
266
self,other
[]
Self
{"Assign": 2, "Expr": 1, "If": 1, "Return": 2}
3
26
3
["isinstance", "Dataset", "Dataset"]
294
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.21593641_openforcefield_openff_fragmenter.openff.fragmenter._tests.utils_py.value_smarts_to_map_indices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.21593641_openforcefield_openff_fragmenter.openff.fragmenter.fra...
The function (add) defined within the public class called Dataset, that inherit another class.The function start at line 266 and ends at 291. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [266.0] and does not return any value. It declares 3.0 functions, It h...
unifyai_unify
Dataset
public
0
1
sub
def sub(self,other: Union[Dataset, str, Dict, Prompt, List[Union[str, Dict, Prompt]]],) -> Self:"""Subtracts another dataset from this one, return a new Dataset instance, withthis new dataset losing all queries from the other subtracted dataset.Args:other: The other dataset being added to this one.Returns:The new datas...
4
11
2
87
0
293
313
293
self,other
[]
Self
{"Assign": 2, "Expr": 1, "Return": 1}
3
21
3
["isinstance", "Dataset", "Dataset"]
29
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.humanity_py.humanity", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3576232_vmware_liota.liota.lib.utilities.si_unit_py._get_unit_name", "_.content.gdrive.MyDrive.Phd_Thesis....
The function (sub) defined within the public class called Dataset, that inherit another class.The function start at line 293 and ends at 313. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [293.0] and does not return any value. It declares 3.0 functions, It h...
unifyai_unify
Dataset
public
0
1
inplace_add
def inplace_add(self,other: Union[Dataset,str,Dict,Prompt,int,List[Union[str, Dict, Prompt]],],) -> Self:"""Adds another dataset to this one, with this dataset receiving all unique queriesfrom the other added dataset.Args:other: The other dataset being added to this one.Returns:This dataset following the in-place addit...
5
16
2
85
0
315
340
315
self,other
[]
Self
{"Assign": 2, "Expr": 1, "If": 1, "Return": 2}
2
26
2
["isinstance", "Dataset"]
0
[]
The function (inplace_add) defined within the public class called Dataset, that inherit another class.The function start at line 315 and ends at 340. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [315.0] and does not return any value. It declares 2.0 functio...
unifyai_unify
Dataset
public
0
1
inplace_sub
def inplace_sub(self,other: Union[Dataset, str, Dict, Prompt, List[Union[str, Dict, Prompt]]],) -> Self:"""Subtracts another dataset from this one, with this dataset losing all queriesfrom the other subtracted dataset.Args:other: The other dataset being added to this one.Returns:This dataset following the in-place subt...
4
11
2
78
0
342
362
342
self,other
[]
Self
{"Assign": 2, "Expr": 1, "Return": 1}
2
21
2
["isinstance", "Dataset"]
0
[]
The function (inplace_sub) defined within the public class called Dataset, that inherit another class.The function start at line 342 and ends at 362. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [342.0] and does not return any value. It declares 2.0 functio...
unifyai_unify
Dataset
public
0
1
__add__
def __add__(self,other: Union[Dataset, str, Dict, Prompt, List[Union[str, Dict, Prompt]]],) -> Self:"""Adds another dataset to this one via the + operator, return a new Datasetinstance, with this new dataset receiving all unique queries from the otheradded dataset.Args:other: The other dataset being added to this one.R...
1
5
2
41
0
364
379
364
self,other
[]
Self
{"Expr": 1, "Return": 1}
1
16
1
["self.add"]
7
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.quantity_py.Quantity.__add__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.uncertainquantity_py.Uncerta...
The function (__add__) defined within the public class called Dataset, that inherit another class.The function start at line 364 and ends at 379. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [364.0] and does not return any value. It declare 1.0 function, It ...
unifyai_unify
Dataset
public
0
1
__radd__
def __radd__(self,other: Union[Dataset,str,Dict,Prompt,int,List[Union[str, Dict, Prompt]],],) -> Self:"""Adds another dataset to this one via the + operator, this is used if theother item does not have a valid __add__ method for these two types. Return anew Dataset instance, with this new dataset receiving all unique q...
2
14
2
54
0
381
406
381
self,other
[]
Self
{"Expr": 1, "If": 1, "Return": 2}
2
26
2
["add", "Dataset"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.dateutil.relativedelta_py.relativedelta.__rsub__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.quantity_py.Quantity.__ra...
The function (__radd__) defined within the public class called Dataset, that inherit another class.The function start at line 381 and ends at 406. It contains 14 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [381.0] and does not return any value. It declares 2.0 functions,...
unifyai_unify
Dataset
public
0
1
__iadd__
def __iadd__(self,other: Union[Dataset, str, Dict, Prompt, List[Union[str, Dict, Prompt]]],) -> Self:"""Adds another dataset to this one, with this dataset receiving all unique queriesfrom the other added dataset.Args:other: The other dataset being added to this one.Returns:This dataset following the in-place addition....
1
5
2
41
0
408
422
408
self,other
[]
Self
{"Expr": 1, "Return": 1}
1
15
1
["self.inplace_add"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3538486_freenas_corral_build.build.lib.dsl_py.ConfigArray.__iadd__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.quantity_py.Quantity.__iadd__", "_.content.gd...
The function (__iadd__) defined within the public class called Dataset, that inherit another class.The function start at line 408 and ends at 422. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [408.0] and does not return any value. It declare 1.0 function, It...
unifyai_unify
Dataset
public
0
1
__sub__
def __sub__(self,other: Union[Dataset, str, Dict, Prompt, List[Union[str, Dict, Prompt]]],) -> Self:"""Subtracts another dataset from this one via the - operator, return a new Datasetinstance, with this new dataset losing all queries from the other subtracteddataset.Args:other: The other dataset being subtracted from t...
1
5
2
41
0
424
439
424
self,other
[]
Self
{"Expr": 1, "Return": 1}
1
16
1
["self.sub"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.quantity_py.Quantity.__sub__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.uncertainquantity_py.Uncerta...
The function (__sub__) defined within the public class called Dataset, that inherit another class.The function start at line 424 and ends at 439. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [424.0] and does not return any value. It declare 1.0 function, It ...
unifyai_unify
Dataset
public
0
1
__rsub__
def __rsub__(self,other: Union[Dataset, str, Dict, Prompt, List[Union[str, Dict, Prompt]]],) -> Self:"""Subtracts another dataset from this one via the - operator, this is used if theother item does not have a valid __sub__ method for these two types. Return anew Dataset instance, with this new dataset losing all queri...
1
5
2
44
0
441
457
441
self,other
[]
Self
{"Expr": 1, "Return": 1}
2
17
2
["sub", "Dataset"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.quantity_py.Quantity.__rsub__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.unitquantity_py.UnitQuantit...
The function (__rsub__) defined within the public class called Dataset, that inherit another class.The function start at line 441 and ends at 457. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [441.0] and does not return any value. It declares 2.0 functions, ...
unifyai_unify
Dataset
public
0
1
__isub__
def __isub__(self,other: Union[Dataset, str, Dict, Prompt, List[Union[str, Dict, Prompt]]],) -> Self:"""Subtracts another dataset from this one, with this dataset losing all queriesfrom the other subtracted dataset.Args:other: The other dataset being added to this one.Returns:This dataset following the in-place subtrac...
1
5
2
41
0
459
473
459
self,other
[]
Self
{"Expr": 1, "Return": 1}
1
15
1
["self.inplace_sub"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694013_python_quantities_python_quantities.quantities.quantity_py.Quantity.__isub__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.MutableSetRole.__isub__"]
The function (__isub__) defined within the public class called Dataset, that inherit another class.The function start at line 459 and ends at 473. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [459.0] and does not return any value. It declare 1.0 function, It...
unifyai_unify
Dataset
public
0
1
__iter__
def __iter__(self) -> Any:"""Iterates through the dataset, return one instance at a time.Returns:The next instance in the dataset."""for l in self._logs:yield l
2
3
1
17
0
475
483
475
self
[]
Any
{"Expr": 2, "For": 1}
0
9
0
[]
19
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList._to_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720205_maxtepkeev_python_redmine.redminelib.resultsets_py.ResourceSet.__iter__", ...
The function (__iter__) defined within the public class called Dataset, that inherit another class.The function start at line 475 and ends at 483. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It has 19.0 functions calling t...
unifyai_unify
Dataset
public
0
1
__contains__
def __contains__(self,item: Union[Dataset, str, Dict, Prompt, List[Union[str, Dict, Prompt]]],) -> bool:"""Determine whether the item is contained within the dataset. The item is cast toa Dataset instance, and can therefore take on many different types. Only returnsTrue if *all* entries in the passed dataset are contai...
10
28
2
181
0
485
524
485
self,item
[]
bool
{"Assign": 5, "Expr": 1, "Return": 1}
12
40
12
["isinstance", "Dataset", "json.dumps", "items", "l.to_json", "json.dumps", "items", "l.to_json", "set", "set", "len", "len"]
12
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640866_pelagicore_qface.tests.test_tags_py.test_merge_empty_annotation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3677969_eventbrite_pysoa.pysoa.server.internal.types_py.SwitchSet.__contains__", "_.content.gdr...
The function (__contains__) defined within the public class called Dataset, that inherit another class.The function start at line 485 and ends at 524. It contains 28 lines of code and it has a cyclomatic complexity of 10. It takes 2 parameters, represented as [485.0] and does not return any value. It declares 12.0 func...
unifyai_unify
Dataset
public
0
1
__len__
def __len__(self) -> int:"""Returns the number of entries contained within the dataset.Returns:The number of entries in the dataset."""return len(self._logs)
1
2
1
15
0
526
533
526
self
[]
int
{"Expr": 1, "Return": 1}
1
8
1
["len"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3576232_vmware_liota.packages.examples.kura.kura_integrate_iotcc_py.sub_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69765524_openshift_elliott.elliottlib.model_py.ListModel.__getitem__", "_.content.gdri...
The function (__len__) defined within the public class called Dataset, that inherit another class.The function start at line 526 and ends at 533. 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 ...
unifyai_unify
Dataset
public
0
1
__getitem__
def __getitem__(self, item: Union[int, slice]) -> Union[Any, Dataset]:"""Gets an item from the dataset, either via an int or slice. In the case of anint, then a data instance is returned, and for a slice a Dataset instance isreturned.Args:item: integer or slice for extraction.Returns:An individual item or Dataset slice...
3
9
2
82
0
535
554
535
self,item
[]
Union[Any, Dataset]
{"Expr": 1, "If": 2, "Return": 2}
6
20
6
["isinstance", "isinstance", "Dataset", "TypeError", "format", "type"]
37
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.AbstractForeignList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.ForeignList.__g...
The function (__getitem__) defined within the public class called Dataset, that inherit another class.The function start at line 535 and ends at 554. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [535.0] and does not return any value. It declares 6.0 function...
unifyai_unify
Dataset
public
0
1
__setitem__
def __setitem__(self, item: Union[int, slice], value: Union[Any, Dataset]):if isinstance(item, int):if isinstance(value, unify.Log):self._logs[item] = valueelse:self._logs[item] = unify.Log(**(value if isinstance(value, dict) else {"data": value}),)elif isinstance(item, slice):self._logs[item.start : item.stop : item.s...
8
21
3
156
0
556
576
556
self,item,value
[]
None
{"Assign": 3, "If": 3}
9
21
9
["isinstance", "isinstance", "unify.Log", "isinstance", "isinstance", "isinstance", "unify.Log", "isinstance", "TypeError"]
27
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.output.__init___py.Object.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList.__setitem__", "_.cont...
The function (__setitem__) defined within the public class called Dataset, that inherit another class.The function start at line 556 and ends at 576. It contains 21 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [556.0] and does not return any value. It declares 9.0 functio...
unifyai_unify
Dataset
public
0
1
__repr__
def __repr__(self):return f"unify.Dataset({self.data}, name='{self._name}')"
1
2
1
8
0
578
579
578
self
[]
Returns
{"Return": 1}
0
2
0
[]
22
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3678342_kieranjol_ifiscripts.Objects_py.OtherNSElementList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.model.elfi_model_py.RandomVariable.__repr__", "_.content.gdrive.MyDrive....
The function (__repr__) defined within the public class called Dataset, that inherit another class.The function start at line 578 and ends at 579. 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 22.0 functions calli...
unifyai_unify
public
public
0
0
_validate_mode
def _validate_mode(mode: str) -> None:assert mode in ("both","read","write",), f"mode must be one of 'read', 'write', or 'both', but found {mode}"
1
6
1
23
0
39
44
39
mode
[]
None
{}
0
6
0
[]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.ColumnContext.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesi...
The function (_validate_mode) defined within the public class called public.The function start at line 39 and ends at 44. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 5.0 functions calling this function which are ["_...
unifyai_unify
public
public
0
0
_validate_mode_nesting
def _validate_mode_nesting(parent_mode: str, child_mode: str) -> None:if not (parent_mode in ("both", child_mode)):raise Exception(f"Cannot nest context with mode '{child_mode}' under parent with mode '{parent_mode}'",)
2
5
2
32
0
47
51
47
parent_mode,child_mode
[]
None
{"If": 1}
1
5
1
["Exception"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.ColumnContext.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Context.__enter__", "_.content.gdrive.MyDrive.Phd_The...
The function (_validate_mode_nesting) defined within the public class called public.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, It has 1.0 function ...
unifyai_unify
Log
public
0
0
__init__
def __init__(self,*,id: int = None,_future=None,ts: Optional[datetime] = None,project: Optional[str] = None,context: Optional[str] = None,api_key: Optional[str] = None,params: Dict[str, Tuple[str, Any]] = None,**entries,):self._id = idself._future = _futureself._ts = tsself._project = projectself._context = contextself...
1
20
9
116
0
56
75
56
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 56 and ends at 75. It contains 20 lines of code and it has a cyclomatic complexity of 1. It takes 9 parameters, represented as [56.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside wh...
unifyai_unify
Log
public
0
0
set_id
def set_id(self, id: int) -> None:self._id = id
1
2
2
16
0
79
80
79
self,id
[]
None
{"Assign": 1}
0
2
0
[]
0
[]
The function (set_id) defined within the public class called Log.The function start at line 79 and ends at 80. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [79.0] and does not return any value..
unifyai_unify
Log
public
0
0
context
def context(self) -> Optional[str]:return self._context
1
2
1
14
0
85
86
85
self
[]
Optional[str]
{"Return": 1}
0
2
0
[]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3930626_frescobaldi_python_ly.ly.musicxml.lymus2musxml_py.ParseSource.With", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3930626_frescobaldi_python_ly.ly.pitch.abs2rel_py.abs2rel", "_.content.gdrive.MyDrive.Phd_Th...
The function (context) defined within the public class called Log.The function start at line 85 and ends at 86. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 10.0 functions calling this function which are ["_.content....
unifyai_unify
Log
public
0
0
id
def id(self) -> int:if self._id is None and self._future is not None and self._future.done():self._id = self._future.result()return self._id
4
4
1
44
0
89
92
89
self
[]
int
{"Assign": 1, "If": 1, "Return": 1}
2
4
2
["self._future.done", "self._future.result"]
306
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.tests.test_message_py.MessageTestCase.test_copy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.tests.test_message_py.MessageTestCase.test_copy_defaults", "_.content.gdrive....
The function (id) defined within the public class called Log.The function start at line 89 and ends at 92. 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. It declares 2.0 functions, It has 2.0 functions called inside which are...
unifyai_unify
Log
public
0
0
ts
def ts(self) -> Optional[datetime]:return self._ts
1
2
1
14
0
95
96
95
self
[]
Optional[datetime]
{"Return": 1}
0
2
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.dataset.test_stat_py.DatasetStatisticsExceptions.test_dataset_statistics_exceptions"]
The function (ts) defined within the public class called Log.The function start at line 95 and ends at 96. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 1.0 function calling this function which is ["_.content.gdrive.M...
unifyai_unify
Log
public
0
0
entries
def entries(self) -> Dict[str, Any]:return self._entries
1
2
1
16
0
99
100
99
self
[]
Dict[str, Any]
{"Return": 1}
0
2
0
[]
0
[]
The function (entries) defined within the public class called Log.The function start at line 99 and ends at 100. 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..
unifyai_unify
Log
public
0
0
params
def params(self) -> Dict[str, Tuple[str, Any]]:return self._params
1
2
1
21
0
103
104
103
self
[]
Dict[str, Tuple[str, Any]]
{"Return": 1}
0
2
0
[]
7
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95370884_digitalaotearoa_openfisca_aotearoa.openfisca_aotearoa.variables.acts.income_tax.family_scheme.family_tax_credit_py.family_tax_credit__eldest.formula_2007_11_01", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_...
The function (params) defined within the public class called Log.The function start at line 103 and ends at 104. 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 7.0 functions calling this function which are ["_.content....
unifyai_unify
Log
public
0
0
__eq__
def __eq__(self, other: Union[dict, Log]) -> bool:if isinstance(other, dict):other = Log(id=other["id"], **other["entries"])if self._id is not None and other._id is not None:return self._id == other._idreturn self.to_json() == other.to_json()
4
6
2
76
0
108
113
108
self,other
[]
bool
{"Assign": 1, "If": 2, "Return": 2}
4
6
4
["isinstance", "Log", "self.to_json", "other.to_json"]
21
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.DAM.__eq__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.IDAM.__eq__", "_.content.gdrive.My...
The function (__eq__) defined within the public class called Log.The function start at line 108 and ends at 113. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [108.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside...
unifyai_unify
Log
public
0
0
__len__
def __len__(self):return len(self._entries) + len(self._params)
1
2
1
19
0
115
116
115
self
[]
Returns
{"Return": 1}
2
2
2
["len", "len"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3576232_vmware_liota.packages.examples.kura.kura_integrate_iotcc_py.sub_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69765524_openshift_elliott.elliottlib.model_py.ListModel.__getitem__", "_.content.gdri...
The function (__len__) defined within the public class called Log.The function start at line 115 and ends at 116. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called insid...
unifyai_unify
Log
public
0
0
__repr__
def __repr__(self) -> str:return f"Log(id={self._id})"
1
2
1
10
0
118
119
118
self
[]
str
{"Return": 1}
0
2
0
[]
22
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3678342_kieranjol_ifiscripts.Objects_py.OtherNSElementList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.model.elfi_model_py.RandomVariable.__repr__", "_.content.gdrive.MyDrive....
The function (__repr__) defined within the public class called Log.The function start at line 118 and ends at 119. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 22.0 functions calling this function which are ["_.conte...
unifyai_unify
Log
public
0
0
download
def download(self):# If id is not yet resolved, wait for the futureif self._id is None and self._future is not None:self._id = self._future.result(timeout=5)log = get_log_by_id(id=self._id, api_key=self._api_key)self._params = log._paramsself._entries = log._entries
3
6
1
63
0
123
129
123
self
[]
None
{"Assign": 4, "If": 1}
2
7
2
["self._future.result", "get_log_by_id"]
48
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.update_py.download_by_tag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.update_py.download_latest", "_.content.gd...
The function (download) defined within the public class called Log.The function start at line 123 and ends at 129. It contains 6 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside w...
unifyai_unify
Log
public
0
0
add_entries
def add_entries(self, **entries) -> None:add_log_entries(logs=self._id,context=self._context,api_key=self._api_key,**entries,)self._entries = {**self._entries, **entries}
1
8
2
47
0
131
138
131
self,**entries
[]
None
{"Assign": 1, "Expr": 1}
1
8
1
["add_log_entries"]
0
[]
The function (add_entries) defined within the public class called Log.The function start at line 131 and ends at 138. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [131.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called...
unifyai_unify
Log
public
0
0
update_entries
def update_entries(self, **entries) -> None:update_logs(logs=self._id,api_key=self._api_key,context=self._context,entries=entries,overwrite=True,)self._entries = {**self._entries, **entries}
1
9
2
52
0
140
148
140
self,**entries
[]
None
{"Assign": 1, "Expr": 1}
1
9
1
["update_logs"]
0
[]
The function (update_entries) defined within the public class called Log.The function start at line 140 and ends at 148. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [140.0] and does not return any value. It declare 1.0 function, and It has 1.0 function cal...
unifyai_unify
Log
public
0
0
delete_entries
def delete_entries(self,keys_to_delete: List[str],) -> None:for key in keys_to_delete:delete_log_fields(field=key, logs=self._id, api_key=self._api_key)del self._entries[key]
2
7
2
45
0
150
156
150
self,keys_to_delete
[]
None
{"Expr": 1, "For": 1}
1
7
1
["delete_log_fields"]
0
[]
The function (delete_entries) defined within the public class called Log.The function start at line 150 and ends at 156. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [150.0] and does not return any value. It declare 1.0 function, and It has 1.0 function cal...
unifyai_unify
Log
public
0
0
delete
def delete(self) -> None:delete_logs(logs=self._id, api_key=self._api_key)
1
2
1
21
0
158
159
158
self
[]
None
{"Expr": 1}
1
2
1
["delete_logs"]
303
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.behaviour.concept.thing.thing_steps_py.step_impl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.behaviour.concept.type.relatio...
The function (delete) defined within the public class called Log.The function start at line 158 and ends at 159. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which ...
unifyai_unify
Log
public
0
0
to_json
def to_json(self):return {"id": self._id,"ts": self._ts,"project": self._project,"context": self._context,"entries": self._entries,"params": self._params,}
1
9
1
44
0
161
169
161
self
[]
Returns
{"Return": 1}
0
9
0
[]
67
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.typedb.api.answer.concept_map_py.ConceptMap.to_json", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.parser_py.ASTObject", "_.content.gdrive.MyDri...
The function (to_json) defined within the public class called Log.The function start at line 161 and ends at 169. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 67.0 functions calling this function which are ["_.co...
unifyai_unify
Log
public
0
0
from_json
def from_json(state):entries = state["entries"]del state["entries"]state = {**state, **entries}return Log(**state)
1
5
1
31
0
172
176
172
state
[]
Returns
{"Assign": 2, "Return": 1}
1
5
1
["Log"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.oauth2client.client_py.Credentials.new_from_json", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.src.airflow.models.db_callback_requ...
The function (from_json) defined within the public class called Log.The function start at line 172 and ends at 176. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside...
unifyai_unify
Log
public
0
0
__enter__
def __enter__(self):lg = unify.log(project=self._project,new=True,api_key=self._api_key,**self._entries,)self._log_token = ACTIVE_LOG.set(ACTIVE_LOG.get() + [lg])self._active_log_set = Falseself._id = lg.idself._ts = lg.ts
1
11
1
70
0
180
190
180
self
[]
None
{"Assign": 5}
3
11
3
["unify.log", "ACTIVE_LOG.set", "ACTIVE_LOG.get"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Log.The function start at line 180 and ends at 190. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside...
unifyai_unify
Log
public
0
0
__exit__
def __exit__(self, exc_type, exc_val, exc_tb):if self._id is None and self._future is not None:self.download()ACTIVE_LOG.reset(self._log_token)
3
4
4
38
0
192
195
192
self,exc_type,exc_val,exc_tb
[]
None
{"Expr": 2, "If": 1}
2
4
2
["self.download", "ACTIVE_LOG.reset"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Log.The function start at line 192 and ends at 195. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [192.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called insi...
unifyai_unify
Log
public
0
0
__init__
def __init__(self, field, value: Union[List[unify.Log], "LogGroup"] = None):self.field = fieldself.value = value
1
3
4
33
0
199
201
199
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 199 and ends at 201. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [199.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside ...
unifyai_unify
Log
public
0
0
__repr__
def __repr__(self):return f"LogGroup(field={self.field}, value={self.value})"
1
2
1
8
0
203
204
203
self
[]
str
{"Return": 1}
0
2
0
[]
22
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3678342_kieranjol_ifiscripts.Objects_py.OtherNSElementList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.model.elfi_model_py.RandomVariable.__repr__", "_.content.gdrive.MyDrive....
The function (__repr__) defined within the public class called Log.The function start at line 203 and ends at 204. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 22.0 functions calling this function which are ["_.conte...
unifyai_unify
public
public
0
0
_join_path
def _join_path(base_path: str, context: str) -> str:return os.path.join(base_path,os.path.normpath(context),).replace("\\", "/")
1
5
2
39
0
207
211
207
base_path,context
[]
str
{"Return": 1}
3
5
3
["replace", "os.path.join", "os.path.normpath"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Context.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.set_context"]
The function (_join_path) defined within the public class called public.The function start at line 207 and ends at 211. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [207.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called...
unifyai_unify
public
public
0
0
set_context
def set_context(context: str,mode: str = "both",overwrite: bool = False,relative: bool = True,skip_create: bool = False,):if mode == "both":if relative:assert CONTEXT_WRITE.get() == CONTEXT_READ.get()context = _join_path(CONTEXT_WRITE.get(), context)CONTEXT_WRITE.set(context)CONTEXT_READ.set(context)else:CONTEXT_WRITE....
13
40
5
212
2
214
255
214
context,mode,overwrite,relative,skip_create
['context', 'context_exists_remote']
None
{"Assign": 4, "Expr": 10, "If": 10, "Return": 1}
20
42
20
["CONTEXT_WRITE.get", "CONTEXT_READ.get", "_join_path", "CONTEXT_WRITE.get", "CONTEXT_WRITE.set", "CONTEXT_READ.set", "CONTEXT_WRITE.set", "CONTEXT_READ.set", "_join_path", "CONTEXT_WRITE.get", "CONTEXT_WRITE.set", "CONTEXT_WRITE.set", "_join_path", "CONTEXT_READ.get", "CONTEXT_READ.set", "CONTEXT_READ.set", "unify.get...
19
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.src.airflow.utils.log.logging_mixin_py.set_context", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.utils.test_log_handlers_py.Test...
The function (set_context) defined within the public class called public.The function start at line 214 and ends at 255. It contains 40 lines of code and it has a cyclomatic complexity of 13. It takes 5 parameters, represented as [214.0] and does not return any value. It declares 20.0 functions, It has 20.0 functions c...
unifyai_unify
public
public
0
0
unset_context
def unset_context():CONTEXT_WRITE.set("")CONTEXT_READ.set("")
1
3
0
16
0
258
260
258
[]
None
{"Expr": 2}
2
3
2
["CONTEXT_WRITE.set", "CONTEXT_READ.set"]
0
[]
The function (unset_context) defined within the public class called public.The function start at line 258 and ends at 260. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions ca...
unifyai_unify
public
public
0
0
get_active_context
def get_active_context():return {"read": CONTEXT_READ.get(), "write": CONTEXT_WRITE.get()}
1
2
0
22
0
263
264
263
[]
Returns
{"Return": 1}
2
2
2
["CONTEXT_READ.get", "CONTEXT_WRITE.get"]
0
[]
The function (get_active_context) defined within the public class called public.The function start at line 263 and ends at 264. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 fun...
unifyai_unify
Log
public
0
0
__init__
def __init__(self,context: str,mode: str = "both",overwrite: bool = False,is_versioned: bool = True,):self._context = context_validate_mode(mode)self._mode = modeself._overwrite = overwriteself._is_versioned = is_versioned
1
12
5
52
0
268
279
268
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 268 and ends at 279. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [268.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside...
unifyai_unify
Log
public
0
0
__enter__
def __enter__(self):_validate_mode_nesting(CONTEXT_MODE.get(), self._mode)self._mode_token = CONTEXT_MODE.set(self._mode)if self._mode == "both":assert CONTEXT_WRITE.get() == CONTEXT_READ.get()self._context = _join_path(CONTEXT_WRITE.get(), self._context)self._context_write_token = CONTEXT_WRITE.set(self._context)self....
8
22
1
229
0
281
306
281
self
[]
None
{"Assign": 5}
3
11
3
["unify.log", "ACTIVE_LOG.set", "ACTIVE_LOG.get"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Log.The function start at line 281 and ends at 306. It contains 22 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside...
unifyai_unify
Log
public
0
0
__exit__
def __exit__(self, *args, **kwargs):if self._mode == "both":assert CONTEXT_WRITE.get() == CONTEXT_READ.get()CONTEXT_WRITE.reset(self._context_write_token)CONTEXT_READ.reset(self._context_read_token)elif self._mode == "write":CONTEXT_WRITE.reset(self._context_write_token)elif self._mode == "read":CONTEXT_READ.reset(self...
4
10
3
84
0
308
318
308
self,exc_type,exc_val,exc_tb
[]
None
{"Expr": 2, "If": 1}
2
4
2
["self.download", "ACTIVE_LOG.reset"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Log.The function start at line 308 and ends at 318. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [308.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called ins...
unifyai_unify
public
public
0
0
_join_path
def _join_path(self, base_path: str, context: str) -> str:return os.path.join(base_path,os.path.normpath(context),"",).replace("\\", "/")
1
6
3
43
0
322
327
322
base_path,context
[]
str
{"Return": 1}
3
5
3
["replace", "os.path.join", "os.path.normpath"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Context.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.set_context"]
The function (_join_path) defined within the public class called public.The function start at line 322 and ends at 327. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [322.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called...
unifyai_unify
Log
public
0
0
__init__
def __init__(self, context: str, mode: str = "both", overwrite: bool = False):self._col_context = context_validate_mode(mode)self._mode = modeself._overwrite = overwrite
1
5
4
40
0
329
333
329
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 329 and ends at 333. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [329.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside ...
unifyai_unify
Log
public
0
0
__enter__
def __enter__(self):_validate_mode_nesting(COLUMN_CONTEXT_MODE.get(), self._mode)self._mode_token = COLUMN_CONTEXT_MODE.set(self._mode)if self._mode in ("both", "write"):self._context_write_token = COLUMN_CONTEXT_WRITE.set(self._join_path(COLUMN_CONTEXT_WRITE.get(), self._col_context),)if self._mode in ("both", "read")...
6
17
1
143
0
335
354
335
self
[]
None
{"Assign": 5}
3
11
3
["unify.log", "ACTIVE_LOG.set", "ACTIVE_LOG.get"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Log.The function start at line 335 and ends at 354. It contains 17 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 3.0 functions, It has 3.0 functions called inside...
unifyai_unify
Log
public
0
0
__exit__
def __exit__(self, *args, **kwargs):if self._mode in ("both", "write"):COLUMN_CONTEXT_WRITE.reset(self._context_write_token)if self._mode in ("both", "read"):COLUMN_CONTEXT_READ.reset(self._context_read_token)COLUMN_CONTEXT_MODE.reset(self._mode_token)
3
6
3
57
0
356
361
356
self,exc_type,exc_val,exc_tb
[]
None
{"Expr": 2, "If": 1}
2
4
2
["self.download", "ACTIVE_LOG.reset"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Log.The function start at line 356 and ends at 361. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [356.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called insi...
unifyai_unify
Log
public
0
0
__init__
def __init__(self, mode: str = "both", overwrite: bool = False, **entries):self._entries = _handle_special_types(entries)_validate_mode(mode)self._mode = modeself._overwrite = overwrite
1
5
4
42
0
365
369
365
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 365 and ends at 369. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [365.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside ...
unifyai_unify
Log
public
0
0
__enter__
def __enter__(self):_validate_mode_nesting(ACTIVE_ENTRIES_MODE.get(), self._mode)self._mode_token = ACTIVE_ENTRIES_MODE.set(self._mode)if self._mode in ("both", "write"):self._entries_token = ACTIVE_ENTRIES_WRITE.set({**ACTIVE_ENTRIES_WRITE.get(), **self._entries},)self._nest_token = ENTRIES_NEST_LEVEL.set(ENTRIES_NEST...
6
20
1
158
0
371
393
371
self
[]
None
{"Assign": 5}
3
11
3
["unify.log", "ACTIVE_LOG.set", "ACTIVE_LOG.get"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Log.The function start at line 371 and ends at 393. It contains 20 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 3.0 functions, It has 3.0 functions called inside...
unifyai_unify
Log
public
0
0
__exit__
def __exit__(self, *args, **kwargs):if self._mode in ("both", "write"):ACTIVE_ENTRIES_WRITE.reset(self._entries_token)ENTRIES_NEST_LEVEL.reset(self._nest_token)if ENTRIES_NEST_LEVEL.get() == 0:LOGGED.set({})if self._mode in ("both", "read"):ACTIVE_ENTRIES_READ.reset(self._entries_read_token)ACTIVE_ENTRIES_MODE.reset(se...
4
9
3
81
0
395
405
395
self,exc_type,exc_val,exc_tb
[]
None
{"Expr": 2, "If": 1}
2
4
2
["self.download", "ACTIVE_LOG.reset"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Log.The function start at line 395 and ends at 405. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [395.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called insi...
unifyai_unify
Log
public
0
0
__init__
def __init__(self, mode: str = "both", overwrite: bool = False, **entries):self._entries = _handle_special_types(entries)_validate_mode(mode)self._mode = modeself._overwrite = overwrite
1
5
4
42
0
409
413
365
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 409 and ends at 413. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [365.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside ...
unifyai_unify
Log
public
0
0
__enter__
def __enter__(self):_validate_mode_nesting(ACTIVE_ENTRIES_MODE.get(), self._mode)self._mode_token = ACTIVE_ENTRIES_MODE.set(self._mode)if self._mode in ("both", "write"):self._entries_token = ACTIVE_ENTRIES_WRITE.set({**ACTIVE_ENTRIES_WRITE.get(), **self._entries},)self._nest_token = ENTRIES_NEST_LEVEL.set(ENTRIES_NEST...
6
20
1
158
0
415
437
371
self
[]
None
{"Assign": 5}
3
11
3
["unify.log", "ACTIVE_LOG.set", "ACTIVE_LOG.get"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Log.The function start at line 415 and ends at 437. It contains 20 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 3.0 functions, It has 3.0 functions called inside...
unifyai_unify
Log
public
0
0
__exit__
def __exit__(self, *args, **kwargs):if self._mode in ("both", "write"):ACTIVE_ENTRIES_WRITE.reset(self._entries_token)ENTRIES_NEST_LEVEL.reset(self._nest_token)if ENTRIES_NEST_LEVEL.get() == 0:LOGGED.set({})if self._mode in ("both", "read"):ACTIVE_ENTRIES_READ.reset(self._entries_read_token)ACTIVE_ENTRIES_MODE.reset(se...
4
9
3
81
0
439
449
395
self,exc_type,exc_val,exc_tb
[]
None
{"Expr": 2, "If": 1}
2
4
2
["self.download", "ACTIVE_LOG.reset"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Log.The function start at line 439 and ends at 449. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [395.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called insi...
unifyai_unify
Log
public
0
0
__init__
def __init__(self,name: Optional[Union[str, int]] = None,overwrite: bool = False,mode: str = "both",):_validate_mode(mode)self._mode = modelatest_exp_name = get_experiment_name(-1)if latest_exp_name is None:self._name = name if name is not None else "exp0"self._overwrite = overwritereturnif isinstance(name, int):self._...
5
20
4
111
0
453
473
453
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 453 and ends at 473. It contains 20 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [453.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside...
unifyai_unify
Log
public
0
0
__enter__
def __enter__(self):_validate_mode_nesting(ACTIVE_PARAMS_MODE.get(), self._mode)self._mode_token = ACTIVE_PARAMS_MODE.set(self._mode)if self._mode in ("both", "write"):self._params_token_write = ACTIVE_PARAMS_WRITE.set({**ACTIVE_PARAMS_WRITE.get(), **{"experiment": self._name}},)self._nest_token = PARAMS_NEST_LEVEL.set...
6
20
1
166
0
475
497
475
self
[]
None
{"Assign": 5}
3
11
3
["unify.log", "ACTIVE_LOG.set", "ACTIVE_LOG.get"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Log.The function start at line 475 and ends at 497. It contains 20 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 3.0 functions, It has 3.0 functions called inside...
unifyai_unify
Log
public
0
0
__exit__
def __exit__(self, *args, **kwargs):if self._mode in ("both", "write"):ACTIVE_ENTRIES_WRITE.reset(self._entries_token)ENTRIES_NEST_LEVEL.reset(self._nest_token)if ENTRIES_NEST_LEVEL.get() == 0:LOGGED.set({})if self._mode in ("both", "read"):ACTIVE_ENTRIES_READ.reset(self._entries_read_token)ACTIVE_ENTRIES_MODE.reset(se...
4
9
3
81
0
499
507
395
self,exc_type,exc_val,exc_tb
[]
None
{"Expr": 2, "If": 1}
2
4
2
["self.download", "ACTIVE_LOG.reset"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Log.The function start at line 499 and ends at 507. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [395.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called insi...
unifyai_unify
Log
public
0
0
__init__
def __init__(self, main_function_name):self.main_function_name = main_function_nameself.call_names = set()self.local_function_names = set()
1
4
2
26
0
515
518
515
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 515 and ends at 518. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [515.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside ...
unifyai_unify
TracerCallCollector
public
0
1
visit_FunctionDef
def visit_FunctionDef(self, node):self.generic_visit(node)self.local_function_names.add(node.name)return node
1
4
2
25
0
520
523
520
self,node
[]
Returns
{"Expr": 2, "Return": 1}
2
4
2
["self.generic_visit", "self.local_function_names.add"]
0
[]
The function (visit_FunctionDef) defined within the public class called TracerCallCollector, that inherit another class.The function start at line 520 and ends at 523. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [520.0], and this function return a value. It...
unifyai_unify
TracerCallCollector
public
0
1
visit_AsyncFunctionDef
def visit_AsyncFunctionDef(self, node):self.generic_visit(node)self.local_function_names.add(node.name)return node
1
4
2
25
0
525
528
525
self,node
[]
Returns
{"Expr": 2, "Return": 1}
2
4
2
["self.generic_visit", "self.local_function_names.add"]
0
[]
The function (visit_AsyncFunctionDef) defined within the public class called TracerCallCollector, that inherit another class.The function start at line 525 and ends at 528. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [525.0], and this function return a valu...
unifyai_unify
TracerCallCollector
public
0
1
visit_Call
def visit_Call(self, node):self.generic_visit(node)if isinstance(node.func, ast.Name):self.call_names.add(node.func.id)if isinstance(node.func, ast.Attribute):self.call_names.add(node.func.attr)
3
6
2
61
0
530
537
530
self,node
[]
None
{"Expr": 3, "If": 2}
5
8
5
["self.generic_visit", "isinstance", "self.call_names.add", "isinstance", "self.call_names.add"]
0
[]
The function (visit_Call) defined within the public class called TracerCallCollector, that inherit another class.The function start at line 530 and ends at 537. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [530.0] and does not return any value. It declares 5...
unifyai_unify
TracerCallCollector
public
0
1
get_external_call_names
def get_external_call_names(self):return self.call_names - self.local_function_names
1
2
1
13
0
539
540
539
self
[]
Returns
{"Return": 1}
0
2
0
[]
0
[]
The function (get_external_call_names) defined within the public class called TracerCallCollector, that inherit another class.The function start at line 539 and ends at 540. 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..
unifyai_unify
TracerCallCollector
public
0
1
get_local_function_names
def get_local_function_names(self):return self.local_function_names - set([self.main_function_name])
1
2
1
18
0
542
543
542
self
[]
Returns
{"Return": 1}
1
2
1
["set"]
0
[]
The function (get_local_function_names) defined within the public class called TracerCallCollector, that inherit another class.The function start at line 542 and ends at 543. 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....
unifyai_unify
Log
public
0
0
__init__
def __init__(self, local_defined_functions_names, non_local_call_names):self.local_defined_functions_names = local_defined_functions_namesself.non_local_call_names = non_local_call_names
1
3
3
19
0
547
549
547
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 547 and ends at 549. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [547.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside ...
unifyai_unify
TracerCallCollector
public
0
1
visit_FunctionDef
def visit_FunctionDef(self, node):if node.name in self.local_defined_functions_names:node.decorator_list.append(ast.Call(func=ast.Name(id="traced", ctx=ast.Load()),args=[],keywords=[],),)self.generic_visit(node)return node
2
11
2
66
0
551
561
551
self,node
[]
Returns
{"Expr": 2, "Return": 1}
2
4
2
["self.generic_visit", "self.local_function_names.add"]
0
[]
The function (visit_FunctionDef) defined within the public class called TracerCallCollector, that inherit another class.The function start at line 551 and ends at 561. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [551.0], and this function return a value. I...
unifyai_unify
TracerCallCollector
public
0
1
visit_AsyncFunctionDef
def visit_AsyncFunctionDef(self, node):if node.name in self.local_defined_functions_names:node.decorator_list.append(ast.Call(func=ast.Name(id="traced", ctx=ast.Load()),args=[],keywords=[],),)self.generic_visit(node)return node
2
11
2
66
0
563
573
563
self,node
[]
Returns
{"Expr": 2, "Return": 1}
2
4
2
["self.generic_visit", "self.local_function_names.add"]
0
[]
The function (visit_AsyncFunctionDef) defined within the public class called TracerCallCollector, that inherit another class.The function start at line 563 and ends at 573. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [563.0], and this function return a val...
unifyai_unify
TracerCallCollector
public
0
1
visit_Call
def visit_Call(self, node):node = self.generic_visit(node)if (isinstance(node.func, ast.Name)and node.func.id in self.non_local_call_names):tracer = ast.Call(func=ast.Name(id="traced", ctx=ast.Load()),args=[ast.Name(id=node.func.id, ctx=ast.Load())],keywords=[],)return ast.copy_location(ast.Call(func=tracer, args=node....
5
29
2
218
0
575
606
575
self,node
[]
None
{"Expr": 3, "If": 2}
5
8
5
["self.generic_visit", "isinstance", "self.call_names.add", "isinstance", "self.call_names.add"]
0
[]
The function (visit_Call) defined within the public class called TracerCallCollector, that inherit another class.The function start at line 575 and ends at 606. It contains 29 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [575.0] and does not return any value. It declares ...
unifyai_unify
Log
public
0
0
__init__
def __init__(self, fn, args, kwargs, span_type, name, prune_empty):self.fn = fnself.args = argsself.kwargs = kwargsself.span_type = span_typeself.name = nameself.prune_empty = prune_emptyself.result = None
1
8
7
52
0
610
617
610
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 610 and ends at 617. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [610.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside ...
unifyai_unify
Log
public
0
0
__enter__
def __enter__(self):self.log_token = (Noneif ACTIVE_TRACE_LOG.get()else ACTIVE_TRACE_LOG.set([unify.log(context=get_trace_context())]))self.new_span, self.exec_start_time, self.local_token, self.global_token = (_create_span(self.fn,self.args,self.kwargs,self.span_type,self.name,))return self
2
16
1
79
0
619
634
619
self
[]
None
{"Assign": 5}
3
11
3
["unify.log", "ACTIVE_LOG.set", "ACTIVE_LOG.get"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Log.The function start at line 619 and ends at 634. It contains 16 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside...
unifyai_unify
Log
public
0
0
__exit__
def __exit__(self, exc_type, exc_value, exc_tb):exec_time = time.perf_counter() - self.exec_start_timeif exc_type:self.new_span["errors"] = traceback.format_exc()outputs = (_make_json_serializable(self.result) if self.result is not None else None)_finalize_span(self.new_span,self.local_token,outputs,exec_time,self.prun...
4
17
4
91
0
636
652
636
self,exc_type,exc_val,exc_tb
[]
None
{"Expr": 2, "If": 1}
2
4
2
["self.download", "ACTIVE_LOG.reset"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Log.The function start at line 636 and ends at 652. It contains 17 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [636.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called ins...
unifyai_unify
Log
public
0
0
__init__
def __init__(self, name, *, globals_filter=None):self.name = nameself.globals_filter = globals_filter or self._default_globals_filterinitialize_trace_logger()
2
4
3
30
0
656
659
656
self,id,_future,ts,project,context,api_key,params,**entries
[]
None
{"Assign": 8}
1
20
1
["_validate_api_key"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called Log.The function start at line 656 and ends at 659. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [656.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside ...
unifyai_unify
Traced
public
0
0
_default_globals_filter
def _default_globals_filter(self, name, obj):return not (name.startswith("__") or name.endswith("__") or inspect.ismodule(obj))
3
4
3
33
0
661
664
661
self,name,obj
[]
Returns
{"Return": 1}
3
4
3
["name.startswith", "name.endswith", "inspect.ismodule"]
0
[]
The function (_default_globals_filter) defined within the public class called Traced.The function start at line 661 and ends at 664. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [661.0], and this function return a value. It declares 3.0 functions, and It ha...
unifyai_unify
public
public
0
0
__enter__._deepcopy_or_original
def _deepcopy_or_original(v):# If deepcopy fails, we just capture the original value# This will fail to capture output state if the variable was modified in the functiontry:return copy.deepcopy(v)except Exception as e:return v
2
5
1
21
0
689
695
689
null
[]
None
null
0
0
0
null
0
null
The function (__enter__._deepcopy_or_original) defined within the public class called public.The function start at line 689 and ends at 695. 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..
unifyai_unify
Log
public
0
0
__enter__
def __enter__(self):self.frame = inspect.currentframe().f_backtry:self.code = inspect.getsource(self.frame.f_code)self.code_fpath = inspect.getsourcefile(self.frame.f_code)self.start_linenumber = inspect.getsourcelines(self.frame.f_code)[1]except OSError:self.code = ""self.code_fpath = ""self.start_linenumber = 0self.r...
13
63
1
484
0
666
745
666
self
[]
None
{"Assign": 5}
3
11
3
["unify.log", "ACTIVE_LOG.set", "ACTIVE_LOG.get"]
35
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.M...
The function (__enter__) defined within the public class called Log.The function start at line 666 and ends at 745. It contains 63 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called insid...
unifyai_unify
Log
public
0
0
__exit__
def __exit__(self, exc_type, exc_value, exc_tb):SPAN.get()["exec_time"] = time.perf_counter() - self.exec_start_time# Outputs contains variables that are:# - Created in the function# - Inputs that have been modifiedoutputs = {}for k, v in self.frame.f_globals.items():if k in self.inputs:if self.inputs[k] != v:outputs[k...
12
26
4
226
0
747
779
747
self,exc_type,exc_val,exc_tb
[]
None
{"Expr": 2, "If": 1}
2
4
2
["self.download", "ACTIVE_LOG.reset"]
32
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__exit__", "_.content.gd...
The function (__exit__) defined within the public class called Log.The function start at line 747 and ends at 779. It contains 26 lines of code and it has a cyclomatic complexity of 12. It takes 4 parameters, represented as [747.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called in...