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 | _Client | protected | 1 | 1 | set_messages | def set_messages(self,value: Union[List[ChatCompletionMessageParam],Dict[str, List[ChatCompletionMessageParam]],],) -> Self:"""Set the default messages.# noqa: DAR101.Args:value: The default messages.Returns:This client, useful for chaining inplace calls."""self._messages = valueif isinstance(value, list) and value and value[0]["role"] == "system":self.set_system_message(value[0]["content"])return self | 4 | 11 | 2 | 69 | 0 | 595 | 614 | 595 | self,value | [] | Self | {"Assign": 1, "Expr": 2, "If": 1, "Return": 1} | 2 | 20 | 2 | ["isinstance", "self.set_system_message"] | 0 | [] | The function (set_messages) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 595 and ends at 614. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [595.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["isinstance", "self.set_system_message"]. |
unifyai_unify | _Client | protected | 1 | 1 | append_messages | def append_messages(self,value: Union[List[ChatCompletionMessageParam],Dict[str, List[ChatCompletionMessageParam]],],) -> Self:"""Append to the default messages.# noqa: DAR101.Args:value: The messages to append to the default.Returns:This client, useful for chaining inplace calls."""if self._messages is None:self._messages = []self._messages += valuereturn self | 2 | 11 | 2 | 50 | 0 | 616 | 635 | 616 | self,value | [] | Self | {"Assign": 1, "AugAssign": 1, "Expr": 1, "If": 1, "Return": 1} | 0 | 20 | 0 | [] | 0 | [] | The function (append_messages) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 616 and ends at 635. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [616.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_frequency_penalty | def set_frequency_penalty(self, value: float) -> Self:"""Set the default frequency penalty.# noqa: DAR101.Args:value: The default frequency penalty.Returns:This client, useful for chaining inplace calls."""self._frequency_penalty = valuereturn self | 1 | 3 | 2 | 19 | 0 | 637 | 648 | 637 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_frequency_penalty) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 637 and ends at 648. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [637.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_logit_bias | def set_logit_bias(self, value: Dict[str, int]) -> Self:"""Set the default logit bias.# noqa: DAR101.Args:value: The default logit bias.Returns:This client, useful for chaining inplace calls."""self._logit_bias = valuereturn self | 1 | 3 | 2 | 24 | 0 | 650 | 661 | 650 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_logit_bias) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 650 and ends at 661. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [650.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_logprobs | def set_logprobs(self, value: bool) -> Self:"""Set the default logprobs.# noqa: DAR101.Args:value: The default logprobs.Returns:This client, useful for chaining inplace calls."""self._logprobs = valuereturn self | 1 | 3 | 2 | 19 | 0 | 663 | 674 | 663 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_logprobs) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 663 and ends at 674. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [663.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_top_logprobs | def set_top_logprobs(self, value: int) -> Self:"""Set the default top logprobs.# noqa: DAR101.Args:value: The default top logprobs.Returns:This client, useful for chaining inplace calls."""self._top_logprobs = valuereturn self | 1 | 3 | 2 | 19 | 0 | 676 | 687 | 676 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_top_logprobs) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 676 and ends at 687. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [676.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_max_completion_tokens | def set_max_completion_tokens(self, value: int) -> Self:"""Set the default max tokens.# noqa: DAR101.Args:value: The default max tokens.Returns:This client, useful for chaining inplace calls."""self._max_completion_tokens = valuereturn self | 1 | 3 | 2 | 19 | 0 | 689 | 700 | 689 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_max_completion_tokens) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 689 and ends at 700. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [689.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_n | def set_n(self, value: int) -> Self:"""Set the default n value.# noqa: DAR101.Args:value: The default n value.Returns:This client, useful for chaining inplace calls."""self._n = valuereturn self | 1 | 3 | 2 | 19 | 0 | 702 | 713 | 702 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_universal_api.test_basics_py.TestUnifyBasics.test_setter_chaining"] | The function (set_n) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 702 and ends at 713. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [702.0] 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.tests.test_universal_api.test_basics_py.TestUnifyBasics.test_setter_chaining"]. |
unifyai_unify | _Client | protected | 1 | 1 | set_presence_penalty | def set_presence_penalty(self, value: float) -> Self:"""Set the default presence penalty.# noqa: DAR101.Args:value: The default presence penalty.Returns:This client, useful for chaining inplace calls."""self._presence_penalty = valuereturn self | 1 | 3 | 2 | 19 | 0 | 715 | 726 | 715 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_presence_penalty) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 715 and ends at 726. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [715.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_response_format | def set_response_format(self,value: Optional[Union[Type[BaseModel], Dict[str, str]]],) -> Self:"""Set the default response format.# noqa: DAR101.Args:value: The default response format.Returns:This client, useful for chaining inplace calls."""self._response_format = valuereturn self | 1 | 6 | 2 | 36 | 0 | 728 | 742 | 728 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 15 | 0 | [] | 0 | [] | The function (set_response_format) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 728 and ends at 742. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [728.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_seed | def set_seed(self, value: Optional[int]) -> Self:"""Set the default seed value.# noqa: DAR101.Args:value: The default seed value.Returns:This client, useful for chaining inplace calls."""self._seed = valuereturn self | 1 | 3 | 2 | 22 | 0 | 744 | 755 | 744 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 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 protected class called _Client, implement an interface, and it inherit another class.The function start at line 744 and ends at 755. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [744.0] 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 | _Client | protected | 1 | 1 | set_stop | def set_stop(self, value: Union[str, List[str]]) -> Self:"""Set the default stop value.# noqa: DAR101.Args:value: The default stop value.Returns:This client, useful for chaining inplace calls."""self._stop = valuereturn self | 1 | 3 | 2 | 27 | 0 | 757 | 768 | 757 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_stop) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 757 and ends at 768. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [757.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_stream | def set_stream(self, value: bool) -> Self:"""Set the default stream bool.# noqa: DAR101.Args:value: The default stream bool.Returns:This client, useful for chaining inplace calls."""self._stream = valuereturn self | 1 | 3 | 2 | 19 | 0 | 770 | 781 | 770 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_stream) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 770 and ends at 781. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [770.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_stream_options | def set_stream_options(self, value: ChatCompletionStreamOptionsParam) -> Self:"""Set the default stream options.# noqa: DAR101.Args:value: The default stream options.Returns:This client, useful for chaining inplace calls."""self._stream_options = valuereturn self | 1 | 3 | 2 | 19 | 0 | 783 | 794 | 783 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_stream_options) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 783 and ends at 794. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [783.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_temperature | def set_temperature(self, value: float) -> Self:"""Set the default temperature.# noqa: DAR101.Args:value: The default temperature.Returns:This client, useful for chaining inplace calls."""self._temperature = valuereturn self | 1 | 3 | 2 | 19 | 0 | 796 | 807 | 796 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_temperature) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 796 and ends at 807. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [796.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_top_p | def set_top_p(self, value: float) -> Self:"""Set the default top p value.# noqa: DAR101.Args:value: The default top p value.Returns:This client, useful for chaining inplace calls."""self._top_p = valuereturn self | 1 | 3 | 2 | 19 | 0 | 809 | 820 | 809 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_top_p) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 809 and ends at 820. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [809.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_service_tier | def set_service_tier(self, value: Optional[str]) -> Self:"""Set the default service tier.# noqa: DAR101.Args:value: The default service tier.Returns:This client, useful for chaining inplace calls."""self._service_tier = valuereturn self | 1 | 3 | 2 | 22 | 0 | 822 | 833 | 822 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_service_tier) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 822 and ends at 833. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [822.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_tools | def set_tools(self, value: Iterable[ChatCompletionToolParam]) -> Self:"""Set the default tools.# noqa: DAR101.Args:value: The default tools.Returns:This client, useful for chaining inplace calls."""self._tools = valuereturn self | 1 | 3 | 2 | 22 | 0 | 835 | 846 | 835 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_tools) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 835 and ends at 846. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [835.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_tool_choice | def set_tool_choice(self, value: ChatCompletionToolChoiceOptionParam) -> Self:"""Set the default tool choice.# noqa: DAR101.Args:value: The default tool choice.Returns:This client, useful for chaining inplace calls."""self._tool_choice = valuereturn self | 1 | 3 | 2 | 19 | 0 | 848 | 859 | 848 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_tool_choice) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 848 and ends at 859. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [848.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_parallel_tool_calls | def set_parallel_tool_calls(self, value: bool) -> Self:"""Set the default parallel tool calls bool.# noqa: DAR101.Args:value: The default parallel tool calls bool.Returns:This client, useful for chaining inplace calls."""self._parallel_tool_calls = valuereturn self | 1 | 3 | 2 | 19 | 0 | 861 | 872 | 861 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_parallel_tool_calls) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 861 and ends at 872. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [861.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_reasoning_effort | def set_reasoning_effort(self, value: str) -> Self:"""Set the default reasoning effort.# noqa: DAR101.Args:value: The default reasoning effort.Returns:This client, useful for chaining inplace calls."""self._reasoning_effort = valuereturn self | 1 | 3 | 2 | 19 | 0 | 874 | 885 | 874 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_reasoning_effort) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 874 and ends at 885. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [874.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_use_custom_keys | def set_use_custom_keys(self, value: bool) -> Self:"""Set the default use custom keys bool.# noqa: DAR101.Args:value: The default use custom keys bool.Returns:This client, useful for chaining inplace calls."""self._use_custom_keys = valuereturn self | 1 | 3 | 2 | 19 | 0 | 887 | 898 | 887 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_use_custom_keys) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 887 and ends at 898. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [887.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_tags | def set_tags(self, value: List[str]) -> Self:"""Set the default tags.# noqa: DAR101.Args:value: The default tags.Returns:This client, useful for chaining inplace calls."""self._tags = valuereturn self | 1 | 3 | 2 | 22 | 0 | 900 | 911 | 900 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_tags) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 900 and ends at 911. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [900.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_drop_params | def set_drop_params(self, value: bool) -> Self:"""Set the default drop params bool.# noqa: DAR101.Args:value: The default drop params bool.Returns:This client, useful for chaining inplace calls."""self._drop_params = valuereturn self | 1 | 3 | 2 | 19 | 0 | 913 | 924 | 913 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_drop_params) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 913 and ends at 924. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [913.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_region | def set_region(self, value: str) -> Self:"""Set the default region.# noqa: DAR101.Args:value: The default region.Returns:This client, useful for chaining inplace calls."""self._region = valuereturn self | 1 | 3 | 2 | 19 | 0 | 926 | 937 | 926 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_region) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 926 and ends at 937. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [926.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_log_query_body | def set_log_query_body(self, value: bool) -> Self:"""Set the default log query body bool.# noqa: DAR101.Args:value: The default log query body bool.Returns:This client, useful for chaining inplace calls."""self._log_query_body = valuereturn self | 1 | 3 | 2 | 19 | 0 | 939 | 950 | 939 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_log_query_body) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 939 and ends at 950. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [939.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_log_response_body | def set_log_response_body(self, value: bool) -> Self:"""Set the default log response body bool.# noqa: DAR101.Args:value: The default log response body bool.Returns:This client, useful for chaining inplace calls."""self._log_response_body = valuereturn self | 1 | 3 | 2 | 19 | 0 | 952 | 963 | 952 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_log_response_body) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 952 and ends at 963. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [952.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_stateful | def set_stateful(self, value: bool) -> Self:"""Set the default stateful bool.# noqa: DAR101.Args:value: The default stateful bool.Returns:This client, useful for chaining inplace calls."""self._stateful = valuereturn self | 1 | 3 | 2 | 19 | 0 | 965 | 976 | 965 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_stateful) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 965 and ends at 976. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [965.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_return_full_completion | def set_return_full_completion(self, value: bool) -> Self:"""Set the default return full completion bool.# noqa: DAR101.Args:value: The default return full completion bool.Returns:This client, useful for chaining inplace calls."""self._return_full_completion = valuereturn self | 1 | 3 | 2 | 19 | 0 | 978 | 989 | 978 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_return_full_completion) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 978 and ends at 989. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [978.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_traced | def set_traced(self, value: bool) -> Self:"""Set the default traced bool.# noqa: DAR101.Args:value: The default traced bool.Returns:This client, useful for chaining inplace calls."""self._traced = valuereturn self | 1 | 3 | 2 | 19 | 0 | 992 | 1,003 | 992 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_traced) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 992 and ends at 1003. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [992.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_cache | def set_cache(self, value: bool) -> Self:"""Set the default cache bool.# noqa: DAR101.Args:value: The default cache bool.Returns:This client, useful for chaining inplace calls."""self._cache = valuereturn self | 1 | 3 | 2 | 19 | 0 | 1,005 | 1,016 | 1,005 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_cache) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1005 and ends at 1016. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1005.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_cache_backend | def set_cache_backend(self, value: str) -> Self:"""Set the default cache backend.# noqa: DAR101.Args:value: The default cache backend.Returns:This client, useful for chaining inplace calls."""self._cache_backend = valuereturn self | 1 | 3 | 2 | 19 | 0 | 1,018 | 1,029 | 1,018 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_cache_backend) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1018 and ends at 1029. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1018.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_extra_headers | def set_extra_headers(self, value: Headers) -> Self:"""Set the default extra headers.# noqa: DAR101.Args:value: The default extra headers.Returns:This client, useful for chaining inplace calls."""self._extra_headers = valuereturn self | 1 | 3 | 2 | 19 | 0 | 1,031 | 1,042 | 1,031 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_extra_headers) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1031 and ends at 1042. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1031.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_extra_query | def set_extra_query(self, value: Query) -> Self:"""Set the default extra query.# noqa: DAR101.Args:value: The default extra query.Returns:This client, useful for chaining inplace calls."""self._extra_query = valuereturn self | 1 | 3 | 2 | 19 | 0 | 1,044 | 1,055 | 1,044 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_extra_query) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1044 and ends at 1055. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1044.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | set_extra_body | def set_extra_body(self, value: Body) -> Self:"""Set the default extra body.# noqa: DAR101.Args:value: The default extra body.Returns:This client, useful for chaining inplace calls."""self._extra_body = valuereturn self | 1 | 3 | 2 | 19 | 0 | 1,057 | 1,068 | 1,057 | self,value | [] | Self | {"Assign": 1, "Expr": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (set_extra_body) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1057 and ends at 1068. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1057.0] and does not return any value.. |
unifyai_unify | _Client | protected | 1 | 1 | reset_system_message | def reset_system_message(self) -> Self:"""Reset the system message to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_system_message(self._defaults["system_message"]) | 1 | 2 | 1 | 20 | 0 | 1,073 | 1,080 | 1,073 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_system_message"] | 0 | [] | The function (reset_system_message) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1073 and ends at 1080. 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 ["self.set_system_message"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_messages | def reset_messages(self) -> Self:"""Reset the messages to their default value.Returns:This client, useful for chaining inplace calls."""return self.set_messages(self._defaults["messages"]) | 1 | 2 | 1 | 20 | 0 | 1,082 | 1,089 | 1,082 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_messages"] | 0 | [] | The function (reset_messages) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1082 and ends at 1089. 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 ["self.set_messages"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_frequency_penalty | def reset_frequency_penalty(self) -> Self:"""Reset the frequency penalty to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_frequency_penalty(self._defaults["frequency_penalty"]) | 1 | 2 | 1 | 20 | 0 | 1,091 | 1,098 | 1,091 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_frequency_penalty"] | 0 | [] | The function (reset_frequency_penalty) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1091 and ends at 1098. 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 ["self.set_frequency_penalty"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_logit_bias | def reset_logit_bias(self) -> Self:"""Reset the logit bias to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_logit_bias(self._defaults["logit_bias"]) | 1 | 2 | 1 | 20 | 0 | 1,100 | 1,107 | 1,100 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_logit_bias"] | 0 | [] | The function (reset_logit_bias) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1100 and ends at 1107. 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 ["self.set_logit_bias"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_logprobs | def reset_logprobs(self) -> Self:"""Reset the logprobs to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_logprobs(self._defaults["logprobs"]) | 1 | 2 | 1 | 20 | 0 | 1,109 | 1,116 | 1,109 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_logprobs"] | 0 | [] | The function (reset_logprobs) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1109 and ends at 1116. 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 ["self.set_logprobs"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_top_logprobs | def reset_top_logprobs(self) -> Self:"""Reset the top logprobs to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_top_logprobs(self._defaults["top_logprobs"]) | 1 | 2 | 1 | 20 | 0 | 1,118 | 1,125 | 1,118 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_top_logprobs"] | 0 | [] | The function (reset_top_logprobs) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1118 and ends at 1125. 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 ["self.set_top_logprobs"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_max_completion_tokens | def reset_max_completion_tokens(self) -> Self:"""Reset the max completion tokens to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_max_completion_tokens(self._defaults["max_completion_tokens"]) | 1 | 2 | 1 | 20 | 0 | 1,127 | 1,134 | 1,127 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_max_completion_tokens"] | 0 | [] | The function (reset_max_completion_tokens) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1127 and ends at 1134. 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 ["self.set_max_completion_tokens"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_n | def reset_n(self) -> Self:"""Reset n to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_n(self._defaults["n"]) | 1 | 2 | 1 | 20 | 0 | 1,136 | 1,143 | 1,136 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_n"] | 0 | [] | The function (reset_n) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1136 and ends at 1143. 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 ["self.set_n"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_presence_penalty | def reset_presence_penalty(self) -> Self:"""Reset the presence penalty to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_presence_penalty(self._defaults["presence_penalty"]) | 1 | 2 | 1 | 20 | 0 | 1,145 | 1,152 | 1,145 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_presence_penalty"] | 0 | [] | The function (reset_presence_penalty) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1145 and ends at 1152. 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 ["self.set_presence_penalty"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_response_format | def reset_response_format(self) -> Self:"""Reset the response format to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_response_format(self._defaults["response_format"]) | 1 | 2 | 1 | 20 | 0 | 1,154 | 1,161 | 1,154 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_response_format"] | 0 | [] | The function (reset_response_format) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1154 and ends at 1161. 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 ["self.set_response_format"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_seed | def reset_seed(self) -> Self:"""Reset the seed to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_seed(self._defaults["seed"]) | 1 | 2 | 1 | 20 | 0 | 1,163 | 1,170 | 1,163 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_seed"] | 0 | [] | The function (reset_seed) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1163 and ends at 1170. 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 ["self.set_seed"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_stop | def reset_stop(self) -> Self:"""Reset the stop value to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_stop(self._defaults["stop"]) | 1 | 2 | 1 | 20 | 0 | 1,172 | 1,179 | 1,172 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_stop"] | 0 | [] | The function (reset_stop) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1172 and ends at 1179. 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 ["self.set_stop"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_stream | def reset_stream(self) -> Self:"""Reset the stream value to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_stream(self._defaults["stream"]) | 1 | 2 | 1 | 20 | 0 | 1,181 | 1,188 | 1,181 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_stream"] | 0 | [] | The function (reset_stream) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1181 and ends at 1188. 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 ["self.set_stream"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_stream_options | def reset_stream_options(self) -> Self:"""Reset the stream options to their default value.Returns:This client, useful for chaining inplace calls."""return self.set_stream_options(self._defaults["stream_options"]) | 1 | 2 | 1 | 20 | 0 | 1,190 | 1,197 | 1,190 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_stream_options"] | 0 | [] | The function (reset_stream_options) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1190 and ends at 1197. 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 ["self.set_stream_options"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_temperature | def reset_temperature(self) -> Self:"""Reset the temperature to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_temperature(self._defaults["temperature"]) | 1 | 2 | 1 | 20 | 0 | 1,199 | 1,206 | 1,199 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_temperature"] | 0 | [] | The function (reset_temperature) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1199 and ends at 1206. 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 ["self.set_temperature"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_top_p | def reset_top_p(self) -> Self:"""Reset the top p value to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_top_p(self._defaults["top_p"]) | 1 | 2 | 1 | 20 | 0 | 1,208 | 1,215 | 1,208 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_top_p"] | 0 | [] | The function (reset_top_p) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1208 and ends at 1215. 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 ["self.set_top_p"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_service_tier | def reset_service_tier(self) -> Self:"""Reset the service tier to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_service_tier(self._defaults["service_tier"]) | 1 | 2 | 1 | 20 | 0 | 1,217 | 1,224 | 1,217 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_service_tier"] | 0 | [] | The function (reset_service_tier) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1217 and ends at 1224. 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 ["self.set_service_tier"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_tools | def reset_tools(self) -> Self:"""Reset the tools to their default value.Returns:This client, useful for chaining inplace calls."""return self.set_tools(self._defaults["tools"]) | 1 | 2 | 1 | 20 | 0 | 1,226 | 1,233 | 1,226 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_tools"] | 0 | [] | The function (reset_tools) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1226 and ends at 1233. 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 ["self.set_tools"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_tool_choice | def reset_tool_choice(self) -> Self:"""Reset the tool choice to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_tool_choice(self._defaults["tool_choice"]) | 1 | 2 | 1 | 20 | 0 | 1,235 | 1,242 | 1,235 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_tool_choice"] | 0 | [] | The function (reset_tool_choice) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1235 and ends at 1242. 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 ["self.set_tool_choice"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_parallel_tool_calls | def reset_parallel_tool_calls(self) -> Self:"""Reset the parallel tool calls to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_parallel_tool_calls(self._defaults["parallel_tool_calls"]) | 1 | 2 | 1 | 20 | 0 | 1,244 | 1,251 | 1,244 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_parallel_tool_calls"] | 0 | [] | The function (reset_parallel_tool_calls) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1244 and ends at 1251. 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 ["self.set_parallel_tool_calls"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_reasoning_effort | def reset_reasoning_effort(self) -> Self:"""Reset the reasoning effort to its default value.Returns:This client, useful for chaining inplace calls."""return self.set_reasoning_effort(self._defaults["reasoning_effort"]) | 1 | 2 | 1 | 20 | 0 | 1,253 | 1,260 | 1,253 | self | [] | Self | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["self.set_reasoning_effort"] | 0 | [] | The function (reset_reasoning_effort) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1253 and ends at 1260. 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 ["self.set_reasoning_effort"]. |
unifyai_unify | _Client | protected | 1 | 1 | reset_all | def reset_all(self) -> Self:"""Reset base client properties to their default values.Returns:This client, useful for chaining inplace calls."""self.reset_system_message()self.reset_messages()self.reset_frequency_penalty()self.reset_logit_bias()self.reset_logprobs()self.reset_top_logprobs()self.reset_max_completion_tokens()self.reset_n()self.reset_presence_penalty()self.reset_response_format()self.reset_seed()self.reset_stop()self.reset_stream()self.reset_stream_options()self.reset_temperature()self.reset_top_p()self.reset_service_tier()self.reset_tools()self.reset_tool_choice()self.reset_parallel_tool_calls()self.reset_reasoning_effort()return self | 1 | 23 | 1 | 115 | 0 | 1,262 | 1,290 | 1,262 | self | [] | Self | {"Expr": 22, "Return": 1} | 21 | 29 | 21 | ["self.reset_system_message", "self.reset_messages", "self.reset_frequency_penalty", "self.reset_logit_bias", "self.reset_logprobs", "self.reset_top_logprobs", "self.reset_max_completion_tokens", "self.reset_n", "self.reset_presence_penalty", "self.reset_response_format", "self.reset_seed", "self.reset_stop", "self.reset_stream", "self.reset_stream_options", "self.reset_temperature", "self.reset_top_p", "self.reset_service_tier", "self.reset_tools", "self.reset_tool_choice", "self.reset_parallel_tool_calls", "self.reset_reasoning_effort"] | 0 | [] | The function (reset_all) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1262 and ends at 1290. It contains 23 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 21.0 functions, and It has 21.0 functions called inside which are ["self.reset_system_message", "self.reset_messages", "self.reset_frequency_penalty", "self.reset_logit_bias", "self.reset_logprobs", "self.reset_top_logprobs", "self.reset_max_completion_tokens", "self.reset_n", "self.reset_presence_penalty", "self.reset_response_format", "self.reset_seed", "self.reset_stop", "self.reset_stream", "self.reset_stream_options", "self.reset_temperature", "self.reset_top_p", "self.reset_service_tier", "self.reset_tools", "self.reset_tool_choice", "self.reset_parallel_tool_calls", "self.reset_reasoning_effort"]. |
unifyai_unify | _Client | protected | 1 | 1 | get_credit_balance | def get_credit_balance(self) -> Union[float, None]:# noqa: DAR201, DAR401"""Get the remaining credits left on your account.Returns:The remaining credits on the account if successful, otherwise None.Raises:BadRequestError: If there was an HTTP error.ValueError: If there was an error parsing the JSON response."""url = f"{BASE_URL}/credits"headers = _create_request_header(self._api_key)try:response = http.get(url, headers=headers, timeout=10)if response.status_code != 200:raise Exception(response.json())return response.json()["credits"]except requests.RequestException as e:raise requests.RequestException("There was an error with the request.",) from eexcept (KeyError, ValueError) as e:raise ValueError("Error parsing JSON response.") from e | 4 | 14 | 1 | 101 | 0 | 1,295 | 1,318 | 1,295 | self | [] | Union[float, None] | {"Assign": 3, "Expr": 1, "If": 1, "Return": 1, "Try": 1} | 7 | 24 | 7 | ["_create_request_header", "http.get", "Exception", "response.json", "response.json", "requests.RequestException", "ValueError"] | 0 | [] | The function (get_credit_balance) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1295 and ends at 1318. It contains 14 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["_create_request_header", "http.get", "Exception", "response.json", "response.json", "requests.RequestException", "ValueError"]. |
unifyai_unify | _Client | protected | 1 | 1 | copy | def copy(self):# noinspection PyUnresolvedReferences,PyArgumentListreturn type(self)(**copy.deepcopy({**self._constructor_args,**dict(system_message=self._system_message,messages=self._messages,frequency_penalty=self._frequency_penalty,logit_bias=self._logit_bias,logprobs=self._logprobs,top_logprobs=self._top_logprobs,max_completion_tokens=self._max_completion_tokens,n=self._n,presence_penalty=self._presence_penalty,response_format=self._response_format,seed=self._seed,stop=self._stop,stream=self._stream,stream_options=self._stream_options,temperature=self._temperature,top_p=self._top_p,service_tier=self._service_tier,tools=self._tools,tool_choice=self._tool_choice,parallel_tool_calls=self._parallel_tool_calls,# platform argumentsuse_custom_keys=self._use_custom_keys,tags=self._tags,drop_params=self._drop_params,region=self._region,log_query_body=self._log_query_body,log_response_body=self._log_response_body,api_key=self._api_key,# python client argumentsstateful=self._stateful,return_full_completion=self._return_full_completion,traced=self._traced,cache=self._cache,# passthrough argumentsextra_headers=self._extra_headers,extra_query=self._extra_query,**self._extra_body,),},),) | 1 | 44 | 1 | 235 | 0 | 1,323 | 1,370 | 1,323 | self | [] | Returns | {"Return": 1} | 3 | 48 | 3 | ["type", "copy.deepcopy", "dict"] | 953 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.DefinitionViewsTest.test_definition_update_must_be_valid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.routes.util_py._screenargs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3516508_rvagg_archived_pangyp.gyp.pylib.gyp.ordered_dict_py.OrderedDict.__reduce__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569128_timothycrosley_deprecated_frosted.frosted.api_py.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3574492_gstreamer_gst_python.examples.plugins.python.audioplot_py.AudioPlotFilter.do_fixate_caps", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3574492_gstreamer_gst_python.gi.overrides.Gst_py.Caps.__new__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3574492_gstreamer_gst_python.gi.overrides.Gst_py.Structure.__new__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.models.video.lt24lcd_display_py.LT24LCDDisplay.process", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3630950_deliveryhero_lymph.lymph.core.trace_py.GreenletWithTrace.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3652343_zsiciarz_django_envelope.envelope.views_py.ContactView.get_initial", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.test_basic_py.TestCursor.test_json", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.test_connection_py.TestConnection.test_no_delay_warning", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.test_connection_py.TestConnection.test_utf8mb4", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.test_issues_py.TestOldIssues.test_issue_6", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.thirdparty.test_MySQLdb.test_MySQLdb_nonstandard_py.CoreAPI.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.ApplyMovementData.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.Asm.insert_with_dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.TextScript.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.TrainerGroupTable.get_dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.create_movement_commands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.tcgdisasm_py.Disassembler.output_bank_opcodes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.redtools.gbz80disasm_py.output_bank_opcodes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.tests.tests_py.TestAsmList.test_process_incbins", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663914_mozilla_releng_build_cloud_tools.cloudtools.log_py.SplitSysLogHandler.emit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3674272_myano_jenni.modules.unostats_py.rankings"] | The function (copy) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1323 and ends at 1370. It contains 44 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 ["type", "copy.deepcopy", "dict"], It has 953.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.DefinitionViewsTest.test_definition_update_must_be_valid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.routes.util_py._screenargs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3516508_rvagg_archived_pangyp.gyp.pylib.gyp.ordered_dict_py.OrderedDict.__reduce__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3569128_timothycrosley_deprecated_frosted.frosted.api_py.check", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3574492_gstreamer_gst_python.examples.plugins.python.audioplot_py.AudioPlotFilter.do_fixate_caps", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3574492_gstreamer_gst_python.gi.overrides.Gst_py.Caps.__new__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3574492_gstreamer_gst_python.gi.overrides.Gst_py.Structure.__new__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.models.video.lt24lcd_display_py.LT24LCDDisplay.process", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3630950_deliveryhero_lymph.lymph.core.trace_py.GreenletWithTrace.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3652343_zsiciarz_django_envelope.envelope.views_py.ContactView.get_initial", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.test_basic_py.TestCursor.test_json", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.test_connection_py.TestConnection.test_no_delay_warning", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.test_connection_py.TestConnection.test_utf8mb4", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.test_issues_py.TestOldIssues.test_issue_6", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.tests.thirdparty.test_MySQLdb.test_MySQLdb_nonstandard_py.CoreAPI.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.ApplyMovementData.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.Asm.insert_with_dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.TextScript.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.TrainerGroupTable.get_dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.crystal_py.create_movement_commands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.tcgdisasm_py.Disassembler.output_bank_opcodes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.redtools.gbz80disasm_py.output_bank_opcodes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.tests.tests_py.TestAsmList.test_process_incbins", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663914_mozilla_releng_build_cloud_tools.cloudtools.log_py.SplitSysLogHandler.emit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3674272_myano_jenni.modules.unostats_py.rankings"]. |
unifyai_unify | _Client | protected | 1 | 1 | json | def json(self):model = create_model(type(self).__name__, __config__={"extra": "allow"})instance = model(**{"type": type(self).__name__,**self._constructor_args,**dict(system_message=self._system_message,messages=self._messages,frequency_penalty=self._frequency_penalty,logit_bias=self._logit_bias,logprobs=self._logprobs,top_logprobs=self._top_logprobs,max_completion_tokens=self._max_completion_tokens,n=self._n,presence_penalty=self._presence_penalty,response_format=self._response_format,seed=self._seed,stop=self._stop,stream=self._stream,stream_options=self._stream_options,temperature=self._temperature,top_p=self._top_p,service_tier=self._service_tier,tools=self._tools,tool_choice=self._tool_choice,parallel_tool_calls=self._parallel_tool_calls,# platform argumentsuse_custom_keys=self._use_custom_keys,tags=self._tags,drop_params=self._drop_params,region=self._region,log_query_body=self._log_query_body,log_response_body=self._log_response_body,api_key=self._api_key,# python client argumentsstateful=self._stateful,return_full_completion=self._return_full_completion,traced=self._traced,cache=self._cache,# passthrough argumentsextra_headers=self._extra_headers,extra_query=self._extra_query,extra_body=self._extra_body,),},)return instance.model_dump() | 1 | 45 | 1 | 262 | 0 | 1,372 | 1,419 | 1,372 | self | [] | Returns | {"Assign": 2, "Return": 1} | 6 | 48 | 6 | ["create_model", "type", "model", "type", "dict", "instance.model_dump"] | 333 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.data_py.listfiles", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.client.experiment_py.ExperimentClient.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663914_mozilla_releng_build_cloud_tools.cloudtools.scripts.aws_stop_idle_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3702519_legobot_legobot.Legobot.Connectors.Discord_py.DiscoBot.get_ws_url", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716685_ayrahikari_emiliahikari.emilia.modules.special_py.kamusbesarbahasaindonesia", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716685_ayrahikari_emiliahikari.emilia.modules.welcome_py.check_cas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716685_ayrahikari_emiliahikari.emilia.modules.welcome_py.check_sw", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.dbapi.driver_py.Cursor.query_more", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.dbapi.driver_py.Cursor.versions_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.dbapi.driver_py.RawConnection.api_ver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918800_peerplays_network_python_peerplays.peerplays.utils_py.test_proposal_in_buffer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918800_peerplays_network_python_peerplays.tests.test_proposals_py.Testcases.test_finalizeOps_changeproposer_new", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918800_peerplays_network_python_peerplays.tests.test_proposals_py.Testcases.test_finalizeOps_proposal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918800_peerplays_network_python_peerplays.tests.test_proposals_py.Testcases.test_finalizeOps_proposal2", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3919404_enkore_i3pystatus.i3pystatus.abc_radio_py.ABCStationInfo.currently_playing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921157_alerta_python_alerta_client.tests.unit.test_commands_py.CommandsTestCase.test_heartbeats_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922805_splunk_splunk_ansible.ansible_commands.shc_ready_py.ShcReady.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923812_amplify_education_terrawrap.terrawrap.utils.version_py.get_latest_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.aggregates_py.AggregatesManager.fetch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_py.ArchivePolicyManager.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_py.ArchivePolicyManager.get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_py.ArchivePolicyManager.list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_py.ArchivePolicyManager.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_rule_py.ArchivePolicyRuleManager.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_rule_py.ArchivePolicyRuleManager.get"] | The function (json) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1372 and ends at 1419. It contains 45 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 6.0 functions, It has 6.0 functions called inside which are ["create_model", "type", "model", "type", "dict", "instance.model_dump"], It has 333.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.data_py.listfiles", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.client.experiment_py.ExperimentClient.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663914_mozilla_releng_build_cloud_tools.cloudtools.scripts.aws_stop_idle_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3702519_legobot_legobot.Legobot.Connectors.Discord_py.DiscoBot.get_ws_url", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716685_ayrahikari_emiliahikari.emilia.modules.special_py.kamusbesarbahasaindonesia", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716685_ayrahikari_emiliahikari.emilia.modules.welcome_py.check_cas", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716685_ayrahikari_emiliahikari.emilia.modules.welcome_py.check_sw", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.dbapi.driver_py.Cursor.query_more", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.dbapi.driver_py.Cursor.versions_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.dbapi.driver_py.RawConnection.api_ver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918800_peerplays_network_python_peerplays.peerplays.utils_py.test_proposal_in_buffer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918800_peerplays_network_python_peerplays.tests.test_proposals_py.Testcases.test_finalizeOps_changeproposer_new", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918800_peerplays_network_python_peerplays.tests.test_proposals_py.Testcases.test_finalizeOps_proposal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918800_peerplays_network_python_peerplays.tests.test_proposals_py.Testcases.test_finalizeOps_proposal2", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3919404_enkore_i3pystatus.i3pystatus.abc_radio_py.ABCStationInfo.currently_playing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921157_alerta_python_alerta_client.tests.unit.test_commands_py.CommandsTestCase.test_heartbeats_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922805_splunk_splunk_ansible.ansible_commands.shc_ready_py.ShcReady.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923812_amplify_education_terrawrap.terrawrap.utils.version_py.get_latest_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.aggregates_py.AggregatesManager.fetch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_py.ArchivePolicyManager.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_py.ArchivePolicyManager.get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_py.ArchivePolicyManager.list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_py.ArchivePolicyManager.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_rule_py.ArchivePolicyRuleManager.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951871_gnocchixyz_python_gnocchiclient.gnocchiclient.v1.archive_policy_rule_py.ArchivePolicyRuleManager.get"]. |
unifyai_unify | _Client | protected | 1 | 1 | _generate | def _generate(self,messages: Optional[Union[List[ChatCompletionMessageParam],Dict[str, List[ChatCompletionMessageParam]],]],*,frequency_penalty: Optional[float],logit_bias: Optional[Dict[str, int]],logprobs: Optional[bool],top_logprobs: Optional[int],max_completion_tokens: Optional[int],n: Optional[int],presence_penalty: Optional[float],response_format: Optional[Union[Type[BaseModel], Dict[str, str]]],seed: Optional[int],stop: Union[Optional[str], List[str]],stream: Optional[bool],stream_options: Optional[ChatCompletionStreamOptionsParam],temperature: Optional[float],top_p: Optional[float],service_tier: Optional[str],tools: Optional[Iterable[ChatCompletionToolParam]],tool_choice: Optional[ChatCompletionToolChoiceOptionParam],parallel_tool_calls: Optional[bool],reasoning_effort: Optional[str],# platform argumentsuse_custom_keys: bool,tags: Optional[List[str]],drop_params: Optional[bool],region: Optional[str],log_query_body: Optional[bool],log_response_body: Optional[bool],# python client argumentsreturn_full_completion: bool,cache: Union[bool, str],# passthrough argumentsextra_headers: Optional[Headers],extra_query: Optional[Query],**kwargs,):raise NotImplementedError | 1 | 41 | 32 | 268 | 0 | 1,425 | 1,468 | 1,425 | self,messages,frequency_penalty,logit_bias,logprobs,top_logprobs,max_completion_tokens,n,presence_penalty,response_format,seed,stop,stream,stream_options,temperature,top_p,service_tier,tools,tool_choice,parallel_tool_calls,reasoning_effort,use_custom_keys,tags,drop_params,region,log_query_body,log_response_body,return_full_completion,cache,extra_headers,extra_query,**kwargs | [] | None | {} | 0 | 44 | 0 | [] | 8 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.i18n_py.MsgDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_transform_py._simplify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.HTMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.XMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.path_py.Path.select", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.AttrsDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.StripDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.sequence_generator_py.SequenceGeneratorWithAlignment.generate"] | The function (_generate) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 1425 and ends at 1468. It contains 41 lines of code and it has a cyclomatic complexity of 1. It takes 32 parameters, represented as [1425.0] and does not return any value. It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.i18n_py.MsgDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_transform_py._simplify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.HTMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.XMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.path_py.Path.select", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.AttrsDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.StripDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.sequence_generator_py.SequenceGeneratorWithAlignment.generate"]. |
unifyai_unify | public | public | 0 | 0 | _is_custom_endpoint | def _is_custom_endpoint(endpoint: str):_, provider = endpoint.split("@")return "custom" in provider | 1 | 3 | 1 | 21 | 0 | 6 | 8 | 6 | endpoint | [] | Returns | {"Assign": 1, "Return": 1} | 1 | 3 | 1 | ["endpoint.split"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_endpoint"] | The function (_is_custom_endpoint) defined within the public class called public.The function start at line 6 and ends at 8. 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 declare 1.0 function, It has 1.0 function called inside which is ["endpoint.split"], 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.universal_api.clients.helpers_py._is_valid_endpoint"]. |
unifyai_unify | public | public | 0 | 0 | _is_local_endpoint | def _is_local_endpoint(endpoint: str):_, provider = endpoint.split("@")return provider == "local" | 1 | 3 | 1 | 21 | 0 | 11 | 13 | 11 | endpoint | [] | Returns | {"Assign": 1, "Return": 1} | 1 | 3 | 1 | ["endpoint.split"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_endpoint"] | The function (_is_local_endpoint) defined within the public class called public.The function start at line 11 and ends at 13. 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 declare 1.0 function, It has 1.0 function called inside which is ["endpoint.split"], 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.universal_api.clients.helpers_py._is_valid_endpoint"]. |
unifyai_unify | public | public | 0 | 0 | _is_fallback_provider | def _is_fallback_provider(provider: str, api_key: str = None):public_providers = unify.list_providers(api_key=api_key)return all(p in public_providers for p in provider.split("->")) | 2 | 3 | 2 | 39 | 1 | 16 | 18 | 16 | provider,api_key | ['public_providers'] | Returns | {"Assign": 1, "Return": 1} | 3 | 3 | 3 | ["unify.list_providers", "all", "provider.split"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_provider"] | The function (_is_fallback_provider) defined within the public class called public.The function start at line 16 and ends at 18. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [16.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["unify.list_providers", "all", "provider.split"], 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.universal_api.clients.helpers_py._is_valid_provider"]. |
unifyai_unify | public | public | 0 | 0 | _is_fallback_model | def _is_fallback_model(model: str, api_key: str = None):public_models = unify.list_models(api_key=api_key)return all(p in public_models for p in model.split("->")) | 2 | 3 | 2 | 39 | 1 | 21 | 23 | 21 | model,api_key | ['public_models'] | Returns | {"Assign": 1, "Return": 1} | 3 | 3 | 3 | ["unify.list_models", "all", "model.split"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_model"] | The function (_is_fallback_model) defined within the public class called public.The function start at line 21 and ends at 23. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [21.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["unify.list_models", "all", "model.split"], 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.universal_api.clients.helpers_py._is_valid_model"]. |
unifyai_unify | public | public | 0 | 0 | _is_fallback_endpoint | def _is_fallback_endpoint(endpoint: str, api_key: str = None):public_endpoints = unify.list_endpoints(api_key=api_key)return all(e in public_endpoints for e in endpoint.split("->")) | 2 | 3 | 2 | 39 | 1 | 26 | 28 | 26 | endpoint,api_key | ['public_endpoints'] | Returns | {"Assign": 1, "Return": 1} | 3 | 3 | 3 | ["unify.list_endpoints", "all", "endpoint.split"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_endpoint"] | The function (_is_fallback_endpoint) defined within the public class called public.The function start at line 26 and ends at 28. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [26.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["unify.list_endpoints", "all", "endpoint.split"], 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.universal_api.clients.helpers_py._is_valid_endpoint"]. |
unifyai_unify | public | public | 0 | 0 | _is_meta_provider | def _is_meta_provider(provider: str, api_key: str = None):public_providers = unify.list_providers(api_key=api_key)if "skip_providers:" in provider:skip_provs = provider.split("skip_providers:")[-1].split("|")[0]for prov in skip_provs.split(","):if prov.strip() not in public_providers:return Falsechnk0, chnk1 = provider.split("skip_providers:")chnk2 = "|".join(chnk1.split("|")[1:])provider = "".join([chnk0, chnk2])if "providers:" in provider:provs = provider.split("providers:")[-1].split("|")[0]for prov in provs.split(","):if prov.strip() not in public_providers:return Falsechnk0, chnk1 = provider.split("providers:")chnk2 = "|".join(chnk1.split("|")[1:])provider = "".join([chnk0, chnk2])if provider[-1] == "|":provider = provider[:-1]public_models = unify.list_models(api_key=api_key)if "skip_models:" in provider:skip_mods = provider.split("skip_models:")[-1].split("|")[0]for md in skip_mods.split(","):if md.strip() not in public_models:return Falsechnk0, chnk1 = provider.split("skip_models:")chnk2 = "|".join(chnk1.split("|")[1:])provider = "".join([chnk0, chnk2])if "models:" in provider:mods = provider.split("models:")[-1].split("|")[0]for md in mods.split(","):if md.strip() not in public_models:return Falsechnk0, chnk1 = provider.split("models:")chnk2 = "|".join(chnk1.split("|")[1:])provider = "".join([chnk0, chnk2])meta_providers = (("highest-quality","lowest-time-to-first-token","lowest-inter-token-latency","lowest-input-cost","lowest-output-cost","lowest-cost","lowest-ttft","lowest-itl","lowest-ic","lowest-oc","highest-q","lowest-t","lowest-i","lowest-c",)+ ("quality","time-to-first-token","inter-token-latency","input-cost","output-cost","cost",)+ ("q","ttft","itl","ic","oc","t","i","c",))operators = ("<", ">", "=", "|", ".", ":")for s in meta_providers + operators:provider = provider.replace(s, "")return all(c.isnumeric() for c in provider) | 16 | 77 | 2 | 507 | 10 | 31 | 107 | 31 | provider,api_key | ['provs', 'skip_mods', 'chnk2', 'operators', 'public_providers', 'skip_provs', 'public_models', 'provider', 'mods', 'meta_providers'] | Returns | {"Assign": 22, "For": 5, "If": 9, "Return": 5} | 37 | 77 | 37 | ["unify.list_providers", "split", "provider.split", "skip_provs.split", "prov.strip", "provider.split", "join", "chnk1.split", "join", "split", "provider.split", "provs.split", "prov.strip", "provider.split", "join", "chnk1.split", "join", "unify.list_models", "split", "provider.split", "skip_mods.split", "md.strip", "provider.split", "join", "chnk1.split", "join", "split", "provider.split", "mods.split", "md.strip", "provider.split", "join", "chnk1.split", "join", "provider.replace", "all", "c.isnumeric"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_provider"] | The function (_is_meta_provider) defined within the public class called public.The function start at line 31 and ends at 107. It contains 77 lines of code and it has a cyclomatic complexity of 16. It takes 2 parameters, represented as [31.0], and this function return a value. It declares 37.0 functions, It has 37.0 functions called inside which are ["unify.list_providers", "split", "provider.split", "skip_provs.split", "prov.strip", "provider.split", "join", "chnk1.split", "join", "split", "provider.split", "provs.split", "prov.strip", "provider.split", "join", "chnk1.split", "join", "unify.list_models", "split", "provider.split", "skip_mods.split", "md.strip", "provider.split", "join", "chnk1.split", "join", "split", "provider.split", "mods.split", "md.strip", "provider.split", "join", "chnk1.split", "join", "provider.replace", "all", "c.isnumeric"], 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.universal_api.clients.helpers_py._is_valid_provider"]. |
unifyai_unify | public | public | 0 | 0 | _is_valid_endpoint | def _is_valid_endpoint(endpoint: str, api_key: str = None):if endpoint == "user-input":return Trueif _is_fallback_endpoint(endpoint, api_key):return Truemodel, provider = endpoint.split("@")if _is_valid_provider(provider) and _is_valid_model(model):return Trueif endpoint in unify.list_endpoints(api_key=api_key):return Trueif _is_custom_endpoint(endpoint) or _is_local_endpoint(endpoint):return Truereturn False | 8 | 13 | 2 | 82 | 0 | 113 | 125 | 113 | endpoint,api_key | [] | Returns | {"Assign": 1, "If": 5, "Return": 6} | 7 | 13 | 7 | ["_is_fallback_endpoint", "endpoint.split", "_is_valid_provider", "_is_valid_model", "unify.list_endpoints", "_is_custom_endpoint", "_is_local_endpoint"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._assert_is_valid_endpoint"] | The function (_is_valid_endpoint) defined within the public class called public.The function start at line 113 and ends at 125. It contains 13 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [113.0], and this function return a value. It declares 7.0 functions, It has 7.0 functions called inside which are ["_is_fallback_endpoint", "endpoint.split", "_is_valid_provider", "_is_valid_model", "unify.list_endpoints", "_is_custom_endpoint", "_is_local_endpoint"], 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.universal_api.clients.helpers_py._assert_is_valid_endpoint"]. |
unifyai_unify | public | public | 0 | 0 | _is_valid_provider | def _is_valid_provider(provider: str, api_key: str = None):if _is_meta_provider(provider):return Trueif provider in unify.list_providers(api_key=api_key):return Trueif _is_fallback_provider(provider):return Trueif provider == "local" or "custom" in provider:return Truereturn False | 6 | 10 | 2 | 56 | 0 | 128 | 137 | 128 | provider,api_key | [] | Returns | {"If": 4, "Return": 5} | 3 | 10 | 3 | ["_is_meta_provider", "unify.list_providers", "_is_fallback_provider"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._assert_is_valid_provider", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_endpoint"] | The function (_is_valid_provider) defined within the public class called public.The function start at line 128 and ends at 137. It contains 10 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [128.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["_is_meta_provider", "unify.list_providers", "_is_fallback_provider"], 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.universal_api.clients.helpers_py._assert_is_valid_provider", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_endpoint"]. |
unifyai_unify | public | public | 0 | 0 | _is_valid_model | def _is_valid_model(model: str, custom_or_local: bool = False, api_key: str = None):if custom_or_local:return Trueif model in unify.list_models(api_key=api_key):return Trueif _is_fallback_model(model):return Trueif model == "router":return Truereturn False | 5 | 10 | 3 | 55 | 0 | 140 | 149 | 140 | model,custom_or_local,api_key | [] | Returns | {"If": 4, "Return": 5} | 2 | 10 | 2 | ["unify.list_models", "_is_fallback_model"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._assert_is_valid_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_endpoint"] | The function (_is_valid_model) defined within the public class called public.The function start at line 140 and ends at 149. It contains 10 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [140.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["unify.list_models", "_is_fallback_model"], 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.universal_api.clients.helpers_py._assert_is_valid_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.helpers_py._is_valid_endpoint"]. |
unifyai_unify | public | public | 0 | 0 | _assert_is_valid_endpoint | def _assert_is_valid_endpoint(endpoint: str, api_key: str = None):assert _is_valid_endpoint(endpoint, api_key), f"{endpoint} is not a valid endpoint" | 1 | 2 | 2 | 23 | 0 | 155 | 156 | 155 | endpoint,api_key | [] | None | {} | 1 | 2 | 1 | ["_is_valid_endpoint"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.uni_llm_py._UniClient.set_endpoint"] | The function (_assert_is_valid_endpoint) defined within the public class called public.The function start at line 155 and ends at 156. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [155.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["_is_valid_endpoint"], 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.universal_api.clients.uni_llm_py._UniClient.set_endpoint"]. |
unifyai_unify | public | public | 0 | 0 | _assert_is_valid_provider | def _assert_is_valid_provider(provider: str, api_key: str = None):assert _is_valid_provider(provider, api_key), f"{provider} is not a valid provider" | 1 | 2 | 2 | 23 | 0 | 159 | 160 | 159 | provider,api_key | [] | None | {} | 1 | 2 | 1 | ["_is_valid_provider"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.uni_llm_py._UniClient.set_provider"] | The function (_assert_is_valid_provider) defined within the public class called public.The function start at line 159 and ends at 160. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [159.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["_is_valid_provider"], 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.universal_api.clients.uni_llm_py._UniClient.set_provider"]. |
unifyai_unify | public | public | 0 | 0 | _assert_is_valid_model | def _assert_is_valid_model(model: str,custom_or_local: bool = False,api_key: str = None,):assert _is_valid_model(model,custom_or_local,api_key,), f"{model} is not a valid model" | 1 | 10 | 3 | 33 | 0 | 163 | 172 | 163 | model,custom_or_local,api_key | [] | None | {} | 1 | 10 | 1 | ["_is_valid_model"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.uni_llm_py._UniClient.set_model"] | The function (_assert_is_valid_model) defined within the public class called public.The function start at line 163 and ends at 172. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [163.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["_is_valid_model"], 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.universal_api.clients.uni_llm_py._UniClient.set_model"]. |
unifyai_unify | _MultiClient | protected | 1 | 1 | __init__ | def __init__(self,endpoints: Optional[Union[str, Iterable[str]]] = None,*,system_message: Optional[str] = None,messages: Optional[Union[List[ChatCompletionMessageParam],Dict[str, List[ChatCompletionMessageParam]],]] = None,frequency_penalty: Optional[float] = None,logit_bias: Optional[Dict[str, int]] = None,logprobs: Optional[bool] = None,top_logprobs: Optional[int] = None,max_completion_tokens: Optional[int] = None,n: Optional[int] = None,presence_penalty: Optional[float] = None,response_format: Optional[Union[Type[BaseModel], Dict[str, str]]] = None,seed: Optional[int] = None,stop: Union[Optional[str], List[str]] = None,temperature: Optional[float] = 1.0,top_p: Optional[float] = None,service_tier: Optional[str] = None,tools: Optional[Iterable[ChatCompletionToolParam]] = None,tool_choice: Optional[ChatCompletionToolChoiceOptionParam] = None,parallel_tool_calls: Optional[bool] = None,reasoning_effort: Optional[str] = None,# platform argumentsuse_custom_keys: bool = False,tags: Optional[List[str]] = None,drop_params: Optional[bool] = True,region: Optional[str] = None,log_query_body: Optional[bool] = True,log_response_body: Optional[bool] = True,api_key: Optional[str] = None,openai_api_key: Optional[str] = None,# python client argumentsstateful: bool = False,return_full_completion: bool = False,traced: bool = False,cache: Union[bool, str] = None,cache_backend: Optional[str] = None,# passthrough argumentsextra_headers: Optional[Headers] = None,extra_query: Optional[Query] = None,**kwargs,) -> None:"""Initialize the Multi LLM Unify client.Args:endpoints: A single endpoint name or a list of endpoint names, with each namein OpenAI API format: <model_name>@<provider_name>. Defaults to None.system_message: An optional string containing the system message. Thisalways appears at the beginning of the list of messages.messages: A list of messages comprising the conversation so far. This willbe appended to the system_message if it is not None, and any user_messagewill be appended if it is not None.frequency_penalty: Number between -2.0 and 2.0. Positive values penalize newtokens based on their existing frequency in the text so far, decreasing themodel's likelihood to repeat the same line verbatim.logit_bias: Modify the likelihood of specified tokens appearing in thecompletion. Accepts a JSON object that maps tokens (specified by their tokenID in the tokenizer) to an associated bias value from -100 to 100.Mathematically, the bias is added to the logits generated by the model priorto sampling. The exact effect will vary per model, but values between -1 and1 should decrease or increase likelihood of selection; values like -100 or100 should result in a ban or exclusive selection of the relevant token.logprobs: Whether to return log probabilities of the output tokens or not.If true, returns the log probabilities of each output token returned in thecontent of message.top_logprobs: An integer between 0 and 20 specifying the number of mostlikely tokens to return at each token position, each with an associated logprobability. logprobs must be set to true if this parameter is used.max_completion_tokens: The maximum number of tokens that can be generated inthe chat completion. The total length of input tokens and generated tokensis limited by the model's context length. Defaults to the provider's defaultmax_completion_tokens when the value is None.n: How many chat completion choices to generate for each input message. Notethat you will be charged based on the number of generated tokens across allof the choices. Keep n as 1 to minimize costs.presence_penalty: Number between -2.0 and 2.0. Positive values penalize newtokens based on whether they appear in the text so far, increasing themodel's likelihood to talk about new topics.response_format: An object specifying the format that the model must output.Setting to `{ "type": "json_schema", "json_schema": {...} }` enablesStructured Outputs which ensures the model will match your supplied JSONschema. Learn more in the Structured Outputs guide. Setting to`{ "type": "json_object" }` enables JSON mode, which ensures the message themodel generates is valid JSON.seed: If specified, a best effort attempt is made to sampledeterministically, such that repeated requests with the same seed andparameters should return the same result. Determinism is not guaranteed, andyou should refer to the system_fingerprint response parameter to monitorchanges in the backend.stop: Up to 4 sequences where the API will stop generating further tokens.temperature:What sampling temperature to use, between 0 and 2.Higher values like 0.8 will make the output more random,while lower values like 0.2 will make it more focused and deterministic.It is generally recommended to alter this or top_p, but not both.Defaults to the provider's default max_completion_tokens when the value isNone.top_p: An alternative to sampling with temperature, called nucleus sampling,where the model considers the results of the tokens with top_p probabilitymass. So 0.1 means only the tokens comprising the top 10% probability massare considered. Generally recommended to alter this or temperature, but notboth.tools: A list of tools the model may call. Currently, only functions aresupported as a tool. Use this to provide a list of functions the model maygenerate JSON inputs for. A max of 128 functions are supported.tool_choice: Controls which (if any) tool is called by themodel. none means the model will not call any tool and instead generates amessage. auto means the model can pick between generating a message orcalling one or more tools. required means the model must call one or moretools. Specifying a particular tool via`{ "type": "function", "function": {"name": "my_function"} }`forces the model to call that tool.none is the default when no tools are present. auto is the default if toolsare present.parallel_tool_calls: Whether to enable parallel function calling during tooluse.use_custom_keys:Whether to use custom API keys or our unified API keyswith the backend provider.tags: Arbitrary number of tags to classify this API query as needed. Helpfulfor generally grouping queries across tasks and users, for logging purposes.drop_params: Whether or not to drop unsupported OpenAI params by theprovider you’re using.region: A string used to represent the region where the endpoint isaccessed. Only relevant for on-prem deployments with certain providers like`vertex-ai`, `aws-bedrock` and `azure-ml`, where the endpoint is beingaccessed through a specified region.log_query_body: Whether to log the contents of the query json body.log_response_body: Whether to log the contents of the response json body.stateful:Whether the conversation history is preserved within the messagesof this client. If True, then history is preserved. If False, then this actsas a stateless client, and message histories must be managed by the user.return_full_completion: If False, only return the message contentchat_completion.choices[0].message.content.strip(" ") from the OpenAIreturn. Otherwise, the full response chat_completion is returned.Defaults to False.traced: Whether to trace the generate method.cache: If True, then the arguments will be stored in a local cache file, andany future calls with identical arguments will read from the cache insteadof running the LLM query. If "write" then the cache will only be writtento, if "read" then the cache will be read from if a cache is available butwill not write, and if "read-only" then the argument must be present in thecache, else an exception will be raised. Finally, an appending "-closest"will read the closest match from the cache, and overwrite it if cache writingis enabled. This argument only has any effect when stream=False.extra_headers: Additional "passthrough" headers for the request which areprovider-specific, and are not part of the OpenAI standard. They are handledby the provider-specific API.extra_query: Additional "passthrough" query parameters for the request whichare provider-specific, and are not part of the OpenAI standard. They arehandled by the provider-specific API.kwargs: Additional "passthrough" JSON properties for the body of therequest, which are provider-specific, and are not part of the OpenAIstandard. They will be handled by the provider-specific API.Raises:UnifyError: If the API key is missing."""self._base_constructor_args = dict(system_message=system_message,messages=messages,frequency_penalty=frequency_penalty,logit_bias=logit_bias,logprobs=logprobs,top_logprobs=top_logprobs,max_completion_tokens=max_completion_tokens,n=n,presence_penalty=presence_penalty,response_format=response_format,seed=seed,stop=stop,stream=False,stream_options=None,temperature=temperature,top_p=top_p,service_tier=service_tier,tools=tools,tool_choice=tool_choice,parallel_tool_calls=parallel_tool_calls,reasoning_effort=reasoning_effort,# platform argumentsuse_custom_keys=use_custom_keys,tags=tags,drop_params=drop_params,region=region,log_query_body=log_query_body,log_response_body=log_response_body,api_key=api_key,openai_api_key=openai_api_key,# python client argumentsstateful=stateful,return_full_completion=return_full_completion,traced=traced,cache=cache,cache_backend=cache_backend,# passthrough argumentsextra_headers=extra_headers,extra_query=extra_query,**kwargs,)super().__init__(**self._base_constructor_args)self._constructor_args = dict(endpoints=endpoints,**self._base_constructor_args,)if isinstance(endpoints, str):endpoints = [endpoints]else:endpoints = list(endpoints)self._api_key = _validate_api_key(api_key)self._openai_api_key = _validate_openai_api_key(self._DIRECT_OPENAI_MODE,openai_api_key,)self._endpoints = endpointsself._client_class = AsyncUnifyself._clients = self._create_clients(endpoints) | 2 | 101 | 40 | 621 | 0 | 37 | 287 | 37 | self,endpoints,system_message,messages,frequency_penalty,logit_bias,logprobs,top_logprobs,max_completion_tokens,n,presence_penalty,response_format,seed,stop,temperature,top_p,service_tier,tools,tool_choice,parallel_tool_calls,reasoning_effort,use_custom_keys,tags,drop_params,region,log_query_body,log_response_body,api_key,openai_api_key,stateful,return_full_completion,traced,cache,cache_backend,extra_headers,extra_query,**kwargs | [] | None | {"Assign": 9, "Expr": 2, "If": 1} | 9 | 251 | 9 | ["dict", "__init__", "super", "dict", "isinstance", "list", "_validate_api_key", "_validate_openai_api_key", "self._create_clients"] | 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 _MultiClient, implement an interface, and it inherit another class.The function start at line 37 and ends at 287. It contains 101 lines of code and it has a cyclomatic complexity of 2. It takes 40 parameters, represented as [37.0] and does not return any value. It declares 9.0 functions, It has 9.0 functions called inside which are ["dict", "__init__", "super", "dict", "isinstance", "list", "_validate_api_key", "_validate_openai_api_key", "self._create_clients"], 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 | _MultiClient | protected | 1 | 1 | _create_clients | def _create_clients(self, endpoints: List[str]) -> Dict[str, AsyncUnify]:return {endpoint: self._client_class(endpoint,system_message=self.system_message,messages=self.messages,frequency_penalty=self.frequency_penalty,logit_bias=self.logit_bias,logprobs=self.logprobs,top_logprobs=self.top_logprobs,max_completion_tokens=self.max_completion_tokens,n=self.n,presence_penalty=self.presence_penalty,response_format=self.response_format,seed=self.seed,stop=self.stop,temperature=self.temperature,top_p=self.top_p,service_tier=self.service_tier,tools=self.tools,tool_choice=self.tool_choice,parallel_tool_calls=self.parallel_tool_calls,reasoning_effort=self.reasoning_effort,# platform argumentsuse_custom_keys=self.use_custom_keys,tags=self.tags,drop_params=self.drop_params,region=self.region,log_query_body=self.log_query_body,log_response_body=self.log_response_body,api_key=self._api_key,openai_api_key=self._openai_api_key,# python client argumentsstateful=self.stateful,return_full_completion=self.return_full_completion,cache=self.cache,# passthrough argumentsextra_headers=self.extra_headers,extra_query=self.extra_query,**self.extra_body,)for endpoint in endpoints} | 2 | 40 | 2 | 232 | 0 | 289 | 331 | 289 | self,endpoints | [] | Dict[str, AsyncUnify] | {"Return": 1} | 1 | 43 | 1 | ["self._client_class"] | 0 | [] | The function (_create_clients) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 289 and ends at 331. It contains 40 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [289.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self._client_class"]. |
unifyai_unify | _MultiClient | protected | 1 | 1 | add_endpoints | def add_endpoints(self,endpoints: Union[List[str], str],ignore_duplicates: bool = True,) -> Self:"""Add extra endpoints to be queried for each call to generate.Args:endpoints: The extra endpoints to add.ignore_duplicates: Whether or not to ignore duplicate endpoints passed.Returns:This client, useful for chaining inplace calls."""if isinstance(endpoints, str):endpoints = [endpoints]# remove duplicatesif ignore_duplicates:endpoints = [endpoint for endpoint in endpoints if endpoint not in self._endpoints]elif len(self._endpoints + endpoints) != len(set(self._endpoints + endpoints)):raise Exception("at least one of the provided endpoints to add {}""was already set present in the endpoints {}.""Set ignore_duplicates to True to ignore errors like this".format(endpoints,self._endpoints,),)# update endpointsself._endpoints = self._endpoints + endpoints# create new clientsself._clients.update(self._create_clients(endpoints))return self | 6 | 23 | 3 | 123 | 0 | 333 | 369 | 333 | self,endpoints,ignore_duplicates | [] | Self | {"Assign": 3, "Expr": 2, "If": 3, "Return": 1} | 8 | 37 | 8 | ["isinstance", "len", "len", "set", "Exception", "format", "self._clients.update", "self._create_clients"] | 0 | [] | The function (add_endpoints) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 333 and ends at 369. It contains 23 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [333.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["isinstance", "len", "len", "set", "Exception", "format", "self._clients.update", "self._create_clients"]. |
unifyai_unify | _MultiClient | protected | 1 | 1 | remove_endpoints | def remove_endpoints(self,endpoints: Union[List[str], str],ignore_missing: bool = True,) -> Self:"""Remove endpoints from the current list, which are queried for each call togenerate.Args:endpoints: The extra endpoints to add.ignore_missing: Whether or not to ignore endpoints passed which are notcurrently present in the client endpoint list.Returns:This client, useful for chaining inplace calls."""if isinstance(endpoints, str):endpoints = [endpoints]# remove irrelevantif ignore_missing:endpoints = [endpoint for endpoint in endpoints if endpoint in self._endpoints]elif len(self._endpoints) != len(set(self._endpoints + endpoints)):raise Exception("at least one of the provided endpoints to remove {}""was not present in the current endpoints {}.""Set ignore_missing to True to ignore errors like this".format(endpoints,self._endpoints,),)# update endpoints and clientsfor endpoint in endpoints:self._endpoints.remove(endpoint)del self._clients[endpoint]return self | 7 | 24 | 3 | 118 | 0 | 371 | 409 | 371 | self,endpoints,ignore_missing | [] | Self | {"Assign": 2, "Expr": 2, "For": 1, "If": 3, "Return": 1} | 7 | 39 | 7 | ["isinstance", "len", "len", "set", "Exception", "format", "self._endpoints.remove"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_universal_api.test_multi_llm_py.TestMultiUnify.test_setter_chaining"] | The function (remove_endpoints) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 371 and ends at 409. It contains 24 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [371.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["isinstance", "len", "len", "set", "Exception", "format", "self._endpoints.remove"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.tests.test_universal_api.test_multi_llm_py.TestMultiUnify.test_setter_chaining"]. |
unifyai_unify | _MultiClient | protected | 1 | 1 | get_credit_balance | def get_credit_balance(self) -> Union[float, None]:"""Get the remaining credits left on your account.Returns:The remaining credits on the account if successful, otherwise None.Raises:BadRequestError: If there was an HTTP error.ValueError: If there was an error parsing the JSON response."""url = f"{BASE_URL}/credits"headers = _create_request_header(self._api_key)try:response = http.get(url, headers=headers, timeout=10)if response.status_code != 200:raise Exception(response.json())return response.json()["credits"]except requests.RequestException as e:raise Exception("There was an error with the request.") from eexcept (KeyError, ValueError) as e:raise ValueError("Error parsing JSON response.") from e | 4 | 12 | 1 | 98 | 0 | 411 | 431 | 411 | self | [] | Union[float, None] | {"Assign": 3, "Expr": 1, "If": 1, "Return": 1, "Try": 1} | 7 | 21 | 7 | ["_create_request_header", "http.get", "Exception", "response.json", "response.json", "Exception", "ValueError"] | 0 | [] | The function (get_credit_balance) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 411 and ends at 431. It contains 12 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 7.0 functions, and It has 7.0 functions called inside which are ["_create_request_header", "http.get", "Exception", "response.json", "response.json", "Exception", "ValueError"]. |
unifyai_unify | _MultiClient | protected | 1 | 1 | endpoints | def endpoints(self) -> Tuple[str, ...]:"""Get the current tuple of endpoints.Returns:The tuple of endpoints."""return tuple(self._endpoints) | 1 | 2 | 1 | 20 | 0 | 437 | 444 | 437 | self | [] | Tuple[str, ...] | {"Expr": 1, "Return": 1} | 1 | 8 | 1 | ["tuple"] | 0 | [] | The function (endpoints) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 437 and ends at 444. 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 ["tuple"]. |
unifyai_unify | _MultiClient | protected | 1 | 1 | clients | def clients(self) -> Dict[str, _UniClient]:"""Get the current dictionary of clients, with endpoint names as keys andUnify or AsyncUnify instances as values.Returns:The dictionary of clients."""return self._clients | 1 | 2 | 1 | 17 | 0 | 447 | 455 | 447 | self | [] | Dict[str, _UniClient] | {"Expr": 1, "Return": 1} | 0 | 9 | 0 | [] | 0 | [] | The function (clients) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 447 and ends at 455. 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 | _MultiClient | protected | 1 | 1 | __repr__ | def __repr__(self):return "{}(endpoints={})".format(self.__class__.__name__, self._endpoints) | 1 | 2 | 1 | 20 | 0 | 460 | 461 | 460 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["format"] | 22 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3678342_kieranjol_ifiscripts.Objects_py.OtherNSElementList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.model.elfi_model_py.RandomVariable.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916301_pythonanywhere_helper_scripts.tests.test_files_py.TestPAPathInit.test_repr_returns_url_property_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916301_pythonanywhere_helper_scripts.tests.test_files_py.TestPAPathInit.test_url_property_contains_correct_pythonanywhere_resource_url_for_instantiated_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.key_py.CPubKey.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.cacheutils_py.LRI.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py.ExceptionCauseMixin._get_trace_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py._TBItem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.tbutils_py.Callpoint.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964685_pallets_markupsafe.src.markupsafe.__init___py.Markup.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69753201_searxng_searx_instances.searxinstances.model_py.AdditionalUrlList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70555013_embeddings_benchmark_mteb.mteb.overview_py.MTEBTasks.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.utils.locks_py.Event.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.tests.i18n.test_i18n_py.test_lang_repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94562214_home_assistant_core.homeassistant.components.bond.utils_py.BondDevice.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95079799_mozilla_mozci.mozci.push_py.Push.__repr__"] | The function (__repr__) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 460 and ends at 461. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["format"], It has 22.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3678342_kieranjol_ifiscripts.Objects_py.OtherNSElementList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.model.elfi_model_py.RandomVariable.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916301_pythonanywhere_helper_scripts.tests.test_files_py.TestPAPathInit.test_repr_returns_url_property_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916301_pythonanywhere_helper_scripts.tests.test_files_py.TestPAPathInit.test_url_property_contains_correct_pythonanywhere_resource_url_for_instantiated_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.key_py.CPubKey.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.cacheutils_py.LRI.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py.ExceptionCauseMixin._get_trace_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py._TBItem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.tbutils_py.Callpoint.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964685_pallets_markupsafe.src.markupsafe.__init___py.Markup.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69753201_searxng_searx_instances.searxinstances.model_py.AdditionalUrlList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70555013_embeddings_benchmark_mteb.mteb.overview_py.MTEBTasks.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.utils.locks_py.Event.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.tests.i18n.test_i18n_py.test_lang_repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94562214_home_assistant_core.homeassistant.components.bond.utils_py.BondDevice.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95079799_mozilla_mozci.mozci.push_py.Push.__repr__"]. |
unifyai_unify | _MultiClient | protected | 1 | 1 | __str__ | def __str__(self):return "{}(endpoints={})".format(self.__class__.__name__, self._endpoints) | 1 | 2 | 1 | 20 | 0 | 463 | 464 | 463 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["format"] | 26 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.models.ipam_py.Vlans.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.20898574_xcsoar_mapgen.lib.xcsoar.mapgen.waypoints.waypoint_py.Waypoint.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxyProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape.coretypes_py.DateTime.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape.coretypes_py.Time.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.evm_cfg_py.EVMBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.tac_cfg_py.TACBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696057_scrapy_parsel.parsel.csstranslator_py.XPathExpr.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.defaults_py.BaseDefault.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.defaults_py.BaseDefault.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3924083_kontron_python_ipmi.pyipmi.interfaces.rmcp_py.AsfPing.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.modules.cmake_py.CMakeJOM.process", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956523_pivotal_energy_solutions_django_datatable_view.datatableview.views.xeditable_py.XEditableMixin._get_foreignkey_choices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py.ExceptionCauseMixin.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957963_xflr6_graphviz.graphviz.backend.execute_py.CalledProcessError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966919_archivy_archivy.archivy.click_web.resources.cmd_exec_py.FieldFileInfo.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.data.multilingual.sampled_multi_dataset_py.get_time_gap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.tasks.translation_multi_simple_epoch_py.get_time_gap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.conan.errors_py.ConanException.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.task_sdk.src.airflow.sdk.io.path_py.ObjectStoragePath.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94634754_pytorch_executorch.backends.arm.tosa.dialect.lib_py.TosaValueError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94647264_ska_sa_katdal.katdal.h5datav2_py.H5DataV2.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94647264_ska_sa_katdal.katdal.h5datav3_py.H5DataV3.__str__"] | The function (__str__) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 463 and ends at 464. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["format"], It has 26.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.models.ipam_py.Vlans.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.20898574_xcsoar_mapgen.lib.xcsoar.mapgen.waypoints.waypoint_py.Waypoint.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxyProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape.coretypes_py.DateTime.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape.coretypes_py.Time.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.evm_cfg_py.EVMBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.tac_cfg_py.TACBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696057_scrapy_parsel.parsel.csstranslator_py.XPathExpr.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.defaults_py.BaseDefault.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.defaults_py.BaseDefault.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3924083_kontron_python_ipmi.pyipmi.interfaces.rmcp_py.AsfPing.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.modules.cmake_py.CMakeJOM.process", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956523_pivotal_energy_solutions_django_datatable_view.datatableview.views.xeditable_py.XEditableMixin._get_foreignkey_choices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py.ExceptionCauseMixin.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957963_xflr6_graphviz.graphviz.backend.execute_py.CalledProcessError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966919_archivy_archivy.archivy.click_web.resources.cmd_exec_py.FieldFileInfo.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.data.multilingual.sampled_multi_dataset_py.get_time_gap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.tasks.translation_multi_simple_epoch_py.get_time_gap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.conan.errors_py.ConanException.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.task_sdk.src.airflow.sdk.io.path_py.ObjectStoragePath.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94634754_pytorch_executorch.backends.arm.tosa.dialect.lib_py.TosaValueError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94647264_ska_sa_katdal.katdal.h5datav2_py.H5DataV2.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94647264_ska_sa_katdal.katdal.h5datav3_py.H5DataV3.__str__"]. |
unifyai_unify | _MultiClient | protected | 1 | 1 | generate | def generate(self,arg0: Optional[Union[str, List[Union[str, Tuple[Any], Dict[str, Any]]]]] = None,/,system_message: Optional[str] = None,messages: Optional[Union[List[ChatCompletionMessageParam],Dict[str, List[ChatCompletionMessageParam]],]] = None,*,frequency_penalty: Optional[float] = None,logit_bias: Optional[Dict[str, int]] = None,logprobs: Optional[bool] = None,top_logprobs: Optional[int] = None,max_completion_tokens: Optional[int] = None,n: Optional[int] = None,presence_penalty: Optional[float] = None,response_format: Optional[Union[Type[BaseModel], Dict[str, str]]] = None,seed: Optional[int] = None,stop: Union[Optional[str], List[str]] = None,stream: Optional[bool] = None,stream_options: Optional[ChatCompletionStreamOptionsParam] = None,temperature: Optional[float] = None,top_p: Optional[float] = None,tools: Optional[Iterable[ChatCompletionToolParam]] = None,tool_choice: Optional[ChatCompletionToolChoiceOptionParam] = None,parallel_tool_calls: Optional[bool] = None,reasoning_effort: Optional[str] = None,# platform argumentsuse_custom_keys: Optional[bool] = None,tags: Optional[List[str]] = None,drop_params: Optional[bool] = None,region: Optional[str] = None,log_query_body: Optional[bool] = None,log_response_body: Optional[bool] = None,# python client argumentsstateful: Optional[bool] = None,return_full_completion: Optional[bool] = None,cache: Optional[Union[bool, str]] = None,# passthrough argumentsextra_headers: Optional[Headers] = None,extra_query: Optional[Query] = None,**kwargs,):"""Generate a ChatCompletion response for the specified endpoint,from the provided query parameters.Args:arg0: A string containing the user message, or a list containing the inputsto send to each of the LLMs, in the format of str (user message), tuple(all-positional) or dict (all keyword).system_message: An optional string containing the system message. Thisalways appears at the beginning of the list of messages.messages: A list of messages comprising the conversation so far, oroptionally a dictionary of such messages, with clients as the keys in thecase of multi-llm clients. This will be appended to the system_message if itis not None, and any user_message will be appended if it is not None.frequency_penalty: Number between -2.0 and 2.0. Positive values penalize newtokens based on their existing frequency in the text so far, decreasing themodel's likelihood to repeat the same line verbatim.logit_bias: Modify the likelihood of specified tokens appearing in thecompletion. Accepts a JSON object that maps tokens (specified by their tokenID in the tokenizer) to an associated bias value from -100 to 100.Mathematically, the bias is added to the logits generated by the model priorto sampling. The exact effect will vary per model, but values between -1 and1 should decrease or increase likelihood of selection; values like -100 or100 should result in a ban or exclusive selection of the relevant token.logprobs: Whether to return log probabilities of the output tokens or not.If true, returns the log probabilities of each output token returned in thecontent of message.top_logprobs: An integer between 0 and 20 specifying the number of mostlikely tokens to return at each token position, each with an associated logprobability. logprobs must be set to true if this parameter is used.max_completion_tokens: The maximum number of tokens that can be generated inthe chat completion. The total length of input tokens and generated tokensis limited by the model's context length. Defaults value is None. Uses theprovider's default max_completion_tokens when None is explicitly passed.n: How many chat completion choices to generate for each input message. Notethat you will be charged based on the number of generated tokens across allof the choices. Keep n as 1 to minimize costs.presence_penalty: Number between -2.0 and 2.0. Positive values penalize newtokens based on whether they appear in the text so far, increasing themodel's likelihood to talk about new topics.response_format: An object specifying the format that the model must output.Setting to `{ "type": "json_schema", "json_schema": {...} }` enablesStructured Outputs which ensures the model will match your supplied JSONschema. Learn more in the Structured Outputs guide. Setting to`{ "type": "json_object" }` enables JSON mode, which ensures the message themodel generates is valid JSON.seed: If specified, a best effort attempt is made to sampledeterministically, such that repeated requests with the same seed andparameters should return the same result. Determinism is not guaranteed, andyou should refer to the system_fingerprint response parameter to monitorchanges in the backend.stop: Up to 4 sequences where the API will stop generating further tokens.stream: If True, generates content as a stream. If False, generates contentas a single response. Defaults to False.stream_options: Options for streaming response. Only set this when you setstream: true.temperature:What sampling temperature to use, between 0 and 2.Higher values like 0.8 will make the output more random,while lower values like 0.2 will make it more focused and deterministic.It is generally recommended to alter this or top_p, but not both.Default value is 1.0. Defaults to the provider's default temperature whenNone is explicitly passed.top_p: An alternative to sampling with temperature, called nucleus sampling,where the model considers the results of the tokens with top_p probabilitymass. So 0.1 means only the tokens comprising the top 10% probability massare considered. Generally recommended to alter this or temperature, but notboth.tools: A list of tools the model may call. Currently, only functions aresupported as a tool. Use this to provide a list of functions the model maygenerate JSON inputs for. A max of 128 functions are supported.tool_choice: Controls which (if any) tool is called by themodel. none means the model will not call any tool and instead generates amessage. auto means the model can pick between generating a message orcalling one or more tools. required means the model must call one or moretools. Specifying a particular tool via`{ "type": "function", "function": {"name": "my_function"} }`forces the model to call that tool.none is the default when no tools are present. auto is the default if toolsare present.parallel_tool_calls: Whether to enable parallel function calling during tooluse.stateful:Whether the conversation history is preserved within the messagesof this client. If True, then history is preserved. If False, then this actsas a stateless client, and message histories must be managed by the user.use_custom_keys:Whether to use custom API keys or our unified API keyswith the backend provider. Defaults to False.tags: Arbitrary number of tags to classify this API query as needed. Helpfulfor generally grouping queries across tasks and users, for logging purposes.drop_params: Whether or not to drop unsupported OpenAI params by theprovider you’re using.region: A string used to represent the region where the endpoint isaccessed. Only relevant for on-prem deployments with certain providers like`vertex-ai`, `aws-bedrock` and `azure-ml`, where the endpoint is beingaccessed through a specified region.log_query_body: Whether to log the contents of the query json body.log_response_body: Whether to log the contents of the response json body.stateful:Whether the conversation history is preserved within the messagesof this client. If True, then history is preserved. If False, then this actsas a stateless client, and message histories must be managed by the user.return_full_completion: If False, only return the message contentchat_completion.choices[0].message.content.strip(" ") from the OpenAIreturn. Otherwise, the full response chat_completion is returned.Defaults to False.cache: If True, then the arguments will be stored in a local cache file, andany future calls with identical arguments will read from the cache insteadof running the LLM query. If "write" then the cache will only be writtento, if "read" then the cache will be read from if a cache is available butwill not write, and if "read-only" then the argument must be present in thecache, else an exception will be raised. Finally, an appending "-closest"will read the closest match from the cache, and overwrite it if cache writingis enabled. This argument only has any effect when stream=False.extra_headers: Additional "passthrough" headers for the request which areprovider-specific, and are not part of the OpenAI standard. They are handledby the provider-specific API.extra_query: Additional "passthrough" query parameters for the request whichare provider-specific, and are not part of the OpenAI standard. They arehandled by the provider-specific API.kwargs: Additional "passthrough" JSON properties for the body of therequest, which are provider-specific, and are not part of the OpenAIstandard. They will be handled by the provider-specific API.Returns:If stream is True, returns a generator yielding chunks of content.If stream is False, returns a single string response.Raises:UnifyError: If an error occurs during content generation."""system_message = _default(system_message, self._system_message)messages = _default(messages, self._messages)stateful = _default(stateful, self._stateful)if messages:# system message only added once at the beginningif isinstance(arg0, str):if isinstance(messages, dict):messages = {k: v + [{"role": "user", "content": arg0}]for k, v in messages.items()}else:messages += [{"role": "user", "content": arg0}]else:messages = list()if system_message is not None:messages += [{"role": "system", "content": system_message}]if isinstance(arg0, str):messages += [{"role": "user", "content": arg0}]self._messages = messagesreturn_full_completion = (Trueif _default(tools, self._tools)else _default(return_full_completion, self._return_full_completion))ret = self._generate(messages=messages,frequency_penalty=_default(frequency_penalty, self._frequency_penalty),logit_bias=_default(logit_bias, self._logit_bias),logprobs=_default(logprobs, self._logprobs),top_logprobs=_default(top_logprobs, self._top_logprobs),max_completion_tokens=_default(max_completion_tokens,self._max_completion_tokens,),n=_default(n, self._n),presence_penalty=_default(presence_penalty, self._presence_penalty),response_format=_default(response_format, self._response_format),seed=_default(_default(seed, self._seed), unify.get_seed()),stop=_default(stop, self._stop),stream=_default(stream, self._stream),stream_options=_default(stream_options, self._stream_options),temperature=_default(temperature, self._temperature),top_p=_default(top_p, self._top_p),tools=_default(tools, self._tools),tool_choice=_default(tool_choice, self._tool_choice),parallel_tool_calls=_default(parallel_tool_calls,self._parallel_tool_calls,),reasoning_effort=_default(reasoning_effort, self._reasoning_effort),# platform argumentsuse_custom_keys=_default(use_custom_keys, self._use_custom_keys),tags=_default(tags, self._tags),drop_params=_default(drop_params, self._drop_params),region=_default(region, self._region),log_query_body=_default(log_query_body, self._log_query_body),log_response_body=_default(log_response_body, self._log_response_body),# python client argumentsreturn_full_completion=return_full_completion,cache=_default(cache, self._cache),# passthrough argumentsextra_headers=_default(extra_headers, self._extra_headers),extra_query=_default(extra_query, self._extra_query),**{**self._extra_body, **kwargs},)if stateful:if return_full_completion:msg = [ret.choices[0].message.model_dump()]else:msg = [{"role": "assistant", "content": ret}]if self._messages is None:self._messages = []self._messages += msgreturn ret | 11 | 114 | 38 | 938 | 0 | 469 | 748 | 469 | self,arg0,system_message,messages,frequency_penalty,logit_bias,logprobs,top_logprobs,max_completion_tokens,n,presence_penalty,response_format,seed,stop,stream,stream_options,temperature,top_p,tools,tool_choice,parallel_tool_calls,reasoning_effort,use_custom_keys,tags,drop_params,region,log_query_body,log_response_body,stateful,return_full_completion,cache,extra_headers,extra_query,**kwargs | [] | Returns | {"Assign": 11, "AugAssign": 4, "Expr": 1, "If": 8, "Return": 1} | 41 | 280 | 41 | ["_default", "_default", "_default", "isinstance", "isinstance", "messages.items", "list", "isinstance", "_default", "_default", "self._generate", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "unify.get_seed", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "message.model_dump"] | 45 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3630950_deliveryhero_lymph.lymph.autodoc_py.RPCMethodDocumenter.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3685324_prologin_stechec2.tools.gendiff_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.inference.samplers_py.Rejection._update_distances", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.examples.bench.bigtable_py.test_builder", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.examples.bench.bigtable_py.test_genshi_builder", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_html_py.HTMLFormFillerTestCase.test_fill_option_segmented_text", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_html_py.HTMLFormFillerTestCase.test_fill_option_segmented_text_no_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_directives_py.ContentDirectiveTestCase.test_as_element", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_directives_py.ForDirectiveTestCase.test_for_with_empty_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_directives_py.ReplaceDirectiveTestCase.test_replace_with_empty_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_markup_py.MarkupTemplateTestCase.test_directive_value_syntax_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.tests.test_builder_py.ElementFactoryTestCase.test_stream_as_child", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_cache_arg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi_asdict", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi_asdict_keys_missing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi_asdict_keys_missing_existing_cache_fn", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi_namespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966919_archivy_archivy.archivy.click_web.resources.cmd_exec_py._create_cmd_header", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.download_task_log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.organization_py.download_for_get_all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.py2many.macosx_llm_py.Model.prompt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.dataset.artificial._base_py.RecipeDataset.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.nursery.tsbench.src.tsbench.config.dataset.sources_py.M3DatasetConfig.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.dataset.artificial.test_recipe_py.test_generate"] | The function (generate) defined within the protected class called _MultiClient, implement an interface, and it inherit another class.The function start at line 469 and ends at 748. It contains 114 lines of code and it has a cyclomatic complexity of 11. It takes 38 parameters, represented as [469.0], and this function return a value. It declares 41.0 functions, It has 41.0 functions called inside which are ["_default", "_default", "_default", "isinstance", "isinstance", "messages.items", "list", "isinstance", "_default", "_default", "self._generate", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "unify.get_seed", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "_default", "message.model_dump"], It has 45.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3630950_deliveryhero_lymph.lymph.autodoc_py.RPCMethodDocumenter.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3685324_prologin_stechec2.tools.gendiff_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.inference.samplers_py.Rejection._update_distances", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.examples.bench.bigtable_py.test_builder", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.examples.bench.bigtable_py.test_genshi_builder", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_html_py.HTMLFormFillerTestCase.test_fill_option_segmented_text", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_html_py.HTMLFormFillerTestCase.test_fill_option_segmented_text_no_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_directives_py.ContentDirectiveTestCase.test_as_element", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_directives_py.ForDirectiveTestCase.test_for_with_empty_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_directives_py.ReplaceDirectiveTestCase.test_replace_with_empty_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.tests.test_markup_py.MarkupTemplateTestCase.test_directive_value_syntax_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.tests.test_builder_py.ElementFactoryTestCase.test_stream_as_child", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_cache_arg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi_asdict", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi_asdict_keys_missing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi_asdict_keys_missing_existing_cache_fn", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719407_sqlalchemy_dogpile_cache.tests.cache.test_decorator_py.CacheDecoratorTest.test_multi_namespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966919_archivy_archivy.archivy.click_web.resources.cmd_exec_py._create_cmd_header", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.download_task_log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.organization_py.download_for_get_all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.py2many.macosx_llm_py.Model.prompt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.dataset.artificial._base_py.RecipeDataset.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.nursery.tsbench.src.tsbench.config.dataset.sources_py.M3DatasetConfig.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.dataset.artificial.test_recipe_py.test_generate"]. |
unifyai_unify | MultiUnify | public | 0 | 1 | _async_gen | async def _async_gen(self,messages: Optional[Union[List[ChatCompletionMessageParam],Dict[str, List[ChatCompletionMessageParam]],]] = None,*,frequency_penalty: Optional[float] = None,logit_bias: Optional[Dict[str, int]] = None,logprobs: Optional[bool] = None,top_logprobs: Optional[int] = None,max_completion_tokens: Optional[int] = None,n: Optional[int] = None,presence_penalty: Optional[float] = None,response_format: Optional[Union[Type[BaseModel], Dict[str, str]]] = None,seed: Optional[int] = None,stop: Union[Optional[str], List[str]] = None,temperature: Optional[float] = 1.0,top_p: Optional[float] = None,tools: Optional[Iterable[ChatCompletionToolParam]] = None,tool_choice: Optional[ChatCompletionToolChoiceOptionParam] = None,parallel_tool_calls: Optional[bool] = None,reasoning_effort: Optional[str] = None,# platform argumentsuse_custom_keys: bool = False,tags: Optional[List[str]] = None,drop_params: Optional[bool] = True,region: Optional[str] = None,log_query_body: Optional[bool] = True,log_response_body: Optional[bool] = True,# python client argumentsreturn_full_completion: bool = False,cache_backend: Optional[str] = None,# passthrough argumentsextra_headers: Optional[Headers] = None,extra_query: Optional[Query] = None,service_tier: Optional[str] = None,**kwargs,) -> Union[Union[str, ChatCompletion], Dict[str, Union[str, ChatCompletion]]]:kw = dict(messages=messages,max_completion_tokens=max_completion_tokens,stop=stop,temperature=temperature,frequency_penalty=frequency_penalty,logit_bias=logit_bias,logprobs=logprobs,top_logprobs=top_logprobs,n=n,presence_penalty=presence_penalty,response_format=response_format,seed=seed,top_p=top_p,tools=tools,tool_choice=tool_choice,parallel_tool_calls=parallel_tool_calls,reasoning_effort=reasoning_effort,use_custom_keys=use_custom_keys,tags=tags,drop_params=drop_params,region=region,log_query_body=log_query_body,log_response_body=log_response_body,return_full_completion=return_full_completion,extra_headers=extra_headers,extra_query=extra_query,service_tier=service_tier,**kwargs,)multi_message = isinstance(kw["messages"], dict)kw_ = {k: v for k, v in kw.items() if v is not None}responses = dict()for endpoint, client in self._clients.items():these_kw = kw_.copy()if multi_message:these_kw["messages"] = these_kw["messages"][endpoint]responses[endpoint] = await client.generate(**these_kw)return responses[self._endpoints[0]] if len(self._endpoints) == 1 else responses | 6 | 77 | 33 | 553 | 0 | 752 | 831 | 752 | self,messages,frequency_penalty,logit_bias,logprobs,top_logprobs,max_completion_tokens,n,presence_penalty,response_format,seed,stop,temperature,top_p,tools,tool_choice,parallel_tool_calls,reasoning_effort,use_custom_keys,tags,drop_params,region,log_query_body,log_response_body,return_full_completion,cache_backend,extra_headers,extra_query,service_tier,**kwargs | [] | Union[Union[str, ChatCompletion], Dict[str, Union[str, ChatCompletion]]] | {"Assign": 7, "For": 1, "If": 1, "Return": 1} | 8 | 80 | 8 | ["dict", "isinstance", "kw.items", "dict", "self._clients.items", "kw_.copy", "client.generate", "len"] | 0 | [] | The function (_async_gen) defined within the public class called MultiUnify, that inherit another class.The function start at line 752 and ends at 831. It contains 77 lines of code and it has a cyclomatic complexity of 6. It takes 33 parameters, represented as [752.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["dict", "isinstance", "kw.items", "dict", "self._clients.items", "kw_.copy", "client.generate", "len"]. |
unifyai_unify | MultiUnify | public | 0 | 1 | _multi_inp_gen | async def _multi_inp_gen(self,multi_input: List[Union[str, Tuple[Any], Dict[str, Any]]],**kwargs,) -> List[Union[str, ChatCompletion]]:assert isinstance(multi_input, list), (f"Expected multi_kwargs to be a list, "f"but found {multi_input} of type {type(multi_input)}.")assert all(type(multi_input[0]) is type(i) for i in multi_input), "all entries in the list of inputs must be of the same type."if isinstance(multi_input[0], str):coroutines = [self._async_gen(s, **kwargs) for s in multi_input]elif isinstance(multi_input[0], tuple):coroutines = [self._async_gen(*a, **kwargs) for a in multi_input]elif isinstance(multi_input[0], dict):coroutines = [self._async_gen(**{**kwargs, **kw}) for kw in multi_input]else:raise Exception(f"Invalid format for first argument in list, expected either str, "f"tuple or dict but found "f"{multi_input[0]} of type {type(multi_input[0])}.",)return await asyncio.gather(*coroutines) | 8 | 25 | 3 | 188 | 0 | 833 | 857 | 833 | self,multi_input,**kwargs | [] | List[Union[str, ChatCompletion]] | {"Assign": 3, "If": 3, "Return": 1} | 14 | 25 | 14 | ["isinstance", "type", "all", "type", "type", "isinstance", "self._async_gen", "isinstance", "self._async_gen", "isinstance", "self._async_gen", "Exception", "type", "asyncio.gather"] | 0 | [] | The function (_multi_inp_gen) defined within the public class called MultiUnify, that inherit another class.The function start at line 833 and ends at 857. It contains 25 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [833.0] and does not return any value. It declares 14.0 functions, and It has 14.0 functions called inside which are ["isinstance", "type", "all", "type", "type", "isinstance", "self._async_gen", "isinstance", "self._async_gen", "isinstance", "self._async_gen", "Exception", "type", "asyncio.gather"]. |
unifyai_unify | MultiUnify | public | 0 | 1 | _multi_inp_generate | def _multi_inp_generate(self,*args,**kwargs,) -> List[Union[str, ChatCompletion]]:"""Perform multiple generations to multiple inputs asynchronously, based on thelist keywords arguments passed in."""return asyncio.run(self._multi_inp_gen(*args, **kwargs)) | 1 | 6 | 3 | 39 | 0 | 859 | 868 | 859 | self,*args,**kwargs | [] | List[Union[str, ChatCompletion]] | {"Expr": 1, "Return": 1} | 2 | 10 | 2 | ["asyncio.run", "self._multi_inp_gen"] | 0 | [] | The function (_multi_inp_generate) defined within the public class called MultiUnify, that inherit another class.The function start at line 859 and ends at 868. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [859.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["asyncio.run", "self._multi_inp_gen"]. |
unifyai_unify | MultiUnify | public | 0 | 1 | _generate | def _generate(# noqa: WPS234, WPS211self,*args,**kwargs,) -> Union[Union[Union[str, ChatCompletion],List[Union[str, ChatCompletion]],],Dict[str,Union[Union[str, ChatCompletion],List[Union[str, ChatCompletion]],],], | 1 | 16 | 3 | 62 | 0 | 870 | 885 | 870 | self,*args,**kwargs | [] | Union[Union[Union[str, ChatCompletion], List[Union[str, ChatCompletion]]], Dict[str, Union[Union[str, ChatCompletion], List[Union[str, ChatCompletion]]]]] | {"Assign": 1, "For": 1, "If": 1, "Return": 2} | 6 | 28 | 6 | ["self._clients.items", "client._get_client", "isinstance", "self._multi_inp_generate", "asyncio.run", "self._async_gen"] | 8 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.i18n_py.MsgDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_transform_py._simplify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.HTMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.XMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.path_py.Path.select", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.AttrsDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.StripDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.sequence_generator_py.SequenceGeneratorWithAlignment.generate"] | The function (_generate) defined within the public class called MultiUnify, that inherit another class.The function start at line 870 and ends at 885. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [870.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["self._clients.items", "client._get_client", "isinstance", "self._multi_inp_generate", "asyncio.run", "self._async_gen"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.i18n_py.MsgDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_transform_py._simplify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.HTMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.XMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.path_py.Path.select", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.AttrsDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.StripDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.sequence_generator_py.SequenceGeneratorWithAlignment.generate"]. |
unifyai_unify | MultiUnify | public | 0 | 1 | to_async_client | def to_async_client(self):"""Return an asynchronous version of the client (`AsyncMultiUnify` instance), withthe exact same configuration as this synchronous (`MultiUnify`) client.Returns:An `AsyncMultiUnify` instance with the same configuration as this `MultiUnify`instance."""return AsyncMultiUnify(**self._constructor_args) | 1 | 2 | 1 | 14 | 0 | 899 | 908 | 899 | self | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 10 | 1 | ["AsyncMultiUnify"] | 0 | [] | The function (to_async_client) defined within the public class called MultiUnify, that inherit another class.The function start at line 899 and ends at 908. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["AsyncMultiUnify"]. |
unifyai_unify | MultiUnify | public | 0 | 1 | _generate | async def _generate(# noqa: WPS234, WPS211self,messages: Optional[Union[List[ChatCompletionMessageParam],Dict[str, List[ChatCompletionMessageParam]],]] = None,*,frequency_penalty: Optional[float] = None,logit_bias: Optional[Dict[str, int]] = None,logprobs: Optional[bool] = None,top_logprobs: Optional[int] = None,max_completion_tokens: Optional[int] = None,n: Optional[int] = None,presence_penalty: Optional[float] = None,response_format: Optional[Union[Type[BaseModel], Dict[str, str]]] = None,seed: Optional[int] = None,stop: Union[Optional[str], List[str]] = None,temperature: Optional[float] = 1.0,top_p: Optional[float] = None,tools: Optional[Iterable[ChatCompletionToolParam]] = None,tool_choice: Optional[ChatCompletionToolChoiceOptionParam] = None,parallel_tool_calls: Optional[bool] = None,reasoning_effort: Optional[str] = None,# platform argumentsuse_custom_keys: bool = False,tags: Optional[List[str]] = None,drop_params: Optional[bool] = True,region: Optional[str] = None,log_query_body: Optional[bool] = True,log_response_body: Optional[bool] = True,# python client argumentsreturn_full_completion: bool = False,cache_backend: Optional[str] = None,# passthrough argumentsextra_headers: Optional[Headers] = None,extra_query: Optional[Query] = None,service_tier: Optional[str] = None,**kwargs,) -> Dict[str, str]:kw = dict(messages=messages,max_completion_tokens=max_completion_tokens,stop=stop,temperature=temperature,frequency_penalty=frequency_penalty,logit_bias=logit_bias,logprobs=logprobs,top_logprobs=top_logprobs,n=n,presence_penalty=presence_penalty,response_format=response_format,seed=seed,top_p=top_p,tools=tools,tool_choice=tool_choice,parallel_tool_calls=parallel_tool_calls,reasoning_effort=reasoning_effort,use_custom_keys=use_custom_keys,tags=tags,drop_params=drop_params,region=region,log_query_body=log_query_body,log_response_body=log_response_body,return_full_completion=return_full_completion,cache_backend=cache_backend,extra_headers=extra_headers,extra_query=extra_query,service_tier=service_tier,**kwargs,)multi_message = isinstance(messages, dict)kw = {k: v for k, v in kw.items() if v is not None}responses = dict()for endpoint, client in self._clients.items():these_kw = kw.copy()if multi_message:these_kw["messages"] = these_kw["messages"][endpoint]responses[endpoint] = await client.generate(**these_kw)return responses | 5 | 78 | 33 | 520 | 0 | 912 | 992 | 912 | self,*args,**kwargs | [] | Union[Union[Union[str, ChatCompletion], List[Union[str, ChatCompletion]]], Dict[str, Union[Union[str, ChatCompletion], List[Union[str, ChatCompletion]]]]] | {"Assign": 1, "For": 1, "If": 1, "Return": 2} | 6 | 28 | 6 | ["self._clients.items", "client._get_client", "isinstance", "self._multi_inp_generate", "asyncio.run", "self._async_gen"] | 8 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.i18n_py.MsgDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_transform_py._simplify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.HTMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.XMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.path_py.Path.select", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.AttrsDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.StripDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.sequence_generator_py.SequenceGeneratorWithAlignment.generate"] | The function (_generate) defined within the public class called MultiUnify, that inherit another class.The function start at line 912 and ends at 992. It contains 78 lines of code and it has a cyclomatic complexity of 5. It takes 33 parameters, represented as [912.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["self._clients.items", "client._get_client", "isinstance", "self._multi_inp_generate", "asyncio.run", "self._async_gen"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.i18n_py.MsgDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.filters.tests.test_transform_py._simplify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.HTMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.input_py.XMLParser.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.path_py.Path.select", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.AttrsDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.template.directives_py.StripDirective.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.sequence_generator_py.SequenceGeneratorWithAlignment.generate"]. |
unifyai_unify | AsyncMultiUnify | public | 0 | 1 | to_sync_client | def to_sync_client(self):"""Return a synchronous version of the client (`MultiUnify` instance), with theexact same configuration as this asynchronous (`AsyncMultiUnify`) client.Returns:A `MultiUnify` instance with the same configuration as this `AsyncMultiUnify`instance."""return MultiUnify(**self._constructor_args) | 1 | 2 | 1 | 14 | 0 | 994 | 1,003 | 994 | self | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 10 | 1 | ["MultiUnify"] | 0 | [] | The function (to_sync_client) defined within the public class called AsyncMultiUnify, that inherit another class.The function start at line 994 and ends at 1003. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["MultiUnify"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | __init__ | def __init__(self,endpoint: Optional[str] = None,*,model: Optional[str] = None,provider: Optional[str] = None,system_message: Optional[str] = None,messages: Optional[List[ChatCompletionMessageParam]] = None,frequency_penalty: Optional[float] = None,logit_bias: Optional[Dict[str, int]] = None,logprobs: Optional[bool] = None,top_logprobs: Optional[int] = None,max_completion_tokens: Optional[int] = None,n: Optional[int] = None,presence_penalty: Optional[float] = None,response_format: Optional[Union[Type[BaseModel], Dict[str, str]]] = None,seed: Optional[int] = None,stop: Union[Optional[str], List[str]] = None,stream: Optional[bool] = False,stream_options: Optional[ChatCompletionStreamOptionsParam] = None,temperature: Optional[float] = 1.0,top_p: Optional[float] = None,service_tier: Optional[str] = None,tools: Optional[Iterable[ChatCompletionToolParam]] = None,tool_choice: Optional[ChatCompletionToolChoiceOptionParam] = None,parallel_tool_calls: Optional[bool] = None,reasoning_effort: Optional[str] = None,# platform argumentsuse_custom_keys: bool = False,tags: Optional[List[str]] = None,drop_params: Optional[bool] = True,region: Optional[str] = None,log_query_body: Optional[bool] = True,log_response_body: Optional[bool] = True,api_key: Optional[str] = None,openai_api_key: Optional[str] = None,# python client argumentsstateful: bool = False,return_full_completion: bool = False,traced: bool = False,cache: Optional[Union[bool, str]] = None,cache_backend: Optional[str] = None,# passthrough argumentsextra_headers: Optional[Headers] = None,extra_query: Optional[Query] = None,**kwargs,):"""Initialize the Uni LLM Unify client.Args:endpoint: Endpoint name in OpenAI API format:<model_name>@<provider_name>Defaults to None.model: Name of the model. Should only be set if endpoint is not set.provider: Name of the provider. Should only be set if endpoint is not set.system_message: An optional string containing the system message. Thisalways appears at the beginning of the list of messages.messages: A list of messages comprising the conversation so far. This willbe appended to the system_message if it is not None, and any user_messagewill be appended if it is not None.frequency_penalty: Number between -2.0 and 2.0. Positive values penalize newtokens based on their existing frequency in the text so far, decreasing themodel's likelihood to repeat the same line verbatim.logit_bias: Modify the likelihood of specified tokens appearing in thecompletion. Accepts a JSON object that maps tokens (specified by their tokenID in the tokenizer) to an associated bias value from -100 to 100.Mathematically, the bias is added to the logits generated by the model priorto sampling. The exact effect will vary per model, but values between -1 and1 should decrease or increase likelihood of selection; values like -100 or100 should result in a ban or exclusive selection of the relevant token.logprobs: Whether to return log probabilities of the output tokens or not.If true, returns the log probabilities of each output token returned in thecontent of message.top_logprobs: An integer between 0 and 20 specifying the number of mostlikely tokens to return at each token position, each with an associated logprobability. logprobs must be set to true if this parameter is used.max_completion_tokens: The maximum number of tokens that can be generated inthe chat completion. The total length of input tokens and generated tokensis limited by the model's context length. Defaults to the provider's defaultmax_completion_tokens when the value is None.n: How many chat completion choices to generate for each input message. Notethat you will be charged based on the number of generated tokens across allof the choices. Keep n as 1 to minimize costs.presence_penalty: Number between -2.0 and 2.0. Positive values penalize newtokens based on whether they appear in the text so far, increasing themodel's likelihood to talk about new topics.response_format: An object specifying the format that the model must output.Setting to `{ "type": "json_schema", "json_schema": {...} }` enablesStructured Outputs which ensures the model will match your supplied JSONschema. Learn more in the Structured Outputs guide. Setting to`{ "type": "json_object" }` enables JSON mode, which ensures the message themodel generates is valid JSON.seed: If specified, a best effort attempt is made to sampledeterministically, such that repeated requests with the same seed andparameters should return the same result. Determinism is not guaranteed, andyou should refer to the system_fingerprint response parameter to monitorchanges in the backend.stop: Up to 4 sequences where the API will stop generating further tokens.stream: If True, generates content as a stream. If False, generates contentas a single response. Defaults to False.stream_options: Options for streaming response. Only set this when you setstream: true.temperature:What sampling temperature to use, between 0 and 2.Higher values like 0.8 will make the output more random,while lower values like 0.2 will make it more focused and deterministic.It is generally recommended to alter this or top_p, but not both.Defaults to the provider's default max_completion_tokens when the value isNone.top_p: An alternative to sampling with temperature, called nucleus sampling,where the model considers the results of the tokens with top_p probabilitymass. So 0.1 means only the tokens comprising the top 10% probability massare considered. Generally recommended to alter this or temperature, but notboth.tools: A list of tools the model may call. Currently, only functions aresupported as a tool. Use this to provide a list of functions the model maygenerate JSON inputs for. A max of 128 functions are supported.tool_choice: Controls which (if any) tool is called by themodel. none means the model will not call any tool and instead generates amessage. auto means the model can pick between generating a message orcalling one or more tools. required means the model must call one or moretools. Specifying a particular tool via`{ "type": "function", "function": {"name": "my_function"} }`forces the model to call that tool.none is the default when no tools are present. auto is the default if toolsare present.parallel_tool_calls: Whether to enable parallel function calling during tooluse.use_custom_keys:Whether to use custom API keys or our unified API keyswith the backend provider.tags: Arbitrary number of tags to classify this API query as needed. Helpfulfor generally grouping queries across tasks and users, for logging purposes.drop_params: Whether or not to drop unsupported OpenAI params by theprovider you’re using.region: A string used to represent the region where the endpoint isaccessed. Only relevant for on-prem deployments with certain providers like`vertex-ai`, `aws-bedrock` and `azure-ml`, where the endpoint is beingaccessed through a specified region.log_query_body: Whether to log the contents of the query json body.log_response_body: Whether to log the contents of the response json body.stateful:Whether the conversation history is preserved within the messagesof this client. If True, then history is preserved. If False, then this actsas a stateless client, and message histories must be managed by the user.return_full_completion: If False, only return the message contentchat_completion.choices[0].message.content.strip(" ") from the OpenAIreturn. Otherwise, the full response chat_completion is returned.Defaults to False.traced: Whether to trace the generate method.cache: If True, then the arguments will be stored in a local cache file, andany future calls with identical arguments will read from the cache insteadof running the LLM query. If "write" then the cache will only be writtento, if "read" then the cache will be read from if a cache is available butwill not write, and if "read-only" then the argument must be present in thecache, else an exception will be raised. Finally, an appending "-closest"will read the closest match from the cache, and overwrite it if cache writingis enabled. This argument only has any effect when stream=False.extra_headers: Additional "passthrough" headers for the request which areprovider-specific, and are not part of the OpenAI standard. They are handledby the provider-specific API.extra_query: Additional "passthrough" query parameters for the request whichare provider-specific, and are not part of the OpenAI standard. They arehandled by the provider-specific API.kwargs: Additional "passthrough" JSON properties for the body of therequest, which are provider-specific, and are not part of the OpenAIstandard. They will be handled by the provider-specific API.Raises:UnifyError: If the API key is missing."""self._base_constructor_args = dict(system_message=system_message,messages=messages,frequency_penalty=frequency_penalty,logit_bias=logit_bias,logprobs=logprobs,top_logprobs=top_logprobs,max_completion_tokens=max_completion_tokens,n=n,presence_penalty=presence_penalty,response_format=response_format,seed=seed,stop=stop,stream=stream,stream_options=stream_options,temperature=temperature,top_p=top_p,service_tier=service_tier,tools=tools,tool_choice=tool_choice,parallel_tool_calls=parallel_tool_calls,reasoning_effort=reasoning_effort,# platform argumentsuse_custom_keys=use_custom_keys,tags=tags,drop_params=drop_params,region=region,log_query_body=log_query_body,log_response_body=log_response_body,api_key=api_key,openai_api_key=openai_api_key,# python client argumentsstateful=stateful,return_full_completion=return_full_completion,traced=traced,cache=cache,cache_backend=cache_backend,# passthrough argumentsextra_headers=extra_headers,extra_query=extra_query,**kwargs,)super().__init__(**self._base_constructor_args)self._constructor_args = dict(endpoint=endpoint,model=model,provider=provider,**self._base_constructor_args,)if endpoint and (model or provider):raise Exception("if the model or provider are passed, then the endpoint must not be""passed.",)self._endpoint = Noneself._provider = Noneself._model = Noneif endpoint:self.set_endpoint(endpoint)if provider:self.set_provider(provider)if model:self.set_model(model)self._should_use_direct_mode = Falseif self._is_direct_mode_available() and self.model in list_models(provider="openai",):self._should_use_direct_mode = Trueself._endpoint = self.modelself._provider = "openai"self._client = self._get_client() | 9 | 112 | 43 | 690 | 0 | 58 | 332 | 58 | self,endpoint,model,provider,system_message,messages,frequency_penalty,logit_bias,logprobs,top_logprobs,max_completion_tokens,n,presence_penalty,response_format,seed,stop,stream,stream_options,temperature,top_p,service_tier,tools,tool_choice,parallel_tool_calls,reasoning_effort,use_custom_keys,tags,drop_params,region,log_query_body,log_response_body,api_key,openai_api_key,stateful,return_full_completion,traced,cache,cache_backend,extra_headers,extra_query,**kwargs | [] | None | {"Assign": 10, "Expr": 5, "If": 5} | 11 | 275 | 11 | ["dict", "__init__", "super", "dict", "Exception", "self.set_endpoint", "self.set_provider", "self.set_model", "self._is_direct_mode_available", "list_models", "self._get_client"] | 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 _UniClient, implement an interface, and it inherit another class.The function start at line 58 and ends at 332. It contains 112 lines of code and it has a cyclomatic complexity of 9. It takes 43 parameters, represented as [58.0] and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["dict", "__init__", "super", "dict", "Exception", "self.set_endpoint", "self.set_provider", "self.set_model", "self._is_direct_mode_available", "list_models", "self._get_client"], 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 | _UniClient | protected | 1 | 1 | endpoint | def endpoint(self) -> str:"""Get the endpoint name.Returns:The endpoint name."""return self._endpoint | 1 | 2 | 1 | 12 | 0 | 338 | 345 | 338 | self | [] | str | {"Expr": 1, "Return": 1} | 0 | 8 | 0 | [] | 204 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.create_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.create_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.edit_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.fixed_users_mode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.get_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.get_token_for_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.login", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.logout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.revoke_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.validate_token_endpoint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.debug_py.ping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.add", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.add_batch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.clear_scroll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.clear_task_log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.delete_for_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.delete_for_task", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.download_task_log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_debug_image_sample", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_debug_images", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_debug_images_v1_7", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_debug_images_v1_8", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_multi_task_metrics", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_multi_task_plots"] | The function (endpoint) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 338 and ends at 345. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 204.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.create_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.create_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.edit_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.fixed_users_mode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.get_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.get_token_for_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.login", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.logout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.revoke_credentials", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.auth_py.validate_token_endpoint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.debug_py.ping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.add", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.add_batch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.clear_scroll", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.clear_task_log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.delete_for_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.delete_for_task", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.download_task_log", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_debug_image_sample", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_debug_images", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_debug_images_v1_7", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_debug_images_v1_8", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_multi_task_metrics", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.events_py.get_multi_task_plots"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | model | def model(self) -> str:"""Get the model name.Returns:The model name."""return self._model | 1 | 2 | 1 | 12 | 0 | 348 | 355 | 348 | self | [] | str | {"Expr": 1, "Return": 1} | 0 | 8 | 0 | [] | 267 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record._parse_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.link_hooks_tests.test_variable_monitor_link_hook_py.test_variable_monitor_link_hook_post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.link_hooks_tests.test_variable_monitor_link_hook_py.test_variable_monitor_link_hook_pre", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.link_hooks_tests.test_variable_monitor_link_hook_py.test_variable_monitor_link_hook_process", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_embed_atom_id_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_graph_linear_py.test_forward_cpu", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_graph_linear_py.test_forward_gpu", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_graph_mlp_py.test_forward_cpu", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_graph_mlp_py.test_forward_gpu", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_gwm_model_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_gwm_model_forward_general_readout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_model_forward_general_concat_hidden", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_model_forward_general_sum_hidden", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_model_forward_general_weight_tying", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_plain_model_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_plain_model_forward_general_readout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.prediction_tests.test_graph_conv_predictor_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.prediction_tests.test_graph_conv_predictor_py.test_forward_cpu_graph_invariant", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_cgcnn_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_ggnn_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_ggnn_py.test_forward_cpu_graph_invariant", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_ggnn_py.test_forward_cpu_input_size_invariant", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_gin_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_gin_py.test_forward_cpu_graph_invariant", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_gnn_film_py.check_forward"] | The function (model) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 348 and ends at 355. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 267.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record._parse_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.link_hooks_tests.test_variable_monitor_link_hook_py.test_variable_monitor_link_hook_post", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.link_hooks_tests.test_variable_monitor_link_hook_py.test_variable_monitor_link_hook_pre", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.link_hooks_tests.test_variable_monitor_link_hook_py.test_variable_monitor_link_hook_process", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_embed_atom_id_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_graph_linear_py.test_forward_cpu", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_graph_linear_py.test_forward_gpu", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_graph_mlp_py.test_forward_cpu", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.links_tests.connection_tests.test_graph_mlp_py.test_forward_gpu", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_gwm_model_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_gwm_model_forward_general_readout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_model_forward_general_concat_hidden", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_model_forward_general_sum_hidden", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_model_forward_general_weight_tying", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_plain_model_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.gwm_tests.test_gwm_graph_conv_model_py.test_plain_model_forward_general_readout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.prediction_tests.test_graph_conv_predictor_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.prediction_tests.test_graph_conv_predictor_py.test_forward_cpu_graph_invariant", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_cgcnn_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_ggnn_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_ggnn_py.test_forward_cpu_graph_invariant", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_ggnn_py.test_forward_cpu_input_size_invariant", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_gin_py.check_forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_gin_py.test_forward_cpu_graph_invariant", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701896_chainer_chainer_chemistry.tests.models_tests.test_gnn_film_py.check_forward"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | provider | def provider(self) -> str:"""Get the provider name.Returns:The provider name."""return self._provider | 1 | 2 | 1 | 12 | 0 | 358 | 365 | 358 | self | [] | str | {"Expr": 1, "Return": 1} | 0 | 8 | 0 | [] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.plugins.accounts_py.DirectoriesNamespace.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.plugins.service_py.ServicesNamespace.__init__"] | The function (provider) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 358 and ends at 365. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.plugins.accounts_py.DirectoriesNamespace.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.plugins.service_py.ServicesNamespace.__init__"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | set_endpoint | def set_endpoint(self, value: str) -> Self:"""Set the endpoint name.# noqa: DAR101.Args:value: The endpoint name.Returns:This client, useful for chaining inplace calls."""_assert_is_valid_endpoint(value, api_key=self._api_key)self._endpoint = valueif value == "user-input":return selflhs = value.split("->")[0]if "@" in lhs:self._model, self._provider = lhs.split("@")else:self._model = lhsself._provider = value.split("->")[1]return self | 3 | 12 | 2 | 86 | 0 | 370 | 390 | 370 | self,value | [] | Self | {"Assign": 5, "Expr": 2, "If": 2, "Return": 2} | 4 | 21 | 4 | ["_assert_is_valid_endpoint", "value.split", "lhs.split", "value.split"] | 0 | [] | The function (set_endpoint) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 370 and ends at 390. It contains 12 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [370.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["_assert_is_valid_endpoint", "value.split", "lhs.split", "value.split"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | set_model | def set_model(self, value: str) -> Self:"""Set the model name.# noqa: DAR101.Args:value: The model name.Returns:This client, useful for chaining inplace calls."""custom_or_local = self._provider == "local" or "custom" in self._provider_assert_is_valid_model(value,custom_or_local=custom_or_local,api_key=self._api_key,)if self._provider:self._endpoint = "@".join([value, self._provider])return self | 3 | 10 | 2 | 63 | 0 | 392 | 410 | 392 | self,value | [] | Self | {"Assign": 2, "Expr": 2, "If": 1, "Return": 1} | 2 | 19 | 2 | ["_assert_is_valid_model", "join"] | 0 | [] | The function (set_model) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 392 and ends at 410. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [392.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["_assert_is_valid_model", "join"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | set_provider | def set_provider(self, value: str) -> Self:"""Set the provider name.# noqa: DAR101.Args:value: The provider name.Returns:This client, useful for chaining inplace calls."""_assert_is_valid_provider(value, api_key=self._api_key)self._provider = valueif self._model:self._endpoint = "@".join([self._model, value])return self | 2 | 6 | 2 | 50 | 0 | 412 | 426 | 412 | self,value | [] | Self | {"Assign": 2, "Expr": 2, "If": 1, "Return": 1} | 2 | 15 | 2 | ["_assert_is_valid_provider", "join"] | 0 | [] | The function (set_provider) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 412 and ends at 426. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [412.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["_assert_is_valid_provider", "join"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | _handle_kw | def _handle_kw(prompt,endpoint,stream,stream_options,use_custom_keys,tags,drop_params,region,log_query_body,log_response_body,):prompt_dict = prompt.componentsif "extra_body" in prompt_dict:extra_body = prompt_dict["extra_body"]del prompt_dict["extra_body"]else:extra_body = {}kw = dict(model=endpoint,**prompt_dict,stream=stream,stream_options=stream_options,extra_body={# platform arguments"signature": "python","use_custom_keys": use_custom_keys,"tags": tags,"drop_params": drop_params,"region": region,"log_query_body": log_query_body,"log_response_body": log_response_body,# passthrough json arguments**extra_body,},)return {k: v for k, v in kw.items() if v is not None} | 4 | 35 | 10 | 128 | 0 | 429 | 464 | 429 | prompt,endpoint,stream,stream_options,use_custom_keys,tags,drop_params,region,log_query_body,log_response_body | [] | Returns | {"Assign": 4, "If": 1, "Return": 1} | 2 | 36 | 2 | ["dict", "kw.items"] | 0 | [] | The function (_handle_kw) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 429 and ends at 464. It contains 35 lines of code and it has a cyclomatic complexity of 4. It takes 10 parameters, represented as [429.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["dict", "kw.items"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | __repr__ | def __repr__(self):return "{}(endpoint={})".format(self.__class__.__name__, self._endpoint) | 1 | 2 | 1 | 20 | 0 | 469 | 470 | 469 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["format"] | 22 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3678342_kieranjol_ifiscripts.Objects_py.OtherNSElementList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.model.elfi_model_py.RandomVariable.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916301_pythonanywhere_helper_scripts.tests.test_files_py.TestPAPathInit.test_repr_returns_url_property_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916301_pythonanywhere_helper_scripts.tests.test_files_py.TestPAPathInit.test_url_property_contains_correct_pythonanywhere_resource_url_for_instantiated_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.key_py.CPubKey.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.cacheutils_py.LRI.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py.ExceptionCauseMixin._get_trace_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py._TBItem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.tbutils_py.Callpoint.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964685_pallets_markupsafe.src.markupsafe.__init___py.Markup.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69753201_searxng_searx_instances.searxinstances.model_py.AdditionalUrlList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70555013_embeddings_benchmark_mteb.mteb.overview_py.MTEBTasks.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.utils.locks_py.Event.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.tests.i18n.test_i18n_py.test_lang_repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94562214_home_assistant_core.homeassistant.components.bond.utils_py.BondDevice.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95079799_mozilla_mozci.mozci.push_py.Push.__repr__"] | The function (__repr__) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 469 and ends at 470. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["format"], It has 22.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3678342_kieranjol_ifiscripts.Objects_py.OtherNSElementList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.model.elfi_model_py.RandomVariable.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916301_pythonanywhere_helper_scripts.tests.test_files_py.TestPAPathInit.test_repr_returns_url_property_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916301_pythonanywhere_helper_scripts.tests.test_files_py.TestPAPathInit.test_url_property_contains_correct_pythonanywhere_resource_url_for_instantiated_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954802_petertodd_python_bitcoinlib.bitcoin.core.key_py.CPubKey.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.cacheutils_py.LRI.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py.ExceptionCauseMixin._get_trace_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py._TBItem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.tbutils_py.Callpoint.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964685_pallets_markupsafe.src.markupsafe.__init___py.Markup.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69753201_searxng_searx_instances.searxinstances.model_py.AdditionalUrlList.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70555013_embeddings_benchmark_mteb.mteb.overview_py.MTEBTasks.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.utils.locks_py.Event.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.tests.i18n.test_i18n_py.test_lang_repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94562214_home_assistant_core.homeassistant.components.bond.utils_py.BondDevice.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95079799_mozilla_mozci.mozci.push_py.Push.__repr__"]. |
unifyai_unify | _UniClient | protected | 1 | 1 | __str__ | def __str__(self):return "{}(endpoint={})".format(self.__class__.__name__, self._endpoint) | 1 | 2 | 1 | 20 | 0 | 472 | 473 | 472 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["format"] | 26 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.models.ipam_py.Vlans.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.20898574_xcsoar_mapgen.lib.xcsoar.mapgen.waypoints.waypoint_py.Waypoint.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxyProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape.coretypes_py.DateTime.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape.coretypes_py.Time.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.evm_cfg_py.EVMBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.tac_cfg_py.TACBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696057_scrapy_parsel.parsel.csstranslator_py.XPathExpr.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.defaults_py.BaseDefault.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.defaults_py.BaseDefault.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3924083_kontron_python_ipmi.pyipmi.interfaces.rmcp_py.AsfPing.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.modules.cmake_py.CMakeJOM.process", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956523_pivotal_energy_solutions_django_datatable_view.datatableview.views.xeditable_py.XEditableMixin._get_foreignkey_choices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py.ExceptionCauseMixin.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957963_xflr6_graphviz.graphviz.backend.execute_py.CalledProcessError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966919_archivy_archivy.archivy.click_web.resources.cmd_exec_py.FieldFileInfo.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.data.multilingual.sampled_multi_dataset_py.get_time_gap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.tasks.translation_multi_simple_epoch_py.get_time_gap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.conan.errors_py.ConanException.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.task_sdk.src.airflow.sdk.io.path_py.ObjectStoragePath.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94634754_pytorch_executorch.backends.arm.tosa.dialect.lib_py.TosaValueError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94647264_ska_sa_katdal.katdal.h5datav2_py.H5DataV2.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94647264_ska_sa_katdal.katdal.h5datav3_py.H5DataV3.__str__"] | The function (__str__) defined within the protected class called _UniClient, implement an interface, and it inherit another class.The function start at line 472 and ends at 473. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["format"], It has 26.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.models.ipam_py.Vlans.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.20898574_xcsoar_mapgen.lib.xcsoar.mapgen.waypoints.waypoint_py.Waypoint.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646959_kristianoellegaard_django_hvad.hvad.test_utils.project.app.models_py.NormalProxyProxy.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape.coretypes_py.DateTime.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape.coretypes_py.Time.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.evm_cfg_py.EVMBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675814_usyd_blockchain_vandal.src.tac_cfg_py.TACBasicBlock.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696057_scrapy_parsel.parsel.csstranslator_py.XPathExpr.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.defaults_py.BaseDefault.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718366_django_salesforce_django_salesforce.salesforce.defaults_py.BaseDefault.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3924083_kontron_python_ipmi.pyipmi.interfaces.rmcp_py.AsfPing.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.modules.cmake_py.CMakeJOM.process", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3956523_pivotal_energy_solutions_django_datatable_view.datatableview.views.xeditable_py.XEditableMixin._get_foreignkey_choices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.excutils_py.ExceptionCauseMixin.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957963_xflr6_graphviz.graphviz.backend.execute_py.CalledProcessError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966919_archivy_archivy.archivy.click_web.resources.cmd_exec_py.FieldFileInfo.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.data.multilingual.sampled_multi_dataset_py.get_time_gap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69267540_fe1ixxu_bibert.fairseq.tasks.translation_multi_simple_epoch_py.get_time_gap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.conan.errors_py.ConanException.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.task_sdk.src.airflow.sdk.io.path_py.ObjectStoragePath.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94634754_pytorch_executorch.backends.arm.tosa.dialect.lib_py.TosaValueError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94647264_ska_sa_katdal.katdal.h5datav2_py.H5DataV2.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94647264_ska_sa_katdal.katdal.h5datav3_py.H5DataV3.__str__"]. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.