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
public
public
0
0
_sync_log
def _sync_log(project: str,context: Optional[str],params: Dict[str, Any],entries: Dict[str, Any],api_key: str,) -> unify.Log:"""Synchronously create a log entry using direct HTTP request.This is a helper function used when async logging is disabled or unavailable."""headers = _create_request_header(api_key)body = {"pro...
1
24
5
137
4
763
795
763
project,context,params,entries,api_key
['headers', 'body', 'resp_json', 'response']
unify.Log
{"Assign": 4, "Expr": 2, "Return": 1}
6
33
6
["_create_request_header", "http.post", "response.json", "_apply_row_ids", "resp_json.get", "unify.Log"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.logs_py.log"]
The function (_sync_log) defined within the public class called public.The function start at line 763 and ends at 795. It contains 24 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [763.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called...
unifyai_unify
public
public
0
0
_create_log
def _create_log(dct, params, context, api_key, context_entries=None):if context_entries is None:context_entries = {}return unify.Log(id=dct["id"],ts=dct["ts"],**dct["entries"],**dct["derived_entries"],**context_entries,params={param_name: (param_ver, params[param_name][param_ver])for param_name, param_ver in dct["param...
3
16
5
98
1
798
813
798
dct,params,context,api_key,context_entries
['context_entries']
Returns
{"Assign": 1, "If": 1, "Return": 1}
2
16
2
["unify.Log", "items"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.logs_py._create_log_groups_nested", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.logs_py._create_log_groups_not_nested", "_.cont...
The function (_create_log) defined within the public class called public.The function start at line 798 and ends at 813. It contains 16 lines of code and it has a cyclomatic complexity of 3. It takes 5 parameters, represented as [798.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions ...
unifyai_unify
public
public
0
0
_create_log_groups_nested
def _create_log_groups_nested(params,context,api_key,node,context_entries,prev_key=None,):if isinstance(node, dict) and "group" not in node:ret = unify.LogGroup(list(node.keys())[0])ret.value = _create_log_groups_nested(params,context,api_key,node[ret.field],context_entries,ret.field,)return retelse:if isinstance(node[...
7
48
6
206
1
816
863
816
params,context,api_key,node,context_entries,prev_key
['ret']
Returns
{"Assign": 8, "For": 2, "If": 2, "Return": 3}
8
48
8
["isinstance", "unify.LogGroup", "list", "node.keys", "_create_log_groups_nested", "isinstance", "_create_log", "_create_log_groups_nested"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.logs_py._create_log_groups_nested", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.logs_py.get_logs"]
The function (_create_log_groups_nested) defined within the public class called public.The function start at line 816 and ends at 863. It contains 48 lines of code and it has a cyclomatic complexity of 7. It takes 6 parameters, represented as [816.0], and this function return a value. It declares 8.0 functions, It has ...
unifyai_unify
public
public
0
0
_create_log_groups_not_nested
def _create_log_groups_not_nested(logs, groups, params, context, api_key):logs_mapping = {}for dct in logs:logs_mapping[dct["id"]] = _create_log(dct, params, context, api_key)ret = []for group_key, group_value in groups.items():if isinstance(group_value, dict):val = {}for k, v in group_value.items():if isinstance(v, li...
7
13
5
116
3
866
879
866
logs,groups,params,context,api_key
['val', 'logs_mapping', 'ret']
Returns
{"Assign": 5, "Expr": 1, "For": 3, "If": 2, "Return": 1}
7
14
7
["_create_log", "groups.items", "isinstance", "group_value.items", "isinstance", "ret.append", "unify.LogGroup"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.logs_py.get_logs"]
The function (_create_log_groups_not_nested) defined within the public class called public.The function start at line 866 and ends at 879. It contains 13 lines of code and it has a cyclomatic complexity of 7. It takes 5 parameters, represented as [866.0], and this function return a value. It declares 7.0 functions, It ...
unifyai_unify
public
public
0
0
create_logs
def create_logs(*,project: Optional[str] = None,context: Optional[str] = None,params: Optional[Union[List[Dict[str, Any]], Dict[str, Any]]] = None,entries: Optional[Union[List[Dict[str, Any]], Dict[str, Any]]] = None,mutable: Optional[Union[bool, Dict[str, bool]]] = True,batched: Optional[bool] = None,api_key: Optional...
12
69
9
499
13
882
984
882
project,context,params,entries,mutable,batched,api_key
['entries', 'resp_json', 'pbar', 'body', 'ret', 'headers', 'context', 'api_key', 'project', 'batched', 'params', 'response', 'body_size']
List[int]
{"Assign": 16, "Expr": 7, "For": 1, "If": 3, "Return": 2, "Try": 1}
30
103
30
["_validate_api_key", "_get_and_maybe_create_project", "_handle_context", "_create_request_header", "_handle_mutability", "_handle_mutability", "len", "len", "sys.getsizeof", "json.dumps", "http.post", "http.post", "_json_chunker", "response.json", "_apply_row_ids", "resp_json.get", "unify.Log", "isinstance", "e.items"...
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.datasets_py.add_dataset_entries", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.datasets_py.upload_dataset"]
The function (create_logs) defined within the public class called public.The function start at line 882 and ends at 984. It contains 69 lines of code and it has a cyclomatic complexity of 12. It takes 9 parameters, represented as [882.0] and does not return any value. It declares 30.0 functions, It has 30.0 functions c...
unifyai_unify
public
public
0
0
_add_to_log
def _add_to_log(*,context: Optional[str] = None,logs: Optional[Union[int, unify.Log, List[Union[int, unify.Log]]]] = None,mode: str = None,overwrite: bool = False,mutable: Optional[Union[bool, Dict[str, bool]]] = True,api_key: Optional[str] = None,**data,) -> Dict[str, str]:assert mode in ("params", "entries"), "mode m...
18
75
7
577
16
987
1,065
987
context,logs,mode,overwrite,mutable,api_key,**data
['combined_kwargs', 'logged', 'new_logged', 'body', 'log_obj', 'lf', 'context', 'headers', 'active', 'log_ids', 'api_key', 'nest_level', 'log_id', 'all_kwargs', 'data', 'response']
Dict[str, str]
{"Assign": 26, "Expr": 5, "For": 2, "If": 8, "Return": 2}
36
79
36
["_apply_col_context", "_validate_api_key", "_handle_context", "_handle_special_types", "_handle_mutability", "ACTIVE_LOG.get", "isinstance", "isinstance", "isinstance", "_to_log_ids", "_async_logger._loop.create_future", "lf.set_result", "unify.Log", "hasattr", "_async_logger._loop.create_future", "lf.set_result", "_a...
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.logs_py.add_log_entries", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.logs_py.add_log_params", "_.content.gdrive.MyDrive.Phd_Th...
The function (_add_to_log) defined within the public class called public.The function start at line 987 and ends at 1065. It contains 75 lines of code and it has a cyclomatic complexity of 18. It takes 7 parameters, represented as [987.0] and does not return any value. It declares 36.0 functions, It has 36.0 functions ...
unifyai_unify
public
public
0
0
add_log_params
def add_log_params(*,logs: Optional[Union[int, unify.Log, List[Union[int, unify.Log]]]] = None,mutable: Optional[Union[bool, Dict[str, bool]]] = True,api_key: Optional[str] = None,**params,) -> Dict[str, str]:"""Add extra params into an existing log.Args:logs: The log(s) to update with extra params. Looks for the curre...
2
20
4
112
1
1,068
1,105
1,068
logs,mutable,api_key,**params
['ret']
Dict[str, str]
{"Assign": 1, "Expr": 2, "If": 1, "Return": 1}
8
38
8
["_add_to_log", "logger.info", "join", "list", "params.keys", "join", "str", "_to_log_ids"]
0
[]
The function (add_log_params) defined within the public class called public.The function start at line 1068 and ends at 1105. It contains 20 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [1068.0] and does not return any value. It declares 8.0 functions, and It has 8.0 fun...
unifyai_unify
public
public
0
0
add_log_entries
def add_log_entries(*,logs: Optional[Union[int, unify.Log, List[Union[int, unify.Log]]]] = None,overwrite: bool = False,mutable: Optional[Union[bool, Dict[str, bool]]] = True,api_key: Optional[str] = None,context: Optional[str] = None,**entries,) -> Dict[str, str]:"""Add extra entries into an existing log.Args:logs: Th...
2
24
6
135
1
1,108
1,152
1,108
logs,overwrite,mutable,api_key,context,**entries
['ret']
Dict[str, str]
{"Assign": 1, "Expr": 2, "If": 1, "Return": 1}
8
45
8
["_add_to_log", "logger.info", "join", "list", "entries.keys", "join", "str", "_to_log_ids"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Log.add_entries"]
The function (add_log_entries) defined within the public class called public.The function start at line 1108 and ends at 1152. It contains 24 lines of code and it has a cyclomatic complexity of 2. It takes 6 parameters, represented as [1108.0] and does not return any value. It declares 8.0 functions, It has 8.0 functio...
unifyai_unify
public
public
0
0
update_logs
def update_logs(*,logs: Optional[Union[int, unify.Log, List[Union[int, unify.Log]]]] = None,context: Optional[Union[str, List[str]]] = None,params: Optional[Union[Dict[str, Any], List[Dict[str, Any]]]] = None,entries: Optional[Union[Dict[str, Any], List[Dict[str, Any]]]] = None,overwrite: bool = False,api_key: Optional...
6
24
8
220
4
1,155
1,181
1,155
logs,context,params,entries,overwrite,api_key
['headers', 'body', 'response', 'log_ids']
Dict[str, str]
{"Assign": 6, "Expr": 1, "If": 3, "Return": 2}
4
27
4
["_create_request_header", "_to_log_ids", "http.put", "response.json"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Log.update_entries", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.datasets_py.upload_dataset"]
The function (update_logs) defined within the public class called public.The function start at line 1155 and ends at 1181. It contains 24 lines of code and it has a cyclomatic complexity of 6. It takes 8 parameters, represented as [1155.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions c...
unifyai_unify
public
public
0
0
delete_logs
def delete_logs(*,logs: Optional[Union[int, unify.Log, List[Union[int, unify.Log]]]] = None,project: Optional[str] = None,context: Optional[str] = None,delete_empty_logs: bool = False,source_type: str = "all",api_key: Optional[str] = None,) -> Dict[str, str]:"""Deletes logs from a project.Args:logs: log(s) to delete fr...
5
33
6
217
8
1,184
1,237
1,184
logs,project,context,delete_empty_logs,source_type,api_key
['logs', 'body', 'context', 'headers', 'project', 'log_ids', 'params', 'response']
Dict[str, str]
{"Assign": 8, "Expr": 2, "If": 3, "Return": 2}
10
54
10
["get_logs", "_get_and_maybe_create_project", "CONTEXT_READ.get", "_to_log_ids", "_create_request_header", "http.delete", "logger.info", "join", "str", "response.json"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Log.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.datasets_py.upload_dataset", "_.content.gdrive.MyDrive.Phd_Thesis.Da...
The function (delete_logs) defined within the public class called public.The function start at line 1184 and ends at 1237. It contains 33 lines of code and it has a cyclomatic complexity of 5. It takes 6 parameters, represented as [1184.0] and does not return any value. It declares 10.0 functions, It has 10.0 functions...
unifyai_unify
public
public
0
0
delete_log_fields
def delete_log_fields(*,field: str,logs: Optional[Union[int, unify.Log, List[Union[int, unify.Log]]]] = None,project: Optional[str] = None,context: Optional[str] = None,api_key: Optional[str] = None,) -> Dict[str, str]:"""Deletes an entry from a log.Args:field: Name of the field to delete from the given logs.logs: log(...
3
28
5
171
7
1,240
1,285
1,240
field,logs,project,context,api_key
['body', 'headers', 'context', 'log_ids', 'api_key', 'project', 'response']
Dict[str, str]
{"Assign": 7, "Expr": 2, "If": 1, "Return": 1}
10
46
10
["_to_log_ids", "_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_READ.get", "http.delete", "logger.info", "join", "str", "response.json"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Log.delete_entries"]
The function (delete_log_fields) defined within the public class called public.The function start at line 1240 and ends at 1285. It contains 28 lines of code and it has a cyclomatic complexity of 3. It takes 5 parameters, represented as [1240.0] and does not return any value. It declares 10.0 functions, It has 10.0 fun...
unifyai_unify
public
public
0
0
get_logs
def get_logs(*,project: Optional[str] = None,context: Optional[str] = None,column_context: Optional[str] = None,filter: Optional[str] = None,limit: Optional[int] = None,offset: int = 0,return_versions: Optional[bool] = None,group_threshold: Optional[int] = None,value_limit: Optional[int] = None,sorting: Optional[Dict[s...
16
82
24
650
10
1,289
1,431
1,289
project,context,column_context,filter,limit,offset,return_versions,group_threshold,value_limit,sorting,group_sorting,from_ids,exclude_ids,from_fields,exclude_fields,group_by,group_limit,group_offset,group_depth,nested_groups,groups_only,return_timestamps,return_ids_only,api_key
['merged_filters', 'filter', '_filter', 'headers', 'context', 'api_key', 'project', 'params', 'response', 'column_context']
Union[List[unify.Log], Dict[str, Any]]
{"Assign": 14, "Expr": 1, "If": 5, "Return": 4}
29
143
29
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_READ.get", "COLUMN_CONTEXT_READ.get", "ACTIVE_PARAMS_READ.get", "ACTIVE_ENTRIES_READ.get", "join", "repr", "merged_filters.items", "json.dumps", "json.dumps", "join", "map", "join", "map", "join", "join", "http.get", "response.jso...
11
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961676_fandoghpaas_fandogh_cli.fandogh_cli.service_commands_py.service_logs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.compositions_py.get_param_by_value", "_.content...
The function (get_logs) defined within the public class called public.The function start at line 1289 and ends at 1431. It contains 82 lines of code and it has a cyclomatic complexity of 16. It takes 24 parameters, represented as [1289.0] and does not return any value. It declares 29.0 functions, It has 29.0 functions ...
unifyai_unify
public
public
0
0
get_log_by_id
def get_log_by_id(id: int,project: Optional[str] = None,*,api_key: Optional[str] = None,) -> unify.Log:"""Returns the log associated with a given id.Args:id: IDs of the logs to fetch.project: Name of the project to get logs from.api_key: If specified, unify API key to be used. Defaults to the value in the`UNIFY_KEY` en...
3
26
3
186
5
1,435
1,474
1,435
id,project,api_key
['headers', 'project', 'api_key', 'response', 'lg']
unify.Log
{"Assign": 6, "Expr": 1, "If": 1, "Return": 1}
10
40
10
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "http.get", "values", "response.json", "len", "Exception", "unify.Log", "items"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py.Log.download"]
The function (get_log_by_id) defined within the public class called public.The function start at line 1435 and ends at 1474. It contains 26 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [1435.0] and does not return any value. It declares 10.0 functions, It has 10.0 functio...
unifyai_unify
public
public
0
0
get_logs_metric
def get_logs_metric(*,metric: str,key: str,filter: Optional[str] = None,project: Optional[str] = None,context: Optional[str] = None,from_ids: Optional[List[int]] = None,exclude_ids: Optional[List[int]] = None,api_key: Optional[str] = None,) -> Union[float, int, bool]:"""Retrieve a set of log metrics across a project, a...
4
28
8
196
5
1,478
1,533
1,478
metric,key,filter,project,context,from_ids,exclude_ids,api_key
['headers', 'project', 'api_key', 'response', 'params']
Union[float, int, bool]
{"Assign": 5, "Expr": 1, "Return": 1}
10
56
10
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "join", "map", "join", "map", "CONTEXT_READ.get", "http.get", "response.json"]
0
[]
The function (get_logs_metric) defined within the public class called public.The function start at line 1478 and ends at 1533. It contains 28 lines of code and it has a cyclomatic complexity of 4. It takes 8 parameters, represented as [1478.0] and does not return any value. It declares 10.0 functions, and It has 10.0 ...
unifyai_unify
public
public
0
0
get_groups
def get_groups(*,key: str,project: Optional[str] = None,context: Optional[str] = None,filter: Optional[Dict[str, Any]] = None,from_ids: Optional[List[int]] = None,exclude_ids: Optional[List[int]] = None,api_key: Optional[str] = None,) -> Dict[str, List[Dict[str, Any]]]:"""Returns a list of the different version/values ...
2
24
7
176
6
1,536
1,584
1,536
key,project,context,filter,from_ids,exclude_ids,api_key
['headers', 'context', 'api_key', 'project', 'params', 'response']
Dict[str, List[Dict[str, Any]]]
{"Assign": 6, "Expr": 1, "Return": 1}
6
49
6
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_READ.get", "http.get", "response.json"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.compositions_py.get_experiment_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.compositions_py.get_experiment_version"]
The function (get_groups) defined within the public class called public.The function start at line 1536 and ends at 1584. It contains 24 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [1536.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions ca...
unifyai_unify
public
public
0
0
get_logs_latest_timestamp
def get_logs_latest_timestamp(*,project: Optional[str] = None,context: Optional[str] = None,column_context: Optional[str] = None,filter: Optional[str] = None,sort_by: Optional[str] = None,from_ids: Optional[List[int]] = None,exclude_ids: Optional[List[int]] = None,limit: Optional[int] = None,offset: Optional[int] = Non...
5
35
10
242
7
1,587
1,624
1,587
project,context,column_context,filter,sort_by,from_ids,exclude_ids,limit,offset,api_key
['headers', 'context', 'api_key', 'project', 'params', 'response', 'column_context']
int
{"Assign": 7, "Expr": 1, "Return": 1}
11
38
11
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_READ.get", "COLUMN_CONTEXT_READ.get", "join", "map", "join", "map", "http.get", "response.json"]
0
[]
The function (get_logs_latest_timestamp) defined within the public class called public.The function start at line 1587 and ends at 1624. It contains 35 lines of code and it has a cyclomatic complexity of 5. It takes 10 parameters, represented as [1587.0] and does not return any value. It declares 11.0 functions, and I...
unifyai_unify
public
public
0
0
update_derived_log
def update_derived_log(*,target: Union[List[int], Dict[str, str]],key: Optional[str] = None,equation: Optional[str] = None,referenced_logs: Optional[List[int]] = None,project: Optional[str] = None,context: Optional[str] = None,api_key: Optional[str] = None,) -> None:"""Update the derived entries for a log.Args:target: ...
2
24
7
168
6
1,627
1,672
1,627
target,key,equation,referenced_logs,project,context,api_key
['body', 'headers', 'context', 'api_key', 'project', 'response']
None
{"Assign": 6, "Expr": 1, "Return": 1}
6
46
6
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_WRITE.get", "http.put", "response.json"]
0
[]
The function (update_derived_log) defined within the public class called public.The function start at line 1627 and ends at 1672. It contains 24 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [1627.0] and does not return any value. It declares 6.0 functions, and It has 6.0...
unifyai_unify
public
public
0
0
create_derived_logs
def create_derived_logs(*,key: str,equation: str,referenced_logs,derived: Optional[bool] = None,project: Optional[str] = None,context: Optional[str] = None,api_key: Optional[str] = None,) -> Dict[str, Any]:"""Creates one or more entries based on equation and referenced_logs.Args:key: The name of the entry.equation: The...
3
25
7
153
6
1,675
1,712
1,675
key,equation,referenced_logs,derived,project,context,api_key
['body', 'headers', 'context', 'api_key', 'project', 'response']
Dict[str, Any]
{"Assign": 7, "Expr": 1, "If": 1, "Return": 1}
6
38
6
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_WRITE.get", "http.post", "response.json"]
0
[]
The function (create_derived_logs) defined within the public class called public.The function start at line 1675 and ends at 1712. It contains 25 lines of code and it has a cyclomatic complexity of 3. It takes 7 parameters, represented as [1675.0] and does not return any value. It declares 6.0 functions, and It has 6....
unifyai_unify
public
public
0
0
join_logs
def join_logs(*,pair_of_args: Tuple[Dict[str, Any], Dict[str, Any]],join_expr: str,mode: str,new_context: str,copy: Optional[bool] = True,columns: Optional[List[str]] = None,project: Optional[str] = None,api_key: Optional[str] = None,):"""Join two sets of logs based on specified criteria and creates new logs with the j...
1
25
8
155
5
1,715
1,742
1,715
pair_of_args,join_expr,mode,new_context,copy,columns,project,api_key
['body', 'headers', 'project', 'api_key', 'response']
Returns
{"Assign": 5, "Expr": 1, "Return": 1}
5
28
5
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "http.post", "response.json"]
0
[]
The function (join_logs) defined within the public class called public.The function start at line 1715 and ends at 1742. It contains 25 lines of code and it has a cyclomatic complexity of 1. It takes 8 parameters, represented as [1715.0], and this function return a value. It declares 5.0 functions, and It has 5.0 func...
unifyai_unify
public
public
0
0
create_fields
def create_fields(fields: Union[Dict[str, Any], List[str]],*,backfill_logs: Optional[bool] = None,project: Optional[str] = None,context: Optional[str] = None,api_key: Optional[str] = None,):"""Creates one or more fields in a project.Args:fields: Dictionary mapping field names to their types (or None if no explicit type...
5
23
5
164
7
1,745
1,780
1,745
fields,backfill_logs,project,context,api_key
['fields', 'body', 'headers', 'context', 'api_key', 'project', 'response']
Returns
{"Assign": 8, "Expr": 1, "If": 2, "Return": 1}
7
36
7
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_WRITE.get", "isinstance", "http.post", "response.json"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923967_klen_peewee_migrate.peewee_migrate.auto_py.diff_one"]
The function (create_fields) defined within the public class called public.The function start at line 1745 and ends at 1780. It contains 23 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [1745.0], and this function return a value. It declares 7.0 functions, It has 7.0 funct...
unifyai_unify
public
public
0
0
rename_field
def rename_field(name: str,new_name: str,*,project: Optional[str] = None,context: Optional[str] = None,api_key: Optional[str] = None,):"""Rename a field in a project.Args:name: The name of the field to rename.new_name: The new name for the field.project: Name of the project to rename the field in.context: The context t...
2
24
5
120
6
1,783
1,821
1,783
name,new_name,project,context,api_key
['body', 'headers', 'context', 'api_key', 'project', 'response']
Returns
{"Assign": 6, "Expr": 1, "Return": 1}
6
39
6
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_WRITE.get", "http.patch", "response.json"]
0
[]
The function (rename_field) defined within the public class called public.The function start at line 1783 and ends at 1821. It contains 24 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [1783.0], and this function return a value. It declares 6.0 functions, and It has 6.0 f...
unifyai_unify
public
public
0
0
get_fields
def get_fields(*,project: Optional[str] = None,context: Optional[str] = None,api_key: Optional[str] = None,):"""Get a dictionary of fields names and their typesArgs:project: Name of the project to get fields from.context: The context to get fields from.api_key: If specified, unify API key to be used. Defaults to the va...
2
16
3
103
6
1,824
1,853
1,824
project,context,api_key
['headers', 'context', 'api_key', 'project', 'params', 'response']
Returns
{"Assign": 6, "Expr": 1, "Return": 1}
6
30
6
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_READ.get", "http.get", "response.json"]
7
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3656182_jhuapl_boss_boss.django.bosscore.serializers_py.ExperimentSerializer.get_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.database.props_py.PropsMixin._get_fi...
The function (get_fields) defined within the public class called public.The function start at line 1824 and ends at 1853. It contains 16 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [1824.0], and this function return a value. It declares 6.0 functions, It has 6.0 function...
unifyai_unify
public
public
0
0
delete_fields
def delete_fields(fields: List[str],*,project: Optional[str] = None,context: Optional[str] = None,api_key: Optional[str] = None,):"""Delete one or more fields from a project.Args:fields: List of field names to delete.project: Name of the project to delete fields from.context: The context to delete fields from.api_key: ...
2
22
4
115
6
1,856
1,890
1,856
fields,project,context,api_key
['body', 'headers', 'context', 'api_key', 'project', 'response']
Returns
{"Assign": 6, "Expr": 1, "Return": 1}
6
35
6
["_validate_api_key", "_create_request_header", "_get_and_maybe_create_project", "CONTEXT_WRITE.get", "http.delete", "response.json"]
0
[]
The function (delete_fields) defined within the public class called public.The function start at line 1856 and ends at 1890. It contains 22 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [1856.0], and this function return a value. It declares 6.0 functions, and It has 6.0 ...
unifyai_unify
public
public
0
0
set_user_logging
def set_user_logging(value: bool):global USR_LOGGINGUSR_LOGGING = value
1
3
1
12
1
1,897
1,899
1,897
value
['USR_LOGGING']
None
{"Assign": 1}
0
3
0
[]
0
[]
The function (set_user_logging) defined within the public class called public.The function start at line 1897 and ends at 1899. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
unifyai_unify
public
public
0
0
create_project
def create_project(name: str,*,overwrite: Union[bool, str] = False,api_key: Optional[str] = None,is_versioned: bool = True,) -> Dict[str, str]:"""Creates a logging project and adds this to your account. This project will havea set of logs associated with it.Args:name: A unique, user-defined name used when referencing t...
5
20
4
148
4
12
52
12
name,overwrite,api_key,is_versioned
['headers', 'body', 'api_key', 'response']
Dict[str, str]
{"Assign": 4, "Expr": 2, "If": 4, "Return": 3}
8
41
8
["_validate_api_key", "_create_request_header", "list_projects", "delete_project_logs", "delete_project_contexts", "delete_project", "http.post", "response.json"]
21
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963047_twisted_towncrier.src.towncrier.test.test_check_py.TestChecker._test_no_changes_made", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963047_twisted_towncrier.src.towncrier.test.test_check_py.TestChecker.tes...
The function (create_project) defined within the public class called public.The function start at line 12 and ends at 52. It contains 20 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [12.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions call...
unifyai_unify
public
public
0
0
rename_project
def rename_project(name: str,new_name: str,*,api_key: Optional[str] = None,) -> Dict[str, str]:"""Renames a project from `name` to `new_name` in your account.Args:name: Name of the project to rename.new_name: A unique, user-defined name used when referencing the project.api_key: If specified, unify API key to be used. ...
1
15
3
76
4
55
83
55
name,new_name,api_key
['headers', 'body', 'api_key', 'response']
Dict[str, str]
{"Assign": 4, "Expr": 1, "Return": 1}
4
29
4
["_validate_api_key", "_create_request_header", "http.patch", "response.json"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.rename"]
The function (rename_project) defined within the public class called public.The function start at line 55 and ends at 83. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [55.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions call...
unifyai_unify
public
public
0
0
delete_project
def delete_project(name: str,*,api_key: Optional[str] = None,) -> str:"""Deletes a project from your account.Args:name: Name of the project to delete.api_key: If specified, unify API key to be used. Defaults to the value in the`UNIFY_KEY` environment variable.Returns:Whether the project was successfully deleted."""api_...
1
9
2
55
3
86
106
86
name,api_key
['headers', 'api_key', 'response']
str
{"Assign": 3, "Expr": 1, "Return": 1}
4
21
4
["_validate_api_key", "_create_request_header", "http.delete", "response.json"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981965_allegroai_clearml_server.apiserver.services.projects_py.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.delete", "_.content.gdrive.MyDrive.Phd_Thesis.D...
The function (delete_project) defined within the public class called public.The function start at line 86 and ends at 106. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [86.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions call...
unifyai_unify
public
public
0
0
delete_project_logs
def delete_project_logs(name: str,*,api_key: Optional[str] = None,) -> None:"""Deletes all logs from a project.Args:name: Name of the project to delete logs from.api_key: If specified, unify API key to be used. Defaults to the value in the`UNIFY_KEY` environment variable."""api_key = _validate_api_key(api_key)headers =...
1
9
2
55
3
109
126
109
name,api_key
['headers', 'api_key', 'response']
None
{"Assign": 3, "Expr": 1, "Return": 1}
4
18
4
["_validate_api_key", "_create_request_header", "http.delete", "response.json"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.projects_py.create_project"]
The function (delete_project_logs) defined within the public class called public.The function start at line 109 and ends at 126. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [109.0] and does not return any value. It declares 4.0 functions, It has 4.0 functio...
unifyai_unify
public
public
0
0
delete_project_contexts
def delete_project_contexts(name: str,*,api_key: Optional[str] = None,) -> None:"""Deletes all contexts and their associated logs from a projectArgs:name: Name of the project to delete contexts from.api_key: If specified, unify API key to be used. Defaults to the value in the`UNIFY_KEY` environment variable."""api_key ...
1
9
2
55
3
129
146
129
name,api_key
['headers', 'api_key', 'response']
None
{"Assign": 3, "Expr": 1, "Return": 1}
4
18
4
["_validate_api_key", "_create_request_header", "http.delete", "response.json"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.utils.projects_py.create_project"]
The function (delete_project_contexts) defined within the public class called public.The function start at line 129 and ends at 146. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [129.0] and does not return any value. It declares 4.0 functions, It has 4.0 fun...
unifyai_unify
public
public
0
0
list_projects
def list_projects(*,api_key: Optional[str] = None,) -> List[str]:"""Returns the names of all projects stored in your account.Args:api_key: If specified, unify API key to be used. Defaults to the value in the`UNIFY_KEY` environment variable.Returns:List of all project names."""api_key = _validate_api_key(api_key)headers...
1
8
1
53
3
149
166
149
api_key
['headers', 'api_key', 'response']
List[str]
{"Assign": 3, "Expr": 1, "Return": 1}
4
18
4
["_validate_api_key", "_create_request_header", "http.get", "response.json"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.Project.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.__init___py.activate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Ou...
The function (list_projects) defined within the public class called public.The function start at line 149 and ends at 166. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called ...
unifyai_unify
public
public
0
0
commit_project
def commit_project(name: str,commit_message: str,*,api_key: Optional[str] = None,) -> Dict[str, str]:"""Creates a commit for the entire project, saving a snapshot of all versioned contexts.Args:name: Name of the project to commit.commit_message: A description of the changes being saved.api_key: If specified, unify API ...
1
15
3
76
4
169
195
169
name,commit_message,api_key
['headers', 'body', 'api_key', 'response']
Dict[str, str]
{"Assign": 4, "Expr": 1, "Return": 1}
4
27
4
["_validate_api_key", "_create_request_header", "http.post", "response.json"]
0
[]
The function (commit_project) defined within the public class called public.The function start at line 169 and ends at 195. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [169.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functi...
unifyai_unify
public
public
0
0
rollback_project
def rollback_project(name: str,commit_hash: str,*,api_key: Optional[str] = None,) -> Dict[str, str]:"""Rolls back the entire project to a specific commit.Args:name: Name of the project to roll back.commit_hash: The hash of the commit to restore.api_key: If specified, unify API key to be used. Defaults to the value in t...
1
15
3
76
4
198
224
198
name,commit_hash,api_key
['headers', 'body', 'api_key', 'response']
Dict[str, str]
{"Assign": 4, "Expr": 1, "Return": 1}
4
27
4
["_validate_api_key", "_create_request_header", "http.post", "response.json"]
0
[]
The function (rollback_project) defined within the public class called public.The function start at line 198 and ends at 224. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [198.0] and does not return any value. It declares 4.0 functions, and It has 4.0 func...
unifyai_unify
public
public
0
0
get_project_commits
def get_project_commits(name: str, *, api_key: Optional[str] = None) -> List[Dict]:"""Retrieves the commit history for a project.Args:name: Name of the project.api_key: If specified, unify API key to be used. Defaults to the value in the`UNIFY_KEY` environment variable.Returns:A list of dictionaries, each representing ...
1
5
2
57
3
227
242
227
name,api_key
['headers', 'api_key', 'response']
List[Dict]
{"Assign": 3, "Expr": 1, "Return": 1}
4
16
4
["_validate_api_key", "_create_request_header", "http.get", "response.json"]
0
[]
The function (get_project_commits) defined within the public class called public.The function start at line 227 and ends at 242. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [227.0] and does not return any value. It declares 4.0 functions, and It has 4.0 fu...
unifyai_unify
TraceLoader
public
0
1
__init__
def __init__(self, original_loader, filter: Callable = None):self._original_loader = original_loaderself.filter = filter
1
3
3
23
0
9
11
9
self,original_loader,filter
[]
None
{"Assign": 2}
0
3
0
[]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called TraceLoader, that inherit another class.The function start at line 9 and ends at 11. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [9.0] and does not return any value. It has 14667.0 functions cal...
unifyai_unify
TraceLoader
public
0
1
create_module
def create_module(self, spec):return self._original_loader.create_module(spec)
1
2
2
16
0
13
14
13
self,spec
[]
Returns
{"Return": 1}
1
2
1
["self._original_loader.create_module"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951091_pyjs_pyjs.pyjs.testing_py.module_from_src"]
The function (create_module) defined within the public class called TraceLoader, that inherit another class.The function start at line 13 and ends at 14. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [13.0], and this function return a value. It declare 1.0 fu...
unifyai_unify
TraceLoader
public
0
1
exec_module
def exec_module(self, module):self._original_loader.exec_module(module)unify.traced(module, filter=self.filter)
1
3
2
27
0
16
18
16
self,module
[]
None
{"Expr": 2}
2
3
2
["self._original_loader.exec_module", "unify.traced"]
0
[]
The function (exec_module) defined within the public class called TraceLoader, that inherit another class.The function start at line 16 and ends at 18. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [16.0] and does not return any value. It declares 2.0 functio...
unifyai_unify
TraceLoader
public
0
1
__init__
def __init__(self, targets: List[str], filter: Callable = None):self.targets = targetsself.filter = filter
1
3
3
28
0
22
24
22
self,original_loader,filter
[]
None
{"Assign": 2}
0
3
0
[]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called TraceLoader, that inherit another class.The function start at line 22 and ends at 24. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [22.0] and does not return any value. It has 14667.0 functions c...
unifyai_unify
TraceFinder
public
0
1
find_spec
def find_spec(self, fullname, path, target=None):for target_module in self.targets:if not fullname.startswith(target_module):return Noneoriginal_sys_meta_path = sys.meta_path[:]sys.meta_path = [finder for finder in sys.meta_path if not isinstance(finder, TraceFinder)]try:spec = importlib.util.find_spec(fullname, path)i...
9
18
4
125
0
26
46
26
self,fullname,path,target
[]
Returns
{"Assign": 5, "For": 1, "If": 3, "Return": 4, "Try": 1}
5
21
5
["fullname.startswith", "isinstance", "importlib.util.find_spec", "spec.origin.endswith", "TraceLoader"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3913638_scijava_scyjava.src.scyjava._convert_py._stock_py_converters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3968768_linbit_linstor_client.linstor_client.argcomplete._check_module_py.find", "_.content.gdrive...
The function (find_spec) defined within the public class called TraceFinder, that inherit another class.The function start at line 26 and ends at 46. It contains 18 lines of code and it has a cyclomatic complexity of 9. It takes 4 parameters, represented as [26.0], and this function return a value. It declares 5.0 func...
unifyai_unify
public
public
0
0
install_tracing_hook
def install_tracing_hook(targets: List[str], filter: Callable = None):"""Install an import hook that wraps imported modules with the traced decorator.This function adds a TraceFinder to sys.meta_path that will intercept module importsand wrap them with the traced decorator. The hook will only be installed if onedoesn't...
3
3
2
50
0
49
64
49
targets,filter
[]
None
{"Expr": 2, "If": 1}
4
16
4
["any", "isinstance", "sys.meta_path.insert", "TraceFinder"]
0
[]
The function (install_tracing_hook) defined within the public class called public.The function start at line 49 and ends at 64. It contains 3 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [49.0] and does not return any value. It declares 4.0 functions, and It has 4.0 func...
unifyai_unify
public
public
0
0
disable_tracing_hook
def disable_tracing_hook():"""Remove the tracing import hook from sys.meta_path.This function removes any TraceFinder instances from sys.meta_path, effectivelydisabling the tracing functionality for subsequent module imports."""for finder in sys.meta_path:if isinstance(finder, TraceFinder):sys.meta_path.remove(finder)
3
4
0
28
0
67
76
67
[]
None
{"Expr": 2, "For": 1, "If": 1}
2
10
2
["isinstance", "sys.meta_path.remove"]
0
[]
The function (disable_tracing_hook) defined within the public class called public.The function start at line 67 and ends at 76. It contains 4 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functio...
unifyai_unify
public
public
0
0
_usr_msg_to_prompt
def _usr_msg_to_prompt(user_message: str) -> Prompt:return Prompt(user_message)
1
2
1
14
0
9
10
9
user_message
[]
Prompt
{"Return": 1}
1
2
1
["Prompt"]
0
[]
The function (_usr_msg_to_prompt) defined within the public class called public.The function start at line 9 and ends at 10. 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 cal...
unifyai_unify
public
public
0
0
_bool_to_float
def _bool_to_float(boolean: bool) -> float:return float(boolean)
1
2
1
14
0
13
14
13
boolean
[]
float
{"Return": 1}
1
2
1
["float"]
0
[]
The function (_bool_to_float) defined within the public class called public.The function start at line 13 and ends at 14. 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...
unifyai_unify
public
public
0
0
_prompt_to_usr_msg
def _prompt_to_usr_msg(prompt: Prompt) -> str:return prompt.messages[-1]["content"]
1
2
1
20
0
20
21
20
prompt
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (_prompt_to_usr_msg) defined within the public class called public.The function start at line 20 and ends at 21. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
unifyai_unify
public
public
0
0
_chat_completion_to_assis_msg
def _chat_completion_to_assis_msg(chat_completion: ChatCompletion) -> str:return chat_completion.choices[0].message.content
1
2
1
20
0
24
25
24
chat_completion
[]
str
{"Return": 1}
0
2
0
[]
0
[]
The function (_chat_completion_to_assis_msg) defined within the public class called public.The function start at line 24 and ends at 25. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
unifyai_unify
public
public
0
0
_float_to_bool
def _float_to_bool(float_in: float) -> bool:return bool(float_in)
1
2
1
14
0
28
29
28
float_in
[]
bool
{"Return": 1}
1
2
1
["bool"]
0
[]
The function (_float_to_bool) defined within the public class called public.The function start at line 28 and ends at 29. 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...
unifyai_unify
public
public
0
0
_cast_from_selection
def _cast_from_selection(inp: Union[str, bool, float, Prompt, ChatCompletion],targets: List[Union[float, Prompt, ChatCompletion]],) -> Union[str, bool, float, Prompt, ChatCompletion]:"""Upcasts the input if possible, based on the permitted upcasting targets provided.Args:inp: The input to cast.targets: The set of permi...
3
14
2
104
4
49
73
49
inp,targets
['input_type', 'cast_fns', 'to_type', 'targets']
Union[str, bool, float, Prompt, ChatCompletion]
{"Assign": 4, "Expr": 1, "Return": 1}
2
25
2
["type", "len"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.casting_py.cast"]
The function (_cast_from_selection) defined within the public class called public.The function start at line 49 and ends at 73. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [49.0] and does not return any value. It declares 2.0 functions, It has 2.0 function...
unifyai_unify
public
public
0
0
cast
def cast(inp: Union[str, bool, float, Prompt, ChatCompletion],to_type: Union[Type[Union[str, bool, float, Prompt, ChatCompletion]],List[Type[Union[str, bool, float, Prompt, ChatCompletion]]],],) -> Union[str, bool, float, Prompt, ChatCompletion]:"""Cast the input to the specified type.Args:inp: The input to cast.to_typ...
3
13
2
113
1
79
102
79
inp,to_type
['input_type']
Union[str, bool, float, Prompt, ChatCompletion]
{"Assign": 1, "Expr": 1, "If": 2, "Return": 3}
3
24
3
["isinstance", "_cast_from_selection", "type"]
1,647
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group._default_group_class", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.add_command", "_.content.gdrive.MyDrive.Phd_Thesis...
The function (cast) defined within the public class called public.The function start at line 79 and ends at 102. It contains 13 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [79.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside...
unifyai_unify
public
public
0
0
try_cast
def try_cast(inp: Union[str, bool, float, Prompt, ChatCompletion],to_type: Union[Type[Union[str, bool, float, Prompt, ChatCompletion]],List[Type[Union[str, bool, float, Prompt, ChatCompletion]]],],) -> Union[str, bool, float, Prompt, ChatCompletion]:# noinspection PyBroadExceptiontry:return cast(inp, to_type)except:ret...
2
11
2
86
0
105
116
105
inp,to_type
[]
Union[str, bool, float, Prompt, ChatCompletion]
{"Return": 2, "Try": 1}
1
12
1
["cast"]
0
[]
The function (try_cast) defined within the public class called public.The function start at line 105 and ends at 116. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [105.0] and does not return any value. It declare 1.0 function, and It has 1.0 function calle...
unifyai_unify
ChatBot
public
0
0
__init__
def __init__(self,client: _Client,) -> None:"""Initializes the ChatBot object, wrapped around a client.Args:client: The Client instance to wrap the chatbot logic around."""self._paused = Falseassert not client.return_full_completion, ("ChatBot currently only supports clients which only generate the message ""content in...
1
11
2
38
0
12
28
12
self,client
[]
None
{"Assign": 2, "Expr": 2}
1
17
1
["self.clear_chat_history"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called ChatBot.The function start at line 12 and ends at 28. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [12.0] and does not return any value. It declare 1.0 function, It has 1.0 function called insid...
unifyai_unify
ChatBot
public
0
0
client
def client(self) -> _Client:"""Get the client object.# noqa: DAR201.Returns:The client."""return self._client
1
2
1
12
0
31
38
31
self
[]
_Client
{"Expr": 1, "Return": 1}
0
8
0
[]
42
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3656182_jhuapl_boss_boss.django.boss.throttling_py.BossThrottle.error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673636_bandwidth_python_bandwidth.tests.test_client_py.ClientTests.test_call_with_caching_client...
The function (client) defined within the public class called ChatBot.The function start at line 31 and ends at 38. 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 42.0 functions calling this function which are ["_.conte...
unifyai_unify
ChatBot
public
0
0
set_client
def set_client(self, value: client) -> None:"""Set the client.# noqa: DAR101.Args:value: The unify client."""if isinstance(value, _Client):self._client = valueelse:raise Exception("Invalid client!")
2
5
2
32
0
40
50
40
self,value
[]
None
{"Assign": 1, "Expr": 1, "If": 1}
2
11
2
["isinstance", "Exception"]
0
[]
The function (set_client) defined within the public class called ChatBot.The function start at line 40 and ends at 50. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [40.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions cal...
unifyai_unify
ChatBot
public
0
0
_get_credits
def _get_credits(self) -> float:"""Retrieves the current credit balance from associated with the UNIFY account.Returns:Current credit balance."""return self._client.get_credit_balance()
1
2
1
16
0
52
59
52
self
[]
float
{"Expr": 1, "Return": 1}
1
8
1
["self._client.get_credit_balance"]
0
[]
The function (_get_credits) defined within the public class called ChatBot.The function start at line 52 and ends at 59. 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 ...
unifyai_unify
ChatBot
public
0
0
_update_message_history
def _update_message_history(self,role: str,content: Union[str, Dict[str, str]],) -> None:"""Updates message history with user input.Args:role: Either "assistant" or "user".content: User input message."""if isinstance(self._client, _UniClient):self._client.messages.append({"role": role,"content": content,},)elif isinsta...
6
26
3
132
0
61
93
61
self,role,content
[]
None
{"Assign": 1, "Expr": 3, "For": 1, "If": 3}
7
33
7
["isinstance", "self._client.messages.append", "isinstance", "isinstance", "content.items", "append", "Exception"]
0
[]
The function (_update_message_history) defined within the public class called ChatBot.The function start at line 61 and ends at 93. It contains 26 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [61.0] and does not return any value. It declares 7.0 functions, and It has 7.0...
unifyai_unify
ChatBot
public
0
0
clear_chat_history
def clear_chat_history(self) -> None:"""Clears the chat history."""if isinstance(self._client, _UniClient):self._client.set_messages([])elif isinstance(self._client, _MultiClient):self._client.set_messages({endpoint: [] for endpoint in self._client.endpoints},)else:raise Exception("client must either be a UniClient or ...
4
11
1
67
0
95
106
95
self
[]
None
{"Expr": 3, "If": 2}
5
12
5
["isinstance", "self._client.set_messages", "isinstance", "self._client.set_messages", "Exception"]
0
[]
The function (clear_chat_history) defined within the public class called ChatBot.The function start at line 95 and ends at 106. It contains 11 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 5.0 functions, and It has 5.0 functi...
unifyai_unify
ChatBot
public
0
0
_stream_response
def _stream_response(response) -> str:words = ""for chunk in response:words += chunksys.stdout.write(chunk)sys.stdout.flush()sys.stdout.write("\n")return words
2
8
1
43
0
109
116
109
response
[]
str
{"Assign": 1, "AugAssign": 1, "Expr": 3, "For": 1, "Return": 1}
3
8
3
["sys.stdout.write", "sys.stdout.flush", "sys.stdout.write"]
0
[]
The function (_stream_response) defined within the public class called ChatBot.The function start at line 109 and ends at 116. It contains 8 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 function...
unifyai_unify
ChatBot
public
0
0
_handle_uni_llm_response
def _handle_uni_llm_response(self,response: str,endpoint: Union[bool, str],) -> str:if endpoint:endpoint = self._client.endpoint if endpoint is True else endpointsys.stdout.write(endpoint + ":\n")if self._client.stream:words = self._stream_response(response)else:words = responsesys.stdout.write(words)sys.stdout.write("...
4
15
3
85
0
118
132
118
self,response,endpoint
[]
str
{"Assign": 3, "Expr": 3, "If": 2, "Return": 1}
4
15
4
["sys.stdout.write", "self._stream_response", "sys.stdout.write", "sys.stdout.write"]
0
[]
The function (_handle_uni_llm_response) defined within the public class called ChatBot.The function start at line 118 and ends at 132. It contains 15 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [118.0] and does not return any value. It declares 4.0 functions, and It has...
unifyai_unify
ChatBot
public
0
0
_handle_multi_llm_response
def _handle_multi_llm_response(self, response: Dict[str, str]) -> Dict[str, str]:for endpoint, resp in response.items():self._handle_uni_llm_response(resp, endpoint)return response
2
4
2
42
0
134
137
134
self,response
[]
Dict[str, str]
{"Expr": 1, "For": 1, "Return": 1}
2
4
2
["response.items", "self._handle_uni_llm_response"]
0
[]
The function (_handle_multi_llm_response) defined within the public class called ChatBot.The function start at line 134 and ends at 137. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [134.0] and does not return any value. It declares 2.0 functions, and It ha...
unifyai_unify
ChatBot
public
0
0
_handle_response
def _handle_response(self,response: Union[str, Dict[str, str]],show_endpoint: bool,) -> None:if isinstance(self._client, _UniClient):response = self._handle_uni_llm_response(response, show_endpoint)elif isinstance(self._client, _MultiClient):response = self._handle_multi_llm_response(response)else:raise Exception("clie...
3
17
3
85
0
139
155
139
self,response,show_endpoint
[]
None
{"Assign": 2, "Expr": 1, "If": 2}
6
17
6
["isinstance", "self._handle_uni_llm_response", "isinstance", "self._handle_multi_llm_response", "Exception", "self._update_message_history"]
0
[]
The function (_handle_response) defined within the public class called ChatBot.The function start at line 139 and ends at 155. It contains 17 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [139.0] and does not return any value. It declares 6.0 functions, and It has 6.0 fun...
unifyai_unify
ChatBot
public
0
0
run
def run(self, show_credits: bool = False, show_endpoint: bool = False) -> None:"""Starts the chat interaction loop.Args:show_credits: Whether to show credit consumption. Defaults to False.show_endpoint: Whether to show the endpoint used. Defaults to False."""if not self._paused:sys.stdout.write("Let's have a chat. (Ent...
7
34
3
185
0
157
197
157
self,show_credits,show_endpoint
[]
None
{"Assign": 7, "Expr": 9, "If": 5, "While": 1}
16
41
16
["sys.stdout.write", "self.clear_chat_history", "sys.stdout.write", "sys.stdout.write", "input", "self.clear_chat_history", "self._update_message_history", "self._get_credits", "isinstance", "asyncio.run", "self._client.generate", "self._client.generate", "self._handle_response", "self._get_credits", "sys.stdout.write"...
864
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.handlers.package_versions_py.PackageVersions.index", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy.test.benchmark_py.run_m...
The function (run) defined within the public class called ChatBot.The function start at line 157 and ends at 197. It contains 34 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [157.0] and does not return any value. It declares 16.0 functions, It has 16.0 functions called in...
unifyai_unify
public
public
0
0
with_logging.model_fn_w_logging
def model_fn_w_logging(*args,tags: Optional[List[str]] = None,timestamp: Optional[datetime.datetime] = None,log_query_body: bool = True,log_response_body: bool = True,**kwargs,):if len(args) != 0:raise Exception("When logging queries for a local model, all arguments to ""the model callable must be provided as keyword a...
5
33
6
139
0
44
76
44
null
[]
None
null
0
0
0
null
0
null
The function (with_logging.model_fn_w_logging) defined within the public class called public.The function start at line 44 and ends at 76. It contains 33 lines of code and it has a cyclomatic complexity of 5. It takes 6 parameters, represented as [44.0] and does not return any value..
unifyai_unify
public
public
0
0
with_logging
def with_logging(model_fn: Optional[callable] = None,*,endpoint: str,tags: Optional[List[str]] = None,timestamp: Optional[datetime.datetime] = None,log_query_body: bool = True,log_response_body: bool = True,api_key: Optional[str] = None,):"""Wrap a local model callable with logging of the queries.Args:model_fn: The mod...
1
17
7
86
8
9
78
9
model_fn,endpoint,tags,timestamp,log_query_body,log_response_body,api_key
['query_body', '_log_response_body', '_log_query_body', 'kw', '_tags', 'api_key', 'response', '_timestamp']
Returns
{"Assign": 9, "Expr": 2, "If": 4, "Return": 2}
7
70
7
["_validate_api_key", "len", "Exception", "model_fn", "isinstance", "dict", "unify.log_query"]
0
[]
The function (with_logging) defined within the public class called public.The function start at line 9 and ends at 78. It contains 17 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [9.0], and this function return a value. It declares 7.0 functions, and It has 7.0 functions...
unifyai_unify
public
public
0
0
set_client_direct_mode
def set_client_direct_mode(value: bool) -> None:"""Set the direct mode for the client.Args:value: The value to set the direct mode to."""_Client._set_direct_mode(value)
1
2
1
16
0
31
38
31
value
[]
None
{"Expr": 2}
1
8
1
["_Client._set_direct_mode"]
0
[]
The function (set_client_direct_mode) defined within the public class called public.The function start at line 31 and ends at 38. 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 functio...
unifyai_unify
_Client
protected
1
1
__init__
def __init__(self,*,system_message: Optional[str],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: ...
1
144
38
799
0
46
201
46
self,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_respon...
[]
None
{"Assign": 38, "Expr": 35}
37
156
37
["_validate_api_key", "_validate_openai_api_key", "self.set_system_message", "self.set_messages", "self.set_frequency_penalty", "self.set_logit_bias", "self.set_logprobs", "self.set_top_logprobs", "self.set_max_completion_tokens", "self.set_n", "self.set_presence_penalty", "self.set_response_format", "self.set_seed", "...
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 _Client, implement an interface, and it inherit another class.The function start at line 46 and ends at 201. It contains 144 lines of code and it has a cyclomatic complexity of 1. It takes 38 parameters, represented as [46.0] and does not return any valu...
unifyai_unify
_Client
protected
1
1
_set_direct_mode
def _set_direct_mode(cls, value: bool) -> None:cls._DIRECT_OPENAI_MODE = value
1
2
2
16
0
204
205
204
cls,value
[]
None
{"Assign": 1}
0
2
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.universal_api.clients.base_py.set_client_direct_mode"]
The function (_set_direct_mode) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 204 and ends at 205. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [204.0] and does not return a...
unifyai_unify
_Client
protected
1
1
_is_direct_mode_available
def _is_direct_mode_available(self) -> bool:return self._openai_api_key is not None and self._DIRECT_OPENAI_MODE
2
2
1
18
0
207
208
207
self
[]
bool
{"Return": 1}
0
2
0
[]
0
[]
The function (_is_direct_mode_available) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 207 and ends at 208. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not ret...
unifyai_unify
_Client
protected
1
1
system_message
def system_message(self) -> Optional[str]:"""Get the default system message, if set.Returns:The default system message."""return self._system_message
1
2
1
15
0
214
221
214
self
[]
Optional[str]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (system_message) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 214 and ends at 221. 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
messages
def messages(self,) -> Optional[Union[List[ChatCompletionMessageParam],Dict[str, List[ChatCompletionMessageParam]],]
1
7
1
26
0
224
230
224
self
[]
Optional[Union[List[ChatCompletionMessageParam], Dict[str, List[ChatCompletionMessageParam]]]]
{"Expr": 1, "Return": 1}
0
15
0
[]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94529522_hyperledger_aries_mobile_test_harness.aries_mobile_tests.pageobjects.bc_wallet.issuer_get_authcode_interface.bc_vp_issuer_get_authcode_interface_gapi_py.BCVPIssuerGetAuthCodeInterface.get_auth_code", "_.content.gdrive.MyDrive.Phd_Thesi...
The function (messages) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 224 and ends at 230. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It...
unifyai_unify
_Client
protected
1
1
frequency_penalty
def frequency_penalty(self) -> Optional[float]:"""Get the default frequency penalty, if set.Returns:The default frequency penalty."""return self._frequency_penalty
1
2
1
15
0
241
248
241
self
[]
Optional[float]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (frequency_penalty) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 241 and ends at 248. 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
logit_bias
def logit_bias(self) -> Optional[Dict[str, int]]:"""Get the default logit bias, if set.Returns:The default logit bias."""return self._logit_bias
1
2
1
20
0
251
258
251
self
[]
Optional[Dict[str, int]]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (logit_bias) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 251 and ends at 258. 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
logprobs
def logprobs(self) -> Optional[bool]:"""Get the default logprobs, if set.Returns:The default logprobs."""return self._logprobs
1
2
1
15
0
261
268
261
self
[]
Optional[bool]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (logprobs) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 261 and ends at 268. 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
top_logprobs
def top_logprobs(self) -> Optional[int]:"""Get the default top logprobs, if set.Returns:The default top logprobs."""return self._top_logprobs
1
2
1
15
0
271
278
271
self
[]
Optional[int]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (top_logprobs) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 271 and ends at 278. 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
max_completion_tokens
def max_completion_tokens(self) -> Optional[int]:"""Get the default max tokens, if set.Returns:The default max tokens."""return self._max_completion_tokens
1
2
1
15
0
281
288
281
self
[]
Optional[int]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (max_completion_tokens) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 281 and ends at 288. 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
n
def n(self) -> Optional[int]:"""Get the default n, if set.Returns:The default n value."""return self._n
1
2
1
15
0
291
298
291
self
[]
Optional[int]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (n) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 291 and ends at 298. 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
presence_penalty
def presence_penalty(self) -> Optional[float]:"""Get the default presence penalty, if set.Returns:The default presence penalty."""return self._presence_penalty
1
2
1
15
0
301
308
301
self
[]
Optional[float]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (presence_penalty) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 301 and ends at 308. 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
response_format
def response_format(self) -> Optional[Union[Type[BaseModel], Dict[str, str]]]:"""Get the default response format, if set.Returns:The default response format."""return self._response_format
1
2
1
28
0
311
318
311
self
[]
Optional[Union[Type[BaseModel], Dict[str, str]]]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (response_format) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 311 and ends at 318. 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 va...
unifyai_unify
_Client
protected
1
1
seed
def seed(self) -> Optional[int]:"""Get the default seed value, if set.Returns:The default seed value."""return self._seed
1
2
1
15
0
321
328
321
self
[]
Optional[int]
{"Expr": 1, "Return": 1}
0
8
0
[]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635751_kinecosystem_blockchain_ops.tasks_py.derive_root_account_seed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3635751_kinecosystem_blockchain_ops.tests.python.helpers_py.derive_root_account", "_.content.gdri...
The function (seed) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 321 and ends at 328. 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...
unifyai_unify
_Client
protected
1
1
stop
def stop(self) -> Union[Optional[str], List[str]]:"""Get the default stop value, if set.Returns:The default stop value."""return self._stop
1
2
1
23
0
331
338
331
self
[]
Union[Optional[str], List[str]]
{"Expr": 1, "Return": 1}
0
8
0
[]
173
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.repl_py.Context.start_entity_subscribers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.reactor_py.get_exitcode_reactor", "_.content.gdrive.MyDrive.Phd_Th...
The function (stop) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 331 and ends at 338. 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...
unifyai_unify
_Client
protected
1
1
stream
def stream(self) -> Optional[bool]:"""Get the default stream bool, if set.Returns:The default stream bool."""return self._stream
1
2
1
15
0
341
348
341
self
[]
Optional[bool]
{"Expr": 1, "Return": 1}
0
8
0
[]
15
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3981967_kiwigrid_k8s_sidecar.src.resources_py._watch_resource_iterator", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.src.gluonts.torch.model.d_linear.estimator_py.DLinearEstimator.create_t...
The function (stream) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 341 and ends at 348. 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 h...
unifyai_unify
_Client
protected
1
1
stream_options
def stream_options(self) -> Optional[ChatCompletionStreamOptionsParam]:"""Get the default stream options, if set.Returns:The default stream options."""return self._stream_options
1
2
1
15
0
351
358
351
self
[]
Optional[ChatCompletionStreamOptionsParam]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (stream_options) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 351 and ends at 358. 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
temperature
def temperature(self) -> Optional[float]:"""Get the default temperature, if set.Returns:The default temperature."""return self._temperature
1
2
1
15
0
361
368
361
self
[]
Optional[float]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (temperature) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 361 and ends at 368. 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
top_p
def top_p(self) -> Optional[float]:"""Get the default top p value, if set.Returns:The default top p value."""return self._top_p
1
2
1
15
0
371
378
371
self
[]
Optional[float]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (top_p) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 371 and ends at 378. 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
service_tier
def service_tier(self) -> Optional[str]:"""Get the default service tier, if set.Returns:The default service tier."""return self._service_tier
1
2
1
15
0
381
388
381
self
[]
Optional[str]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (service_tier) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 381 and ends at 388. 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
tools
def tools(self) -> Optional[Iterable[ChatCompletionToolParam]]:"""Get the default tools, if set.Returns:The default tools."""return self._tools
1
2
1
18
0
391
398
391
self
[]
Optional[Iterable[ChatCompletionToolParam]]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (tools) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 391 and ends at 398. 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
tool_choice
def tool_choice(self) -> Optional[ChatCompletionToolChoiceOptionParam]:"""Get the default tool choice, if set.Returns:The default tool choice."""return self._tool_choice
1
2
1
15
0
401
408
401
self
[]
Optional[ChatCompletionToolChoiceOptionParam]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (tool_choice) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 401 and ends at 408. 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
parallel_tool_calls
def parallel_tool_calls(self) -> Optional[bool]:"""Get the default parallel tool calls bool, if set.Returns:The default parallel tool calls bool."""return self._parallel_tool_calls
1
2
1
15
0
411
418
411
self
[]
Optional[bool]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (parallel_tool_calls) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 411 and ends at 418. 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
reasoning_effort
def reasoning_effort(self) -> Optional[str]:"""Get the default reasoning, if set.Returns:The default reasoning."""return self._reasoning_effort
1
2
1
15
0
421
428
421
self
[]
Optional[str]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (reasoning_effort) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 421 and ends at 428. 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
use_custom_keys
def use_custom_keys(self) -> bool:"""Get the default use custom keys bool, if set.Returns:The default use custom keys bool."""return self._use_custom_keys
1
2
1
12
0
431
438
431
self
[]
bool
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (use_custom_keys) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 431 and ends at 438. 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 va...
unifyai_unify
_Client
protected
1
1
tags
def tags(self) -> Optional[List[str]]:"""Get the default tags, if set.Returns:The default tags."""return self._tags
1
2
1
18
0
441
448
441
self
[]
Optional[List[str]]
{"Expr": 1, "Return": 1}
0
8
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3522287_schacon_hg_git.hggit.hgrepo_py.generate_repo_subclass"]
The function (tags) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 441 and ends at 448. 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...
unifyai_unify
_Client
protected
1
1
drop_params
def drop_params(self) -> Optional[bool]:"""Get the default drop_params bool, if set.Returns:The default drop_params bool."""return self._drop_params
1
2
1
15
0
451
458
451
self
[]
Optional[bool]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (drop_params) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 451 and ends at 458. 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
region
def region(self) -> Optional[str]:"""Get the default region, if set.Returns:The default region."""return self._region
1
2
1
15
0
461
468
461
self
[]
Optional[str]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (region) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 461 and ends at 468. 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
log_query_body
def log_query_body(self) -> Optional[bool]:"""Get the default log query body bool, if set.Returns:The default log query body bool."""return self._log_query_body
1
2
1
15
0
471
478
471
self
[]
Optional[bool]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (log_query_body) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 471 and ends at 478. 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
log_response_body
def log_response_body(self) -> Optional[bool]:"""Get the default log response body bool, if set.Returns:The default log response body bool."""return self._log_response_body
1
2
1
15
0
481
488
481
self
[]
Optional[bool]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (log_response_body) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 481 and ends at 488. 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
stateful
def stateful(self) -> bool:"""Get the default stateful bool, if set.Returns:The default stateful bool."""return self._stateful
1
2
1
12
0
491
498
491
self
[]
bool
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (stateful) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 491 and ends at 498. 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
return_full_completion
def return_full_completion(self) -> bool:"""Get the default return full completion bool.Returns:The default return full completion bool."""return self._return_full_completion
1
2
1
12
0
501
508
501
self
[]
bool
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (return_full_completion) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 501 and ends at 508. 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
traced
def traced(self) -> bool:"""Get the default traced bool.Returns:The default traced bool."""return self._traced
1
2
1
12
0
511
518
511
self
[]
bool
{"Expr": 1, "Return": 1}
0
8
0
[]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py._trace_class", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.unify.logging.logs_py._trace_instance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_C...
The function (traced) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 511 and ends at 518. 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 h...
unifyai_unify
_Client
protected
1
1
cache
def cache(self) -> bool:"""Get default the cache bool.Returns:The default cache bool."""return self._cache
1
2
1
12
0
521
528
521
self
[]
bool
{"Expr": 1, "Return": 1}
0
8
0
[]
23
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3656182_jhuapl_boss_boss.django.boss.authentication_py.TokenAuthentication.user_exist", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3982575_tools_life_taskwiki.taskwiki.main_py.CallbackSplitMixin.execute", "_.cont...
The function (cache) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 521 and ends at 528. 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 ha...
unifyai_unify
_Client
protected
1
1
extra_headers
def extra_headers(self) -> Optional[Headers]:"""Get the default extra headers, if set.Returns:The default extra headers."""return self._extra_headers
1
2
1
15
0
531
538
531
self
[]
Optional[Headers]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (extra_headers) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 531 and ends at 538. 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
extra_query
def extra_query(self) -> Optional[Query]:"""Get the default extra query, if set.Returns:The default extra query."""return self._extra_query
1
2
1
15
0
541
548
541
self
[]
Optional[Query]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (extra_query) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 541 and ends at 548. 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
extra_body
def extra_body(self) -> Optional[Mapping[str, str]]:"""Get the default extra body, if set.Returns:The default extra body."""return self._extra_body
1
2
1
20
0
551
558
551
self
[]
Optional[Mapping[str, str]]
{"Expr": 1, "Return": 1}
0
8
0
[]
0
[]
The function (extra_body) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 551 and ends at 558. 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
set_system_message
def set_system_message(self, value: str) -> Self:"""Set the default system message.# noqa: DAR101.Args:value: The default system message.Returns:This client, useful for chaining inplace calls."""self._system_message = valueif self._messages is None or self._messages == []:self._messages = [{"role": "system","content": ...
4
22
2
103
0
563
593
563
self,value
[]
Self
{"Assign": 4, "Expr": 1, "If": 2, "Return": 1}
0
31
0
[]
0
[]
The function (set_system_message) defined within the protected class called _Client, implement an interface, and it inherit another class.The function start at line 563 and ends at 593. It contains 22 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [563.0] and does not retur...