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...
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 ...
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._mess...
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 a...
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 ret...
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...
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 v...
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 a...
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...
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. I...
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 retu...
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 retur...
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.Ph...
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...
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 val...
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...
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 an...
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 valu...
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 a...
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 valu...
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 an...
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 r...
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 retu...
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 retur...
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 an...
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 val...
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...
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 ret...
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 v...
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 no...
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 va...
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 v...
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 retu...
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 retu...
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...
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 ...
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...
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 v...
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 ret...
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...
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 v...
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 a...
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...
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. I...
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 retu...
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 retur...
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...
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...
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 val...
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...
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 an...
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 valu...
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 a...
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 valu...
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 an...
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 r...
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 retu...
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_token...
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.res...
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...
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"...
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 ...
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,...
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....
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....
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...
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_Th...
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....
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_penalt...
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_...
[]
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.MyDri...
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...
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 call...
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 cal...
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 func...
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 functio...
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 func...
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...
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", "...
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 fun...
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 ...
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 fun...
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_endpoin...
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 fun...
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 functi...
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 fun...
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 fun...
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 funct...
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: O...
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_...
[]
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__", "_...
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...
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...
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 ret...
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 inpla...
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 retur...
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 th...
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 re...
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"hea...
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 retu...
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 val...
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....
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 ...
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.g...
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 v...
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[s...
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,...
[]
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",...
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...
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 r...
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: Opti...
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...
[]
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 func...
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...
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 ...
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...
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.MyDri...
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 functi...
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_...
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 fu...
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_co...
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.MyDri...
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 funct...
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...
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] = ...
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,l...
[]
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__", "_...
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 v...
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.gdr...
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....
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_h...
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...
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....
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 ...
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 a...
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,)i...
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 ...
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 sel...
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 an...
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,stre...
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 ret...
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....
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 va...
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.g...
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 val...