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 | CustomEndpointHandler | public | 0 | 0 | __init__ | def __init__(self, ky_name, ky_value, endpoint_names):self._key_name = ky_nameself._key_value = ky_valueself._endpoint_names = endpoint_names | 1 | 4 | 4 | 26 | 0 | 6 | 9 | 6 | self,ky_name,ky_value,endpoint_names | [] | None | {"Assign": 3} | 0 | 4 | 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 CustomEndpointHandler.The function start at line 6 and ends at 9. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [6.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 | CustomEndpointHandler | public | 0 | 0 | _handle | def _handle(self):try:unify.delete_custom_api_key(self._key_name)except:passfor endpoint_nm in self._endpoint_names:try:unify.delete_custom_endpoint(endpoint_nm)except:passunify.create_custom_api_key(self._key_name, self._key_value) | 4 | 11 | 1 | 48 | 0 | 11 | 21 | 11 | self | [] | None | {"Expr": 3, "For": 1, "Try": 2} | 3 | 11 | 3 | ["unify.delete_custom_api_key", "unify.delete_custom_endpoint", "unify.create_custom_api_key"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94634754_pytorch_executorch.exir.memory_planning_py._apply_algo_to_submodules"] | The function (_handle) defined within the public class called CustomEndpointHandler.The function start at line 11 and ends at 21. It contains 11 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 3.0 functions, It has 3.0 functions called inside which are ["unify.delete_custom_api_key", "unify.delete_custom_endpoint", "unify.create_custom_api_key"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94634754_pytorch_executorch.exir.memory_planning_py._apply_algo_to_submodules"]. |
unifyai_unify | CustomEndpointHandler | public | 0 | 0 | __enter__ | def __enter__(self):self._handle() | 1 | 2 | 1 | 10 | 0 | 23 | 24 | 23 | self | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["self._handle"] | 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 CustomEndpointHandler.The function start at line 23 and ends at 24. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["self._handle"], 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 | CustomEndpointHandler | public | 0 | 0 | __exit__ | def __exit__(self, exc_type, exc_val, exc_tb):self._handle() | 1 | 2 | 4 | 16 | 0 | 26 | 27 | 26 | self,exc_type,exc_val,exc_tb | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["self._handle"] | 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 CustomEndpointHandler.The function start at line 26 and ends at 27. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [26.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["self._handle"], 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 | public | public | 0 | 0 | test_create_custom_endpoint | def test_create_custom_endpoint():with custom_endpoint_handler:unify.create_custom_endpoint(name=endpoint_name,url=endpoint_url,key_name=key_name,) | 1 | 7 | 0 | 24 | 0 | 43 | 49 | 43 | [] | None | {"Expr": 1, "With": 1} | 1 | 7 | 1 | ["unify.create_custom_endpoint"] | 0 | [] | The function (test_create_custom_endpoint) defined within the public class called public.The function start at line 43 and ends at 49. 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 declare 1.0 function, and It has 1.0 function called inside which is ["unify.create_custom_endpoint"]. | |
unifyai_unify | public | public | 0 | 0 | test_list_custom_endpoints | def test_list_custom_endpoints():with custom_endpoint_handler:unify.create_custom_endpoint(name=endpoint_name,url=endpoint_url,key_name=key_name,)custom_endpoints = unify.list_custom_endpoints()assert len(custom_endpoints) == 1assert endpoint_name == custom_endpoints[0]["name"] | 1 | 10 | 0 | 48 | 1 | 52 | 61 | 52 | ['custom_endpoints'] | None | {"Assign": 1, "Expr": 1, "With": 1} | 3 | 10 | 3 | ["unify.create_custom_endpoint", "unify.list_custom_endpoints", "len"] | 0 | [] | The function (test_list_custom_endpoints) defined within the public class called public.The function start at line 52 and ends at 61. 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 3.0 functions, and It has 3.0 functions called inside which are ["unify.create_custom_endpoint", "unify.list_custom_endpoints", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_rename_custom_endpoint | def test_rename_custom_endpoint():with custom_endpoint_handler:unify.create_custom_endpoint(name=endpoint_name,url=endpoint_url,key_name=key_name,)custom_endpoints = unify.list_custom_endpoints()assert len(custom_endpoints) == 1assert endpoint_name == custom_endpoints[0]["name"]unify.rename_custom_endpoint(endpoint_name,new_endpoint_name,)custom_endpoints = unify.list_custom_endpoints()assert len(custom_endpoints) == 1assert new_endpoint_name == custom_endpoints[0]["name"] | 1 | 17 | 0 | 81 | 1 | 64 | 80 | 64 | ['custom_endpoints'] | None | {"Assign": 2, "Expr": 2, "With": 1} | 6 | 17 | 6 | ["unify.create_custom_endpoint", "unify.list_custom_endpoints", "len", "unify.rename_custom_endpoint", "unify.list_custom_endpoints", "len"] | 0 | [] | The function (test_rename_custom_endpoint) defined within the public class called public.The function start at line 64 and ends at 80. 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 6.0 functions, and It has 6.0 functions called inside which are ["unify.create_custom_endpoint", "unify.list_custom_endpoints", "len", "unify.rename_custom_endpoint", "unify.list_custom_endpoints", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_delete_custom_endpoints | def test_delete_custom_endpoints():with custom_endpoint_handler:unify.create_custom_endpoint(name=endpoint_name,url=endpoint_url,key_name=key_name,)custom_endpoints = unify.list_custom_endpoints()assert len(custom_endpoints) == 1assert endpoint_name == custom_endpoints[0]["name"]unify.delete_custom_endpoint(endpoint_name)custom_endpoints = unify.list_custom_endpoints()assert len(custom_endpoints) == 0 | 1 | 13 | 0 | 68 | 1 | 83 | 95 | 83 | ['custom_endpoints'] | None | {"Assign": 2, "Expr": 2, "With": 1} | 6 | 13 | 6 | ["unify.create_custom_endpoint", "unify.list_custom_endpoints", "len", "unify.delete_custom_endpoint", "unify.list_custom_endpoints", "len"] | 0 | [] | The function (test_delete_custom_endpoints) defined within the public class called public.The function start at line 83 and ends at 95. 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 6.0 functions, and It has 6.0 functions called inside which are ["unify.create_custom_endpoint", "unify.list_custom_endpoints", "len", "unify.delete_custom_endpoint", "unify.list_custom_endpoints", "len"]. | |
unifyai_unify | TestSupportedModels | public | 0 | 0 | test_list_models | def test_list_models(self) -> None:models = unify.list_models()assert isinstance(models, list), "return type was not a list: {}".format(models,)# is listassert models, "returned list was empty: {}".format(models)# not emptyassert len(models) == len(set(models)), "duplication detected: {}".format(models,)# no duplication | 1 | 9 | 1 | 59 | 0 | 6 | 14 | 6 | self | [] | None | {"Assign": 1} | 8 | 9 | 8 | ["unify.list_models", "isinstance", "format", "format", "len", "len", "set", "format"] | 0 | [] | The function (test_list_models) defined within the public class called TestSupportedModels.The function start at line 6 and ends at 14. 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 8.0 functions, and It has 8.0 functions called inside which are ["unify.list_models", "isinstance", "format", "format", "len", "len", "set", "format"]. |
unifyai_unify | TestSupportedModels | public | 0 | 0 | test_list_models_w_provider | def test_list_models_w_provider(self):models = unify.list_models("openai")assert isinstance(models, list), "return type was not a list: {}".format(models,)# is listassert models, "returned list was empty: {}".format(models)# not emptyassert len(models) == len(set(models)), "duplication detected: {}".format(models,)# no duplicationassert len(models) == len([e for e in unify.list_endpoints() if "openai" in e],), ("number of models for the provider did not match the number of endpoints ""with the provider in the string") | 3 | 15 | 1 | 88 | 0 | 16 | 30 | 16 | self | [] | None | {"Assign": 1} | 11 | 15 | 11 | ["unify.list_models", "isinstance", "format", "format", "len", "len", "set", "format", "len", "len", "unify.list_endpoints"] | 0 | [] | The function (test_list_models_w_provider) defined within the public class called TestSupportedModels.The function start at line 16 and ends at 30. It contains 15 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 ["unify.list_models", "isinstance", "format", "format", "len", "len", "set", "format", "len", "len", "unify.list_endpoints"]. |
unifyai_unify | TestSupportedProviders | public | 0 | 0 | test_list_providers | def test_list_providers(self) -> None:providers = unify.list_providers()assert isinstance(providers, list), "return type was not a list: {}".format(providers,)# is listassert providers, "returned list was empty: {}".format(providers)# not emptyassert len(providers) == len(set(providers)), "duplication detected: {}".format(providers,)# no duplication | 1 | 9 | 1 | 59 | 0 | 34 | 42 | 34 | self | [] | None | {"Assign": 1} | 8 | 9 | 8 | ["unify.list_providers", "isinstance", "format", "format", "len", "len", "set", "format"] | 0 | [] | The function (test_list_providers) defined within the public class called TestSupportedProviders.The function start at line 34 and ends at 42. 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 8.0 functions, and It has 8.0 functions called inside which are ["unify.list_providers", "isinstance", "format", "format", "len", "len", "set", "format"]. |
unifyai_unify | TestSupportedProviders | public | 0 | 0 | test_list_providers_w_model | def test_list_providers_w_model(self):providers = unify.list_providers("llama-3.2-90b-chat")assert isinstance(providers, list), "return type was not a list: {}".format(providers,)# is listassert providers, "returned list was empty: {}".format(providers)# not emptyassert len(providers) == len(set(providers)), "duplication detected: {}".format(providers,)# no duplicationassert len(providers) == len([e for e in unify.list_endpoints() if "llama-3.2-90b-chat" in e],), ("number of providers for the model did not match the number of endpoints ""with the model in the string") | 3 | 15 | 1 | 88 | 0 | 44 | 58 | 44 | self | [] | None | {"Assign": 1} | 11 | 15 | 11 | ["unify.list_providers", "isinstance", "format", "format", "len", "len", "set", "format", "len", "len", "unify.list_endpoints"] | 0 | [] | The function (test_list_providers_w_model) defined within the public class called TestSupportedProviders.The function start at line 44 and ends at 58. It contains 15 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 ["unify.list_providers", "isinstance", "format", "format", "len", "len", "set", "format", "len", "len", "unify.list_endpoints"]. |
unifyai_unify | TestSupportedEndpoints | public | 0 | 0 | test_list_endpoints | def test_list_endpoints(self) -> None:endpoints = unify.list_endpoints()assert isinstance(endpoints, list), "return type was not a list: {}".format(endpoints,)# is listassert endpoints, "returned list was empty: {}".format(endpoints)# not emptyassert len(endpoints) == len(set(endpoints)), "duplication detected: {}".format(endpoints,)# no duplication | 1 | 9 | 1 | 59 | 0 | 62 | 70 | 62 | self | [] | None | {"Assign": 1} | 8 | 9 | 8 | ["unify.list_endpoints", "isinstance", "format", "format", "len", "len", "set", "format"] | 0 | [] | The function (test_list_endpoints) defined within the public class called TestSupportedEndpoints.The function start at line 62 and ends at 70. 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 8.0 functions, and It has 8.0 functions called inside which are ["unify.list_endpoints", "isinstance", "format", "format", "len", "len", "set", "format"]. |
unifyai_unify | TestSupportedEndpoints | public | 0 | 0 | test_list_endpoints_w_model | def test_list_endpoints_w_model(self) -> None:endpoints = unify.list_endpoints(model="llama-3.2-90b-chat")assert isinstance(endpoints, list), "return type was not a list: {}".format(endpoints,)# is listassert endpoints, "returned list was empty: {}".format(endpoints)# not emptyassert len(endpoints) == len(set(endpoints)), "duplication detected: {}".format(endpoints,)# no duplicationassert len(endpoints) == len(unify.list_providers("llama-3.2-90b-chat")), ("number of endpoints for the model did not match the number of providers ""for the model") | 1 | 13 | 1 | 82 | 0 | 72 | 84 | 72 | self | [] | None | {"Assign": 1} | 11 | 13 | 11 | ["unify.list_endpoints", "isinstance", "format", "format", "len", "len", "set", "format", "len", "len", "unify.list_providers"] | 0 | [] | The function (test_list_endpoints_w_model) defined within the public class called TestSupportedEndpoints.The function start at line 72 and ends at 84. 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 11.0 functions, and It has 11.0 functions called inside which are ["unify.list_endpoints", "isinstance", "format", "format", "len", "len", "set", "format", "len", "len", "unify.list_providers"]. |
unifyai_unify | TestSupportedEndpoints | public | 0 | 0 | test_list_endpoints_w_provider | def test_list_endpoints_w_provider(self) -> None:endpoints = unify.list_endpoints(provider="openai")assert isinstance(endpoints, list), "return type was not a list: {}".format(endpoints,)# is listassert endpoints, "returned list was empty: {}".format(endpoints)# not emptyassert len(endpoints) == len(set(endpoints)), "duplication detected: {}".format(endpoints,)# no duplicationassert len(endpoints) == len(unify.list_models("openai")), ("number of endpoints for the provider did not match the number of models ""for the provider") | 1 | 13 | 1 | 82 | 0 | 86 | 98 | 86 | self | [] | None | {"Assign": 1} | 11 | 13 | 11 | ["unify.list_endpoints", "isinstance", "format", "format", "len", "len", "set", "format", "len", "len", "unify.list_models"] | 0 | [] | The function (test_list_endpoints_w_provider) defined within the public class called TestSupportedEndpoints.The function start at line 86 and ends at 98. 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 11.0 functions, and It has 11.0 functions called inside which are ["unify.list_endpoints", "isinstance", "format", "format", "len", "len", "set", "format", "len", "len", "unify.list_models"]. |
unifyai_unify | TestSupportedEndpoints | public | 0 | 0 | test_list_endpoints_w_model_w_provider | def test_list_endpoints_w_model_w_provider(self) -> None:with pytest.raises(Exception):unify.list_endpoints("gpt-4o", "openai") | 1 | 3 | 1 | 23 | 0 | 100 | 102 | 100 | self | [] | None | {"Expr": 1, "With": 1} | 2 | 3 | 2 | ["pytest.raises", "unify.list_endpoints"] | 0 | [] | The function (test_list_endpoints_w_model_w_provider) defined within the public class called TestSupportedEndpoints.The function start at line 100 and ends at 102. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["pytest.raises", "unify.list_endpoints"]. |
unifyai_unify | public | public | 0 | 0 | _thread_locked.wrapped | def wrapped(*args, **kwargs):THREAD_LOCK.acquire()try:ret = fn(*args, **kwargs)THREAD_LOCK.release()return retexcept:THREAD_LOCK.release() | 2 | 8 | 2 | 40 | 0 | 60 | 67 | 60 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_thread_locked.wrapped) defined within the public class called public.The function start at line 60 and ends at 67. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [60.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | _thread_locked | def _thread_locked(fn: Callable) -> Callable:# noinspection PyBroadExceptiondef wrapped(*args, **kwargs):THREAD_LOCK.acquire()try:ret = fn(*args, **kwargs)THREAD_LOCK.release()return retexcept:THREAD_LOCK.release()return wrapped | 1 | 3 | 1 | 13 | 1 | 58 | 69 | 58 | fn | ['ret'] | Callable | {"Assign": 1, "Expr": 3, "Return": 2, "Try": 1} | 4 | 12 | 4 | ["THREAD_LOCK.acquire", "fn", "THREAD_LOCK.release", "THREAD_LOCK.release"] | 0 | [] | The function (_thread_locked) defined within the public class called public.The function start at line 58 and ends at 69. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["THREAD_LOCK.acquire", "fn", "THREAD_LOCK.release", "THREAD_LOCK.release"]. |
unifyai_unify | public | public | 0 | 0 | test_log_query_manually | def test_log_query_manually():result = unify.log_query(**data)assert isinstance(result, dict)assert "info" in resultassert result["info"] == "Query logged successfully" | 1 | 5 | 0 | 31 | 1 | 73 | 77 | 73 | ['result'] | None | {"Assign": 1} | 2 | 5 | 2 | ["unify.log_query", "isinstance"] | 0 | [] | The function (test_log_query_manually) defined within the public class called public.The function start at line 73 and ends at 77. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["unify.log_query", "isinstance"]. | |
unifyai_unify | public | public | 0 | 0 | test_log_query_via_chat_completion | def test_log_query_via_chat_completion():client = unify.Unify("gpt-4o@openai")response = client.generate("hello",log_query_body=True,log_response_body=True,)assert isinstance(response, str) | 1 | 8 | 0 | 36 | 2 | 81 | 88 | 81 | ['client', 'response'] | None | {"Assign": 2} | 3 | 8 | 3 | ["unify.Unify", "client.generate", "isinstance"] | 0 | [] | The function (test_log_query_via_chat_completion) defined within the public class called public.The function start at line 81 and ends at 88. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["unify.Unify", "client.generate", "isinstance"]. | |
unifyai_unify | public | public | 0 | 0 | test_get_queries_from_manual | def test_get_queries_from_manual():start_time = datetime.now(timezone.utc)unify.log_query(**data)history = unify.get_queries(endpoints="local_model_test@external",start_time=start_time,)assert len(history) == 1history = unify.get_queries(endpoints="local_model_test@external",start_time=datetime.now(timezone.utc) + timedelta(seconds=1),)assert len(history) == 0 | 1 | 13 | 0 | 79 | 2 | 92 | 104 | 92 | ['start_time', 'history'] | None | {"Assign": 3, "Expr": 1} | 8 | 13 | 8 | ["datetime.now", "unify.log_query", "unify.get_queries", "len", "unify.get_queries", "datetime.now", "timedelta", "len"] | 0 | [] | The function (test_get_queries_from_manual) defined within the public class called public.The function start at line 92 and ends at 104. 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 8.0 functions, and It has 8.0 functions called inside which are ["datetime.now", "unify.log_query", "unify.get_queries", "len", "unify.get_queries", "datetime.now", "timedelta", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_get_queries_from_chat_completion | def test_get_queries_from_chat_completion():start_time = datetime.now(timezone.utc)unify.Unify("gpt-4o@openai").generate("hello",log_query_body=True,log_response_body=True,)history = unify.get_queries(endpoints="gpt-4o@openai",start_time=start_time,)assert len(history) == 1history = unify.get_queries(endpoints="gpt-4o@openai",start_time=datetime.now(timezone.utc) + timedelta(seconds=1),)assert len(history) == 0 | 1 | 17 | 0 | 92 | 2 | 108 | 124 | 108 | ['start_time', 'history'] | None | {"Assign": 3, "Expr": 1} | 9 | 17 | 9 | ["datetime.now", "generate", "unify.Unify", "unify.get_queries", "len", "unify.get_queries", "datetime.now", "timedelta", "len"] | 0 | [] | The function (test_get_queries_from_chat_completion) defined within the public class called public.The function start at line 108 and ends at 124. 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 9.0 functions, and It has 9.0 functions called inside which are ["datetime.now", "generate", "unify.Unify", "unify.get_queries", "len", "unify.get_queries", "datetime.now", "timedelta", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_get_query_failures | def test_get_query_failures():start_time = datetime.now(timezone.utc)client = unify.Unify("gpt-4o@openai")client.generate("hello",log_query_body=True,log_response_body=True,)with pytest.raises(Exception):client.generate("hello",log_query_body=True,log_response_body=True,drop_params=False,invalid_arg="invalid_value",)# inside logged timeframehistory_w_both = unify.get_queries(endpoints="gpt-4o@openai",start_time=start_time,failures=True,)assert len(history_w_both) == 2history_only_failures = unify.get_queries(endpoints="gpt-4o@openai",start_time=start_time,failures="only",)assert len(history_only_failures) == 1history_only_success = unify.get_queries(endpoints="gpt-4o@openai",start_time=start_time,failures=False,)assert len(history_only_success) == 1# Outside logged timeframehistory_w_both = unify.get_queries(endpoints="gpt-4o@openai",start_time=datetime.now(timezone.utc) + timedelta(seconds=1),failures=True,)assert len(history_w_both) == 0history_only_failures = unify.get_queries(endpoints="gpt-4o@openai",start_time=datetime.now(timezone.utc) + timedelta(seconds=1),failures="only",)assert len(history_only_failures) == 0history_only_success = unify.get_queries(endpoints="gpt-4o@openai",start_time=datetime.now(timezone.utc) + timedelta(seconds=1),failures=False,)assert len(history_only_success) == 0 | 1 | 52 | 0 | 266 | 5 | 128 | 183 | 128 | ['client', 'history_w_both', 'history_only_success', 'history_only_failures', 'start_time'] | None | {"Assign": 8, "Expr": 2, "With": 1} | 23 | 56 | 23 | ["datetime.now", "unify.Unify", "client.generate", "pytest.raises", "client.generate", "unify.get_queries", "len", "unify.get_queries", "len", "unify.get_queries", "len", "unify.get_queries", "datetime.now", "timedelta", "len", "unify.get_queries", "datetime.now", "timedelta", "len", "unify.get_queries", "datetime.now", "timedelta", "len"] | 0 | [] | The function (test_get_query_failures) defined within the public class called public.The function start at line 128 and ends at 183. It contains 52 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 23.0 functions, and It has 23.0 functions called inside which are ["datetime.now", "unify.Unify", "client.generate", "pytest.raises", "client.generate", "unify.get_queries", "len", "unify.get_queries", "len", "unify.get_queries", "len", "unify.get_queries", "datetime.now", "timedelta", "len", "unify.get_queries", "datetime.now", "timedelta", "len", "unify.get_queries", "datetime.now", "timedelta", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_get_query_tags | def test_get_query_tags():unify.log_query(**data)tags = unify.get_query_tags()assert isinstance(tags, list)assert tag in tags | 1 | 5 | 0 | 29 | 1 | 187 | 191 | 187 | ['tags'] | None | {"Assign": 1, "Expr": 1} | 3 | 5 | 3 | ["unify.log_query", "unify.get_query_tags", "isinstance"] | 0 | [] | The function (test_get_query_tags) defined within the public class called public.The function start at line 187 and ends at 191. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["unify.log_query", "unify.get_query_tags", "isinstance"]. | |
unifyai_unify | _CacheHandler | protected | 0 | 0 | __init__ | def __init__(self, fname=".test_cache.ndjson"):self._old_cache_fpath = LocalCache.get_cache_filepath(fname)self._fname = fnameself.test_path = "" | 1 | 4 | 2 | 29 | 0 | 7 | 10 | 7 | self,fname | [] | None | {"Assign": 3} | 1 | 4 | 1 | ["LocalCache.get_cache_filepath"] | 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 protected class called _CacheHandler.The function start at line 7 and ends at 10. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [7.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["LocalCache.get_cache_filepath"], 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 | _CacheHandler | protected | 0 | 0 | __enter__ | def __enter__(self):LocalCache.set_cache_name(self._fname)self.test_path = LocalCache.get_cache_filepath(self._fname)if os.path.exists(self.test_path):os.remove(self.test_path)return self | 2 | 6 | 1 | 47 | 0 | 12 | 17 | 12 | self | [] | Returns | {"Assign": 1, "Expr": 2, "If": 1, "Return": 1} | 4 | 6 | 4 | ["LocalCache.set_cache_name", "LocalCache.get_cache_filepath", "os.path.exists", "os.remove"] | 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 protected class called _CacheHandler.The function start at line 12 and ends at 17. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["LocalCache.set_cache_name", "LocalCache.get_cache_filepath", "os.path.exists", "os.remove"], 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 | _CacheHandler | protected | 0 | 0 | __exit__ | def __exit__(self, exc_type, exc_value, traceback):if os.path.exists(self.test_path):os.remove(self.test_path)LocalCache.set_cache_name(self._old_cache_fpath) | 2 | 4 | 4 | 39 | 0 | 19 | 22 | 19 | self,exc_type,exc_value,traceback | [] | None | {"Expr": 2, "If": 1} | 3 | 4 | 3 | ["os.path.exists", "os.remove", "LocalCache.set_cache_name"] | 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 protected class called _CacheHandler.The function start at line 19 and ends at 22. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [19.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["os.path.exists", "os.remove", "LocalCache.set_cache_name"], 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 | public | public | 0 | 0 | test_cache | def test_cache() -> None:with _CacheHandler() as cache_handler:client = Unify(endpoint="gpt-4o@openai",)t = time.perf_counter()r0 = client.generate(user_message="hello", cache=True)t0 = time.perf_counter() - tassert os.path.exists(cache_handler.test_path)mt0 = os.path.getmtime(cache_handler.test_path)t = time.perf_counter()r1 = client.generate(user_message="hello", cache=True)mt1 = os.path.getmtime(cache_handler.test_path)t1 = time.perf_counter() - tassert t1 < t0assert mt0 == mt1assert r0 == r1 | 1 | 17 | 0 | 129 | 8 | 16 | 32 | 16 | ['client', 'mt1', 't0', 't1', 't', 'r0', 'mt0', 'r1'] | None | {"Assign": 9, "With": 1} | 11 | 17 | 11 | ["_CacheHandler", "Unify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter"] | 0 | [] | The function (test_cache) defined within the public class called public.The function start at line 16 and ends at 32. 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 11.0 functions, and It has 11.0 functions called inside which are ["_CacheHandler", "Unify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_async | async def test_cache_async():with _CacheHandler() as cache_handler:client = AsyncUnify(endpoint="gpt-4o@openai",cache=True,)t = time.perf_counter()r0 = await client.generate(user_message="hello")t0 = time.perf_counter() - tmt0 = os.path.getmtime(cache_handler.test_path)t = time.perf_counter()r1 = await client.generate(user_message="hello")mt1 = os.path.getmtime(cache_handler.test_path)t1 = time.perf_counter() - tawait client.close()assert os.path.exists(cache_handler.test_path)assert t1 < t0assert mt0 == mt1assert r0 == r1 | 1 | 19 | 0 | 131 | 8 | 36 | 57 | 36 | ['client', 'mt1', 't0', 't1', 't', 'r0', 'mt0', 'r1'] | None | {"Assign": 9, "Expr": 1, "With": 1} | 12 | 22 | 12 | ["_CacheHandler", "AsyncUnify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter", "client.close", "os.path.exists"] | 0 | [] | The function (test_cache_async) defined within the public class called public.The function start at line 36 and ends at 57. It contains 19 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 ["_CacheHandler", "AsyncUnify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter", "client.close", "os.path.exists"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_write | def test_cache_write() -> None:with _CacheHandler() as cache_handler:client = Unify(endpoint="gpt-4o@openai",)client.generate(user_message="hello", cache="write")assert os.path.exists(cache_handler.test_path)mt0 = os.path.getmtime(cache_handler.test_path)client.generate(user_message="hello", cache="write")mt1 = os.path.getmtime(cache_handler.test_path)assert mt0 < mt1 | 1 | 11 | 0 | 85 | 3 | 61 | 71 | 61 | ['client', 'mt1', 'mt0'] | None | {"Assign": 3, "Expr": 2, "With": 1} | 7 | 11 | 7 | ["_CacheHandler", "Unify", "client.generate", "os.path.exists", "os.path.getmtime", "client.generate", "os.path.getmtime"] | 0 | [] | The function (test_cache_write) defined within the public class called public.The function start at line 61 and ends at 71. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["_CacheHandler", "Unify", "client.generate", "os.path.exists", "os.path.getmtime", "client.generate", "os.path.getmtime"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_write_async | async def test_cache_write_async() -> None:with _CacheHandler() as cache_handler:client = AsyncUnify(endpoint="gpt-4o@openai",)await client.generate(user_message="hello", cache="write")assert os.path.exists(cache_handler.test_path)mt0 = os.path.getmtime(cache_handler.test_path)await client.generate(user_message="hello", cache="write")mt1 = os.path.getmtime(cache_handler.test_path)assert mt0 < mt1await client.close() | 1 | 12 | 0 | 93 | 3 | 75 | 86 | 75 | ['client', 'mt1', 'mt0'] | None | {"Assign": 3, "Expr": 3, "With": 1} | 8 | 12 | 8 | ["_CacheHandler", "AsyncUnify", "client.generate", "os.path.exists", "os.path.getmtime", "client.generate", "os.path.getmtime", "client.close"] | 0 | [] | The function (test_cache_write_async) defined within the public class called public.The function start at line 75 and ends at 86. It contains 12 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 8.0 functions, and It has 8.0 functions called inside which are ["_CacheHandler", "AsyncUnify", "client.generate", "os.path.exists", "os.path.getmtime", "client.generate", "os.path.getmtime", "client.close"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_read | def test_cache_read() -> None:with _CacheHandler() as cache_handler:client = Unify(endpoint="gpt-4o@openai",)t = time.perf_counter()r0 = client.generate(user_message="hello", cache="write")t0 = time.perf_counter() - tassert os.path.exists(cache_handler.test_path)mt0 = os.path.getmtime(cache_handler.test_path)t = time.perf_counter()r1 = client.generate(user_message="hello", cache="read")mt1 = os.path.getmtime(cache_handler.test_path)t1 = time.perf_counter() - tassert t1 < t0assert mt0 == mt1assert r0 == r1 | 1 | 17 | 0 | 129 | 8 | 90 | 106 | 90 | ['client', 'mt1', 't0', 't1', 't', 'r0', 'mt0', 'r1'] | None | {"Assign": 9, "With": 1} | 11 | 17 | 11 | ["_CacheHandler", "Unify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter"] | 0 | [] | The function (test_cache_read) defined within the public class called public.The function start at line 90 and ends at 106. 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 11.0 functions, and It has 11.0 functions called inside which are ["_CacheHandler", "Unify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_read_async | async def test_cache_read_async() -> None:with _CacheHandler() as cache_handler:client = AsyncUnify(endpoint="gpt-4o@openai",)t = time.perf_counter()r0 = await client.generate(user_message="hello", cache="write")t0 = time.perf_counter() - tassert os.path.exists(cache_handler.test_path)mt0 = os.path.getmtime(cache_handler.test_path)t = time.perf_counter()r1 = await client.generate(user_message="hello", cache="read")mt1 = os.path.getmtime(cache_handler.test_path)t1 = time.perf_counter() - tassert t1 < t0assert mt0 == mt1assert r0 == r1await client.close() | 1 | 18 | 0 | 137 | 8 | 110 | 127 | 110 | ['client', 'mt1', 't0', 't1', 't', 'r0', 'mt0', 'r1'] | None | {"Assign": 9, "Expr": 1, "With": 1} | 12 | 18 | 12 | ["_CacheHandler", "AsyncUnify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter", "client.close"] | 0 | [] | The function (test_cache_read_async) defined within the public class called public.The function start at line 110 and ends at 127. It contains 18 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 ["_CacheHandler", "AsyncUnify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter", "client.close"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_read_only | def test_cache_read_only() -> None:with _CacheHandler() as cache_handler:client = Unify(endpoint="gpt-4o@openai",)t = time.perf_counter()r0 = client.generate(user_message="hello", cache="write")t0 = time.perf_counter() - tassert os.path.exists(cache_handler.test_path)mt0 = os.path.getmtime(cache_handler.test_path)t = time.perf_counter()r1 = client.generate(user_message="hello", cache="read-only")mt1 = os.path.getmtime(cache_handler.test_path)t1 = time.perf_counter() - tassert t1 < t0assert mt0 == mt1assert r0 == r1os.remove(cache_handler.test_path)unify._caching.LocalCache._cache = Nonetry:client.generate(user_message="hello", cache="read-only")raised_exception = Falseexcept Exception:raised_exception = Trueassert raised_exception, "read-only mode should have raised exception" | 2 | 25 | 0 | 173 | 9 | 131 | 155 | 131 | ['client', 'mt1', 't0', 't1', 'raised_exception', 't', 'r0', 'mt0', 'r1'] | None | {"Assign": 12, "Expr": 2, "Try": 1, "With": 1} | 13 | 25 | 13 | ["_CacheHandler", "Unify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter", "os.remove", "client.generate"] | 0 | [] | The function (test_cache_read_only) defined within the public class called public.The function start at line 131 and ends at 155. It contains 25 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 13.0 functions, and It has 13.0 functions called inside which are ["_CacheHandler", "Unify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter", "os.remove", "client.generate"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_read_only_async | async def test_cache_read_only_async() -> None:with _CacheHandler() as cache_handler:client = AsyncUnify(endpoint="gpt-4o@openai",)t = time.perf_counter()r0 = await client.generate(user_message="hello", cache="write")t0 = time.perf_counter() - tassert os.path.exists(cache_handler.test_path)mt0 = os.path.getmtime(cache_handler.test_path)t = time.perf_counter()r1 = await client.generate(user_message="hello", cache="read-only")mt1 = os.path.getmtime(cache_handler.test_path)t1 = time.perf_counter() - tassert t1 < t0assert mt0 == mt1assert r0 == r1os.remove(cache_handler.test_path)unify._caching.LocalCache._cache = Nonetry:await client.generate(user_message="hello", cache="read-only")raised_exception = Falseexcept Exception:raised_exception = Trueassert raised_exception, "read-only mode should have raised exception"await client.close() | 2 | 26 | 0 | 182 | 9 | 159 | 184 | 159 | ['client', 'mt1', 't0', 't1', 'raised_exception', 't', 'r0', 'mt0', 'r1'] | None | {"Assign": 12, "Expr": 3, "Try": 1, "With": 1} | 14 | 26 | 14 | ["_CacheHandler", "AsyncUnify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter", "os.remove", "client.generate", "client.close"] | 0 | [] | The function (test_cache_read_only_async) defined within the public class called public.The function start at line 159 and ends at 184. It contains 26 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 14.0 functions, and It has 14.0 functions called inside which are ["_CacheHandler", "AsyncUnify", "time.perf_counter", "client.generate", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "client.generate", "os.path.getmtime", "time.perf_counter", "os.remove", "client.generate", "client.close"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_closest_match_on_exception | def test_cache_closest_match_on_exception(traced):with _CacheHandler() as cache_handler:client = Unify(endpoint="gpt-4o@openai",traced=traced,)r0 = client.generate(user_message="hello", cache="write")assert os.path.exists(cache_handler.test_path)raised_exception = Truetry:client.generate(user_message="helloo", cache="read-only")raised_exception = Falseexcept Exception:assert ("""Failed to get cache for function chat.completions.create with kwargs {\n"model": "gpt-4o@openai",\n"messages": [\n{\n"role": "user",\n"content": "helloo"\n}\n],\n"temperature": 1.0,\n"stream": false,\n"extra_body": {\n"signature": "python",\n"use_custom_keys": false,\n"tags": null,\n"drop_params": true,\n"region": null,\n"log_query_body": true,\n"log_response_body": true\n}\n} from cache at None. \n\nCorresponding key\nchat.completions.create_{"model": "gpt-4o@openai", "messages": [{"role": "user", "content": "helloo"}], "temperature": 1.0, "stream": false, "extra_body": {"signature": "python", "use_custom_keys": false, "tags": null, "drop_params": true, "region": null, "log_query_body": true, "log_response_body": true}}\nwas not found in the cache.\n\nThe closest match is:\nchat.completions.create_{"model": "gpt-4o@openai", "messages": [{"role": "user", "content": "hello"}], "temperature": 1.0, "stream": false, "extra_body": {"signature": "python", "use_custom_keys": false, "tags": null, "drop_params": true, "region": null, "log_query_body": true, "log_response_body": true}}\n\nThe contracted diff is:\nchat...."hell[-o-]o"}],...rue}}\n\n\n\n"""in traceback.format_exc())assert raised_exception, "Failed to raise Exception" | 2 | 18 | 1 | 87 | 3 | 188 | 205 | 188 | traced | ['client', 'r0', 'raised_exception'] | None | {"Assign": 4, "Expr": 1, "Try": 1, "With": 1} | 7 | 18 | 7 | ["_CacheHandler", "Unify", "client.generate", "os.path.exists", "client.generate", "traceback.format_exc", "pytest.mark.parametrize"] | 0 | [] | The function (test_cache_closest_match_on_exception) defined within the public class called public.The function start at line 188 and ends at 205. It contains 18 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, and It has 7.0 functions called inside which are ["_CacheHandler", "Unify", "client.generate", "os.path.exists", "client.generate", "traceback.format_exc", "pytest.mark.parametrize"]. |
unifyai_unify | public | public | 0 | 0 | test_cache_file_union | def test_cache_file_union() -> None:first_cache_fpath = ".first_cache.json"second_cache_fpath = ".second_cache.json"target_cache_fpath = ".target_cache.json"first_cache = {"a": 0, "b": 1, "c": 2}second_cache = {"a": 0, "c": 3, "d": 4}with open(first_cache_fpath, "w+") as file:json.dump(first_cache, file)with open(second_cache_fpath, "w+") as file:json.dump(second_cache, file)raised = Falsetry:unify.cache_file_union(first_cache_fpath,second_cache_fpath,target_cache_fpath,)except:raised = Trueassert raised, "conflict failed to raise exception"unify.cache_file_union(first_cache_fpath,second_cache_fpath,target_cache_fpath,conflict_mode="first_overrides",)with open(target_cache_fpath, "r") as file:target_cache = json.load(file)assert target_cache == {"a": 0, "b": 1, "c": 2, "d": 4}unify.cache_file_union(first_cache_fpath,second_cache_fpath,target_cache_fpath,conflict_mode="second_overrides",)with open(target_cache_fpath, "r") as file:target_cache = json.load(file)assert target_cache == {"a": 0, "b": 1, "c": 3, "d": 4}os.remove(first_cache_fpath)os.remove(second_cache_fpath)os.remove(target_cache_fpath) | 2 | 41 | 0 | 230 | 7 | 208 | 256 | 208 | ['second_cache', 'raised', 'target_cache', 'target_cache_fpath', 'first_cache_fpath', 'second_cache_fpath', 'first_cache'] | None | {"Assign": 9, "Expr": 8, "Try": 1, "With": 4} | 14 | 49 | 14 | ["open", "json.dump", "open", "json.dump", "unify.cache_file_union", "unify.cache_file_union", "open", "json.load", "unify.cache_file_union", "open", "json.load", "os.remove", "os.remove", "os.remove"] | 0 | [] | The function (test_cache_file_union) defined within the public class called public.The function start at line 208 and ends at 256. 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 declares 14.0 functions, and It has 14.0 functions called inside which are ["open", "json.dump", "open", "json.dump", "unify.cache_file_union", "unify.cache_file_union", "open", "json.load", "unify.cache_file_union", "open", "json.load", "os.remove", "os.remove", "os.remove"]. | |
unifyai_unify | public | public | 0 | 0 | test_cache_file_intersection | def test_cache_file_intersection() -> None:first_cache_fpath = ".first_cache.json"second_cache_fpath = ".second_cache.json"target_cache_fpath = ".target_cache.json"first_cache = {"a": 0, "b": 1, "c": 2}second_cache = {"a": 0, "c": 3, "d": 4}with open(first_cache_fpath, "w+") as file:json.dump(first_cache, file)with open(second_cache_fpath, "w+") as file:json.dump(second_cache, file)raised = Falsetry:unify.cache_file_intersection(first_cache_fpath,second_cache_fpath,target_cache_fpath,)except:raised = Trueassert raised, "conflict failed to raise exception"unify.cache_file_intersection(first_cache_fpath,second_cache_fpath,target_cache_fpath,conflict_mode="first_overrides",)with open(target_cache_fpath, "r") as file:target_cache = json.load(file)assert target_cache == {"a": 0, "c": 2}unify.cache_file_intersection(first_cache_fpath,second_cache_fpath,target_cache_fpath,conflict_mode="second_overrides",)with open(target_cache_fpath, "r") as file:target_cache = json.load(file)assert target_cache == {"a": 0, "c": 3}os.remove(first_cache_fpath)os.remove(second_cache_fpath)os.remove(target_cache_fpath) | 2 | 41 | 0 | 214 | 7 | 259 | 307 | 259 | ['second_cache', 'raised', 'target_cache', 'target_cache_fpath', 'first_cache_fpath', 'second_cache_fpath', 'first_cache'] | None | {"Assign": 9, "Expr": 8, "Try": 1, "With": 4} | 14 | 49 | 14 | ["open", "json.dump", "open", "json.dump", "unify.cache_file_intersection", "unify.cache_file_intersection", "open", "json.load", "unify.cache_file_intersection", "open", "json.load", "os.remove", "os.remove", "os.remove"] | 0 | [] | The function (test_cache_file_intersection) defined within the public class called public.The function start at line 259 and ends at 307. 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 declares 14.0 functions, and It has 14.0 functions called inside which are ["open", "json.dump", "open", "json.dump", "unify.cache_file_intersection", "unify.cache_file_intersection", "open", "json.load", "unify.cache_file_intersection", "open", "json.load", "os.remove", "os.remove", "os.remove"]. | |
unifyai_unify | public | public | 0 | 0 | test_subtract_cache_files | def test_subtract_cache_files():first_cache_fpath = ".first_cache.json"second_cache_fpath = ".second_cache.json"target_cache_fpath = ".target_cache.json"first_cache = {"a": 0, "b": 1, "c": 2}second_cache = {"a": 0, "c": 3, "d": 4}with open(first_cache_fpath, "w+") as file:json.dump(first_cache, file)with open(second_cache_fpath, "w+") as file:json.dump(second_cache, file)raised = Falsetry:unify.subtract_cache_files(first_cache_fpath,second_cache_fpath,target_cache_fpath,)except:raised = Trueassert raised, "conflict failed to raise exception"unify.subtract_cache_files(first_cache_fpath,second_cache_fpath,target_cache_fpath,raise_on_conflict=False,)with open(target_cache_fpath, "r") as file:target_cache = json.load(file)assert target_cache == {"b": 1}os.remove(first_cache_fpath)os.remove(second_cache_fpath)os.remove(target_cache_fpath) | 2 | 32 | 0 | 163 | 7 | 310 | 346 | 310 | ['second_cache', 'raised', 'target_cache', 'target_cache_fpath', 'first_cache_fpath', 'second_cache_fpath', 'first_cache'] | None | {"Assign": 8, "Expr": 7, "Try": 1, "With": 3} | 11 | 37 | 11 | ["open", "json.dump", "open", "json.dump", "unify.subtract_cache_files", "unify.subtract_cache_files", "open", "json.load", "os.remove", "os.remove", "os.remove"] | 0 | [] | The function (test_subtract_cache_files) defined within the public class called public.The function start at line 310 and ends at 346. It contains 32 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 11.0 functions, and It has 11.0 functions called inside which are ["open", "json.dump", "open", "json.dump", "unify.subtract_cache_files", "unify.subtract_cache_files", "open", "json.load", "os.remove", "os.remove", "os.remove"]. | |
unifyai_unify | public | public | 0 | 0 | test_upstream_cache | def test_upstream_cache() -> None:client = Unify(endpoint="gpt-4o@openai",)r0 = client.generate(user_message="hello", cache=True, cache_backend="remote")logs = unify.get_logs(context=RemoteCache.get_cache_name())assert len(logs) == 1r1 = client.generate(user_message="hello", cache=True, cache_backend="remote")logs = unify.get_logs(context=RemoteCache.get_cache_name())assert len(logs) == 1assert r0 == r1 | 1 | 11 | 0 | 97 | 4 | 350 | 360 | 350 | ['logs', 'client', 'r0', 'r1'] | None | {"Assign": 5} | 9 | 11 | 9 | ["Unify", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len"] | 0 | [] | The function (test_upstream_cache) defined within the public class called public.The function start at line 350 and ends at 360. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["Unify", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_upstream_cache_write | def test_upstream_cache_write() -> None:client = Unify(endpoint="gpt-4o@openai",)client.generate(user_message="hello", cache="write", cache_backend="remote")logs = unify.get_logs(context=RemoteCache.get_cache_name())initial_logs_count = len(logs)client.generate(user_message="hello", cache="write", cache_backend="remote")logs = unify.get_logs(context=RemoteCache.get_cache_name())assert len(logs) == initial_logs_count | 1 | 10 | 0 | 88 | 3 | 364 | 373 | 364 | ['logs', 'client', 'initial_logs_count'] | None | {"Assign": 4, "Expr": 2} | 9 | 10 | 9 | ["Unify", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len"] | 0 | [] | The function (test_upstream_cache_write) defined within the public class called public.The function start at line 364 and ends at 373. 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", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_upstream_cache_read | def test_upstream_cache_read() -> None:client = Unify(endpoint="gpt-4o@openai",)r0 = client.generate(user_message="hello", cache="write", cache_backend="remote")logs = unify.get_logs(context=RemoteCache.get_cache_name())initial_logs_count = len(logs)r1 = client.generate(user_message="hello", cache="read", cache_backend="remote")logs = unify.get_logs(context=RemoteCache.get_cache_name())assert len(logs) == initial_logs_countassert r0 == r1 | 1 | 11 | 0 | 96 | 5 | 377 | 387 | 377 | ['client', 'logs', 'r0', 'r1', 'initial_logs_count'] | None | {"Assign": 6} | 9 | 11 | 9 | ["Unify", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len"] | 0 | [] | The function (test_upstream_cache_read) defined within the public class called public.The function start at line 377 and ends at 387. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["Unify", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_upstream_cache_read_only | def test_upstream_cache_read_only() -> None:client = Unify(endpoint="gpt-4o@openai",)r0 = client.generate(user_message="hello", cache="write", cache_backend="remote")logs = unify.get_logs(context=RemoteCache.get_cache_name())initial_logs_count = len(logs)r1 = client.generate(user_message="hello",cache="read-only",cache_backend="remote",)logs = unify.get_logs(context=RemoteCache.get_cache_name())assert len(logs) == initial_logs_countassert r0 == r1# Test that read-only mode raises exception when cache doesn't existwith pytest.raises(Exception):client.generate(user_message="new_message",cache="read-only",cache_backend="remote",) | 1 | 21 | 0 | 122 | 5 | 391 | 413 | 391 | ['client', 'logs', 'r0', 'r1', 'initial_logs_count'] | None | {"Assign": 6, "Expr": 1, "With": 1} | 11 | 23 | 11 | ["Unify", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "pytest.raises", "client.generate"] | 0 | [] | The function (test_upstream_cache_read_only) defined within the public class called public.The function start at line 391 and ends at 413. 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 11.0 functions, and It has 11.0 functions called inside which are ["Unify", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "pytest.raises", "client.generate"]. | |
unifyai_unify | public | public | 0 | 0 | test_upstream_cache_closest_match_on_exception | def test_upstream_cache_closest_match_on_exception():client = Unify(endpoint="gpt-4o@openai",)r0 = client.generate(user_message="hello", cache="both", cache_backend="remote")logs = unify.get_logs(context=RemoteCache.get_cache_name())initial_logs_count = len(logs)r1 = client.generate(user_message="helloo",cache="read-closest",cache_backend="remote",)logs = unify.get_logs(context=RemoteCache.get_cache_name())assert len(logs) == initial_logs_countassert r0 == r1 | 1 | 15 | 0 | 95 | 5 | 417 | 431 | 417 | ['client', 'logs', 'r0', 'r1', 'initial_logs_count'] | None | {"Assign": 6} | 9 | 15 | 9 | ["Unify", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len"] | 0 | [] | The function (test_upstream_cache_closest_match_on_exception) defined within the public class called public.The function start at line 417 and ends at 431. It contains 15 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", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len", "client.generate", "unify.get_logs", "RemoteCache.get_cache_name", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_both_mode.add_two_numbers | def add_two_numbers(x, y):time.sleep(1)return x + y | 1 | 3 | 2 | 17 | 0 | 437 | 439 | 437 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_both_mode.add_two_numbers) defined within the public class called public.The function start at line 437 and ends at 439. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [437.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_both_mode | def test_cached_decorator_both_mode():@unify.cached(mode="both")def add_two_numbers(x, y):time.sleep(1)return x + ywith _CacheHandler():t0 = time.perf_counter()z1 = add_two_numbers(1, 2)t1 = time.perf_counter()z2 = add_two_numbers(1, 2)t2 = time.perf_counter()assert z1 == z2 == 3assert t1 - t0 > 1assert t2 - t1 < 0.1 | 1 | 12 | 0 | 77 | 5 | 434 | 450 | 434 | ['t1', 't0', 't2', 'z2', 'z1'] | Returns | {"Assign": 5, "Expr": 1, "Return": 1, "With": 1} | 8 | 17 | 8 | ["time.sleep", "unify.cached", "_CacheHandler", "time.perf_counter", "add_two_numbers", "time.perf_counter", "add_two_numbers", "time.perf_counter"] | 0 | [] | The function (test_cached_decorator_both_mode) defined within the public class called public.The function start at line 434 and ends at 450. It contains 12 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 8.0 functions, and It has 8.0 functions called inside which are ["time.sleep", "unify.cached", "_CacheHandler", "time.perf_counter", "add_two_numbers", "time.perf_counter", "add_two_numbers", "time.perf_counter"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_async.add_two_numbers | async def add_two_numbers(x, y):await asyncio.sleep(1)return x + y | 1 | 3 | 2 | 18 | 0 | 456 | 458 | 456 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_async.add_two_numbers) defined within the public class called public.The function start at line 456 and ends at 458. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [456.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_async | async def test_cached_decorator_async():@unify.cachedasync def add_two_numbers(x, y):await asyncio.sleep(1)return x + ywith _CacheHandler() as cache_handler:t0 = time.perf_counter()z1 = await add_two_numbers(1, 2)t0 = time.perf_counter() - t0assert os.path.exists(cache_handler.test_path)mt1 = os.path.getmtime(cache_handler.test_path)t1 = time.perf_counter()z2 = await add_two_numbers(1, 2)t1 = time.perf_counter() - t1mt2 = os.path.getmtime(cache_handler.test_path)assert mt2 == mt1assert t1 < t0assert z1 == z2 == 3 | 1 | 16 | 0 | 117 | 6 | 454 | 475 | 454 | ['mt1', 't1', 't0', 'mt2', 'z2', 'z1'] | Returns | {"Assign": 8, "Expr": 1, "Return": 1, "With": 1} | 11 | 22 | 11 | ["asyncio.sleep", "_CacheHandler", "time.perf_counter", "add_two_numbers", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "add_two_numbers", "time.perf_counter", "os.path.getmtime"] | 0 | [] | The function (test_cached_decorator_async) defined within the public class called public.The function start at line 454 and ends at 475. It contains 16 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 11.0 functions, and It has 11.0 functions called inside which are ["asyncio.sleep", "_CacheHandler", "time.perf_counter", "add_two_numbers", "time.perf_counter", "os.path.exists", "os.path.getmtime", "time.perf_counter", "add_two_numbers", "time.perf_counter", "os.path.getmtime"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_upstream_cache.add_two_numbers | def add_two_numbers(x, y):return x + y | 1 | 2 | 2 | 11 | 0 | 481 | 482 | 481 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_upstream_cache.add_two_numbers) defined within the public class called public.The function start at line 481 and ends at 482. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [481.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_upstream_cache | def test_cached_decorator_upstream_cache():@unify.cached(backend="remote")def add_two_numbers(x, y):return x + yadd_two_numbers(1, 2)logs = unify.get_logs(context=RemoteCache.get_cache_name())assert len(logs) == 1 | 1 | 6 | 0 | 42 | 1 | 479 | 486 | 479 | ['logs'] | Returns | {"Assign": 1, "Expr": 1, "Return": 1} | 5 | 8 | 5 | ["unify.cached", "add_two_numbers", "unify.get_logs", "RemoteCache.get_cache_name", "len"] | 0 | [] | The function (test_cached_decorator_upstream_cache) defined within the public class called public.The function start at line 479 and ends at 486. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["unify.cached", "add_two_numbers", "unify.get_logs", "RemoteCache.get_cache_name", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_upstream_cache_async.add_two_numbers | async def add_two_numbers(x, y):return x + y | 1 | 2 | 2 | 11 | 0 | 493 | 494 | 493 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_upstream_cache_async.add_two_numbers) defined within the public class called public.The function start at line 493 and ends at 494. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [493.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_upstream_cache_async | async def test_cached_decorator_upstream_cache_async():@unify.cached(backend="remote")async def add_two_numbers(x, y):return x + yawait add_two_numbers(1, 2)logs = unify.get_logs(context=RemoteCache.get_cache_name())assert len(logs) == 1 | 1 | 6 | 0 | 44 | 1 | 491 | 498 | 491 | ['logs'] | Returns | {"Assign": 1, "Expr": 1, "Return": 1} | 5 | 8 | 5 | ["unify.cached", "add_two_numbers", "unify.get_logs", "RemoteCache.get_cache_name", "len"] | 0 | [] | The function (test_cached_decorator_upstream_cache_async) defined within the public class called public.The function start at line 491 and ends at 498. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["unify.cached", "add_two_numbers", "unify.get_logs", "RemoteCache.get_cache_name", "len"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_only_async.add_two_numbers | async def add_two_numbers(x, y):return x + y | 1 | 2 | 2 | 11 | 0 | 504 | 505 | 504 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_mode_read_only_async.add_two_numbers) defined within the public class called public.The function start at line 504 and ends at 505. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [504.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_only_async | async def test_cached_decorator_mode_read_only_async():@unify.cached(mode="read-only")async def add_two_numbers(x, y):return x + ywith _CacheHandler():with pytest.raises(Exception):await add_two_numbers(1, 2) | 1 | 6 | 0 | 36 | 0 | 502 | 509 | 502 | [] | Returns | {"Expr": 1, "Return": 1, "With": 2} | 4 | 8 | 4 | ["unify.cached", "_CacheHandler", "pytest.raises", "add_two_numbers"] | 0 | [] | The function (test_cached_decorator_mode_read_only_async) defined within the public class called public.The function start at line 502 and ends at 509. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["unify.cached", "_CacheHandler", "pytest.raises", "add_two_numbers"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_async.add_two_numbers | async def add_two_numbers(x, y):return x + y | 1 | 2 | 2 | 11 | 0 | 515 | 516 | 515 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_mode_read_async.add_two_numbers) defined within the public class called public.The function start at line 515 and ends at 516. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [515.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_async | async def test_cached_decorator_mode_read_async():@unify.cached(mode="read")async def add_two_numbers(x, y):return x + ywith _CacheHandler() as cache_handler:r0 = await add_two_numbers(1, 2)assert os.path.exists(cache_handler.test_path)mt1 = os.path.getmtime(cache_handler.test_path)r1 = await add_two_numbers(1, 2)mt2 = os.path.getmtime(cache_handler.test_path)assert mt2 == mt1assert r0 == r1 | 1 | 11 | 0 | 84 | 4 | 513 | 525 | 513 | ['mt1', 'mt2', 'r0', 'r1'] | Returns | {"Assign": 4, "Return": 1, "With": 1} | 7 | 13 | 7 | ["unify.cached", "_CacheHandler", "add_two_numbers", "os.path.exists", "os.path.getmtime", "add_two_numbers", "os.path.getmtime"] | 0 | [] | The function (test_cached_decorator_mode_read_async) defined within the public class called public.The function start at line 513 and ends at 525. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["unify.cached", "_CacheHandler", "add_two_numbers", "os.path.exists", "os.path.getmtime", "add_two_numbers", "os.path.getmtime"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_write_async.add_two_numbers | async def add_two_numbers(x, y):return x + y | 1 | 2 | 2 | 11 | 0 | 531 | 532 | 531 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_mode_write_async.add_two_numbers) defined within the public class called public.The function start at line 531 and ends at 532. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [531.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_write_async | async def test_cached_decorator_mode_write_async():@unify.cached(mode="write")async def add_two_numbers(x, y):return x + ywith _CacheHandler() as cache_handler:await add_two_numbers(1, 2)assert os.path.exists(cache_handler.test_path)mt1 = os.path.getmtime(cache_handler.test_path)await asyncio.gather(*[add_two_numbers(1, 2) for _ in range(100)],)mt2 = os.path.getmtime(cache_handler.test_path)assert mt2 > mt1 | 2 | 12 | 0 | 92 | 2 | 529 | 542 | 529 | ['mt1', 'mt2'] | Returns | {"Assign": 2, "Expr": 2, "Return": 1, "With": 1} | 9 | 14 | 9 | ["unify.cached", "_CacheHandler", "add_two_numbers", "os.path.exists", "os.path.getmtime", "asyncio.gather", "add_two_numbers", "range", "os.path.getmtime"] | 0 | [] | The function (test_cached_decorator_mode_write_async) defined within the public class called public.The function start at line 529 and ends at 542. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["unify.cached", "_CacheHandler", "add_two_numbers", "os.path.exists", "os.path.getmtime", "asyncio.gather", "add_two_numbers", "range", "os.path.getmtime"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read.add_two_numbers | def add_two_numbers(x, y):return x + y | 1 | 2 | 2 | 11 | 0 | 547 | 548 | 547 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_mode_read.add_two_numbers) defined within the public class called public.The function start at line 547 and ends at 548. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [547.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read | def test_cached_decorator_mode_read():@unify.cached(mode="read")def add_two_numbers(x, y):return x + ywith _CacheHandler() as cache_handler:t0 = time.perf_counter()r0 = add_two_numbers(1, 1)mt1 = os.path.getmtime(cache_handler.test_path)t0 = time.perf_counter() - t0t1 = time.perf_counter()r1 = add_two_numbers(1, 1)t1 = time.perf_counter() - t1mt2 = os.path.getmtime(cache_handler.test_path)assert mt1 == mt2assert t1 < t0assert r0 == r1 | 1 | 15 | 0 | 106 | 6 | 545 | 561 | 545 | ['mt1', 't1', 't0', 'r0', 'r1', 'mt2'] | Returns | {"Assign": 8, "Return": 1, "With": 1} | 10 | 17 | 10 | ["unify.cached", "_CacheHandler", "time.perf_counter", "add_two_numbers", "os.path.getmtime", "time.perf_counter", "time.perf_counter", "add_two_numbers", "time.perf_counter", "os.path.getmtime"] | 0 | [] | The function (test_cached_decorator_mode_read) defined within the public class called public.The function start at line 545 and ends at 561. 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 10.0 functions, and It has 10.0 functions called inside which are ["unify.cached", "_CacheHandler", "time.perf_counter", "add_two_numbers", "os.path.getmtime", "time.perf_counter", "time.perf_counter", "add_two_numbers", "time.perf_counter", "os.path.getmtime"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_only.add_two_numbers | def add_two_numbers(x, y):return x + y | 1 | 2 | 2 | 11 | 0 | 566 | 567 | 566 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_mode_read_only.add_two_numbers) defined within the public class called public.The function start at line 566 and ends at 567. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [566.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_only | def test_cached_decorator_mode_read_only():@unify.cached(mode="read-only")def add_two_numbers(x, y):return x + ywith _CacheHandler():with pytest.raises(Exception):add_two_numbers(1, 1) | 1 | 6 | 0 | 34 | 0 | 564 | 571 | 564 | [] | Returns | {"Expr": 1, "Return": 1, "With": 2} | 4 | 8 | 4 | ["unify.cached", "_CacheHandler", "pytest.raises", "add_two_numbers"] | 0 | [] | The function (test_cached_decorator_mode_read_only) defined within the public class called public.The function start at line 564 and ends at 571. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["unify.cached", "_CacheHandler", "pytest.raises", "add_two_numbers"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_closest.squared | def squared(y):return y * y * 2 | 1 | 2 | 1 | 11 | 0 | 576 | 577 | 576 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_mode_read_closest.squared) defined within the public class called public.The function start at line 576 and ends at 577. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_closest.square | def square(x):return x * x | 1 | 2 | 1 | 9 | 0 | 580 | 581 | 580 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_mode_read_closest.square) defined within the public class called public.The function start at line 580 and ends at 581. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_read_closest | def test_cached_decorator_mode_read_closest():@unify.cached(mode="write")def squared(y):return y * y * 2@unify.cached(mode="read-closest")def square(x):return x * xwith _CacheHandler() as cache_handler:r0 = squared(1)assert os.path.exists(cache_handler.test_path)mt1 = os.path.getmtime(cache_handler.test_path)r1 = square(2)mt2 = os.path.getmtime(cache_handler.test_path)assert mt2 == mt1assert r0 == r1 | 1 | 13 | 0 | 88 | 4 | 574 | 591 | 574 | ['mt1', 'mt2', 'r0', 'r1'] | Returns | {"Assign": 4, "Return": 2, "With": 1} | 8 | 18 | 8 | ["unify.cached", "unify.cached", "_CacheHandler", "squared", "os.path.exists", "os.path.getmtime", "square", "os.path.getmtime"] | 0 | [] | The function (test_cached_decorator_mode_read_closest) defined within the public class called public.The function start at line 574 and ends at 591. It contains 13 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 8.0 functions, and It has 8.0 functions called inside which are ["unify.cached", "unify.cached", "_CacheHandler", "squared", "os.path.exists", "os.path.getmtime", "square", "os.path.getmtime"]. | |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_write.square | def square(x):time.sleep(0.5)return x * x | 1 | 3 | 1 | 17 | 0 | 596 | 598 | 596 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_cached_decorator_mode_write.square) defined within the public class called public.The function start at line 596 and ends at 598. 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.. |
unifyai_unify | public | public | 0 | 0 | test_cached_decorator_mode_write | def test_cached_decorator_mode_write():@unify.cached(mode="write")def square(x):time.sleep(0.5)return x * xwith _CacheHandler() as cache_handler:square(1)assert os.path.exists(cache_handler.test_path)mt1 = os.path.getmtime(cache_handler.test_path)square(1)mt2 = os.path.getmtime(cache_handler.test_path)assert mt2 > mt1 | 1 | 10 | 0 | 69 | 2 | 594 | 607 | 594 | ['mt1', 'mt2'] | Returns | {"Assign": 2, "Expr": 3, "Return": 1, "With": 1} | 8 | 14 | 8 | ["time.sleep", "unify.cached", "_CacheHandler", "square", "os.path.exists", "os.path.getmtime", "square", "os.path.getmtime"] | 0 | [] | The function (test_cached_decorator_mode_write) defined within the public class called public.The function start at line 594 and ends at 607. It contains 10 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["time.sleep", "unify.cached", "_CacheHandler", "square", "os.path.exists", "os.path.getmtime", "square", "os.path.getmtime"]. | |
unifyai_unify | ProjectHandling | public | 0 | 0 | __enter__ | def __enter__(self):if "test_project" in unify.list_projects():unify.delete_project("test_project") | 2 | 3 | 1 | 20 | 0 | 16 | 18 | 16 | self | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["unify.list_projects", "unify.delete_project"] | 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 ProjectHandling.The function start at line 16 and ends at 18. 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 declares 2.0 functions, It has 2.0 functions called inside which are ["unify.list_projects", "unify.delete_project"], 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 | ProjectHandling | 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 | 20 | 22 | 20 | self,exc_type,exc_value,tb | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["unify.list_projects", "unify.delete_project"] | 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 ProjectHandling.The function start at line 20 and ends at 22. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [20.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["unify.list_projects", "unify.delete_project"], 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 | public | public | 0 | 0 | evaluate_response | def evaluate_response(question: str, response: str) -> float:correct_answer = eval(question)try:response_int = int("".join([c for c in response.split(" ")[-1] if c.isdigit()]),)return float(correct_answer == response_int)except ValueError:return 0.0 | 4 | 9 | 2 | 68 | 2 | 30 | 38 | 30 | question,response | ['response_int', 'correct_answer'] | float | {"Assign": 2, "Return": 2, "Try": 1} | 6 | 9 | 6 | ["eval", "int", "join", "response.split", "c.isdigit", "float"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.async_evaluate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.evaluate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.evaluate_w_log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169609_codelion_optillm.scripts.eval_frames_benchmark_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169609_codelion_optillm.scripts.eval_optillmbench_py.evaluate_model"] | The function (evaluate_response) defined within the public class called public.The function start at line 30 and ends at 38. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [30.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["eval", "int", "join", "response.split", "c.isdigit", "float"], It has 5.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.async_evaluate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.evaluate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.evaluate_w_log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169609_codelion_optillm.scripts.eval_frames_benchmark_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169609_codelion_optillm.scripts.eval_optillmbench_py.evaluate_model"]. |
unifyai_unify | public | public | 0 | 0 | evaluate | def evaluate(q: str):response = client.generate(q)evaluate_response(q, response) | 1 | 3 | 1 | 21 | 1 | 41 | 43 | 41 | q | ['response'] | None | {"Assign": 1, "Expr": 1} | 2 | 3 | 2 | ["client.generate", "evaluate_response"] | 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 public.The function start at line 41 and ends at 43. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["client.generate", "evaluate_response"], 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 | evaluate_w_log | def evaluate_w_log(q: str):response = client.generate(q)score = evaluate_response(q, response)return unify.log(question=q,response=response,score=score,skip_duplicates=False,) | 1 | 9 | 1 | 45 | 2 | 46 | 54 | 46 | q | ['score', 'response'] | Returns | {"Assign": 2, "Return": 1} | 3 | 9 | 3 | ["client.generate", "evaluate_response", "unify.log"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.test_threaded_map", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.test_threaded_map_from_args"] | The function (evaluate_w_log) defined within the public class called public.The function start at line 46 and ends at 54. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["client.generate", "evaluate_response", "unify.log"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.test_threaded_map", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_utils.test_map_py.test_threaded_map_from_args"]. |
unifyai_unify | public | public | 0 | 0 | async_evaluate | async def async_evaluate(q: str):response = await async_client.generate(q)return evaluate_response(q, response) | 1 | 3 | 1 | 23 | 1 | 58 | 60 | 58 | q | ['response'] | Returns | {"Assign": 1, "Return": 1} | 2 | 3 | 2 | ["async_client.generate", "evaluate_response"] | 0 | [] | The function (async_evaluate) defined within the public class called public.The function start at line 58 and ends at 60. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["async_client.generate", "evaluate_response"]. |
unifyai_unify | public | public | 0 | 0 | test_threaded_map | def test_threaded_map() -> None:with ProjectHandling():with unify.Project("test_project"):unify.map(evaluate_w_log, qs)for q in qs:evaluate_w_log(q) | 2 | 6 | 0 | 36 | 0 | 67 | 72 | 67 | [] | None | {"Expr": 2, "For": 1, "With": 2} | 4 | 6 | 4 | ["ProjectHandling", "unify.Project", "unify.map", "evaluate_w_log"] | 0 | [] | The function (test_threaded_map) defined within the public class called public.The function start at line 67 and ends at 72. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["ProjectHandling", "unify.Project", "unify.map", "evaluate_w_log"]. | |
unifyai_unify | public | public | 0 | 0 | test_map_mode | def test_map_mode() -> None:unify.set_map_mode("threading")assert unify.get_map_mode() == "threading"unify.map(evaluate_w_log, qs)unify.set_map_mode("asyncio")assert unify.get_map_mode() == "asyncio"unify.map(evaluate_w_log, qs)unify.set_map_mode("loop")assert unify.get_map_mode() == "loop"unify.map(evaluate_w_log, qs) | 1 | 10 | 0 | 72 | 0 | 75 | 84 | 75 | [] | None | {"Expr": 6} | 9 | 10 | 9 | ["unify.set_map_mode", "unify.get_map_mode", "unify.map", "unify.set_map_mode", "unify.get_map_mode", "unify.map", "unify.set_map_mode", "unify.get_map_mode", "unify.map"] | 0 | [] | The function (test_map_mode) defined within the public class called public.The function start at line 75 and ends at 84. 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.set_map_mode", "unify.get_map_mode", "unify.map", "unify.set_map_mode", "unify.get_map_mode", "unify.map", "unify.set_map_mode", "unify.get_map_mode", "unify.map"]. | |
unifyai_unify | public | public | 0 | 0 | test_map_w_cache.gen | def gen(x, cache):ret = Noneif cache in [True, "read", "read-only"]:ret = _get_cache(fn_name="gen",kw={"x": x},raise_on_empty=(cache == "read-only"),)if ret is None:ret = random.randint(1, 5) + xif cache in [True, "write"]:_write_to_cache(fn_name="gen",kw={"x": x},response=ret,)return ret | 4 | 17 | 2 | 93 | 0 | 92 | 108 | 92 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_map_w_cache.gen) defined within the public class called public.The function start at line 92 and ends at 108. It contains 17 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [92.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_map_w_cache.fn | def fn(cache):x = gen(0, cache)time.sleep(random.uniform(0, 0.1))y = gen(x, cache)time.sleep(random.uniform(0, 0.1))z = gen(y, cache) | 1 | 6 | 1 | 59 | 0 | 111 | 116 | 111 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_map_w_cache.fn) defined within the public class called public.The function start at line 111 and ends at 116. 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.. |
unifyai_unify | public | public | 0 | 0 | test_map_w_cache.cache_is_true | def cache_is_true():unify.map(fn, [True] * 10) | 1 | 2 | 0 | 16 | 0 | 119 | 120 | 119 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_map_w_cache.cache_is_true) defined within the public class called public.The function start at line 119 and ends at 120. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_map_w_cache.cache_is_read_only | def cache_is_read_only():unify.map(fn, ["read-only"] * 10) | 1 | 2 | 0 | 16 | 0 | 123 | 124 | 123 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_map_w_cache.cache_is_read_only) defined within the public class called public.The function start at line 123 and ends at 124. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_map_w_cache | def test_map_w_cache() -> None:with _CacheHandler():@unify.traced(name="gen{x}")def gen(x, cache):ret = Noneif cache in [True, "read", "read-only"]:ret = _get_cache(fn_name="gen",kw={"x": x},raise_on_empty=(cache == "read-only"),)if ret is None:ret = random.randint(1, 5) + xif cache in [True, "write"]:_write_to_cache(fn_name="gen",kw={"x": x},response=ret,)return ret@unify.traceddef fn(cache):x = gen(0, cache)time.sleep(random.uniform(0, 0.1))y = gen(x, cache)time.sleep(random.uniform(0, 0.1))z = gen(y, cache)@unify.traceddef cache_is_true():unify.map(fn, [True] * 10)@unify.traceddef cache_is_read_only():unify.map(fn, ["read-only"] * 10)cache_is_true()cache_is_read_only() | 1 | 12 | 0 | 46 | 4 | 88 | 127 | 88 | ['x', 'y', 'z', 'ret'] | None | {"Assign": 6, "Expr": 7, "If": 3, "Return": 1, "With": 1} | 16 | 40 | 16 | ["_CacheHandler", "_get_cache", "random.randint", "_write_to_cache", "unify.traced", "gen", "time.sleep", "random.uniform", "gen", "time.sleep", "random.uniform", "gen", "unify.map", "unify.map", "cache_is_true", "cache_is_read_only"] | 0 | [] | The function (test_map_w_cache) defined within the public class called public.The function start at line 88 and ends at 127. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 16.0 functions, and It has 16.0 functions called inside which are ["_CacheHandler", "_get_cache", "random.randint", "_write_to_cache", "unify.traced", "gen", "time.sleep", "random.uniform", "gen", "time.sleep", "random.uniform", "gen", "unify.map", "unify.map", "cache_is_true", "cache_is_read_only"]. | |
unifyai_unify | public | public | 0 | 0 | test_threaded_map_from_args | def test_threaded_map_from_args() -> None:with ProjectHandling():with unify.Project("test_project"):unify.map(evaluate_w_log, qs, from_args=True)for q in qs:evaluate_w_log(q) | 2 | 6 | 0 | 40 | 0 | 130 | 135 | 130 | [] | None | {"Expr": 2, "For": 1, "With": 2} | 4 | 6 | 4 | ["ProjectHandling", "unify.Project", "unify.map", "evaluate_w_log"] | 0 | [] | The function (test_threaded_map_from_args) defined within the public class called public.The function start at line 130 and ends at 135. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["ProjectHandling", "unify.Project", "unify.map", "evaluate_w_log"]. | |
unifyai_unify | public | public | 0 | 0 | test_threaded_map_with_context.contextual_func | def contextual_func(a, b, c=3):with unify.Entries(a=a, b=b, c=c):unify.log(test="some random value")return a + b + c | 1 | 4 | 3 | 43 | 0 | 142 | 145 | 142 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_threaded_map_with_context.contextual_func) defined within the public class called public.The function start at line 142 and ends at 145. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [142.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_threaded_map_with_context | def test_threaded_map_with_context() -> None:with ProjectHandling():with unify.Project("test_project"):def contextual_func(a, b, c=3):with unify.Entries(a=a, b=b, c=c):unify.log(test="some random value")return a + b + cresults = unify.map(contextual_func,[((1, 3), {"c": 2}),((2, 4), {"c": 4}),],)assert results == [1 + 3 + 2, 2 + 4 + 4]results = unify.map(contextual_func,[((1,), {"b": 2, "c": 2}),((3,), {"b": 4, "c": 4}),],)assert results == [1 + 2 + 2, 3 + 4 + 4] | 1 | 20 | 0 | 139 | 1 | 138 | 162 | 138 | ['results'] | None | {"Assign": 2, "Expr": 1, "Return": 1, "With": 3} | 6 | 25 | 6 | ["ProjectHandling", "unify.Project", "unify.Entries", "unify.log", "unify.map", "unify.map"] | 0 | [] | The function (test_threaded_map_with_context) defined within the public class called public.The function start at line 138 and ends at 162. It contains 20 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 ["ProjectHandling", "unify.Project", "unify.Entries", "unify.log", "unify.map", "unify.map"]. | |
unifyai_unify | public | public | 0 | 0 | test_threaded_map_with_context_from_args.contextual_func | def contextual_func(a, b, c=3):with unify.Entries(a=a, b=b, c=c):unify.log(test="some random value")return a + b + c | 1 | 4 | 3 | 43 | 0 | 169 | 172 | 169 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_threaded_map_with_context_from_args.contextual_func) defined within the public class called public.The function start at line 169 and ends at 172. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [169.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_threaded_map_with_context_from_args | def test_threaded_map_with_context_from_args() -> None:with ProjectHandling():with unify.Project("test_project"):def contextual_func(a, b, c=3):with unify.Entries(a=a, b=b, c=c):unify.log(test="some random value")return a + b + cresults = unify.map(contextual_func,(1, 2),(3, 4),c=(2, 4),from_args=True,)assert results == [1 + 3 + 2, 2 + 4 + 4]results = unify.map(contextual_func,(1, 3),b=(2, 4),c=(2, 4),from_args=True,)assert results == [1 + 2 + 2, 3 + 4 + 4] | 1 | 20 | 0 | 121 | 1 | 165 | 189 | 165 | ['results'] | None | {"Assign": 2, "Expr": 1, "Return": 1, "With": 3} | 6 | 25 | 6 | ["ProjectHandling", "unify.Project", "unify.Entries", "unify.log", "unify.map", "unify.map"] | 0 | [] | The function (test_threaded_map_with_context_from_args) defined within the public class called public.The function start at line 165 and ends at 189. It contains 20 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 ["ProjectHandling", "unify.Project", "unify.Entries", "unify.log", "unify.map", "unify.map"]. | |
unifyai_unify | public | public | 0 | 0 | test_asyncio_map | def test_asyncio_map() -> None:unify.map(async_evaluate, qs, mode="asyncio")for q in qs:evaluate(q) | 2 | 4 | 0 | 27 | 0 | 192 | 195 | 192 | [] | None | {"Expr": 2, "For": 1} | 2 | 4 | 2 | ["unify.map", "evaluate"] | 0 | [] | The function (test_asyncio_map) defined within the public class called public.The function start at line 192 and ends at 195. 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, and It has 2.0 functions called inside which are ["unify.map", "evaluate"]. | |
unifyai_unify | public | public | 0 | 0 | test_asyncio_map_from_args | def test_asyncio_map_from_args() -> None:unify.map(async_evaluate, qs, mode="asyncio", from_args=True)for q in qs:evaluate(q) | 2 | 4 | 0 | 31 | 0 | 198 | 201 | 198 | [] | None | {"Expr": 2, "For": 1} | 2 | 4 | 2 | ["unify.map", "evaluate"] | 0 | [] | The function (test_asyncio_map_from_args) defined within the public class called public.The function start at line 198 and ends at 201. 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, and It has 2.0 functions called inside which are ["unify.map", "evaluate"]. | |
unifyai_unify | public | public | 0 | 0 | test_loop_map | def test_loop_map() -> None:unify.map(evaluate_w_log, qs, mode="loop") | 1 | 2 | 0 | 18 | 0 | 204 | 205 | 204 | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["unify.map"] | 0 | [] | The function (test_loop_map) defined within the public class called public.The function start at line 204 and ends at 205. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["unify.map"]. | |
unifyai_unify | public | public | 0 | 0 | test_loop_map_from_args | def test_loop_map_from_args() -> None:unify.map(evaluate_w_log, qs, mode="loop", from_args=True) | 1 | 2 | 0 | 22 | 0 | 208 | 209 | 208 | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["unify.map"] | 0 | [] | The function (test_loop_map_from_args) defined within the public class called public.The function start at line 208 and ends at 209. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["unify.map"]. | |
unifyai_unify | public | public | 0 | 0 | test_asyncio_map_with_context.contextual_func | def contextual_func(a, b, c=3):with unify.Entries(a=a, b=b, c=c):time.sleep(0.1)unify.log(test="some random value")return a + b + c | 1 | 5 | 3 | 51 | 0 | 217 | 221 | 217 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_asyncio_map_with_context.contextual_func) defined within the public class called public.The function start at line 217 and ends at 221. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [217.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_asyncio_map_with_context | def test_asyncio_map_with_context() -> None:with ProjectHandling():with unify.Project("test_project"):def contextual_func(a, b, c=3):with unify.Entries(a=a, b=b, c=c):time.sleep(0.1)unify.log(test="some random value")return a + b + cresults = unify.map(contextual_func,[((1, 3), {"c": 2}),((2, 4), {"c": 4}),],mode="asyncio",)assert results == [1 + 3 + 2, 2 + 4 + 4]results = unify.map(contextual_func,[((1,), {"b": 2, "c": 2}),((3,), {"b": 4, "c": 4}),],mode="asyncio",)assert results == [1 + 2 + 2, 3 + 4 + 4] | 1 | 22 | 0 | 147 | 1 | 213 | 240 | 213 | ['results'] | None | {"Assign": 2, "Expr": 2, "Return": 1, "With": 3} | 7 | 28 | 7 | ["ProjectHandling", "unify.Project", "unify.Entries", "time.sleep", "unify.log", "unify.map", "unify.map"] | 0 | [] | The function (test_asyncio_map_with_context) defined within the public class called public.The function start at line 213 and ends at 240. It contains 22 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 7.0 functions, and It has 7.0 functions called inside which are ["ProjectHandling", "unify.Project", "unify.Entries", "time.sleep", "unify.log", "unify.map", "unify.map"]. | |
unifyai_unify | public | public | 0 | 0 | test_asyncio_map_with_context_from_args.contextual_func | def contextual_func(a, b, c=3):with unify.Entries(a=a, b=b, c=c):time.sleep(0.1)unify.log(test="some random value")return a + b + c | 1 | 5 | 3 | 51 | 0 | 248 | 252 | 248 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_asyncio_map_with_context_from_args.contextual_func) defined within the public class called public.The function start at line 248 and ends at 252. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [248.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | test_asyncio_map_with_context_from_args | def test_asyncio_map_with_context_from_args() -> None:with ProjectHandling():with unify.Project("test_project"):def contextual_func(a, b, c=3):with unify.Entries(a=a, b=b, c=c):time.sleep(0.1)unify.log(test="some random value")return a + b + cresults = unify.map(contextual_func,(1, 2),(3, 4),c=2,mode="asyncio",from_args=True,)assert results == [1 + 3 + 2, 2 + 4 + 2]results = unify.map(contextual_func,(1, 2),(3, 4),c=[2, 4],mode="asyncio",from_args=True,)assert results == [1 + 3 + 2, 2 + 4 + 4]results = unify.map(contextual_func,(1, 3),b=[2, 4],c=[2, 4],mode="asyncio",from_args=True,)assert results == [1 + 2 + 2, 3 + 4 + 4] | 1 | 31 | 0 | 178 | 1 | 244 | 280 | 244 | ['results'] | None | {"Assign": 3, "Expr": 2, "Return": 1, "With": 3} | 8 | 37 | 8 | ["ProjectHandling", "unify.Project", "unify.Entries", "time.sleep", "unify.log", "unify.map", "unify.map", "unify.map"] | 0 | [] | The function (test_asyncio_map_with_context_from_args) defined within the public class called public.The function start at line 244 and ends at 280. It contains 31 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 8.0 functions, and It has 8.0 functions called inside which are ["ProjectHandling", "unify.Project", "unify.Entries", "time.sleep", "unify.log", "unify.map", "unify.map", "unify.map"]. | |
unifyai_unify | public | public | 0 | 0 | set_seed | def set_seed(seed: int) -> None:global SEEDSEED = seed | 1 | 3 | 1 | 14 | 1 | 19 | 21 | 19 | seed | ['SEED'] | None | {"Assign": 1} | 0 | 3 | 0 | [] | 33 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.examples.ViT.run_image_classification_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.examples.gpt2.run_clm_flax_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.examples.opt_finetune.run_clm_flax_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.tests.runtime.test_random_seed_py.RandomSeedTest.test_remat_rng", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.tests.runtime.test_random_seed_py.RandomSeedTest.test_set_seed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.fine_tune_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.flux_train_control_net_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.flux_train_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.lumina_train_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sd3_train_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sdxl_train_control_net_lllite_old_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sdxl_train_control_net_lllite_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sdxl_train_control_net_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sdxl_train_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.tools.cache_latents_py.cache_to_disk", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.tools.cache_text_encoder_outputs_py.cache_to_disk", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_control_net_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_db_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_network_py.NetworkTrainer.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_textual_inversion_XTI_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_textual_inversion_py.TextualInversionTrainer.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.stable.fine_tune_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.stable.sdxl_train_control_net_lllite_old_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.stable.sdxl_train_control_net_lllite_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.stable.sdxl_train_py.train"] | The function (set_seed) defined within the public class called public.The function start at line 19 and ends at 21. 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 33.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.examples.ViT.run_image_classification_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.examples.gpt2.run_clm_flax_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.examples.opt_finetune.run_clm_flax_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.tests.runtime.test_random_seed_py.RandomSeedTest.test_remat_rng", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69413963_alpa_projects_alpa.tests.runtime.test_random_seed_py.RandomSeedTest.test_set_seed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.fine_tune_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.flux_train_control_net_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.flux_train_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.lumina_train_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sd3_train_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sdxl_train_control_net_lllite_old_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sdxl_train_control_net_lllite_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sdxl_train_control_net_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.sdxl_train_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.tools.cache_latents_py.cache_to_disk", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.tools.cache_text_encoder_outputs_py.cache_to_disk", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_control_net_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_db_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_network_py.NetworkTrainer.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_textual_inversion_XTI_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.dev.train_textual_inversion_py.TextualInversionTrainer.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.stable.fine_tune_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.stable.sdxl_train_control_net_lllite_old_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.stable.sdxl_train_control_net_lllite_py.train", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92495239_akegarasu_lora_scripts.scripts.stable.sdxl_train_py.train"]. |
unifyai_unify | public | public | 0 | 0 | get_seed | def get_seed() -> Optional[int]:return SEED | 1 | 2 | 0 | 11 | 0 | 24 | 25 | 24 | [] | Optional[int] | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (get_seed) defined within the public class called public.The function start at line 24 and ends at 25. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. | |
unifyai_unify | public | public | 0 | 0 | register_local_model | def register_local_model(model_name: str, fn: Callable):if "@local" not in model_name:model_name += "@local"LOCAL_MODELS[model_name] = fn | 2 | 4 | 2 | 26 | 0 | 28 | 31 | 28 | model_name,fn | [] | None | {"Assign": 1, "AugAssign": 1, "If": 1} | 0 | 4 | 0 | [] | 0 | [] | The function (register_local_model) defined within the public class called public.The function start at line 28 and ends at 31. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [28.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | activate | def activate(project: str,overwrite: Union[bool, str] = False,api_key: str = None,) -> None:if project not in list_projects(api_key=api_key):create_project(project, api_key=api_key)elif overwrite:create_project(project, api_key=api_key, overwrite=overwrite)global PROJECTPROJECT = project | 3 | 11 | 3 | 66 | 1 | 106 | 116 | 106 | project,overwrite,api_key | ['PROJECT'] | None | {"Assign": 1, "Expr": 2, "If": 2} | 3 | 11 | 3 | ["list_projects", "create_project", "create_project"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.rename"] | The function (activate) defined within the public class called public.The function start at line 106 and ends at 116. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [106.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["list_projects", "create_project", "create_project"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.rename"]. |
unifyai_unify | public | public | 0 | 0 | deactivate | def deactivate() -> None:global PROJECTPROJECT = None | 1 | 3 | 0 | 11 | 1 | 119 | 121 | 119 | ['PROJECT'] | None | {"Assign": 1} | 0 | 3 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.__exit__"] | The function (deactivate) defined within the public class called public.The function start at line 119 and ends at 121. 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 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.__exit__"]. | |
unifyai_unify | public | public | 0 | 0 | active_project | def active_project() -> str:global PROJECTif PROJECT is None:return os.environ.get("UNIFY_PROJECT")return PROJECT | 2 | 5 | 0 | 24 | 0 | 124 | 128 | 124 | [] | str | {"If": 1, "Return": 2} | 1 | 5 | 1 | ["os.environ.get"] | 0 | [] | The function (active_project) defined within the public class called public.The function start at line 124 and ends at 128. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["os.environ.get"]. | |
unifyai_unify | Project | public | 0 | 0 | __init__ | def __init__(self,project: str,overwrite: bool = False,api_key: Optional[str] = None,) -> None:self._project = projectself._overwrite = overwrite# noinspection PyProtectedMemberself._api_key = helpers._validate_api_key(api_key)self._entered = False | 1 | 10 | 4 | 52 | 0 | 134 | 144 | 134 | self,project,overwrite,api_key | [] | None | {"Assign": 4} | 1 | 11 | 1 | ["helpers._validate_api_key"] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_.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 Project.The function start at line 134 and ends at 144. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [134.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["helpers._validate_api_key"], 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__"]. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.