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 | UploadTesting | public | 0 | 0 | __exit__ | def __exit__(self, exc_type, exc_val, exc_tb):if "test_dataset" in unify.list_datasets():unify.delete_dataset("test_dataset") | 2 | 3 | 4 | 26 | 0 | 333 | 335 | 333 | self,exc_type,exc_val,exc_tb | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["unify.list_datasets", "unify.delete_dataset"] | 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 UploadTesting.The function start at line 333 and ends at 335. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [333.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions c... |
unifyai_unify | TestDatasetUploading | public | 0 | 0 | test_dataset_first_upload | def test_dataset_first_upload(self) -> None:with UploadTesting():dataset = unify.Dataset(["a", "b", "c"], name="test_dataset")assert dataset.name not in unify.list_datasets()dataset.upload()assert dataset.name in unify.list_datasets() | 1 | 6 | 1 | 56 | 0 | 340 | 345 | 340 | self | [] | None | {"Assign": 1, "Expr": 1, "With": 1} | 5 | 6 | 5 | ["UploadTesting", "unify.Dataset", "unify.list_datasets", "dataset.upload", "unify.list_datasets"] | 0 | [] | The function (test_dataset_first_upload) defined within the public class called TestDatasetUploading.The function start at line 340 and ends at 345. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 5.0 functions, an... |
unifyai_unify | TestDatasetUploading | public | 0 | 0 | test_dataset_upload_w_overwrite | def test_dataset_upload_w_overwrite(self) -> None:with UploadTesting():dataset = unify.Dataset(["a", "b", "c"], name="test_dataset")assert dataset.name not in unify.list_datasets()dataset.upload()assert dataset.name in unify.list_datasets()assert len(unify.Dataset.from_upstream("test_dataset")) == 3dataset -= "c"datase... | 1 | 10 | 1 | 95 | 0 | 348 | 357 | 348 | self | [] | None | {"Assign": 1, "AugAssign": 1, "Expr": 2, "With": 1} | 10 | 10 | 10 | ["UploadTesting", "unify.Dataset", "unify.list_datasets", "dataset.upload", "unify.list_datasets", "len", "unify.Dataset.from_upstream", "dataset.upload", "len", "unify.Dataset.from_upstream"] | 0 | [] | The function (test_dataset_upload_w_overwrite) defined within the public class called TestDatasetUploading.The function start at line 348 and ends at 357. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 10.0 funct... |
unifyai_unify | TestDatasetUploading | public | 0 | 0 | test_dataset_upload_wo_overwrite | def test_dataset_upload_wo_overwrite(self):with UploadTesting():dataset = unify.Dataset(["a", "b", "c"], name="test_dataset")assert dataset.name not in unify.list_datasets()dataset.upload()assert dataset.name in unify.list_datasets()assert len(unify.Dataset.from_upstream("test_dataset")) == 3dataset += "d"dataset.uploa... | 1 | 10 | 1 | 90 | 0 | 360 | 369 | 360 | self | [] | None | {"Assign": 1, "AugAssign": 1, "Expr": 2, "With": 1} | 10 | 10 | 10 | ["UploadTesting", "unify.Dataset", "unify.list_datasets", "dataset.upload", "unify.list_datasets", "len", "unify.Dataset.from_upstream", "dataset.upload", "len", "unify.Dataset.from_upstream"] | 0 | [] | The function (test_dataset_upload_wo_overwrite) defined within the public class called TestDatasetUploading.The function start at line 360 and ends at 369. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 10.0 func... |
unifyai_unify | UploadTesting | public | 0 | 0 | __enter__ | def __enter__(self):if "test_dataset" in unify.list_datasets():unify.delete_dataset("test_dataset")unify.Dataset(["a", "b", "c"], name="test_dataset").upload() | 2 | 4 | 1 | 40 | 0 | 373 | 376 | 373 | self | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["unify.list_datasets", "unify.delete_dataset"] | 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 UploadTesting.The function start at line 373 and ends at 376. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions call... |
unifyai_unify | UploadTesting | public | 0 | 0 | __exit__ | def __exit__(self, exc_type, exc_val, exc_tb):if "test_dataset" in unify.list_datasets():unify.delete_dataset("test_dataset") | 2 | 3 | 4 | 26 | 0 | 378 | 380 | 333 | self,exc_type,exc_val,exc_tb | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["unify.list_datasets", "unify.delete_dataset"] | 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 UploadTesting.The function start at line 378 and ends at 380. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [333.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions c... |
unifyai_unify | TestDatasetDownloading | public | 0 | 0 | test_dataset_download | def test_dataset_download(self) -> None:with DownloadTesting():assert "test_dataset" in unify.list_datasets()dataset = unify.Dataset.from_upstream("test_dataset")data = dataset.datafor log, item, msg in zip(dataset, data, ("a", "b", "c")):assert isinstance(log, unify.Log)assert item == msg | 2 | 8 | 1 | 70 | 0 | 386 | 393 | 386 | self | [] | None | {"Assign": 2, "For": 1, "With": 1} | 5 | 8 | 5 | ["DownloadTesting", "unify.list_datasets", "unify.Dataset.from_upstream", "zip", "isinstance"] | 0 | [] | The function (test_dataset_download) defined within the public class called TestDatasetDownloading.The function start at line 386 and ends at 393. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 5.0 functions, and ... |
unifyai_unify | TestDatasetDownloading | public | 0 | 0 | test_dataset_download_w_overwrite | def test_dataset_download_w_overwrite(self) -> None:with DownloadTesting():assert "test_dataset" in unify.list_datasets()dataset = unify.Dataset(["a", "b", "c", "d"], name="test_dataset")data = dataset.datafor log, item, msg in zip(dataset, data, ("a", "b", "c", "d")):assert isinstance(log, unify.Log)assert item == msg... | 2 | 12 | 1 | 109 | 0 | 396 | 407 | 396 | self | [] | None | {"Assign": 2, "Expr": 2, "For": 1, "With": 2} | 8 | 12 | 8 | ["DownloadTesting", "unify.list_datasets", "unify.Dataset", "zip", "isinstance", "dataset.download", "len", "pytest.raises"] | 0 | [] | The function (test_dataset_download_w_overwrite) defined within the public class called TestDatasetDownloading.The function start at line 396 and ends at 407. It contains 12 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 8.0 fu... |
unifyai_unify | TestDatasetDownloading | public | 0 | 0 | test_dataset_download_dict | def test_dataset_download_dict(self) -> None:if "test_dataset" in unify.list_datasets():unify.delete_dataset("test_dataset")msgs = ("a", "b", "c")extra = ("A", "B", "C")extra_name = "".join(random.choice(string.ascii_lowercase) for _ in range(4))data_in = [{"message": msg, extra_name: ans} for msg, ans in zip(msgs, ext... | 6 | 23 | 1 | 215 | 0 | 411 | 433 | 411 | self | [] | None | {"Assign": 8, "Expr": 3, "For": 2, "If": 1} | 14 | 23 | 14 | ["unify.list_datasets", "unify.delete_dataset", "join", "random.choice", "range", "zip", "unify.Dataset", "zip", "isinstance", "dataset.upload", "unify.Dataset.from_upstream", "zip", "isinstance", "unify.delete_dataset"] | 0 | [] | The function (test_dataset_download_dict) defined within the public class called TestDatasetDownloading.The function start at line 411 and ends at 433. It contains 23 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 14.0 function... |
unifyai_unify | TestDatasetDownloading | public | 0 | 0 | test_dataset_downloading_prompt_ids | def test_dataset_downloading_prompt_ids(self) -> None:with DownloadTesting():dataset = unify.Dataset.from_upstream("test_dataset")for log in dataset:assert log.id is not Noneassert isinstance(log.id, int)assert log.entries is not None | 2 | 7 | 1 | 50 | 0 | 436 | 442 | 436 | self | [] | None | {"Assign": 1, "For": 1, "With": 1} | 3 | 7 | 3 | ["DownloadTesting", "unify.Dataset.from_upstream", "isinstance"] | 0 | [] | The function (test_dataset_downloading_prompt_ids) defined within the public class called TestDatasetDownloading.The function start at line 436 and ends at 442. It contains 7 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 f... |
unifyai_unify | TestDatasetSync | public | 0 | 0 | test_sync_uploads | def test_sync_uploads(self) -> None:with DownloadTesting():assert "test_dataset" in unify.list_datasets()dataset = unify.Dataset.from_upstream("test_dataset")assert len(dataset) == 3dataset += "d"dataset.sync()data = dataset.datafor log, item, msg in zip(dataset, data, ("a", "b", "c", "d")):assert isinstance(log, unify... | 3 | 17 | 1 | 141 | 0 | 447 | 463 | 447 | self | [] | None | {"Assign": 3, "AugAssign": 1, "Expr": 2, "For": 2, "With": 1} | 11 | 17 | 11 | ["DownloadTesting", "unify.list_datasets", "unify.Dataset.from_upstream", "len", "dataset.sync", "zip", "isinstance", "dataset.download", "len", "zip", "isinstance"] | 0 | [] | The function (test_sync_uploads) defined within the public class called TestDatasetSync.The function start at line 447 and ends at 463. It contains 17 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 11.0 functions, and It has 1... |
unifyai_unify | TestDatasetSync | public | 0 | 0 | test_sync_downloads | def test_sync_downloads(self) -> None:with DownloadTesting():assert "test_dataset" in unify.list_datasets()dataset = unify.Dataset.from_upstream("test_dataset")dataset -= "c"dataset.sync()dataset.download()assert len(dataset) == 3data = dataset.datafor log, item, msg in zip(dataset, data, ("a", "b", "c")):assert isinst... | 2 | 12 | 1 | 90 | 0 | 466 | 477 | 466 | self | [] | None | {"Assign": 2, "AugAssign": 1, "Expr": 2, "For": 1, "With": 1} | 8 | 12 | 8 | ["DownloadTesting", "unify.list_datasets", "unify.Dataset.from_upstream", "dataset.sync", "dataset.download", "len", "zip", "isinstance"] | 0 | [] | The function (test_sync_downloads) defined within the public class called TestDatasetSync.The function start at line 466 and ends at 477. It contains 12 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 8.0 functions, and It has ... |
unifyai_unify | TestDatasetSync | public | 0 | 0 | test_allow_duplicates | def test_allow_duplicates(self) -> None:with DownloadTesting():assert "test_dataset" in unify.list_datasets()# Downloaddataset = unify.Dataset(["a", "b", "c"], name="test_dataset").download()assert len(dataset) == 3dataset = unify.Dataset(["a", "b", "c"],name="test_dataset",allow_duplicates=True,).download()assert len(... | 1 | 30 | 1 | 254 | 0 | 480 | 515 | 480 | self | [] | None | {"Assign": 7, "Expr": 1, "With": 1} | 26 | 36 | 26 | ["DownloadTesting", "unify.list_datasets", "download", "unify.Dataset", "len", "download", "unify.Dataset", "len", "upload", "unify.Dataset", "len", "unify.download_dataset", "upload", "unify.Dataset", "len", "unify.download_dataset", "unify.delete_dataset", "sync", "unify.Dataset", "len", "sync", "unify.Dataset", "len... | 0 | [] | The function (test_allow_duplicates) defined within the public class called TestDatasetSync.The function start at line 480 and ends at 515. It contains 30 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 26.0 functions, and It h... |
unifyai_unify | TestMultiDataset | public | 0 | 0 | test_sub_dataset | def test_sub_dataset(self) -> None:dataset = unify.Dataset(["a", "b", "c"], name="test_dataset").sync()# even the commented line below fails due to "immutable field"[l.update_entries(data=c) for l, c in zip(dataset, ["A", "B", "C"])]sub_dataset = dataset[0:2].set_name("sub_dataset")assert isinstance(sub_dataset, unify.... | 5 | 16 | 1 | 197 | 0 | 520 | 536 | 520 | self | [] | None | {"Assign": 3, "Expr": 4} | 15 | 17 | 15 | ["sync", "unify.Dataset", "l.update_entries", "zip", "set_name", "isinstance", "len", "zip", "sub_dataset.sync", "len", "zip", "l.update_entries", "zip", "len", "sub_dataset.download"] | 0 | [] | The function (test_sub_dataset) defined within the public class called TestMultiDataset.The function start at line 520 and ends at 536. It contains 16 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 15.0 functions, and It has 1... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __init__ | def __init__(self, score_config: Dict[float, str]):self._score_config = score_config | 1 | 2 | 2 | 19 | 0 | 18 | 19 | 18 | self,score_config | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 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 SimulateFloatInput.The function start at line 18 and ends at 19. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [18.0] and does not return any value. It has 14667.0 functions calling this function ... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | _new_input | def _new_input(self, _):return str(random.choice(list(self._score_config.keys()))) | 1 | 2 | 2 | 26 | 0 | 21 | 22 | 21 | self,_ | [] | Returns | {"Return": 1} | 4 | 2 | 4 | ["str", "random.choice", "list", "self._score_config.keys"] | 0 | [] | The function (_new_input) defined within the public class called SimulateFloatInput.The function start at line 21 and ends at 22. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [21.0], and this function return a value. It declares 4.0 functions, and It has 4.... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __enter__ | def __enter__(self):self._true_input = builtins.__dict__["input"]builtins.__dict__["input"] = self._new_input | 1 | 3 | 1 | 25 | 0 | 24 | 26 | 24 | self | [] | None | {"Assign": 2} | 0 | 3 | 0 | [] | 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 SimulateFloatInput.The function start at line 24 and ends at 26. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 35.0 functions calling this function which... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __exit__ | def __exit__(self, exc_type, exc_value, tb):builtins.__dict__["input"] = self._true_inputif exc_type is not None:traceback.print_exception(exc_type, exc_value, tb)return Falsereturn True | 2 | 6 | 4 | 41 | 0 | 28 | 33 | 28 | self,exc_type,exc_value,tb | [] | Returns | {"Assign": 1, "Expr": 1, "If": 1, "Return": 2} | 1 | 6 | 1 | ["traceback.print_exception"] | 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 SimulateFloatInput.The function start at line 28 and ends at 33. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [28.0], and this function return a value. It declare 1.0 function, It has 1.0 functio... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __enter__ | def __enter__(self):if "test_project" in unify.list_projects():unify.delete_project("test_project") | 2 | 3 | 1 | 20 | 0 | 37 | 39 | 37 | self | [] | None | {"Assign": 2} | 0 | 3 | 0 | [] | 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 SimulateFloatInput.The function start at line 37 and ends at 39. 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 35.0 functions calling this function which... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __exit__ | def __exit__(self, exc_type, exc_value, tb):if "test_project" in unify.list_projects():unify.delete_project("test_project") | 2 | 3 | 4 | 26 | 0 | 41 | 43 | 41 | self,exc_type,exc_value,tb | [] | Returns | {"Assign": 1, "Expr": 1, "If": 1, "Return": 2} | 1 | 6 | 1 | ["traceback.print_exception"] | 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 SimulateFloatInput.The function start at line 41 and ends at 43. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [41.0], and this function return a value. It declare 1.0 function, It has 1.0 functio... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __init__ | def __init__(self) -> None:system_prompt = ("Answer the following maths question, ""returning only the numeric answer, and nothing else.")self.system_prompt_versions = {"simple": system_prompt,"role_play": "You are an expert mathematician. " + system_prompt,"with_example": system_prompt + " For example: 4",}self.datase... | 2 | 15 | 1 | 74 | 0 | 51 | 66 | 51 | self,score_config | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 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 SimulateFloatInput.The function start at line 51 and ends at 66. It contains 15 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 14667.0 functions calling this function wh... |
unifyai_unify | MathsExample | public | 0 | 0 | evaluate | def evaluate(question: str, response: str) -> bool:correct_answer = eval(question)try:response_int = int("".join([c for c in response.split(" ")[-1] if c.isdigit()]),)return correct_answer == response_intexcept ValueError:return False | 4 | 9 | 2 | 63 | 0 | 69 | 77 | 69 | question,response | [] | bool | {"Assign": 2, "Return": 2, "Try": 1} | 5 | 9 | 5 | ["eval", "int", "join", "response.split", "c.isdigit"] | 66 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569128_timothycrosley_deprecated_frosted.frosted.test.test_api_py.test_multilineSyntaxError", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_additive_acq", "_.cont... | The function (evaluate) defined within the public class called MathsExample.The function start at line 69 and ends at 77. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [69.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions calle... |
unifyai_unify | public | public | 0 | 0 | maths_example | def maths_example():yield MathsExample() | 1 | 2 | 0 | 8 | 0 | 81 | 82 | 81 | [] | None | {"Expr": 1} | 2 | 2 | 2 | ["MathsExample", "pytest.fixture"] | 0 | [] | The function (maths_example) defined within the public class called public.The function start at line 81 and ends at 82. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions call... | |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_evals | def test_evals(self, maths_example) -> None:for data in maths_example.dataset:question = data["question"]response = maths_example.client.generate(question)assert maths_example.evaluate(data["question"], response) is True | 2 | 5 | 2 | 46 | 0 | 86 | 90 | 86 | self,maths_example | [] | None | {"Assign": 2, "For": 1} | 2 | 5 | 2 | ["maths_example.client.generate", "maths_example.evaluate"] | 0 | [] | The function (test_evals) defined within the public class called TestMathsEvaluator.The function start at line 86 and ends at 90. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [86.0] and does not return any value. It declares 2.0 functions, and It has 2.0 fu... |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_evals_w_logging | def test_evals_w_logging(self, maths_example) -> None:with ProjectHandling():with unify.Project("test_project"):for data in maths_example.dataset:question = data["question"]log = unify.log(question=question)response = maths_example.client.generate(question)log.add_entries(response=response)correct = maths_example.evalu... | 2 | 17 | 2 | 128 | 0 | 92 | 108 | 92 | self,maths_example | [] | None | {"Assign": 5, "Expr": 4, "For": 1, "With": 3} | 11 | 17 | 11 | ["ProjectHandling", "unify.Project", "unify.log", "maths_example.client.generate", "log.add_entries", "maths_example.evaluate", "log.add_entries", "unify.get_log_by_id", "log.delete", "pytest.raises", "unify.get_log_by_id"] | 0 | [] | The function (test_evals_w_logging) defined within the public class called TestMathsEvaluator.The function start at line 92 and ends at 108. It contains 17 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [92.0] and does not return any value. It declares 11.0 functions, and ... |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_system_prompt_opt | def test_system_prompt_opt(self, maths_example) -> None:with ProjectHandling():with unify.Project("test_project"):system_prompt_perf = dict()for name, system_prompt in maths_example.system_prompt_versions.items():for data in maths_example.dataset:question = data["question"]response = maths_example.client.generate(quest... | 3 | 24 | 2 | 127 | 0 | 111 | 134 | 111 | self,maths_example | [] | None | {"Assign": 5, "Expr": 1, "For": 2, "With": 2} | 9 | 24 | 9 | ["ProjectHandling", "unify.Project", "dict", "maths_example.system_prompt_versions.items", "maths_example.client.generate", "maths_example.evaluate", "unify.log", "unify.get_logs_metric", "pytest.mark.timeout"] | 0 | [] | The function (test_system_prompt_opt) defined within the public class called TestMathsEvaluator.The function start at line 111 and ends at 134. It contains 24 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [111.0] and does not return any value. It declares 9.0 functions, an... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __init__ | def __init__(self) -> None:system_prompt = ("You are an AI assistant medical advisor, please only give medical advice ""if you are confident. Ask follow on questions to get more information if ""required. Be very succinct in your answers.")self.dataset = [{"question": q, "system_prompt": system_prompt}for q in ["I have... | 2 | 41 | 1 | 161 | 0 | 138 | 179 | 138 | self,score_config | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 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 SimulateFloatInput.The function start at line 138 and ends at 179. It contains 41 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 14667.0 functions calling this function ... |
unifyai_unify | MathsExample | public | 0 | 0 | evaluate | def evaluate(question: str, response: str, score_config: Dict) -> float:response = input("How would you grade the quality of the assistant response {}, ""given the patient query {}, ""based on the following grading system: {}".format(response,question,score_config,),)assert float(response) in score_config, ("response m... | 1 | 15 | 3 | 58 | 0 | 182 | 196 | 182 | question,response | [] | bool | {"Assign": 2, "Return": 2, "Try": 1} | 5 | 9 | 5 | ["eval", "int", "join", "response.split", "c.isdigit"] | 66 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569128_timothycrosley_deprecated_frosted.frosted.test.test_api_py.test_multilineSyntaxError", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_additive_acq", "_.cont... | The function (evaluate) defined within the public class called MathsExample.The function start at line 182 and ends at 196. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [182.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions c... |
unifyai_unify | public | public | 0 | 0 | human_example | def human_example():yield HumanExample() | 1 | 2 | 0 | 8 | 0 | 200 | 201 | 200 | [] | None | {"Expr": 1} | 2 | 2 | 2 | ["HumanExample", "pytest.fixture"] | 0 | [] | The function (human_example) defined within the public class called public.The function start at line 200 and ends at 201. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions ca... | |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_evals | def test_evals(self, human_example) -> None:for data in human_example.dataset:response = human_example.client.generate(data["question"],data["system_prompt"],)for score_name, score_config in human_example.score_configs.items():with SimulateFloatInput(score_config):score_val = human_example.evaluate(question=data["quest... | 3 | 14 | 2 | 80 | 0 | 205 | 218 | 205 | self,maths_example | [] | None | {"Assign": 2, "For": 1} | 2 | 5 | 2 | ["maths_example.client.generate", "maths_example.evaluate"] | 0 | [] | The function (test_evals) defined within the public class called TestMathsEvaluator.The function start at line 205 and ends at 218. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [205.0] and does not return any value. It declares 2.0 functions, and It has 2.... |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_evals_w_logging | def test_evals_w_logging(self, human_example) -> None:with ProjectHandling():with unify.Project("test_project"):for data in human_example.dataset:response = human_example.client.generate(data["question"],data["system_prompt"],)log_dict = dict(question=data["question"],response=response,)for score_name, score_config in ... | 3 | 22 | 2 | 122 | 0 | 220 | 241 | 220 | self,maths_example | [] | None | {"Assign": 5, "Expr": 4, "For": 1, "With": 3} | 11 | 17 | 11 | ["ProjectHandling", "unify.Project", "unify.log", "maths_example.client.generate", "log.add_entries", "maths_example.evaluate", "log.add_entries", "unify.get_log_by_id", "log.delete", "pytest.raises", "unify.get_log_by_id"] | 0 | [] | The function (test_evals_w_logging) defined within the public class called TestMathsEvaluator.The function start at line 220 and ends at 241. It contains 22 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [220.0] and does not return any value. It declares 11.0 functions, and... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __init__ | def __init__(self) -> None:system_prompt = ("You are an expert software engineer, write the code asked of you to the ""highest quality. Give good variable names, ensure the code compiles and ""is robust to edge cases, and always gives the correct result. ""Please enclose the code inside appending and prepending triple ... | 12 | 58 | 1 | 361 | 0 | 245 | 302 | 245 | self,score_config | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 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 SimulateFloatInput.The function start at line 245 and ends at 302. It contains 58 lines of code and it has a cyclomatic complexity of 12. The function does not take any parameters and does not return any value. It has 14667.0 functions calling this function... |
unifyai_unify | CodeExample | public | 0 | 0 | load_function | def load_function(response: str) -> Union[callable, bool]:# noinspection PyBroadExceptiontry:code = response.split("```")[1]with open("new_module.py", "w+") as file:file.write(code)module = importlib.import_module("new_module")fn_name = code.split("def ")[1].split("(")[0]fn = getattr(module, fn_name)return fnexcept:ret... | 2 | 11 | 1 | 84 | 0 | 305 | 316 | 305 | response | [] | Union[callable, bool] | {"Assign": 4, "Expr": 1, "Return": 2, "Try": 1, "With": 1} | 7 | 12 | 7 | ["response.split", "open", "file.write", "importlib.import_module", "split", "code.split", "getattr"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711514_c0d3d3v_moodle_downloader_2.moodle_dl.utils_py.run_with_final_message"] | The function (load_function) defined within the public class called CodeExample.The function start at line 305 and ends at 316. It contains 11 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 7.0 functions, It has 7.0 functions c... |
unifyai_unify | CodeExample | public | 0 | 0 | runs | def runs(self, response: str, inputs: List[Any]) -> bool:fn = self.load_function(response)if fn is False:return Falsefor inp in inputs:# noinspection PyBroadExceptiontry:fn(*inp)except:return Falsereturn True | 4 | 10 | 3 | 51 | 0 | 318 | 328 | 318 | self,response,inputs | [] | bool | {"Assign": 1, "Expr": 1, "For": 1, "If": 1, "Return": 3, "Try": 1} | 2 | 11 | 2 | ["self.load_function", "fn"] | 0 | [] | The function (runs) defined within the public class called CodeExample.The function start at line 318 and ends at 328. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [318.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions c... |
unifyai_unify | CodeExample | public | 0 | 0 | is_correct | def is_correct(self, response: str, inputs: List[Any], answers: List[Any]) -> bool:fn = self.load_function(response)if fn is False:return Falsefor inp, ans in zip(inputs, answers):# noinspection PyBroadExceptiontry:response = fn(*inp)if response != ans:return Falseexcept:return Falsereturn True | 5 | 12 | 4 | 74 | 0 | 330 | 342 | 330 | self,response,inputs,answers | [] | bool | {"Assign": 2, "For": 1, "If": 2, "Return": 4, "Try": 1} | 3 | 13 | 3 | ["self.load_function", "zip", "fn"] | 0 | [] | The function (is_correct) defined within the public class called CodeExample.The function start at line 330 and ends at 342. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [330.0] and does not return any value. It declares 3.0 functions, and It has 3.0 funct... |
unifyai_unify | public | public | 0 | 0 | code_example | def code_example():yield CodeExample() | 1 | 2 | 0 | 8 | 0 | 346 | 347 | 346 | [] | None | {"Expr": 1} | 2 | 2 | 2 | ["CodeExample", "pytest.fixture"] | 0 | [] | The function (code_example) defined within the public class called public.The function start at line 346 and ends at 347. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions cal... | |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_evals | def test_evals(self, code_example) -> None:for data in code_example.dataset:response = code_example.client.generate(*data["prompt"].values())runs = code_example.runs(response, data["inputs"])assert runs in code_example.score_configs["runs"]correct = code_example.is_correct(response, data["inputs"], data["answers"])asse... | 3 | 9 | 2 | 99 | 0 | 351 | 359 | 351 | self,maths_example | [] | None | {"Assign": 2, "For": 1} | 2 | 5 | 2 | ["maths_example.client.generate", "maths_example.evaluate"] | 0 | [] | The function (test_evals) defined within the public class called TestMathsEvaluator.The function start at line 351 and ends at 359. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [351.0] and does not return any value. It declares 2.0 functions, and It has 2.0... |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_evals_w_logging | def test_evals_w_logging(self, code_example) -> None:with ProjectHandling():with unify.Project("test_project"):for data in code_example.dataset:response = code_example.client.generate(*data["prompt"].values())runs = code_example.runs(response, data["inputs"])assert runs in code_example.score_configs["runs"]correct = co... | 3 | 16 | 2 | 132 | 0 | 361 | 376 | 361 | self,maths_example | [] | None | {"Assign": 5, "Expr": 4, "For": 1, "With": 3} | 11 | 17 | 11 | ["ProjectHandling", "unify.Project", "unify.log", "maths_example.client.generate", "log.add_entries", "maths_example.evaluate", "log.add_entries", "unify.get_log_by_id", "log.delete", "pytest.raises", "unify.get_log_by_id"] | 0 | [] | The function (test_evals_w_logging) defined within the public class called TestMathsEvaluator.The function start at line 361 and ends at 376. It contains 16 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [361.0] and does not return any value. It declares 11.0 functions, and... |
unifyai_unify | SimulateFloatInput | public | 0 | 0 | __init__ | def __init__(self) -> None:self.questions = ["Is the company interested in purchasing our new product line?","Did the company express concerns about pricing?","Is the company satisfied with our customer service?","Is the company considering switching to a competitor?","Is the company interested in scheduling a follow-u... | 3 | 159 | 1 | 254 | 0 | 380 | 548 | 380 | self,score_config | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 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 SimulateFloatInput.The function start at line 380 and ends at 548. It contains 159 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It has 14667.0 functions calling this function... |
unifyai_unify | MathsExample | public | 0 | 0 | evaluate | def evaluate(correct_answer: bool, response: str) -> bool:formatted = response.split("{")[-1].split("}")[0].lower()if correct_answer:return ("yes" in formatted and "no" not in formatted and "none" not in formatted)elif correct_answer is False:return ("no" in formatted and "yes" not in formatted and "none" not in format... | 9 | 11 | 2 | 91 | 0 | 551 | 561 | 551 | question,response | [] | bool | {"Assign": 2, "Return": 2, "Try": 1} | 5 | 9 | 5 | ["eval", "int", "join", "response.split", "c.isdigit"] | 66 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569128_timothycrosley_deprecated_frosted.frosted.test.test_api_py.test_multilineSyntaxError", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_additive_acq", "_.cont... | The function (evaluate) defined within the public class called MathsExample.The function start at line 551 and ends at 561. It contains 11 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [551.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions c... |
unifyai_unify | public | public | 0 | 0 | crm_example | def crm_example():yield CRMExample() | 1 | 2 | 0 | 8 | 0 | 565 | 566 | 565 | [] | None | {"Expr": 1} | 2 | 2 | 2 | ["CRMExample", "pytest.fixture"] | 0 | [] | The function (crm_example) defined within the public class called public.The function start at line 565 and ends at 566. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions call... | |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_evals | def test_evals(self, crm_example) -> None:for data in crm_example.dataset:msg = (f"The call transcripts are as follows:\n{data['call_transcripts']}."f"\n\nThe question is as follows:\n{data['question']}")response = crm_example.client.generate(msg, data["system_prompt"])crm_example.evaluate(data["correct_answer"], respo... | 2 | 8 | 2 | 50 | 0 | 570 | 577 | 570 | self,maths_example | [] | None | {"Assign": 2, "For": 1} | 2 | 5 | 2 | ["maths_example.client.generate", "maths_example.evaluate"] | 0 | [] | The function (test_evals) defined within the public class called TestMathsEvaluator.The function start at line 570 and ends at 577. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [570.0] and does not return any value. It declares 2.0 functions, and It has 2.0... |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_evals_w_logging | def test_evals_w_logging(self, crm_example) -> None:with ProjectHandling():with unify.Project("test_project"):for data in crm_example.dataset:msg = (f"The call transcripts are as follows:\n{data['call_transcripts']}."f"\n\nThe question is as follows:\n{data['question']}")response = crm_example.client.generate(msg, data... | 2 | 11 | 2 | 80 | 0 | 579 | 589 | 579 | self,maths_example | [] | None | {"Assign": 5, "Expr": 4, "For": 1, "With": 3} | 11 | 17 | 11 | ["ProjectHandling", "unify.Project", "unify.log", "maths_example.client.generate", "log.add_entries", "maths_example.evaluate", "log.add_entries", "unify.get_log_by_id", "log.delete", "pytest.raises", "unify.get_log_by_id"] | 0 | [] | The function (test_evals_w_logging) defined within the public class called TestMathsEvaluator.The function start at line 579 and ends at 589. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [579.0] and does not return any value. It declares 11.0 functions, and... |
unifyai_unify | TestMathsEvaluator | public | 0 | 0 | test_system_prompt_opt | def test_system_prompt_opt(self, crm_example) -> None:with ProjectHandling():with unify.Project("test_project"):system_prompt_perf = dict()for name, system_prompt in crm_example.system_prompt_versions.items():for data in crm_example.dataset:msg = (f"The call transcripts are as follows:\n{data['call_transcripts']}."f"\n... | 3 | 27 | 2 | 131 | 0 | 592 | 618 | 592 | self,maths_example | [] | None | {"Assign": 5, "Expr": 1, "For": 2, "With": 2} | 9 | 24 | 9 | ["ProjectHandling", "unify.Project", "dict", "maths_example.system_prompt_versions.items", "maths_example.client.generate", "maths_example.evaluate", "unify.log", "unify.get_logs_metric", "pytest.mark.timeout"] | 0 | [] | The function (test_system_prompt_opt) defined within the public class called TestMathsEvaluator.The function start at line 592 and ends at 618. It contains 27 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [592.0] and does not return any value. It declares 9.0 functions, an... |
unifyai_unify | public | public | 0 | 0 | test_get_param_by_version | def test_get_param_by_version():unify.log(params={"sys_msg": "you are a helpful assistant"})unify.log(params={"sys_msg": "you are a very helpful assistant"})unify.log(params={"sys_msg": "you are a genious assistant"})assert unify.get_param_by_version("sys_msg", 0) == "you are a helpful assistant"assert (unify.get_param... | 1 | 9 | 0 | 75 | 0 | 15 | 23 | 15 | [] | None | {"Expr": 3} | 6 | 9 | 6 | ["unify.log", "unify.log", "unify.log", "unify.get_param_by_version", "unify.get_param_by_version", "unify.get_param_by_version"] | 0 | [] | The function (test_get_param_by_version) defined within the public class called public.The function start at line 15 and ends at 23. It contains 9 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 6.0 functions, and It has 6.0 fu... | |
unifyai_unify | public | public | 0 | 0 | test_get_param_by_value | def test_get_param_by_value():unify.log(params={"sys_msg": "you are a helpful assistant"})unify.log(params={"sys_msg": "you are a very helpful assistant"})unify.log(params={"sys_msg": "you are a genious assistant"})assert unify.get_param_by_value("sys_msg", "you are a helpful assistant") == "0"assert (unify.get_param_b... | 1 | 9 | 0 | 75 | 0 | 27 | 35 | 27 | [] | None | {"Expr": 3} | 6 | 9 | 6 | ["unify.log", "unify.log", "unify.log", "unify.get_param_by_value", "unify.get_param_by_value", "unify.get_param_by_value"] | 0 | [] | The function (test_get_param_by_value) defined within the public class called public.The function start at line 27 and ends at 35. It contains 9 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 6.0 functions, and It has 6.0 func... | |
unifyai_unify | public | public | 0 | 0 | test_get_experiment_name | def test_get_experiment_name():unify.log(params={"experiment": "first_try"}, x=0)unify.log(params={"experiment": "second_try"}, x=1)unify.log(params={"experiment": "third_try"}, x=2)assert unify.get_experiment_name(-1) == "third_try"assert unify.get_experiment_name(-2) == "second_try"assert unify.get_experiment_name(-3... | 1 | 10 | 0 | 109 | 0 | 39 | 48 | 39 | [] | None | {"Expr": 3} | 9 | 10 | 9 | ["unify.log", "unify.log", "unify.log", "unify.get_experiment_name", "unify.get_experiment_name", "unify.get_experiment_name", "unify.get_experiment_name", "unify.get_experiment_name", "unify.get_experiment_name"] | 0 | [] | The function (test_get_experiment_name) defined within the public class called public.The function start at line 39 and ends at 48. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 fu... | |
unifyai_unify | public | public | 0 | 0 | test_get_experiment_version | def test_get_experiment_version():unify.log(params={"experiment": "first_try"}, x=0)unify.log(params={"experiment": "second_try"}, x=1)unify.log(params={"experiment": "third_try"}, x=2)assert unify.get_experiment_version("third_try") == 2assert unify.get_experiment_version("second_try") == 1assert unify.get_experiment_... | 1 | 7 | 0 | 79 | 0 | 52 | 58 | 52 | [] | None | {"Expr": 3} | 6 | 7 | 6 | ["unify.log", "unify.log", "unify.log", "unify.get_experiment_version", "unify.get_experiment_version", "unify.get_experiment_version"] | 0 | [] | The function (test_get_experiment_version) defined within the public class called public.The function start at line 52 and ends at 58. 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. It declares 6.0 functions, and It has 6.0 ... | |
unifyai_unify | public | public | 0 | 0 | test_with_log | def test_with_log():with unify.Log(a="a"):logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a"}unify.add_log_entries(b="b", c="c")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a", "b": "b", "c": "c"}with unify.Log(d="d"):logs = unify.get_logs()assert len(logs) =... | 1 | 21 | 0 | 219 | 1 | 68 | 89 | 68 | ['logs'] | None | {"Assign": 5, "Expr": 3, "With": 2} | 15 | 22 | 15 | ["unify.Log", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len", "unify.Log", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len"] | 0 | [] | The function (test_with_log) defined within the public class called public.The function start at line 68 and ends at 89. It contains 21 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 15.0 functions, and It has 15.0 functions c... | |
unifyai_unify | public | public | 0 | 0 | test_global_logging | def test_global_logging():with unify.Log(a="a"):logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a"}unify.log(b="b", c="c")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a", "b": "b", "c": "c"}with unify.Log(d="d"):logs = unify.get_logs()assert len(logs) == 2ass... | 1 | 21 | 0 | 219 | 1 | 93 | 114 | 93 | ['logs'] | None | {"Assign": 5, "Expr": 3, "With": 2} | 15 | 22 | 15 | ["unify.Log", "unify.get_logs", "len", "unify.log", "unify.get_logs", "len", "unify.Log", "unify.get_logs", "len", "unify.log", "unify.get_logs", "len", "unify.log", "unify.get_logs", "len"] | 0 | [] | The function (test_global_logging) defined within the public class called public.The function start at line 93 and ends at 114. It contains 21 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 15.0 functions, and It has 15.0 func... | |
unifyai_unify | public | public | 0 | 0 | test_with_log_threaded.fn | def fn(a, b, c, d, e, f, g):with unify.Log(a=a):unify.add_log_entries(b=b, c=c)with unify.Log(d=d):unify.add_log_entries(e=e, f=f)unify.add_log_entries(g=g) | 1 | 6 | 7 | 69 | 0 | 119 | 124 | 119 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_log_threaded.fn) defined within the public class called public.The function start at line 119 and ends at 124. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [119.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_log_threaded | def test_with_log_threaded():def fn(a, b, c, d, e, f, g):with unify.Log(a=a):unify.add_log_entries(b=b, c=c)with unify.Log(d=d):unify.add_log_entries(e=e, f=f)unify.add_log_entries(g=g)threads = [threading.Thread(target=fn,args=[7 * i + j for j in range(7)],)for i in range(4)][t.start() for t in threads][t.join() for t... | 9 | 17 | 0 | 191 | 3 | 118 | 142 | 118 | ['threads', 'entries', 'logs'] | None | {"Assign": 3, "Expr": 5, "With": 2} | 16 | 25 | 16 | ["unify.Log", "unify.add_log_entries", "unify.Log", "unify.add_log_entries", "unify.add_log_entries", "threading.Thread", "range", "range", "t.start", "t.join", "unify.get_logs", "sorted", "sorted", "d.items", "range", "range"] | 0 | [] | The function (test_with_log_threaded) defined within the public class called public.The function start at line 118 and ends at 142. It contains 17 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value. It declares 16.0 functions, and It has 16.0 ... | |
unifyai_unify | public | public | 0 | 0 | test_with_log_async.fn | async def fn(a, b, c, d, e, f, g):with unify.Log(a=a):unify.add_log_entries(b=b, c=c)with unify.Log(d=d):unify.add_log_entries(e=e, f=f)unify.add_log_entries(g=g) | 1 | 6 | 7 | 69 | 0 | 148 | 153 | 148 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_log_async.fn) defined within the public class called public.The function start at line 148 and ends at 153. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [148.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_log_async | async def test_with_log_async():async def fn(a, b, c, d, e, f, g):with unify.Log(a=a):unify.add_log_entries(b=b, c=c)with unify.Log(d=d):unify.add_log_entries(e=e, f=f)unify.add_log_entries(g=g)fns = [fn(*[7 * i + j for j in range(7)]) for i in range(4)]await asyncio.gather(*fns)logs = unify.get_logs()entries = [log.en... | 7 | 10 | 0 | 170 | 3 | 147 | 164 | 147 | ['fns', 'entries', 'logs'] | None | {"Assign": 3, "Expr": 4, "With": 2} | 15 | 18 | 15 | ["unify.Log", "unify.add_log_entries", "unify.Log", "unify.add_log_entries", "unify.add_log_entries", "fn", "range", "range", "asyncio.gather", "unify.get_logs", "sorted", "sorted", "d.items", "range", "range"] | 0 | [] | The function (test_with_log_async) defined within the public class called public.The function start at line 147 and ends at 164. It contains 10 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value. It declares 15.0 functions, and It has 15.0 fun... | |
unifyai_unify | public | public | 0 | 0 | test_set_context | def test_set_context():[unify.log(x=i) for i in range(3)]unify.set_context("Foo", mode="both")[unify.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 10unify.unset_context()unify.set_context("Foo", mode="read")assert len(unify.get_logs()) == 10unify.unset_context()unify.set_context("Foo", mode="write")[unify... | 4 | 19 | 0 | 181 | 0 | 171 | 194 | 171 | [] | None | {"Expr": 13} | 26 | 24 | 26 | ["unify.log", "range", "unify.set_context", "unify.log", "range", "len", "unify.get_logs", "unify.unset_context", "unify.set_context", "len", "unify.get_logs", "unify.unset_context", "unify.set_context", "unify.log", "range", "len", "unify.get_logs", "unify.unset_context", "unify.set_context", "len", "unify.get_logs", ... | 0 | [] | The function (test_set_context) defined within the public class called public.The function start at line 171 and ends at 194. It contains 19 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 26.0 functions, and It has 26.0 functi... | |
unifyai_unify | public | public | 0 | 0 | test_with_context | def test_with_context():[unify.log(x=i) for i in range(3)]with unify.Context("Foo", mode="both"):[unify.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 10with unify.Context("Foo", mode="read"):assert len(unify.get_logs()) == 10with unify.Context("Foo", mode="write"):[unify.log(x=i) for i in range(10)]assert... | 4 | 14 | 0 | 166 | 0 | 198 | 216 | 198 | [] | None | {"Expr": 3, "With": 5} | 21 | 19 | 21 | ["unify.log", "range", "unify.Context", "unify.log", "range", "len", "unify.get_logs", "unify.Context", "len", "unify.get_logs", "unify.Context", "unify.log", "range", "len", "unify.get_logs", "unify.Context", "len", "unify.get_logs", "unify.Context", "len", "unify.get_logs"] | 0 | [] | The function (test_with_context) defined within the public class called public.The function start at line 198 and ends at 216. It contains 14 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 21.0 functions, and It has 21.0 funct... | |
unifyai_unify | public | public | 0 | 0 | test_with_context_overwrite | def test_with_context_overwrite():with unify.Context("foo", overwrite=True):[unify.log(a=i) for i in range(10)]assert len(unify.get_logs()) == 10with unify.Context("foo"):assert len(unify.get_logs()) == 10[unify.log(a=i) for i in range(10)]with unify.Context("foo", overwrite=False):assert len(unify.get_logs()) == 20ass... | 4 | 15 | 0 | 182 | 0 | 220 | 239 | 220 | [] | None | {"Expr": 3, "With": 4} | 24 | 20 | 24 | ["unify.Context", "unify.log", "range", "len", "unify.get_logs", "unify.Context", "len", "unify.get_logs", "unify.log", "range", "unify.Context", "len", "unify.get_logs", "len", "unify.get_logs", "unify.Context", "len", "unify.get_logs", "unify.log", "range", "len", "unify.get_logs", "len", "unify.get_logs"] | 0 | [] | The function (test_with_context_overwrite) defined within the public class called public.The function start at line 220 and ends at 239. It contains 15 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 24.0 functions, and It has ... | |
unifyai_unify | public | public | 0 | 0 | test_with_context_nested | def test_with_context_nested():with unify.Context("Foo"):[unify.log(x=i) for i in range(10)]with unify.Context("Bar"):[unify.log(y=i) for i in range(5)]assert len(unify.get_logs()) == 5with unify.Context("Bar/Baz"):[unify.log(z=i) for i in range(20)]assert len(unify.get_logs()) == 20with unify.Context("Bar"):with unify... | 4 | 13 | 0 | 139 | 0 | 243 | 260 | 243 | [] | None | {"Expr": 3, "With": 5} | 19 | 18 | 19 | ["unify.Context", "unify.log", "range", "unify.Context", "unify.log", "range", "len", "unify.get_logs", "unify.Context", "unify.log", "range", "len", "unify.get_logs", "unify.Context", "unify.Context", "len", "unify.get_logs", "len", "unify.get_logs"] | 0 | [] | The function (test_with_context_nested) defined within the public class called public.The function start at line 243 and ends at 260. It contains 13 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 19.0 functions, and It has 19.... | |
unifyai_unify | public | public | 0 | 0 | test_with_context_mode_nested | def test_with_context_mode_nested():with unify.Context("Foo"):[unify.log(x=i) for i in range(10)]with unify.Context("Bar"):[unify.log(y=i) for i in range(5)]assert len(unify.get_logs()) == 5with unify.Context("Bar/Baz"):[unify.log(z=i) for i in range(20)]assert len(unify.get_logs()) == 20with unify.Context("Bar/Baz", m... | 6 | 16 | 0 | 192 | 0 | 264 | 285 | 264 | [] | None | {"Expr": 5, "With": 5} | 25 | 22 | 25 | ["unify.Context", "unify.log", "range", "unify.Context", "unify.log", "range", "len", "unify.get_logs", "unify.Context", "unify.log", "range", "len", "unify.get_logs", "unify.Context", "unify.log", "range", "len", "unify.get_logs", "unify.Context", "unify.log", "range", "len", "unify.get_logs", "len", "unify.get_logs"] | 0 | [] | The function (test_with_context_mode_nested) defined within the public class called public.The function start at line 264 and ends at 285. It contains 16 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 25.0 functions, and It ha... | |
unifyai_unify | public | public | 0 | 0 | test_with_context_mode_restricted | def test_with_context_mode_restricted():with unify.Context("Foo", mode="read"):with pytest.raises(Exception):with unify.Context("Bar", mode="write"):passwith unify.Context("Foo", mode="read"):with pytest.raises(Exception):with unify.Context("Bar", mode="both"):passwith unify.Context("Foo", mode="write"):with pytest.rai... | 1 | 17 | 0 | 136 | 0 | 289 | 308 | 289 | [] | None | {"With": 12} | 12 | 20 | 12 | ["unify.Context", "pytest.raises", "unify.Context", "unify.Context", "pytest.raises", "unify.Context", "unify.Context", "pytest.raises", "unify.Context", "unify.Context", "pytest.raises", "unify.Context"] | 0 | [] | The function (test_with_context_mode_restricted) defined within the public class called public.The function start at line 289 and ends at 308. It contains 17 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 12.0 functions, and I... | |
unifyai_unify | public | public | 0 | 0 | test_with_context_threaded.fn | def fn(i):with unify.Context("Foo"):[unify.log(x=j) for j in range(i, i + FOO_LOGS_PER_THREAD)]with unify.Context("Bar"):[unify.log(x=j) for j in range(i, i + BAR_LOGS_PER_THREAD)]with unify.Context("Bar/Baz"):[unify.log(x=j) for j in range(i, i + BAZ_LOGS_PER_THREAD)] | 4 | 7 | 1 | 92 | 0 | 325 | 331 | 325 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_context_threaded.fn) defined within the public class called public.The function start at line 325 and ends at 331. It contains 7 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_context_threaded | def test_with_context_threaded():NUM_THREADS = 4THREAD_MULTIPLIER = 10FOO_LOGS_PER_THREAD = 3BAR_LOGS_PER_THREAD = 5BAZ_LOGS_PER_THREAD = 7# Ensure context created before threads are started# Otherwise, each thread may try to create the context at the same timeunify.create_context("Foo")unify.create_context("Foo/Bar")u... | 13 | 64 | 0 | 332 | 9 | 312 | 389 | 312 | ['BAZ_LOGS_PER_THREAD', 'threads', 'NUM_THREADS', 'logs', 'expected_x', 'THREAD_MULTIPLIER', 'BAR_LOGS_PER_THREAD', 'FOO_LOGS_PER_THREAD', 'x_values'] | None | {"Assign": 15, "Expr": 8, "With": 6} | 40 | 78 | 40 | ["unify.create_context", "unify.create_context", "unify.create_context", "unify.Context", "unify.log", "range", "unify.Context", "unify.log", "range", "unify.Context", "unify.log", "range", "threading.Thread", "range", "t.start", "t.join", "unify.Context", "len", "unify.get_logs", "unify.get_logs", "sorted", "sorted", ... | 0 | [] | The function (test_with_context_threaded) defined within the public class called public.The function start at line 312 and ends at 389. It contains 64 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 40.0 functions, and It has ... | |
unifyai_unify | public | public | 0 | 0 | test_with_column_context | def test_with_column_context():unify.log(a="a")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a"}with unify.ColumnContext("capitalized"):unify.log(a="a")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a"}unify.add_log_entries(logs=logs, b="B")logs = unify.get_l... | 1 | 41 | 0 | 300 | 1 | 400 | 441 | 400 | ['logs'] | None | {"Assign": 6, "Expr": 6, "With": 2} | 21 | 42 | 21 | ["unify.log", "unify.get_logs", "len", "unify.ColumnContext", "unify.log", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len", "unify.ColumnContext", "unify.get_logs", "len", "unify.add_log_entries", "unify.add_log_params", "unify.get_logs", "len", "unify.log", "unify.get_logs", "len", "pytest.ma... | 0 | [] | The function (test_with_column_context) defined within the public class called public.The function start at line 400 and ends at 441. It contains 41 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 21.0 functions, and It has 21.... | |
unifyai_unify | public | public | 0 | 0 | test_with_col_context_get_logs | def test_with_col_context_get_logs():[unify.log(a=i) for i in range(10)]with unify.ColumnContext("foo"):[unify.log(a=i) for i in range(10)]assert len(unify.get_logs()) == 10with unify.ColumnContext("foo"):assert len(unify.get_logs()) == 10with unify.ColumnContext("foo/bar"):[unify.log(a=i) for i in range(10)]assert len... | 4 | 13 | 0 | 142 | 0 | 445 | 462 | 445 | [] | None | {"Expr": 3, "With": 4} | 20 | 18 | 20 | ["unify.log", "range", "unify.ColumnContext", "unify.log", "range", "len", "unify.get_logs", "unify.ColumnContext", "len", "unify.get_logs", "unify.ColumnContext", "unify.log", "range", "len", "unify.get_logs", "unify.ColumnContext", "len", "unify.get_logs", "len", "unify.get_logs"] | 0 | [] | The function (test_with_col_context_get_logs) defined within the public class called public.The function start at line 445 and ends at 462. It contains 13 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 20.0 functions, and It h... | |
unifyai_unify | public | public | 0 | 0 | test_with_col_context_default_project | def test_with_col_context_default_project():with unify.Log():with unify.ColumnContext("science"):with unify.ColumnContext("physics"):unify.log(score=1.0)with unify.ColumnContext("chemistry"):unify.log(score=0.5)with unify.ColumnContext("biology"):unify.log(score=0.0)entries = unify.get_logs()[0].entriesassert entries["... | 1 | 13 | 0 | 112 | 1 | 466 | 479 | 466 | ['entries'] | None | {"Assign": 1, "Expr": 3, "With": 5} | 9 | 14 | 9 | ["unify.Log", "unify.ColumnContext", "unify.ColumnContext", "unify.log", "unify.ColumnContext", "unify.log", "unify.ColumnContext", "unify.log", "unify.get_logs"] | 0 | [] | The function (test_with_col_context_default_project) defined within the public class called public.The function start at line 466 and ends at 479. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and... | |
unifyai_unify | public | public | 0 | 0 | test_with_col_context_overwrite | def test_with_col_context_overwrite():with unify.ColumnContext("boo"):[unify.log(a=i) for i in range(10)]assert len(unify.get_logs()) == 10with unify.ColumnContext("foo"):[unify.log(a=i) for i in range(10)]assert len(unify.get_logs()) == 10with unify.ColumnContext("foo", overwrite=True):[unify.log(a=i) for i in range(5... | 5 | 14 | 0 | 167 | 0 | 483 | 500 | 483 | [] | None | {"Expr": 4, "With": 4} | 22 | 18 | 22 | ["unify.ColumnContext", "unify.log", "range", "len", "unify.get_logs", "unify.ColumnContext", "unify.log", "range", "len", "unify.get_logs", "unify.ColumnContext", "unify.log", "range", "len", "unify.get_logs", "unify.ColumnContext", "len", "unify.get_logs", "unify.log", "range", "len", "unify.get_logs"] | 0 | [] | The function (test_with_col_context_overwrite) defined within the public class called public.The function start at line 483 and ends at 500. It contains 14 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 22.0 functions, and It ... | |
unifyai_unify | public | public | 0 | 0 | test_with_col_context_mode_restricted | def test_with_col_context_mode_restricted():with unify.ColumnContext("foo", mode="read"):with pytest.raises(Exception):with unify.ColumnContext("bar", mode="write"):passwith unify.ColumnContext("foo", mode="read"):with pytest.raises(Exception):with unify.ColumnContext("bar", mode="both"):passwith unify.ColumnContext("f... | 1 | 17 | 0 | 136 | 0 | 504 | 523 | 504 | [] | None | {"With": 12} | 12 | 20 | 12 | ["unify.ColumnContext", "pytest.raises", "unify.ColumnContext", "unify.ColumnContext", "pytest.raises", "unify.ColumnContext", "unify.ColumnContext", "pytest.raises", "unify.ColumnContext", "unify.ColumnContext", "pytest.raises", "unify.ColumnContext"] | 0 | [] | The function (test_with_col_context_mode_restricted) defined within the public class called public.The function start at line 504 and ends at 523. It contains 17 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 12.0 functions, an... | |
unifyai_unify | public | public | 0 | 0 | test_with_col_context_threaded.fn | def fn(a, b, e):log = unify.log(a=a)with unify.ColumnContext("capitalized"):log.add_entries(b=b)with unify.ColumnContext("vowels"):log.add_entries(e=e)unify.log(a=a) | 1 | 7 | 3 | 59 | 0 | 528 | 534 | 528 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_col_context_threaded.fn) defined within the public class called public.The function start at line 528 and ends at 534. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [528.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_col_context_threaded | def test_with_col_context_threaded():def fn(a, b, e):log = unify.log(a=a)with unify.ColumnContext("capitalized"):log.add_entries(b=b)with unify.ColumnContext("vowels"):log.add_entries(e=e)unify.log(a=a)threads = [threading.Thread(target=fn,args=[3 * i + j for j in range(3)],)for i in range(4)][t.start() for t in thread... | 8 | 24 | 0 | 174 | 4 | 527 | 558 | 527 | ['threads', 'entries', 'logs', 'log'] | None | {"Assign": 4, "Expr": 5, "For": 2, "With": 2} | 18 | 32 | 18 | ["unify.log", "unify.ColumnContext", "log.add_entries", "unify.ColumnContext", "log.add_entries", "unify.log", "threading.Thread", "range", "range", "t.start", "t.join", "reversed", "unify.get_logs", "sorted", "list", "dct.values", "enumerate", "enumerate"] | 0 | [] | The function (test_with_col_context_threaded) defined within the public class called public.The function start at line 527 and ends at 558. It contains 24 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 18.0 functions, and It h... | |
unifyai_unify | public | public | 0 | 0 | test_with_col_context_async.fn | async def fn(a, b, e):log = unify.log(a=a)with unify.ColumnContext("capitalized"):log.add_entries(b=b)with unify.ColumnContext("vowels"):log.add_entries(e=e)unify.log(a=a) | 1 | 7 | 3 | 59 | 0 | 564 | 570 | 564 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_col_context_async.fn) defined within the public class called public.The function start at line 564 and ends at 570. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [564.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_col_context_async | async def test_with_col_context_async():async def fn(a, b, e):log = unify.log(a=a)with unify.ColumnContext("capitalized"):log.add_entries(b=b)with unify.ColumnContext("vowels"):log.add_entries(e=e)unify.log(a=a)fns = [fn(*[3 * i + j for j in range(3)]) for i in range(4)]await asyncio.gather(*fns)logs = unify.get_logs()... | 6 | 17 | 0 | 150 | 4 | 563 | 587 | 563 | ['fns', 'entries', 'logs', 'log'] | None | {"Assign": 4, "Expr": 4, "For": 2, "With": 2} | 16 | 25 | 16 | ["unify.log", "unify.ColumnContext", "log.add_entries", "unify.ColumnContext", "log.add_entries", "unify.log", "fn", "range", "range", "asyncio.gather", "unify.get_logs", "sorted", "list", "dct.values", "enumerate", "enumerate"] | 0 | [] | The function (test_with_col_context_async) defined within the public class called public.The function start at line 563 and ends at 587. 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 16.0 functions, and It has ... | |
unifyai_unify | public | public | 0 | 0 | test_with_entries | def test_with_entries():with unify.Entries(a="a"):logs = unify.get_logs()assert len(logs) == 0log = unify.log()logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a"}unify.add_log_entries(logs=log, b="b", c="c")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a", "b"... | 1 | 40 | 0 | 298 | 2 | 594 | 634 | 594 | ['logs', 'log'] | None | {"Assign": 7, "Expr": 4, "With": 2} | 19 | 41 | 19 | ["unify.Entries", "unify.get_logs", "len", "unify.log", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len", "unify.Entries", "unify.add_log_entries", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len"] | 0 | [] | The function (test_with_entries) defined within the public class called public.The function start at line 594 and ends at 634. It contains 40 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 19.0 functions, and It has 19.0 funct... | |
unifyai_unify | public | public | 0 | 0 | test_with_entries_threaded.fn | def fn(a, b, c, d, e, f, g):with unify.Entries(a=a):log = unify.log()unify.add_log_entries(logs=log, b=b, c=c)with unify.Entries(d=d):unify.add_log_entries(logs=log)unify.add_log_entries(logs=log, e=e, f=f)unify.add_log_entries(logs=log, g=g) | 1 | 8 | 7 | 96 | 0 | 639 | 646 | 639 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_entries_threaded.fn) defined within the public class called public.The function start at line 639 and ends at 646. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [639.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_entries_threaded | def test_with_entries_threaded():def fn(a, b, c, d, e, f, g):with unify.Entries(a=a):log = unify.log()unify.add_log_entries(logs=log, b=b, c=c)with unify.Entries(d=d):unify.add_log_entries(logs=log)unify.add_log_entries(logs=log, e=e, f=f)unify.add_log_entries(logs=log, g=g)threads = [threading.Thread(target=fn,args=[7... | 8 | 25 | 0 | 181 | 4 | 638 | 672 | 638 | ['threads', 'entries', 'logs', 'log'] | None | {"Assign": 4, "Expr": 6, "With": 2} | 17 | 35 | 17 | ["unify.Entries", "unify.log", "unify.add_log_entries", "unify.Entries", "unify.add_log_entries", "unify.add_log_entries", "unify.add_log_entries", "threading.Thread", "range", "range", "t.start", "t.join", "unify.get_logs", "sorted", "sorted", "d.items", "range"] | 0 | [] | The function (test_with_entries_threaded) defined within the public class called public.The function start at line 638 and ends at 672. It contains 25 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 17.0 functions, and It has 1... | |
unifyai_unify | public | public | 0 | 0 | test_with_entries_async.fn | async def fn(a, b, c, d, e, f, g):with unify.Entries(a=a):log = unify.log()unify.add_log_entries(logs=log, b=b, c=c)with unify.Entries(d=d):unify.add_log_entries(logs=log)unify.add_log_entries(logs=log, e=e, f=f)unify.add_log_entries(logs=log, g=g) | 1 | 8 | 7 | 96 | 0 | 678 | 685 | 678 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_entries_async.fn) defined within the public class called public.The function start at line 678 and ends at 685. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [678.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_entries_async | async def test_with_entries_async():async def fn(a, b, c, d, e, f, g):with unify.Entries(a=a):log = unify.log()unify.add_log_entries(logs=log, b=b, c=c)with unify.Entries(d=d):unify.add_log_entries(logs=log)unify.add_log_entries(logs=log, e=e, f=f)unify.add_log_entries(logs=log, g=g)fns = [fn(*[7 * i + j for j in range... | 6 | 18 | 0 | 160 | 4 | 677 | 704 | 677 | ['fns', 'entries', 'logs', 'log'] | None | {"Assign": 4, "Expr": 5, "With": 2} | 16 | 28 | 16 | ["unify.Entries", "unify.log", "unify.add_log_entries", "unify.Entries", "unify.add_log_entries", "unify.add_log_entries", "unify.add_log_entries", "fn", "range", "range", "asyncio.gather", "unify.get_logs", "sorted", "sorted", "d.items", "range"] | 0 | [] | The function (test_with_entries_async) defined within the public class called public.The function start at line 677 and ends at 704. It contains 18 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 16.0 functions, and It has 16.0... | |
unifyai_unify | public | public | 0 | 0 | test_with_entries_mode | def test_with_entries_mode():with unify.Entries(x=0):unify.log(y=1)assert len(unify.get_logs()) == 1with unify.Entries(x=0, y=1, mode="read"):assert len(unify.get_logs()) == 1with unify.Entries(x=0, y=2, mode="write"):unify.log()assert len(unify.get_logs()) == 2with unify.Entries(x=1, y=3):assert len(unify.get_logs()) ... | 2 | 14 | 0 | 157 | 0 | 708 | 725 | 708 | [] | None | {"Expr": 3, "With": 4} | 20 | 18 | 20 | ["unify.Entries", "unify.log", "len", "unify.get_logs", "unify.Entries", "len", "unify.get_logs", "unify.Entries", "unify.log", "len", "unify.get_logs", "unify.Entries", "len", "unify.get_logs", "unify.log", "range", "len", "unify.get_logs", "len", "unify.get_logs"] | 0 | [] | The function (test_with_entries_mode) defined within the public class called public.The function start at line 708 and ends at 725. It contains 14 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 20.0 functions, and It has 20.0 ... | |
unifyai_unify | public | public | 0 | 0 | test_with_entries_mode_restricted | def test_with_entries_mode_restricted():with unify.Entries(x=0, mode="read"):with pytest.raises(Exception):with unify.Entries(x=0, mode="write"):passwith unify.Entries(x=0, mode="read"):with pytest.raises(Exception):with unify.Entries(x=0, mode="both"):passwith unify.Entries(msg="foo", mode="write"):with pytest.raises(... | 1 | 17 | 0 | 152 | 0 | 729 | 748 | 729 | [] | None | {"With": 12} | 12 | 20 | 12 | ["unify.Entries", "pytest.raises", "unify.Entries", "unify.Entries", "pytest.raises", "unify.Entries", "unify.Entries", "pytest.raises", "unify.Entries", "unify.Entries", "pytest.raises", "unify.Entries"] | 0 | [] | The function (test_with_entries_mode_restricted) defined within the public class called public.The function start at line 729 and ends at 748. It contains 17 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 12.0 functions, and I... | |
unifyai_unify | public | public | 0 | 0 | test_with_entries_overwrite | def test_with_entries_overwrite():with unify.Entries(x=0):[unify.log(x=i) for i in range(20)]assert len(unify.get_logs()) == 20with unify.Entries(x=0, overwrite=True):[unify.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 10assert len(unify.get_logs()) == 10with unify.Entries(x=0, overwrite=True):passassert... | 3 | 11 | 0 | 121 | 0 | 752 | 766 | 752 | [] | None | {"Expr": 2, "With": 3} | 15 | 15 | 15 | ["unify.Entries", "unify.log", "range", "len", "unify.get_logs", "unify.Entries", "unify.log", "range", "len", "unify.get_logs", "len", "unify.get_logs", "unify.Entries", "len", "unify.get_logs"] | 0 | [] | The function (test_with_entries_overwrite) defined within the public class called public.The function start at line 752 and ends at 766. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 15.0 functions, and It has ... | |
unifyai_unify | public | public | 0 | 0 | test_with_params | def test_with_params():with unify.Params(a="a"):logs = unify.get_logs()assert len(logs) == 0log = unify.log()logs = unify.get_logs()assert len(logs) == 1assert logs[0].params == {"a": ("0", "a")}unify.add_log_params(logs=log, b="b", c="c")logs = unify.get_logs()assert len(logs) == 1assert logs[0].params == {"a": ("0", ... | 1 | 45 | 0 | 383 | 2 | 773 | 818 | 773 | ['logs', 'log'] | None | {"Assign": 7, "Expr": 4, "With": 2} | 19 | 46 | 19 | ["unify.Params", "unify.get_logs", "len", "unify.log", "unify.get_logs", "len", "unify.add_log_params", "unify.get_logs", "len", "unify.Params", "unify.add_log_params", "unify.get_logs", "len", "unify.add_log_params", "unify.get_logs", "len", "unify.add_log_params", "unify.get_logs", "len"] | 0 | [] | The function (test_with_params) defined within the public class called public.The function start at line 773 and ends at 818. It contains 45 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 19.0 functions, and It has 19.0 functi... | |
unifyai_unify | public | public | 0 | 0 | test_with_params_threaded.fn | def fn(a, b, c, d, e, f, g):with unify.Params(a=a):log = unify.log()unify.add_log_params(logs=log, b=b, c=c)with unify.Params(d=d):unify.add_log_params(logs=log)unify.add_log_params(logs=log, e=e, f=f)unify.add_log_params(logs=log, g=g) | 1 | 8 | 7 | 96 | 0 | 823 | 830 | 823 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_params_threaded.fn) defined within the public class called public.The function start at line 823 and ends at 830. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [823.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_params_threaded | def test_with_params_threaded():def fn(a, b, c, d, e, f, g):with unify.Params(a=a):log = unify.log()unify.add_log_params(logs=log, b=b, c=c)with unify.Params(d=d):unify.add_log_params(logs=log)unify.add_log_params(logs=log, e=e, f=f)unify.add_log_params(logs=log, g=g)threads = [threading.Thread(target=fn,args=[7 * i + ... | 9 | 25 | 0 | 199 | 4 | 822 | 856 | 822 | ['threads', 'params', 'logs', 'log'] | None | {"Assign": 4, "Expr": 6, "With": 2} | 18 | 35 | 18 | ["unify.Params", "unify.log", "unify.add_log_params", "unify.Params", "unify.add_log_params", "unify.add_log_params", "unify.add_log_params", "threading.Thread", "range", "range", "t.start", "t.join", "reversed", "unify.get_logs", "sorted", "sorted", "d.items", "range"] | 0 | [] | The function (test_with_params_threaded) defined within the public class called public.The function start at line 822 and ends at 856. It contains 25 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value. It declares 18.0 functions, and It has 18... | |
unifyai_unify | public | public | 0 | 0 | test_with_params_mode | def test_with_params_mode():with unify.Params(msg="foo"):[unify.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 10with unify.Params(msg="foo", mode="read"):assert len(unify.get_logs()) == 10with unify.Params(msg="foo"):with unify.Params(msg="bar"):[unify.log(x=i) for i in range(5)]assert len(unify.get_logs(... | 5 | 18 | 0 | 221 | 0 | 860 | 883 | 860 | [] | None | {"Expr": 4, "With": 6} | 28 | 24 | 28 | ["unify.Params", "unify.log", "range", "len", "unify.get_logs", "unify.Params", "len", "unify.get_logs", "unify.Params", "unify.Params", "unify.log", "range", "len", "unify.get_logs", "unify.Params", "unify.log", "range", "len", "unify.get_logs", "unify.Params", "unify.log", "range", "len", "unify.get_logs", "len", "un... | 0 | [] | The function (test_with_params_mode) defined within the public class called public.The function start at line 860 and ends at 883. It contains 18 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 28.0 functions, and It has 28.0 f... | |
unifyai_unify | public | public | 0 | 0 | test_with_params_mode_multiple | def test_with_params_mode_multiple():with unify.Params(msg="foo"):[unify.log(x=i) for i in range(5)]assert len(unify.get_logs()) == 5with unify.Params(msg="foo", mode="read"):assert len(unify.get_logs()) == 5with unify.Params(msg="foo"):with unify.Params(reg="US"):[unify.log(x=i) for i in range(5)]assert len(unify.get_... | 5 | 18 | 0 | 221 | 0 | 887 | 910 | 887 | [] | None | {"Expr": 4, "With": 6} | 28 | 24 | 28 | ["unify.Params", "unify.log", "range", "len", "unify.get_logs", "unify.Params", "len", "unify.get_logs", "unify.Params", "unify.Params", "unify.log", "range", "len", "unify.get_logs", "unify.Params", "unify.log", "range", "len", "unify.get_logs", "unify.Params", "len", "unify.get_logs", "unify.log", "range", "len", "un... | 0 | [] | The function (test_with_params_mode_multiple) defined within the public class called public.The function start at line 887 and ends at 910. It contains 18 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 28.0 functions, and It h... | |
unifyai_unify | public | public | 0 | 0 | test_with_params_mode_restricted | def test_with_params_mode_restricted():with unify.Params(mode="read"):with pytest.raises(Exception):with unify.Params(mode="write"):passwith unify.Params(mode="read"):with pytest.raises(Exception):with unify.Params(mode="both"):passwith unify.Params(msg="foo", mode="write"):with pytest.raises(Exception):with unify.Para... | 1 | 17 | 0 | 136 | 0 | 914 | 933 | 914 | [] | None | {"With": 12} | 12 | 20 | 12 | ["unify.Params", "pytest.raises", "unify.Params", "unify.Params", "pytest.raises", "unify.Params", "unify.Params", "pytest.raises", "unify.Params", "unify.Params", "pytest.raises", "unify.Params"] | 0 | [] | The function (test_with_params_mode_restricted) defined within the public class called public.The function start at line 914 and ends at 933. It contains 17 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 12.0 functions, and It... | |
unifyai_unify | public | public | 0 | 0 | test_with_params_overwrite | def test_with_params_overwrite():with unify.Params(msg="foo"):[unify.log(x=i) for i in range(20)]assert len(unify.get_logs()) == 20with unify.Params(msg="foo", overwrite=True):[unify.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 10assert len(unify.get_logs()) == 10with unify.Params(msg="foo", overwrite=Tr... | 3 | 11 | 0 | 121 | 0 | 937 | 951 | 937 | [] | None | {"Expr": 2, "With": 3} | 15 | 15 | 15 | ["unify.Params", "unify.log", "range", "len", "unify.get_logs", "unify.Params", "unify.log", "range", "len", "unify.get_logs", "len", "unify.get_logs", "unify.Params", "len", "unify.get_logs"] | 0 | [] | The function (test_with_params_overwrite) defined within the public class called public.The function start at line 937 and ends at 951. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 15.0 functions, and It has 1... | |
unifyai_unify | public | public | 0 | 0 | test_with_params_async.fn | async def fn(a, b, c, d, e, f, g):with unify.Params(a=a):log = unify.log()unify.add_log_params(logs=log, b=b, c=c)with unify.Params(d=d):unify.add_log_params(logs=log)unify.add_log_params(logs=log, e=e, f=f)unify.add_log_params(logs=log, g=g) | 1 | 8 | 7 | 96 | 0 | 957 | 964 | 957 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_params_async.fn) defined within the public class called public.The function start at line 957 and ends at 964. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [957.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_params_async | async def test_with_params_async():async def fn(a, b, c, d, e, f, g):with unify.Params(a=a):log = unify.log()unify.add_log_params(logs=log, b=b, c=c)with unify.Params(d=d):unify.add_log_params(logs=log)unify.add_log_params(logs=log, e=e, f=f)unify.add_log_params(logs=log, g=g)fns = [fn(*[7 * i + j for j in range(7)]) f... | 6 | 18 | 0 | 160 | 4 | 956 | 983 | 956 | ['fns', 'params', 'logs', 'log'] | None | {"Assign": 4, "Expr": 5, "With": 2} | 16 | 28 | 16 | ["unify.Params", "unify.log", "unify.add_log_params", "unify.Params", "unify.add_log_params", "unify.add_log_params", "unify.add_log_params", "fn", "range", "range", "asyncio.gather", "unify.get_logs", "sorted", "sorted", "d.items", "range"] | 0 | [] | The function (test_with_params_async) defined within the public class called public.The function start at line 956 and ends at 983. It contains 18 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 16.0 functions, and It has 16.0 ... | |
unifyai_unify | public | public | 0 | 0 | test_with_experiment | def test_with_experiment():with unify.Experiment(), unify.Params(sys_msg="you are a helpful assistant"):unify.log(x=0)unify.log(x=1)assert unify.get_experiment_name(0) == "exp0"logs = unify.get_logs()[0:2]assert [lg.entries for lg in logs] == [{"x": 1}, {"x": 0}]with unify.Experiment(), unify.Params(sys_msg="you are a ... | 5 | 36 | 0 | 367 | 1 | 990 | 1,030 | 990 | ['logs'] | None | {"Assign": 4, "Expr": 8, "With": 4} | 29 | 41 | 29 | ["unify.Experiment", "unify.Params", "unify.log", "unify.log", "unify.get_experiment_name", "unify.get_logs", "unify.Experiment", "unify.Params", "unify.log", "unify.log", "unify.get_experiment_name", "unify.get_experiment_name", "unify.get_logs", "unify.Experiment", "unify.Params", "unify.log", "unify.log", "unify.get... | 0 | [] | The function (test_with_experiment) defined within the public class called public.The function start at line 990 and ends at 1030. It contains 36 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 29.0 functions, and It has 29.0 f... | |
unifyai_unify | public | public | 0 | 0 | test_with_experiment_mode | def test_with_experiment_mode():with unify.Experiment("foo", mode="both"):[unify.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 10with unify.Experiment("foo", mode="read"):assert len(unify.get_logs()) == 10with unify.Experiment("foo", mode="write"):[unify.log(x=i) for i in range(5)]assert len(unify.get_log... | 4 | 15 | 0 | 181 | 0 | 1,034 | 1,052 | 1,034 | [] | None | {"Expr": 3, "With": 5} | 23 | 19 | 23 | ["unify.Experiment", "unify.log", "range", "len", "unify.get_logs", "unify.Experiment", "len", "unify.get_logs", "unify.Experiment", "unify.log", "range", "len", "unify.get_logs", "unify.Experiment", "unify.log", "range", "len", "unify.get_logs", "unify.Experiment", "len", "unify.get_logs", "len", "unify.get_logs"] | 0 | [] | The function (test_with_experiment_mode) defined within the public class called public.The function start at line 1034 and ends at 1052. It contains 15 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 23.0 functions, and It has ... | |
unifyai_unify | public | public | 0 | 0 | test_with_experiment_mode_restricted | def test_with_experiment_mode_restricted():with unify.Experiment(mode="read"):with pytest.raises(Exception):with unify.Experiment(mode="write"):passwith unify.Experiment(mode="read"):with pytest.raises(Exception):with unify.Experiment(mode="both"):passwith unify.Experiment("foo", mode="write"):with pytest.raises(Except... | 1 | 17 | 0 | 126 | 0 | 1,056 | 1,075 | 1,056 | [] | None | {"With": 12} | 12 | 20 | 12 | ["unify.Experiment", "pytest.raises", "unify.Experiment", "unify.Experiment", "pytest.raises", "unify.Experiment", "unify.Experiment", "pytest.raises", "unify.Experiment", "unify.Experiment", "pytest.raises", "unify.Experiment"] | 0 | [] | The function (test_with_experiment_mode_restricted) defined within the public class called public.The function start at line 1056 and ends at 1075. It contains 17 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 12.0 functions, a... | |
unifyai_unify | public | public | 0 | 0 | test_with_all | def test_with_all():with unify.Params(a="a"):logs = unify.get_logs()assert len(logs) == 0log = unify.log()logs = unify.get_logs()assert len(logs) == 1assert logs[0].params == {"a": ("0", "a")}unify.add_log_params(logs=log, b="b", c="c")logs = unify.get_logs()assert len(logs) == 1assert logs[0].params == {"a": ("0", "a"... | 1 | 46 | 0 | 472 | 2 | 1,082 | 1,128 | 1,082 | ['logs', 'log'] | None | {"Assign": 8, "Expr": 7, "With": 3} | 25 | 47 | 25 | ["unify.Params", "unify.get_logs", "len", "unify.log", "unify.get_logs", "len", "unify.add_log_params", "unify.get_logs", "len", "unify.Entries", "unify.add_log_entries", "unify.get_logs", "len", "unify.add_log_entries", "unify.add_log_params", "unify.get_logs", "len", "unify.Log", "unify.add_log_params", "unify.add_lo... | 0 | [] | The function (test_with_all) defined within the public class called public.The function start at line 1082 and ends at 1128. It contains 46 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 25.0 functions, and It has 25.0 functio... | |
unifyai_unify | public | public | 0 | 0 | test_with_all_threaded.fn | def fn(a, b, c, d, e, f, g, h, i):with unify.Params(a=a):log = unify.log()unify.add_log_params(logs=log, b=b, c=c)with unify.Entries(d=d):unify.add_log_entries(logs=log)unify.add_log_entries(logs=log, e=e)unify.add_log_params(logs=log, f=f)with unify.Log():unify.add_log_params(g=g)unify.add_log_entries(h=h)unify.add_lo... | 1 | 12 | 9 | 131 | 0 | 1,133 | 1,144 | 1,133 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_all_threaded.fn) defined within the public class called public.The function start at line 1133 and ends at 1144. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 9 parameters, represented as [1133.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_all_threaded | def test_with_all_threaded():def fn(a, b, c, d, e, f, g, h, i):with unify.Params(a=a):log = unify.log()unify.add_log_params(logs=log, b=b, c=c)with unify.Entries(d=d):unify.add_log_entries(logs=log)unify.add_log_entries(logs=log, e=e)unify.add_log_params(logs=log, f=f)with unify.Log():unify.add_log_params(g=g)unify.add... | 14 | 44 | 0 | 390 | 6 | 1,132 | 1,189 | 1,132 | ['threads', 'entries', 'logs', 'observed', 'log', 'params'] | None | {"Assign": 7, "Expr": 9, "For": 2, "If": 2, "With": 3} | 30 | 58 | 30 | ["unify.Params", "unify.log", "unify.add_log_params", "unify.Entries", "unify.add_log_entries", "unify.add_log_entries", "unify.add_log_params", "unify.Log", "unify.add_log_params", "unify.add_log_entries", "unify.add_log_entries", "threading.Thread", "range", "range", "t.start", "t.join", "reversed", "unify.get_logs",... | 0 | [] | The function (test_with_all_threaded) defined within the public class called public.The function start at line 1132 and ends at 1189. It contains 44 lines of code and it has a cyclomatic complexity of 14. The function does not take any parameters and does not return any value. It declares 30.0 functions, and It has 30... | |
unifyai_unify | public | public | 0 | 0 | test_with_all_async.fn | async def fn(a, b, c, d, e, f, g, h, i):with unify.Params(a=a):log = unify.log()unify.add_log_params(logs=log, b=b, c=c)with unify.Entries(d=d):unify.add_log_entries(logs=log)unify.add_log_entries(logs=log, e=e)unify.add_log_params(logs=log, f=f)with unify.Log():unify.add_log_params(g=g)unify.add_log_entries(h=h)unify.... | 1 | 12 | 9 | 131 | 0 | 1,195 | 1,206 | 1,195 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_with_all_async.fn) defined within the public class called public.The function start at line 1195 and ends at 1206. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 9 parameters, represented as [1195.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_with_all_async | async def test_with_all_async():async def fn(a, b, c, d, e, f, g, h, i):with unify.Params(a=a):log = unify.log()unify.add_log_params(logs=log, b=b, c=c)with unify.Entries(d=d):unify.add_log_entries(logs=log)unify.add_log_entries(logs=log, e=e)unify.add_log_params(logs=log, f=f)with unify.Log():unify.add_log_params(g=g)... | 11 | 34 | 0 | 351 | 6 | 1,194 | 1,241 | 1,194 | ['entries', 'fns', 'logs', 'observed', 'log', 'params'] | None | {"Assign": 7, "Expr": 8, "For": 2, "If": 2, "With": 3} | 28 | 48 | 28 | ["unify.Params", "unify.log", "unify.add_log_params", "unify.Entries", "unify.add_log_entries", "unify.add_log_entries", "unify.add_log_params", "unify.Log", "unify.add_log_params", "unify.add_log_entries", "unify.add_log_entries", "fn", "range", "range", "asyncio.gather", "unify.get_logs", "sorted", "d.items", "sorted... | 0 | [] | The function (test_with_all_async) defined within the public class called public.The function start at line 1194 and ends at 1241. It contains 34 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters and does not return any value. It declares 28.0 functions, and It has 28.0 ... | |
unifyai_unify | public | public | 0 | 0 | test_basic_log_decorator.sample_function | def sample_function(a, b, c, d):c = a + bd = c * 2return d | 1 | 4 | 4 | 23 | 0 | 1,247 | 1,250 | 1,247 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_basic_log_decorator.sample_function) defined within the public class called public.The function start at line 1247 and ends at 1250. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1247.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_basic_log_decorator | def test_basic_log_decorator():@unify.logdef sample_function(a, b, c, d):c = a + bd = c * 2return dsample_function(2, 3, 8, 9, w=2, y=9)logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": 2,"b": 3,"c": 5,"d": 10,"w": 2,"y": 9,} | 1 | 14 | 0 | 76 | 3 | 1,245 | 1,262 | 1,245 | ['logs', 'c', 'd'] | Returns | {"Assign": 3, "Expr": 1, "Return": 1} | 3 | 18 | 3 | ["sample_function", "unify.get_logs", "len"] | 0 | [] | The function (test_basic_log_decorator) defined within the public class called public.The function start at line 1245 and ends at 1262. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It ha... | |
unifyai_unify | public | public | 0 | 0 | test_log_decorator_w_internal_logging.sample_function | def sample_function(a, b, c, d):c = a + bunify.log(e=15)d = c * 2return d | 1 | 5 | 4 | 31 | 0 | 1,268 | 1,272 | 1,268 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_log_decorator_w_internal_logging.sample_function) defined within the public class called public.The function start at line 1268 and ends at 1272. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1268.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_log_decorator_w_internal_logging | def test_log_decorator_w_internal_logging():@unify.logdef sample_function(a, b, c, d):c = a + bunify.log(e=15)d = c * 2return dsample_function(2, 3, 8, 9, w=2, y=9)logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"e": 15,"a": 2,"b": 3,"c": 5,"d": 10,"w": 2,"y": 9,} | 1 | 15 | 0 | 80 | 3 | 1,266 | 1,285 | 1,266 | ['logs', 'c', 'd'] | Returns | {"Assign": 3, "Expr": 2, "Return": 1} | 4 | 20 | 4 | ["unify.log", "sample_function", "unify.get_logs", "len"] | 0 | [] | The function (test_log_decorator_w_internal_logging) defined within the public class called public.The function start at line 1266 and ends at 1285. It contains 15 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 4.0 function... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.