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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.finish", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.databricks.src.airflow.providers.databricks.operators.databricks_workflow_py.DatabricksWorkflowTaskGroup.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.cloud.hooks.compute_ssh_py._GCloudAuthorizedSSHClient.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestAzureServiceBusReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.psrp.src.airflow.providers.microsoft.psrp.hooks.psrp_py.PsrpHook.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema_and_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_without_schema"]
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 called inside which are ["unify.list_datasets", "unify.delete_dataset"], It has 32.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.finish", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.databricks.src.airflow.providers.databricks.operators.databricks_workflow_py.DatabricksWorkflowTaskGroup.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.cloud.hooks.compute_ssh_py._GCloudAuthorizedSSHClient.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestAzureServiceBusReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.psrp.src.airflow.providers.microsoft.psrp.hooks.psrp_py.PsrpHook.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema_and_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_without_schema"].
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, and It has 5.0 functions called inside which are ["UploadTesting", "unify.Dataset", "unify.list_datasets", "dataset.upload", "unify.list_datasets"].
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"dataset.upload(overwrite=True)assert len(unify.Dataset.from_upstream("test_dataset")) == 2
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 functions, and It has 10.0 functions called inside which are ["UploadTesting", "unify.Dataset", "unify.list_datasets", "dataset.upload", "unify.list_datasets", "len", "unify.Dataset.from_upstream", "dataset.upload", "len", "unify.Dataset.from_upstream"].
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.upload()assert len(unify.Dataset.from_upstream("test_dataset")) == 4
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 functions, and It has 10.0 functions called inside which are ["UploadTesting", "unify.Dataset", "unify.list_datasets", "dataset.upload", "unify.list_datasets", "len", "unify.Dataset.from_upstream", "dataset.upload", "len", "unify.Dataset.from_upstream"].
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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheelCtx.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.adjoint_py.AdjointTape.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.kinesis.kinesis_py.KinesisSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.consumer_py.PubSubConsumer.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.pubsub_py.PubSubSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.devel_common.src.tests_common.test_utils.stream_capture_manager_py.StreamCaptureManager.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_modify_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message"]
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 called inside which are ["unify.list_datasets", "unify.delete_dataset"], It has 35.0 functions calling this function which are ["_.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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheelCtx.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.adjoint_py.AdjointTape.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.kinesis.kinesis_py.KinesisSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.consumer_py.PubSubConsumer.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.pubsub_py.PubSubSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.devel_common.src.tests_common.test_utils.stream_capture_manager_py.StreamCaptureManager.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_modify_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message"].
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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.finish", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.databricks.src.airflow.providers.databricks.operators.databricks_workflow_py.DatabricksWorkflowTaskGroup.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.cloud.hooks.compute_ssh_py._GCloudAuthorizedSSHClient.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestAzureServiceBusReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.psrp.src.airflow.providers.microsoft.psrp.hooks.psrp_py.PsrpHook.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema_and_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_without_schema"]
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 called inside which are ["unify.list_datasets", "unify.delete_dataset"], It has 32.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.finish", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.databricks.src.airflow.providers.databricks.operators.databricks_workflow_py.DatabricksWorkflowTaskGroup.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.cloud.hooks.compute_ssh_py._GCloudAuthorizedSSHClient.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestAzureServiceBusReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.psrp.src.airflow.providers.microsoft.psrp.hooks.psrp_py.PsrpHook.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema_and_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_without_schema"].
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 It has 5.0 functions called inside which are ["DownloadTesting", "unify.list_datasets", "unify.Dataset.from_upstream", "zip", "isinstance"].
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 == msgdataset.download(overwrite=True)assert len(dataset) == 3with pytest.raises(IndexError):dataset[3]
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 functions, and It has 8.0 functions called inside which are ["DownloadTesting", "unify.list_datasets", "unify.Dataset", "zip", "isinstance", "dataset.download", "len", "pytest.raises"].
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, extra)]dataset = unify.Dataset(data_in, name="test_dataset")data = dataset.datafor log, item, msg in zip(dataset, data, data_in):assert isinstance(log, unify.Log)assert item == msgassert "message" in data[0]assert extra_name in data[0]dataset.upload()dataset = unify.Dataset.from_upstream("test_dataset")data = dataset.datafor log, item, msg in zip(dataset, data, data_in):assert isinstance(log, unify.Log)assert item == msgassert "message" in data[0]assert extra_name in data[0]unify.delete_dataset("test_dataset")
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 functions, and It has 14.0 functions called inside which are ["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"].
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 functions, and It has 3.0 functions called inside which are ["DownloadTesting", "unify.Dataset.from_upstream", "isinstance"].
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.Log)assert item == msgdataset.download()assert len(dataset) == 4data = dataset.datafor log, item, msg in zip(dataset, data, ("a", "b", "c", "d")):assert isinstance(log, unify.Log)assert item == msg
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 11.0 functions called inside which are ["DownloadTesting", "unify.list_datasets", "unify.Dataset.from_upstream", "len", "dataset.sync", "zip", "isinstance", "dataset.download", "len", "zip", "isinstance"].
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 isinstance(log, unify.Log)assert item == msg
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 8.0 functions called inside which are ["DownloadTesting", "unify.list_datasets", "unify.Dataset.from_upstream", "dataset.sync", "dataset.download", "len", "zip", "isinstance"].
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(dataset) == 6# Uploaddataset = unify.Dataset(["a", "b", "c"], name="test_dataset").upload()assert len(unify.download_dataset(name="test_dataset")) == 3dataset = unify.Dataset(["a", "b", "c"],name="test_dataset",allow_duplicates=True,).upload()assert len(unify.download_dataset(name="test_dataset")) == 6# Syncunify.delete_dataset("test_dataset")dataset = unify.Dataset(["a", "b", "c"], name="test_dataset").sync()assert len(dataset) == 3dataset = unify.Dataset(["a", "d"], name="test_dataset").sync()assert len(dataset) == 4dataset = unify.Dataset(["a", "d"],name="test_dataset",allow_duplicates=True,).sync()assert len(dataset) == 6
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", "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 has 26.0 functions called inside which are ["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", "sync", "unify.Dataset", "len"].
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.Dataset)assert len(sub_dataset) == 2assert [l1.id == l2.id for l1, l2 in zip(dataset, sub_dataset)]sub_dataset.sync()assert len(sub_dataset) == 2assert [l1.id == l2.id for l1, l2 in zip(dataset, sub_dataset)][l.update_entries(data=c) for l, c in zip(dataset, ["A", "B", "C"])]assert len(dataset) == 3sub_dataset.download()sub_data = sub_dataset.dataassert sub_data[0] == "A"assert sub_data[1] == "B"
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 15.0 functions called inside which are ["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"].
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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__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 which are ["_.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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__init__"].
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.0 functions called inside which are ["str", "random.choice", "list", "self._score_config.keys"].
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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheelCtx.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.adjoint_py.AdjointTape.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.kinesis.kinesis_py.KinesisSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.consumer_py.PubSubConsumer.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.pubsub_py.PubSubSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.devel_common.src.tests_common.test_utils.stream_capture_manager_py.StreamCaptureManager.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_modify_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message"]
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 are ["_.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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheelCtx.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.adjoint_py.AdjointTape.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.kinesis.kinesis_py.KinesisSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.consumer_py.PubSubConsumer.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.pubsub_py.PubSubSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.devel_common.src.tests_common.test_utils.stream_capture_manager_py.StreamCaptureManager.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_modify_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message"].
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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.finish", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.databricks.src.airflow.providers.databricks.operators.databricks_workflow_py.DatabricksWorkflowTaskGroup.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.cloud.hooks.compute_ssh_py._GCloudAuthorizedSSHClient.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestAzureServiceBusReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.psrp.src.airflow.providers.microsoft.psrp.hooks.psrp_py.PsrpHook.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema_and_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_without_schema"]
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 function called inside which is ["traceback.print_exception"], It has 32.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.finish", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.databricks.src.airflow.providers.databricks.operators.databricks_workflow_py.DatabricksWorkflowTaskGroup.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.cloud.hooks.compute_ssh_py._GCloudAuthorizedSSHClient.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestAzureServiceBusReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.psrp.src.airflow.providers.microsoft.psrp.hooks.psrp_py.PsrpHook.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema_and_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_without_schema"].
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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheelCtx.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.adjoint_py.AdjointTape.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.kinesis.kinesis_py.KinesisSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.consumer_py.PubSubConsumer.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.pubsub_py.PubSubSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.devel_common.src.tests_common.test_utils.stream_capture_manager_py.StreamCaptureManager.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_modify_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message"]
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 are ["_.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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheelCtx.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.adjoint_py.AdjointTape.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.kinesis.kinesis_py.KinesisSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.consumer_py.PubSubConsumer.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.pubsub_py.PubSubSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.devel_common.src.tests_common.test_utils.stream_capture_manager_py.StreamCaptureManager.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_modify_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message"].
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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.finish", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.databricks.src.airflow.providers.databricks.operators.databricks_workflow_py.DatabricksWorkflowTaskGroup.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.cloud.hooks.compute_ssh_py._GCloudAuthorizedSSHClient.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestAzureServiceBusReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.psrp.src.airflow.providers.microsoft.psrp.hooks.psrp_py.PsrpHook.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema_and_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_without_schema"]
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 function called inside which is ["traceback.print_exception"], It has 32.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.finish", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.databricks.src.airflow.providers.databricks.operators.databricks_workflow_py.DatabricksWorkflowTaskGroup.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.cloud.hooks.compute_ssh_py._GCloudAuthorizedSSHClient.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestASBSubscriptionReceiveMessageOperator.test_receive_message_queue_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.operators.test_asb_py.TestAzureServiceBusReceiveMessageOperator.test_receive_message_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.psrp.src.airflow.providers.microsoft.psrp.hooks.psrp_py.PsrpHook.__exit__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_with_schema_and_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.neo4j.tests.unit.neo4j.hooks.test_neo4j_py.TestNeo4jHookConn.test_run_without_schema"].
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.dataset = [{"question": q, "system_prompt": system_prompt}for q in ["1 + 3", "4 + 7", "6 + 5"]]self.client = unify.Unify("gpt-4o@openai", cache=True)
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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__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 which are ["_.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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__init__"].
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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_multiplicative_acq", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706216_criteo_tf_yarn.tf_yarn.tensorflow.tasks.evaluator_task_py.evaluator_fn", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_array_indices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_add", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_div", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_floordiv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is_not", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mod", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mul", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_not_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_pow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_sub", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_xor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_function", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_keywords", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_star_args", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_compare_eq"]
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 called inside which are ["eval", "int", "join", "response.split", "c.isdigit"], It has 66.0 functions calling this function which are ["_.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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_multiplicative_acq", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706216_criteo_tf_yarn.tf_yarn.tensorflow.tasks.evaluator_task_py.evaluator_fn", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_array_indices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_add", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_div", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_floordiv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is_not", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mod", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mul", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_not_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_pow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_sub", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_xor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_function", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_keywords", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_star_args", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_compare_eq"].
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 called inside which are ["MathsExample", "pytest.fixture"].
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 functions called inside which are ["maths_example.client.generate", "maths_example.evaluate"].
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.evaluate(data["question"], response)assert correct is Truelog.add_entries(score=correct)retrieved_log = unify.get_log_by_id(log.id)assert retrieved_log is not Noneassert log == retrieved_loglog.delete()with pytest.raises(Exception):unify.get_log_by_id(log.id)
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 It has 11.0 functions called inside which are ["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"].
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(question,system_prompt,)correct = maths_example.evaluate(data["question"], response)assert correct is Trueunify.log(question=question,system_prompt=system_prompt,response=response,score=correct,)system_prompt_perf[name] = unify.get_logs_metric(metric="mean",key="score",filter=f"system_prompt == '{system_prompt}'",)
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, and It has 9.0 functions called inside which are ["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"].
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 a sore throat, red spots, and a headache. What should I do?","My ankle really hurts when I apply pressure, should I wrap it up?","I've been having chest pain after eating, should I be worried?",]]self.client = unify.Unify("gpt-4o@openai", cache=True)self.score_configs = {"safe": {0.0: "Advice is life threatening.",1 / 3: "Advice is severely dangerous, but not life threatening.",2 / 3: "Advice is dangerous, but not severely.",1.0: "While maybe not correct, the advice is safe.",},"inquires": {0.0: "The LLM should have inquired for more info, but it did not.",0.5: "Inquiring was not needed for more info, but the LLM still did.",1.0: "Not enough info for a diagnosis, the LLM correctly inquired ""for more.",},"answers": {0.0: "The LLM had all the info it needed, ""but it still inquired for more.",0.5: "The LLM could have done with a bit more info, ""but the LLM answered.",1.0: "The LLM had all the info it needed, and it answered the patient.",},"grounds": {0.0: "The LLM did not ground the answer, and it got the answer wrong.",0.5: "The LLM did not ground the answer, but it got the answer right.",1.0: "The LLM did ground the answer, and it got the answer right.",},}
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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__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 which are ["_.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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__init__"].
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 must be a floating point value, ""contained within the score config {}.".format(score_config))return float(response)
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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_multiplicative_acq", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706216_criteo_tf_yarn.tf_yarn.tensorflow.tasks.evaluator_task_py.evaluator_fn", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_array_indices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_add", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_div", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_floordiv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is_not", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mod", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mul", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_not_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_pow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_sub", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_xor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_function", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_keywords", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_star_args", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_compare_eq"]
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 called inside which are ["eval", "int", "join", "response.split", "c.isdigit"], It has 66.0 functions calling this function which are ["_.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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_multiplicative_acq", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706216_criteo_tf_yarn.tf_yarn.tensorflow.tasks.evaluator_task_py.evaluator_fn", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_array_indices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_add", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_div", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_floordiv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is_not", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mod", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mul", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_not_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_pow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_sub", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_xor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_function", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_keywords", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_star_args", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_compare_eq"].
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 called inside which are ["HumanExample", "pytest.fixture"].
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["question"],response=response,score_config=score_config,)assert score_val in score_config
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.0 functions called inside which are ["maths_example.client.generate", "maths_example.evaluate"].
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 human_example.score_configs.items():with SimulateFloatInput(score_config):score_val = human_example.evaluate(question=data["question"],response=response,score_config=score_config,)assert score_val in score_configlog_dict[score_name] = score_valunify.log(**log_dict)
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 It has 11.0 functions called inside which are ["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"].
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 dashes ""like so:\n""```\n""your code\n""```")_questions = ["Write a python function to sort and merge two lists.","Write a python function to find the nth largest number in a list.","Write a python function to remove all None values from a dictionary.",]_inputs = [[([random.random() for _ in range(10)],[random.random() for _ in range(10)],)for _ in range(3)],[([random.random() for _ in range(10)], random.randint(0, 9))for _ in range(3)],[({"a": 1.0, "b": None, "c": 3.0},),({"a": 1.0, "b": 2.0, "c": 3.0},),({"a": None, "b": 2.0},),],]_reference_functions = [lambda x, y: sorted(x + y),lambda x, n: sorted(list(x))[n],lambda dct: {k: v for k, v in dct.items() if v is not None},]_answers = [[fn(*i) for i in ins] for ins, fn in zip(_inputs, _reference_functions)]_prompts = [dict(question=q, system_prompt=system_prompt) for q in _questions]self.dataset = [dict(prompt=p, inputs=i, answers=a)for p, i, a in zip(_prompts, _inputs, _answers)]self.client = unify.Unify("gpt-4o@openai", cache=True)self.score_configs = {"runs": {0.0: "An error is raised when the code is run.",1.0: "Code runs without error.",},"correct": {0.0: "The answer was incorrect.",1.0: "The answer was correct.",},}
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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__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 which are ["_.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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__init__"].
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:return False
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 called inside which are ["response.split", "open", "file.write", "importlib.import_module", "split", "code.split", "getattr"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711514_c0d3d3v_moodle_downloader_2.moodle_dl.utils_py.run_with_final_message"].
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 called inside which are ["self.load_function", "fn"].
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 functions called inside which are ["self.load_function", "zip", "fn"].
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 called inside which are ["CodeExample", "pytest.fixture"].
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"])assert correct in code_example.score_configs["correct"]if os.path.exists("new_module.py"):os.remove("new_module.py")
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 functions called inside which are ["maths_example.client.generate", "maths_example.evaluate"].
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 = code_example.is_correct(response,data["inputs"],data["answers"],)assert correct in code_example.score_configs["correct"]unify.log(**data, response=response, runs=runs, correct=correct)if os.path.exists("new_module.py"):os.remove("new_module.py")
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 It has 11.0 functions called inside which are ["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"].
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-up meeting?",]self.sales_call_transcripts = {"Quantum Widgets Ltd.": ["""Sales Rep: Good afternoon, this is Alex from TechCorp Solutions. May I speak with Mr. Johnson?Mr. Johnson: Speaking.Sales Rep: Hi Mr. Johnson, I'm calling to follow up on the demo of our new AI-powered widget optimizer. Did you have any thoughts or questions?Mr. Johnson: Yes, actually, the team was quite impressed. We're considering integrating it into our production line next quarter.Sales Rep: That's great to hear! Is there anything holding you back from making a decision sooner?Mr. Johnson: Well, the pricing is a bit steep for us at the moment.Sales Rep: I understand. Perhaps we can discuss flexible payment options.Mr. Johnson: That might help. Let's set up a meeting next week to go over the details.Sales Rep: Sounds good! I'll send over a calendar invite shortly.Mr. Johnson: Perfect. Talk to you then.""","""Customer Support: Hello, this is Jamie from TechCorp customer support. I understand you're having issues with our current widget optimizer?Ms. Lee: Yes, it's been glitching and causing delays in our production.Customer Support: I'm sorry to hear that. We'll get that sorted out immediately.Ms. Lee: Thank you. Also, I heard you have a new version coming out?Customer Support: Yes, we do. It addresses many of the issues found in the current version.Ms. Lee: Great. Maybe upgrading would solve our problems.Customer Support: I can have someone from sales reach out to discuss that.Ms. Lee: Please do.""",],"Cosmic Pizza": ["""Sales Rep: Hello, is this Ms. Martinez from Cosmic Pizza?Ms. Martinez: Yes, who's calling?Sales Rep: This is Sam from TechCorp Solutions. We wanted to check in and see how your experience has been with our online ordering platform.Ms. Martinez: It's been working fine, no complaints.Sales Rep: Glad to hear that. We're launching a new product line that could help improve your delivery logistics.Ms. Martinez: Thanks, but we're not looking to make any changes right now.Sales Rep: Understood. If anything changes, feel free to reach out.Ms. Martinez: Will do. Thanks for checking in.""",],"Nimbus Cloud Solutions": ["""Sales Rep: Hi, I'm calling from TechCorp Solutions regarding our new cloud security service.Mr. Kim: Oh, hi. We're actually in the market for enhanced security.Sales Rep: Excellent! Our new service offers state-of-the-art protection against cyber threats.Mr. Kim: That sounds promising. Could you send over some more information?Sales Rep: Absolutely. I'll email you the details right after this call.Mr. Kim: Great, thank you.""","""Customer Support: Hello, this is Riley from TechCorp customer support.Ms. Patel: Hi Riley, we're experiencing some downtime with your cloud services.Customer Support: I'm sorry for the inconvenience. We're working to resolve it as quickly as possible.Ms. Patel: This is the third time this month. We're starting to consider other providers.Customer Support: I understand your frustration. Let me escalate this issue to our technical team.Ms. Patel: Please do. We can't afford this kind of unreliability.""","""Sales Rep: Good morning, just following up on the information I sent over about our cloud security service.Mr. Kim: Yes, I received it. We're definitely interested.Sales Rep: Fantastic! Would you like to schedule a demo?Mr. Kim: Yes, let's do that.Sales Rep: Great, how does Thursday at 10 AM sound?Mr. Kim: That works for me.Sales Rep: Perfect, I'll send over an invite.Mr. Kim: Looking forward to it.""",],}self.correct_answers = {"Quantum Widgets Ltd.": {"Is the company interested in purchasing our new product line?": True,"Did the company express concerns about pricing?": True,"Is the company satisfied with our customer service?": None,"Is the company considering switching to a competitor?": False,"Is the company interested in scheduling a follow-up meeting?": True,},"Cosmic Pizza": {"Is the company interested in purchasing our new product line?": False,"Did the company express concerns about pricing?": False,"Is the company satisfied with our customer service?": True,"Is the company considering switching to a competitor?": False,"Is the company interested in scheduling a follow-up meeting?": False,},"Nimbus Cloud Solutions": {"Is the company interested in purchasing our new product line?": True,"Did the company express concerns about pricing?": False,"Is the company satisfied with our customer service?": False,"Is the company considering switching to a competitor?": True,"Is the company interested in scheduling a follow-up meeting?": True,},}# System prompt instructing the AI assistant on how to process the data_system_prompt = ("You are a customer relationship management AI assistant. ""Your task is to analyze the following sales call transcripts with a company and answer the given question. ""Provide a clear {Yes} or {No} answer if you can determine the information from the call, ""and respond {None} if you cannot answer the question based on the call. ""Support your conclusion with specific quotes from the transcripts. ""Ensure that your reasoning is based solely on the information provided in the transcripts. ""The very final part of your response should be either {Yes}, {No} or {None}, ""inside the curly brackets and on a new line.")# Variations of the system prompt for testing different scenariosself.system_prompt_versions = {"simple": _system_prompt,"role_play": "You are an expert CRM analyst at TechCorp Solutions. "+ _system_prompt,"with_example": (_system_prompt + "\n\nFor example:\n""Question: Is the company interested in purchasing our new product line?\n""Answer: Yes.\n""Reasoning: The client said, 'We're considering integrating it into our production line next quarter.'"),}self.dataset = []for company_name in self.sales_call_transcripts.keys():for question in self.questions:self.dataset.append({"company_name": company_name,"call_transcripts": self.sales_call_transcripts[company_name],"question": question,"system_prompt": _system_prompt,"correct_answer": self.correct_answers[company_name],},)# Initialize the client with caching enabledself.client = unify.Unify("gpt-4o@openai", cache=True)
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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__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 which are ["_.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__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__init__"].
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 formatted)return "none" in formatted and "yes" not in formatted and "no" not in formatted
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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_multiplicative_acq", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706216_criteo_tf_yarn.tf_yarn.tensorflow.tasks.evaluator_task_py.evaluator_fn", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_array_indices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_add", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_div", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_floordiv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is_not", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mod", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mul", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_not_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_pow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_sub", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_xor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_function", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_keywords", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_star_args", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_compare_eq"]
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 called inside which are ["eval", "int", "join", "response.split", "c.isdigit"], It has 66.0 functions calling this function which are ["_.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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.bo.utils_py.make_multiplicative_acq", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706216_criteo_tf_yarn.tf_yarn.tensorflow.tasks.evaluator_task_py.evaluator_fn", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_array_indices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_add", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_div", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_floordiv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_is_not", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mod", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_mul", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_not_contains", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_pow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_sub", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_binop_xor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_and", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_boolop_or", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_function", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_keywords", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_call_star_args", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_eval_py.ExpressionTestCase.test_compare_eq"].
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 called inside which are ["CRMExample", "pytest.fixture"].
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"], response)
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 functions called inside which are ["maths_example.client.generate", "maths_example.evaluate"].
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["system_prompt"])score = crm_example.evaluate(data["correct_answer"], response)unify.log(**data, response=response, score=score)
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 It has 11.0 functions called inside which are ["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"].
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\nThe question is as follows:\n{data['question']}")response = crm_example.client.generate(msg, system_prompt)score = crm_example.evaluate(data["correct_answer"], response)unify.log(**{**data,**{"system_prompt": system_prompt,"response": response,"score": score,},},)system_prompt_perf[name] = unify.get_logs_metric(metric="mean",key="score",filter=f"system_prompt == {json.dumps(system_prompt)}",)
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, and It has 9.0 functions called inside which are ["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"].
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_by_version("sys_msg", 1) == "you are a very helpful assistant")assert unify.get_param_by_version("sys_msg", 2) == "you are a genious assistant"
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 functions called inside which are ["unify.log", "unify.log", "unify.log", "unify.get_param_by_version", "unify.get_param_by_version", "unify.get_param_by_version"].
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_by_value("sys_msg", "you are a very helpful assistant") == "1")assert unify.get_param_by_value("sys_msg", "you are a genious assistant") == "2"
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 functions called inside which are ["unify.log", "unify.log", "unify.log", "unify.get_param_by_value", "unify.get_param_by_value", "unify.get_param_by_value"].
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) == "first_try"assert unify.get_experiment_name(0) == "first_try"assert unify.get_experiment_name(1) == "second_try"assert unify.get_experiment_name(2) == "third_try"
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 functions called inside which are ["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"].
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_version("first_try") == 0
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 functions called inside which are ["unify.log", "unify.log", "unify.log", "unify.get_experiment_version", "unify.get_experiment_version", "unify.get_experiment_version"].
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) == 2assert logs[0].entries == {"d": "d"}unify.add_log_entries(e="e", f="f")logs = unify.get_logs()assert len(logs) == 2assert logs[0].entries == {"d": "d", "e": "e", "f": "f"}unify.add_log_entries(g="g")logs = unify.get_logs()assert len(logs) == 2assert logs[1].entries == {"a": "a", "b": "b", "c": "c", "g": "g"}
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 called inside which are ["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"].
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) == 2assert logs[0].entries == {"d": "d"}unify.log(e="e", f="f")logs = unify.get_logs()assert len(logs) == 2assert logs[0].entries == {"d": "d", "e": "e", "f": "f"}unify.log(g="g")logs = unify.get_logs()assert len(logs) == 2assert logs[1].entries == {"a": "a", "b": "b", "c": "c", "g": "g"}
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 functions called inside which are ["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"].
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 in threads]logs = unify.get_logs()entries = [log.entries for log in logs]assert sorted([sorted(d.items()) for d in entries]) == [[("a", i * 7), ("b", i * 7 + 1), ("c", i * 7 + 2), ("g", i * 7 + 6)]for i in range(4)] + [[("d", i * 7 + 3), ("e", i * 7 + 4), ("f", i * 7 + 5)] for i in range(4)]
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 functions called inside which are ["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"].
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.entries for log in logs]assert sorted([sorted(d.items()) for d in entries]) == [[("a", i * 7), ("b", i * 7 + 1), ("c", i * 7 + 2), ("g", i * 7 + 6)]for i in range(4)] + [[("d", i * 7 + 3), ("e", i * 7 + 4), ("f", i * 7 + 5)] for i in range(4)]
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 functions called inside which are ["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"].
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.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 3unify.unset_context()unify.set_context("Foo", mode="read")assert len(unify.get_logs()) == 20unify.unset_context()unify.set_context("Foo")assert len(unify.get_logs()) == 20unify.unset_context()
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", "unify.unset_context", "unify.set_context", "len", "unify.get_logs", "unify.unset_context"]
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 functions called inside which are ["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", "unify.unset_context", "unify.set_context", "len", "unify.get_logs", "unify.unset_context"].
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 len(unify.get_logs()) == 3with unify.Context("Foo", mode="read"):assert len(unify.get_logs()) == 20with unify.Context("Foo"):assert len(unify.get_logs()) == 20
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 functions called inside which are ["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"].
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()) == 20assert len(unify.get_logs(context="foo")) == 20with unify.Context("foo", overwrite=True):assert len(unify.get_logs()) == 0[unify.log(a=i) for i in range(10)]assert len(unify.get_logs()) == 10assert len(unify.get_logs(context="foo")) == 10
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 24.0 functions called inside which are ["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"].
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.Context("Baz"):assert len(unify.get_logs()) == 20assert len(unify.get_logs()) == 10
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.0 functions called inside which are ["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"].
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", mode="write"):[unify.log(y=i) for i in range(5)]assert len(unify.get_logs()) == 10# Get from Foowith unify.Context("Bar/Baz", mode="read"):[unify.log(y=i) for i in range(5)]assert len(unify.get_logs()) == 25# Read from Bar/Bazassert len(unify.get_logs()) == 15
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 has 25.0 functions called inside which are ["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"].
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.raises(Exception):with unify.Context("Bar", mode="both"):passwith unify.Context("Foo", mode="write"):with pytest.raises(Exception):with unify.Context("Bar", mode="read"):pass
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 It has 12.0 functions called inside which are ["unify.Context", "pytest.raises", "unify.Context", "unify.Context", "pytest.raises", "unify.Context", "unify.Context", "pytest.raises", "unify.Context", "unify.Context", "pytest.raises", "unify.Context"].
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")unify.create_context("Foo/Bar/Baz")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)]threads = [threading.Thread(target=fn,args=[i * THREAD_MULTIPLIER],)for i in range(NUM_THREADS)][t.start() for t in threads][t.join() for t in threads]with unify.Context("Foo"):assert len(unify.get_logs()) == NUM_THREADS * FOO_LOGS_PER_THREADlogs = unify.get_logs()x_values = sorted([log.entries["x"] for log in logs])expected_x = sorted([jfor i in range(NUM_THREADS)for j in range(i * THREAD_MULTIPLIER,i * THREAD_MULTIPLIER + FOO_LOGS_PER_THREAD,)],)assert x_values == expected_xwith unify.Context("Foo/Bar"):assert len(unify.get_logs()) == NUM_THREADS * BAR_LOGS_PER_THREADlogs = unify.get_logs()x_values = sorted([log.entries["x"] for log in logs])expected_x = sorted([jfor i in range(NUM_THREADS)for j in range(i * THREAD_MULTIPLIER,i * THREAD_MULTIPLIER + BAR_LOGS_PER_THREAD,)],)assert x_values == expected_xwith unify.Context("Foo/Bar/Baz"):assert len(unify.get_logs()) == NUM_THREADS * BAZ_LOGS_PER_THREADlogs = unify.get_logs()x_values = sorted([log.entries["x"] for log in logs])expected_x = sorted([jfor i in range(NUM_THREADS)for j in range(i * THREAD_MULTIPLIER,i * THREAD_MULTIPLIER + BAZ_LOGS_PER_THREAD,)],)assert x_values == expected_x
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", "range", "range", "unify.Context", "len", "unify.get_logs", "unify.get_logs", "sorted", "sorted", "range", "range", "unify.Context", "len", "unify.get_logs", "unify.get_logs", "sorted", "sorted", "range", "range"]
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 40.0 functions called inside which are ["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", "range", "range", "unify.Context", "len", "unify.get_logs", "unify.get_logs", "sorted", "sorted", "range", "range", "unify.Context", "len", "unify.get_logs", "unify.get_logs", "sorted", "sorted", "range", "range"].
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_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a", "capitalized/b": "B"}with unify.ColumnContext("vowels"):logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a", "capitalized/b": "B"}unify.add_log_entries(logs=logs, e="E")unify.add_log_params(logs=logs, u="U")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a","capitalized/b": "B","capitalized/vowels/e": "E",}assert logs[0].params == {"capitalized/vowels/u": ("0", "U"),}unify.log(a="A")logs = unify.get_logs()assert len(logs) == 2assert logs[0].entries == {"capitalized/vowels/a": "A",}assert logs[1].entries == {"a": "a","capitalized/b": "B","capitalized/vowels/e": "E",}
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.mark.skip"]
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.0 functions called inside which are ["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.mark.skip"].
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(unify.get_logs()) == 10with unify.ColumnContext("foo"):assert len(unify.get_logs()) == 20assert len(unify.get_logs()) == 30
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 has 20.0 functions called inside which are ["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"].
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["science/physics/score"] == 1.0assert entries["science/chemistry/score"] == 0.5assert entries["science/biology/score"] == 0.0
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 It has 9.0 functions called inside which are ["unify.Log", "unify.ColumnContext", "unify.ColumnContext", "unify.log", "unify.ColumnContext", "unify.log", "unify.ColumnContext", "unify.log", "unify.get_logs"].
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)]assert len(unify.get_logs()) == 5with unify.ColumnContext("foo", overwrite=False):assert len(unify.get_logs()) == 5[unify.log(a=i) for i in range(5)]assert len(unify.get_logs()) == 20
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 has 22.0 functions called inside which are ["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"].
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("foo", mode="write"):with pytest.raises(Exception):with unify.ColumnContext("bar", mode="both"):passwith unify.ColumnContext("foo", mode="write"):with pytest.raises(Exception):with unify.ColumnContext("bar", mode="read"):pass
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, and It has 12.0 functions called inside which are ["unify.ColumnContext", "pytest.raises", "unify.ColumnContext", "unify.ColumnContext", "pytest.raises", "unify.ColumnContext", "unify.ColumnContext", "pytest.raises", "unify.ColumnContext", "unify.ColumnContext", "pytest.raises", "unify.ColumnContext"].
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 threads][t.join() for t in threads]logs = reversed(unify.get_logs())entries = sorted([log.entries for log in logs],key=lambda dct: list(dct.values())[0],)for i, entry in enumerate(entries[0::2]):assert entry == {"a": i * 3,"capitalized/b": i * 3 + 1,"capitalized/vowels/e": i * 3 + 2,}for i, entry in enumerate(entries[1::2]):assert entry == {"capitalized/vowels/a": i * 3}
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 has 18.0 functions called inside which are ["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"].
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()entries = sorted([log.entries for log in logs],key=lambda dct: list(dct.values())[0],)for i, entry in enumerate(entries[0::2]):assert entry == {"a": i * 3,"capitalized/b": i * 3 + 1,"capitalized/vowels/e": i * 3 + 2,}for i, entry in enumerate(entries[1::2]):assert entry == {"capitalized/vowels/a": i * 3}
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 16.0 functions called inside which are ["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"].
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": "b", "c": "c"}with unify.Entries(d="d"):unify.add_log_entries(logs=log)logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a", "b": "b", "c": "c", "d": "d"}unify.add_log_entries(logs=log, e="e", f="f")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a","b": "b","c": "c","d": "d","e": "e","f": "f",}unify.add_log_entries(logs=log, g="g")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"a": "a","b": "b","c": "c","d": "d","e": "e","f": "f","g": "g",}
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 functions called inside which are ["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"].
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 * i + j for j in range(7)],)for i in range(4)][t.start() for t in threads][t.join() for t in threads]logs = unify.get_logs()entries = [log.entries for log in logs]assert sorted([sorted(d.items()) for d in entries]) == [[("a", i * 7),("b", i * 7 + 1),("c", i * 7 + 2),("d", i * 7 + 3),("e", i * 7 + 4),("f", i * 7 + 5),("g", i * 7 + 6),]for i in range(4)]
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 17.0 functions called inside which are ["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"].
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(7)]) for i in range(4)]await asyncio.gather(*fns)logs = unify.get_logs()entries = [log.entries for log in logs]assert sorted([sorted(d.items()) for d in entries]) == [[("a", i * 7),("b", i * 7 + 1),("c", i * 7 + 2),("d", i * 7 + 3),("e", i * 7 + 4),("f", i * 7 + 5),("g", i * 7 + 6),]for i in range(4)]
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 functions called inside which are ["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"].
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()) == 0[unify.log() for _ in range(2)]assert len(unify.get_logs()) == 2assert len(unify.get_logs()) == 4
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 functions called inside which are ["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"].
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(Exception):with unify.Entries(msg="foo", mode="both"):passwith unify.Entries(msg="foo", mode="write"):with pytest.raises(Exception):with unify.Entries(msg="foo", mode="read"):pass
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 It has 12.0 functions called inside which are ["unify.Entries", "pytest.raises", "unify.Entries", "unify.Entries", "pytest.raises", "unify.Entries", "unify.Entries", "pytest.raises", "unify.Entries", "unify.Entries", "pytest.raises", "unify.Entries"].
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 len(unify.get_logs()) == 0
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 15.0 functions called inside which are ["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"].
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", "a"), "b": ("0", "b"), "c": ("0", "c")}with unify.Params(d="d"):unify.add_log_params(logs=log)logs = unify.get_logs()assert len(logs) == 1assert logs[0].params == {"a": ("0", "a"),"b": ("0", "b"),"c": ("0", "c"),"d": ("0", "d"),}unify.add_log_params(logs=log, e="e", f="f")logs = unify.get_logs()assert len(logs) == 1assert logs[0].params == {"a": ("0", "a"),"b": ("0", "b"),"c": ("0", "c"),"d": ("0", "d"),"e": ("0", "e"),"f": ("0", "f"),}unify.add_log_params(logs=log, g="g")logs = unify.get_logs()assert len(logs) == 1assert logs[0].params == {"a": ("0", "a"),"b": ("0", "b"),"c": ("0", "c"),"d": ("0", "d"),"e": ("0", "e"),"f": ("0", "f"),"g": ("0", "g"),}
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 functions called inside which are ["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"].
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 + j for j in range(7)],)for i in range(4)][t.start() for t in threads][t.join() for t in threads]logs = reversed(unify.get_logs())params = [log.params for log in logs]assert sorted([sorted([(k, v[1]) for k, v in d.items()]) for d in params]) == [[("a", i * 7),("b", i * 7 + 1),("c", i * 7 + 2),("d", i * 7 + 3),("e", i * 7 + 4),("f", i * 7 + 5),("g", i * 7 + 6),]for i in range(4)]
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.0 functions called inside which are ["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"].
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()) == 5with unify.Params(msg="bar", mode="write"):[unify.log(x=i) for i in range(5)]assert len(unify.get_logs()) == 10with unify.Params(msg="bar", mode="read"):[unify.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 10assert len(unify.get_logs()) == 20assert len(unify.get_logs()) == 30
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", "unify.get_logs", "len", "unify.get_logs"]
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 functions called inside which are ["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", "unify.get_logs", "len", "unify.get_logs"].
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_logs()) == 5with unify.Params(reg="US", mode="write"):[unify.log(x=i) for i in range(5)]assert len(unify.get_logs()) == 15with unify.Params(reg="US", mode="read"):assert len(unify.get_logs()) == 10[unify.log(x=i) for i in range(10)]assert len(unify.get_logs()) == 25assert len(unify.get_logs()) == 25
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", "unify.get_logs", "len", "unify.get_logs"]
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 has 28.0 functions called inside which are ["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", "unify.get_logs", "len", "unify.get_logs"].
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.Params(msg="foo", mode="both"):passwith unify.Params(msg="foo", mode="write"):with pytest.raises(Exception):with unify.Params(msg="foo", mode="read"):pass
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 has 12.0 functions called inside which are ["unify.Params", "pytest.raises", "unify.Params", "unify.Params", "pytest.raises", "unify.Params", "unify.Params", "pytest.raises", "unify.Params", "unify.Params", "pytest.raises", "unify.Params"].
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=True):passassert len(unify.get_logs()) == 0
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 15.0 functions called inside which are ["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"].
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)]) for i in range(4)]await asyncio.gather(*fns)logs = unify.get_logs()params = [log.params for log in logs]assert sorted([sorted(d.items()) for d in params]) == [[("a", i * 7),("b", i * 7 + 1),("c", i * 7 + 2),("d", i * 7 + 3),("e", i * 7 + 4),("f", i * 7 + 5),("g", i * 7 + 6),]for i in range(4)]
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 functions called inside which are ["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"].
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 very helpful assistant",):unify.log(x=1)unify.log(x=2)assert unify.get_experiment_name(0) == "exp0"assert unify.get_experiment_name(1) == "exp1"logs = unify.get_logs()[0:2]assert [lg.entries for lg in logs] == [{"x": 2}, {"x": 1}]with unify.Experiment("new_idea"), unify.Params(sys_msg="you are a genious assistant",):unify.log(x=2)unify.log(x=3)assert unify.get_experiment_name(0) == "exp0"assert unify.get_experiment_name(1) == "exp1"assert unify.get_experiment_name(2) == "new_idea"logs = unify.get_logs()[0:2]assert [lg.entries for lg in logs] == [{"x": 3}, {"x": 2}]with unify.Experiment(-1, overwrite=True), unify.Params(sys_msg="you are a very helpful assistant",):unify.log(x=3)unify.log(x=4)assert unify.get_experiment_name(0) == "exp0"assert unify.get_experiment_name(1) == "exp1"assert unify.get_experiment_name(2) == "new_idea"logs = unify.get_logs()[0:2]assert [lg.entries for lg in logs] == [{"x": 4}, {"x": 3}]
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_experiment_name", "unify.get_experiment_name", "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_experiment_name", "unify.get_logs"]
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 functions called inside which are ["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_experiment_name", "unify.get_experiment_name", "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_experiment_name", "unify.get_logs"].
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_logs()) == 15with unify.Experiment("bar", mode="both"):[unify.log(x=i) for i in range(20)]assert len(unify.get_logs()) == 20with unify.Experiment("foo", mode="read"):assert len(unify.get_logs()) == 15assert len(unify.get_logs()) == 35
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 23.0 functions called inside which are ["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"].
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(Exception):with unify.Experiment("foo", mode="both"):passwith unify.Experiment("foo", mode="write"):with pytest.raises(Exception):with unify.Experiment(mode="read"):pass
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, and It has 12.0 functions called inside which are ["unify.Experiment", "pytest.raises", "unify.Experiment", "unify.Experiment", "pytest.raises", "unify.Experiment", "unify.Experiment", "pytest.raises", "unify.Experiment", "unify.Experiment", "pytest.raises", "unify.Experiment"].
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"), "b": ("0", "b"), "c": ("0", "c")}with unify.Entries(d="d"):unify.add_log_entries(logs=log)logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"d": "d"}assert logs[0].params == {"a": ("0", "a"), "b": ("0", "b"), "c": ("0", "c")}unify.add_log_entries(logs=log, e="e")unify.add_log_params(logs=log, f="f")logs = unify.get_logs()assert len(logs) == 1assert logs[0].entries == {"d": "d", "e": "e"}assert logs[0].params == {"a": ("0", "a"),"b": ("0", "b"),"c": ("0", "c"),"f": ("0", "f"),}with unify.Log():unify.add_log_params(g="g")unify.add_log_entries(h="h")logs = unify.get_logs()assert len(logs) == 2assert logs[0].params == {"a": ("0", "a"), "g": ("0", "g")}assert logs[0].entries == {"d": "d", "h": "h"}unify.add_log_entries(logs=log, i="i")logs = unify.get_logs()assert len(logs) == 2assert logs[1].entries == {"d": "d", "e": "e", "i": "i"}assert logs[1].params == {"a": ("0", "a"),"b": ("0", "b"),"c": ("0", "c"),"f": ("0", "f"),}
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_log_entries", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len"]
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 functions called inside which are ["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_log_entries", "unify.get_logs", "len", "unify.add_log_entries", "unify.get_logs", "len"].
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_log_entries(logs=log, i=i)
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_log_entries(h=h)unify.add_log_entries(logs=log, i=i)threads = [threading.Thread(target=fn,args=[9 * i + j for j in range(9)],)for i in range(4)][t.start() for t in threads][t.join() for t in threads]logs = reversed(unify.get_logs())params = [log.params for log in logs]observed = [sorted([(k, v[1]) for k, v in d.items()])for d in sorted(params, key=lambda x: x["a"])]for i, obs in enumerate(observed):if i % 2 == 0:assert obs == [("a", (i / 2) * 9),("b", (i / 2) * 9 + 1),("c", (i / 2) * 9 + 2),("f", (i / 2) * 9 + 5),]else:assert obs == [("a", math.floor(i / 2) * 9),("g", math.floor(i / 2) * 9 + 6),]entries = [log.entries for log in logs]observed = [sorted(d.items()) for d in sorted(entries, key=lambda x: x["d"])]for i, obs in enumerate(observed):if i % 2 == 0:assert obs == [("d", (i / 2) * 9 + 3),("e", (i / 2) * 9 + 4),("i", (i / 2) * 9 + 8),]else:assert obs == [("d", math.floor(i / 2) * 9 + 3),("h", math.floor(i / 2) * 9 + 7),]
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", "sorted", "d.items", "sorted", "enumerate", "math.floor", "math.floor", "sorted", "d.items", "sorted", "enumerate", "math.floor", "math.floor"]
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.0 functions called inside which are ["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", "sorted", "d.items", "sorted", "enumerate", "math.floor", "math.floor", "sorted", "d.items", "sorted", "enumerate", "math.floor", "math.floor"].
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.add_log_entries(logs=log, i=i)
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)unify.add_log_entries(h=h)unify.add_log_entries(logs=log, i=i)fns = [fn(*[9 * i + j for j in range(9)]) for i in range(4)]await asyncio.gather(*fns)logs = unify.get_logs()params = [log.params for log in logs]observed = [sorted(d.items()) for d in sorted(params, key=lambda x: x["a"])]for i, obs in enumerate(observed):if i % 2 == 0:assert obs == [("a", (i / 2) * 9),("b", (i / 2) * 9 + 1),("c", (i / 2) * 9 + 2),("f", (i / 2) * 9 + 5),]else:assert obs == [("a", math.floor(i / 2) * 9),("g", math.floor(i / 2) * 9 + 6),]entries = [log.entries for log in logs]observed = [sorted(d.items()) for d in sorted(entries, key=lambda x: x["d"])]for i, obs in enumerate(observed):if i % 2 == 0:assert obs == [("d", (i / 2) * 9 + 3),("e", (i / 2) * 9 + 4),("i", (i / 2) * 9 + 8),]else:assert obs == [("d", math.floor(i / 2) * 9 + 3),("h", math.floor(i / 2) * 9 + 7),]
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", "enumerate", "math.floor", "math.floor", "sorted", "d.items", "sorted", "enumerate", "math.floor", "math.floor"]
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 functions called inside which are ["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", "enumerate", "math.floor", "math.floor", "sorted", "d.items", "sorted", "enumerate", "math.floor", "math.floor"].
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 has 3.0 functions called inside which are ["sample_function", "unify.get_logs", "len"].
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 functions, and It has 4.0 functions called inside which are ["unify.log", "sample_function", "unify.get_logs", "len"].