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
anaconda_anaconda-client
public
public
0
0
tarfile_match_and_extract
def tarfile_match_and_extract(tar_file, pat):item_name = next((name for name in tar_file.getnames() if fnmatch(name, pat)), None)if not item_name:return Nonefile_obj = tar_file.extractfile(item_name)return file_obj.read().decode(errors='ignore')
4
6
2
59
2
27
33
27
tar_file,pat
['file_obj', 'item_name']
Returns
{"Assign": 2, "If": 1, "Return": 2}
6
7
6
["next", "tar_file.getnames", "fnmatch", "tar_file.extractfile", "decode", "file_obj.read"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.inspect_package.uitls_py.extract_first"]
The function (tarfile_match_and_extract) defined within the public class called public.The function start at line 27 and ends at 33. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [27.0], and this function return a value. It declares 6.0 functions, It has 6.0 ...
anaconda_anaconda-client
public
public
0
0
safe
def safe(version):return version.replace('\n', '-').replace('\\', '-').replace('#', '-')
1
2
1
28
0
36
37
36
version
[]
Returns
{"Return": 1}
3
2
3
["replace", "replace", "version.replace"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3714737_divio_aldryn_forms.aldryn_forms.contrib.email_notifications.cms_plugins_py.ExistingEmailNotificationInline.text_variables"]
The function (safe) defined within the public class called public.The function start at line 36 and ends at 37. 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 declares 3.0 functions, It has 3.0 functions called inside ...
anaconda_anaconda-client
public
public
0
0
get_key
def get_key(data, key, *d):value = data.get(key, *d)if value == 'UNKNOWN':if not d:raise KeyError(key)value = d[0]return value
3
7
3
43
1
40
46
40
data,key,*d
['value']
Returns
{"Assign": 2, "If": 2, "Return": 1}
2
7
2
["data.get", "KeyError"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.ext.concurrency_py.proxy_factory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.alibaba.src.airflow.providers.alibaba.cloud.hooks.oss_py...
The function (get_key) defined within the public class called public.The function start at line 40 and ends at 46. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [40.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called i...
anaconda_anaconda-client
public
public
0
0
pop_key
def pop_key(data, key, *d):value = data.pop(key, *d)if value == 'UNKNOWN':if not d:raise KeyError(key)value = d[0]return value
3
7
3
43
1
49
55
49
data,key,*d
['value']
Returns
{"Assign": 2, "If": 2, "Return": 1}
2
7
2
["data.pop", "KeyError"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.inspect_package.pypi_py.format_sdist_header_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.inspect_package....
The function (pop_key) defined within the public class called public.The function start at line 49 and ends at 55. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [49.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called i...
anaconda_anaconda-client
ChannelsMixin
public
0
0
list_channels
def list_channels(self, owner):"""List the channels for owner.If owner is none, the currently logged in user is used."""url = '%s/channels/%s' % (self.domain, owner)res = self.session.get(url)self._check_response(res, [200])return res.json()
1
5
2
45
0
11
21
11
self,owner
[]
Returns
{"Assign": 2, "Expr": 2, "Return": 1}
3
11
3
["self.session.get", "self._check_response", "res.json"]
0
[]
The function (list_channels) defined within the public class called ChannelsMixin.The function start at line 11 and ends at 21. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [11.0], and this function return a value. It declares 3.0 functions, and It has 3.0 ...
anaconda_anaconda-client
ChannelsMixin
public
0
0
show_channel
def show_channel(self, channel, owner):"""List the channels for owner.If owner is none, the currently logged in user is used."""url = '%s/channels/%s/%s' % (self.domain, owner, channel)res = self.session.get(url)self._check_response(res, [200])return res.json()
1
5
3
49
0
23
33
23
self,channel,owner
[]
Returns
{"Assign": 2, "Expr": 2, "Return": 1}
3
11
3
["self.session.get", "self._check_response", "res.json"]
0
[]
The function (show_channel) defined within the public class called ChannelsMixin.The function start at line 23 and ends at 33. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [23.0], and this function return a value. It declares 3.0 functions, and It has 3.0 f...
anaconda_anaconda-client
ChannelsMixin
public
0
0
add_channel
def add_channel(self, channel, owner, package=None, version=None, filename=None):"""Add a channel to the specified files:param channel: channel to add:param owner: The user to add the channel to (all files of all packages for this user):param package: The package to add the channel to (all files in this package):param ...
1
5
6
81
0
35
49
35
self,channel,owner,package,version,filename
[]
None
{"Assign": 3, "Expr": 2}
3
15
3
["jencode", "self.session.post", "self._check_response"]
0
[]
The function (add_channel) defined within the public class called ChannelsMixin.The function start at line 35 and ends at 49. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [35.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functi...
anaconda_anaconda-client
ChannelsMixin
public
0
0
remove_channel
def remove_channel(self, channel, owner, package=None, version=None, filename=None):"""Remove a channel from the specified files.:param channel: channel to remove:param owner: The user to remove the channel from (all files of all packages for this user):param package: The package to remove the channel from (all files i...
1
5
6
81
0
51
65
51
self,channel,owner,package,version,filename
[]
None
{"Assign": 3, "Expr": 2}
3
15
3
["jencode", "self.session.delete", "self._check_response"]
0
[]
The function (remove_channel) defined within the public class called ChannelsMixin.The function start at line 51 and ends at 65. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [51.0] and does not return any value. It declares 3.0 functions, and It has 3.0 fun...
anaconda_anaconda-client
ChannelsMixin
public
0
0
copy_channel
def copy_channel(self, channel, owner, to_channel):"""Tag all files in channel <channel> also as channel <to_channel>.:param channel: channel to copy:param owner: Perform this operation on all packages of this user:param to_channel: Destination name (may be a channel that already exists)"""url = '%s/channels/%s/%s/copy...
1
4
4
47
0
67
77
67
self,channel,owner,to_channel
[]
None
{"Assign": 2, "Expr": 2}
2
11
2
["self.session.post", "self._check_response"]
0
[]
The function (copy_channel) defined within the public class called ChannelsMixin.The function start at line 67 and ends at 77. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [67.0] and does not return any value. It declares 2.0 functions, and It has 2.0 funct...
anaconda_anaconda-client
ChannelsMixin
public
0
0
lock_channel
def lock_channel(self, channel, owner):"""Tag all files in channel <channel> also as channel <to_channel>.:param channel: channel to copy:param owner: Perform this operation on all packages of this user:param to_channel: Destination name (may be a channel that already exists)"""url = '%s/channels/%s/%s/lock' % (self.do...
1
4
3
43
0
79
89
79
self,channel,owner
[]
None
{"Assign": 2, "Expr": 2}
2
11
2
["self.session.post", "self._check_response"]
0
[]
The function (lock_channel) defined within the public class called ChannelsMixin.The function start at line 79 and ends at 89. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [79.0] and does not return any value. It declares 2.0 functions, and It has 2.0 funct...
anaconda_anaconda-client
ChannelsMixin
public
0
0
unlock_channel
def unlock_channel(self, channel, owner):"""Tag all files in channel <channel> also as channel <to_channel>.:param channel: channel to copy:param owner: Perform this operation on all packages of this user:param to_channel: Destination name (may be a channel that already exists)"""url = '%s/channels/%s/%s/lock' % (self....
1
4
3
43
0
91
101
91
self,channel,owner
[]
None
{"Assign": 2, "Expr": 2}
2
11
2
["self.session.delete", "self._check_response"]
0
[]
The function (unlock_channel) defined within the public class called ChannelsMixin.The function start at line 91 and ends at 101. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [91.0] and does not return any value. It declares 2.0 functions, and It has 2.0 fu...
anaconda_anaconda-client
OrgMixin
public
0
0
user_orgs
def user_orgs(self, username=None):if username:url = '%s/users/%s/orgs' % (self.domain, username)else:url = '%s/user/orgs' % (self.domain)res = self.session.get(url)self._check_response(res)return res.json()
2
8
2
56
0
5
14
5
self,username
[]
Returns
{"Assign": 3, "Expr": 1, "If": 1, "Return": 1}
3
10
3
["self.session.get", "self._check_response", "res.json"]
0
[]
The function (user_orgs) defined within the public class called OrgMixin.The function start at line 5 and ends at 14. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [5.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions c...
anaconda_anaconda-client
OrgMixin
public
0
0
groups
def groups(self, owner=None):if owner:url = '%s/groups/%s' % (self.domain, owner)else:url = '%s/groups' % (self.domain,)res = self.session.get(url)self._check_response(res)return res.json()
2
8
2
57
0
16
25
16
self,owner
[]
Returns
{"Assign": 3, "Expr": 1, "If": 1, "Return": 1}
3
10
3
["self.session.get", "self._check_response", "res.json"]
52
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3518760_makerbot_pyserial.serial.tools.list_ports_vid_pid_osx_posix_py.portdict_from_port", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3533652_prezi_repoguard.core.git_repo_updater_py.GitRepoUpdater.fetch_repo_li...
The function (groups) defined within the public class called OrgMixin.The function start at line 16 and ends at 25. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [16.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called ...
anaconda_anaconda-client
OrgMixin
public
0
0
group
def group(self, owner, group_name):url = '%s/group/%s/%s' % (self.domain, owner, group_name)res = self.session.get(url)self._check_response(res)return res.json()
1
5
3
44
0
27
31
27
self,owner,group_name
[]
Returns
{"Assign": 2, "Expr": 1, "Return": 1}
3
5
3
["self.session.get", "self._check_response", "res.json"]
182
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.group", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.util_py.TrackSet.update_from_trackspec", "_.content.gdrive.MyDr...
The function (group) defined within the public class called OrgMixin.The function start at line 27 and ends at 31. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [27.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called i...
anaconda_anaconda-client
OrgMixin
public
0
0
group_members
def group_members(self, org, name):url = '%s/group/%s/%s/members' % (self.domain, org, name)res = self.session.get(url)self._check_response(res)return res.json()
1
5
3
44
0
33
38
33
self,org,name
[]
Returns
{"Assign": 2, "Expr": 1, "Return": 1}
3
6
3
["self.session.get", "self._check_response", "res.json"]
0
[]
The function (group_members) defined within the public class called OrgMixin.The function start at line 33 and ends at 38. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [33.0], and this function return a value. It declares 3.0 functions, and It has 3.0 funct...
anaconda_anaconda-client
OrgMixin
public
0
0
is_group_member
def is_group_member(self, org, name, member):url = '%s/group/%s/%s/members/%s' % (self.domain, org, name, member)res = self.session.get(url)self._check_response(res, [204, 404])return res.status_code == 204
1
5
4
54
0
40
44
40
self,org,name,member
[]
Returns
{"Assign": 2, "Expr": 1, "Return": 1}
2
5
2
["self.session.get", "self._check_response"]
0
[]
The function (is_group_member) defined within the public class called OrgMixin.The function start at line 40 and ends at 44. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [40.0], and this function return a value. It declares 2.0 functions, and It has 2.0 fun...
anaconda_anaconda-client
OrgMixin
public
0
0
add_group_member
def add_group_member(self, org, name, member):url = '%s/group/%s/%s/members/%s' % (self.domain, org, name, member)res = self.session.put(url)self._check_response(res, [204])
1
4
4
46
0
46
49
46
self,org,name,member
[]
None
{"Assign": 2, "Expr": 1}
2
4
2
["self.session.put", "self._check_response"]
0
[]
The function (add_group_member) defined within the public class called OrgMixin.The function start at line 46 and ends at 49. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [46.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functi...
anaconda_anaconda-client
OrgMixin
public
0
0
remove_group_member
def remove_group_member(self, org, name, member):url = '%s/group/%s/%s/members/%s' % (self.domain, org, name, member)res = self.session.delete(url)self._check_response(res, [204])
1
4
4
46
0
51
54
51
self,org,name,member
[]
None
{"Assign": 2, "Expr": 1}
2
4
2
["self.session.delete", "self._check_response"]
0
[]
The function (remove_group_member) defined within the public class called OrgMixin.The function start at line 51 and ends at 54. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [51.0] and does not return any value. It declares 2.0 functions, and It has 2.0 fun...
anaconda_anaconda-client
OrgMixin
public
0
0
remove_group_package
def remove_group_package(self, org, name, package):url = '%s/group/%s/%s/packages/%s' % (self.domain, org, name, package)res = self.session.delete(url)self._check_response(res, [204])
1
4
4
46
0
56
59
56
self,org,name,package
[]
None
{"Assign": 2, "Expr": 1}
2
4
2
["self.session.delete", "self._check_response"]
0
[]
The function (remove_group_package) defined within the public class called OrgMixin.The function start at line 56 and ends at 59. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [56.0] and does not return any value. It declares 2.0 functions, and It has 2.0 fu...
anaconda_anaconda-client
OrgMixin
public
0
0
group_packages
def group_packages(self, org, name):url = '%s/group/%s/%s/packages' % (self.domain, org, name)res = self.session.get(url)self._check_response(res, [200])return res.json()
1
5
3
48
0
61
65
61
self,org,name
[]
Returns
{"Assign": 2, "Expr": 1, "Return": 1}
3
5
3
["self.session.get", "self._check_response", "res.json"]
0
[]
The function (group_packages) defined within the public class called OrgMixin.The function start at line 61 and ends at 65. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [61.0], and this function return a value. It declares 3.0 functions, and It has 3.0 func...
anaconda_anaconda-client
OrgMixin
public
0
0
add_group_package
def add_group_package(self, org, name, package):url = '%s/group/%s/%s/packages/%s' % (self.domain, org, name, package)res = self.session.put(url)self._check_response(res, [204])
1
4
4
46
0
67
70
67
self,org,name,package
[]
None
{"Assign": 2, "Expr": 1}
2
4
2
["self.session.put", "self._check_response"]
0
[]
The function (add_group_package) defined within the public class called OrgMixin.The function start at line 67 and ends at 70. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [67.0] and does not return any value. It declares 2.0 functions, and It has 2.0 funct...
anaconda_anaconda-client
OrgMixin
public
0
0
add_group
def add_group(self, org, name, perms='read'):url = '%s/group/%s/%s' % (self.domain, org, name)payload = {'perms': perms}data, headers = jencode(payload)res = self.session.post(url, data=data, headers=headers)self._check_response(res, [204])
1
6
4
69
0
72
79
72
self,org,name,perms
[]
None
{"Assign": 4, "Expr": 1}
3
8
3
["jencode", "self.session.post", "self._check_response"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3691476_jasongross_coq_tools.coq_tools.argparse_py2_py.ArgumentParser.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3695861_mumble_voip_mumble_releng.lib.argparse.__init___py.ArgumentParser.__init__", "_....
The function (add_group) defined within the public class called OrgMixin.The function start at line 72 and ends at 79. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [72.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called i...
anaconda_anaconda-client
PackageMixin
public
0
0
copy
def copy(self,owner,package,version,basename=None,to_owner=None,from_label='main',to_label='main',replace=False,update=False,):copy_path = '/'.join((owner, package, version, basename or ''))url = '{}/copy/package/{}'.format(self.domain, copy_path)payload = {'to_owner': to_owner, 'from_channel': from_label, 'to_channel'...
5
29
10
177
0
12
44
12
self,owner,package,version,basename,to_owner,from_label,to_label,replace,update
[]
Returns
{"Assign": 7, "Expr": 1, "If": 2, "Return": 1, "Try": 1}
9
33
9
["join", "format", "jencode", "self.session.put", "self.session.patch", "self.session.post", "self._check_response", "Conflict", "res.json"]
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 public class called PackageMixin.The function start at line 12 and ends at 44. It contains 29 lines of code and it has a cyclomatic complexity of 5. It takes 10 parameters, represented as [12.0], and this function return a value. It declares 9.0 functions, It has 9.0 functions cal...
anaconda_anaconda-client
public
public
0
0
_get_entry_points
def _get_entry_points(group: str) -> typing.List[metadata.EntryPoint]:# The API was changed in Python 3.10, see https://docs.python.org/3/library/importlib.metadata.html#entry-pointsif sys.version_info.major == 3 and sys.version_info.minor < 10:return metadata.entry_points().get(group, [])return metadata.entry_points()...
3
4
1
60
0
29
33
29
group
[]
typing.List[metadata.EntryPoint]
{"If": 1, "Return": 2}
4
5
4
["get", "metadata.entry_points", "select", "metadata.entry_points"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._load_main_plugi...
The function (_get_entry_points) defined within the public class called public.The function start at line 29 and ends at 33. 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 4.0 functions, It has 4.0 functions calle...
anaconda_anaconda-client
public
public
0
0
file_or_token
def file_or_token(value: str) -> str:"""Retrieve a token from input.If :code:`value` is a path to a valid file - content of this file will be returned. Otherwise - value itself isreturned."""if os.path.isfile(value):stream: typing.TextIOwith open(value, 'rt', encoding='utf8') as stream:result: str = stream.read(8193)if...
4
11
1
86
0
36
56
36
value
[]
str
{"AnnAssign": 2, "Expr": 1, "If": 3, "Return": 2, "With": 1}
9
21
9
["os.path.isfile", "open", "stream.read", "len", "ValueError", "result.strip", "isdisjoint", "set", "ValueError"]
0
[]
The function (file_or_token) defined within the public class called public.The function start at line 36 and ends at 56. 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 9.0 functions, and It has 9.0 functions cal...
anaconda_anaconda-client
public
public
0
0
_json_action
def _json_action(action):a_data = dict(action._get_kwargs())if a_data.get('help'):a_data['help'] = a_data['help'] % a_dataif isinstance(action, argparse._SubParsersAction):a_data.pop('choices', None)choices = {}for choice in action._get_subactions():choices[choice.dest] = choice.helpa_data['choices'] = choicesreg = {va...
7
17
1
172
3
59
80
59
action
['a_data', 'reg', 'choices']
Returns
{"Assign": 8, "Expr": 3, "For": 1, "If": 3, "Return": 1}
14
22
14
["dict", "action._get_kwargs", "a_data.get", "isinstance", "a_data.pop", "action._get_subactions", "items", "reg.get", "type", "type", "a_data.get", "action.dest.upper", "a_data.pop", "a_data.pop"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._json_group"]
The function (_json_action) defined within the public class called public.The function start at line 59 and ends at 80. It contains 17 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters, and this function return a value. It declares 14.0 functions, It has 14.0 functions cal...
anaconda_anaconda-client
public
public
0
0
_json_group
def _json_group(group):grp_data = {'description': group.description,'title': group.title,'actions': [_json_action(action) for action in group._group_actions if action.help != argparse.SUPPRESS],}if group._action_groups:grp_data['groups'] = [_json_group(group) for group in group._action_groups]return grp_data
5
9
1
68
1
83
93
83
group
['grp_data']
Returns
{"Assign": 2, "If": 1, "Return": 1}
2
11
2
["_json_action", "_json_group"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._JSONHelp.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._json_group"]
The function (_json_group) defined within the public class called public.The function start at line 83 and ends at 93. It contains 9 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called ...
anaconda_anaconda-client
_JSONHelp
protected
0
1
__init__
def __init__(self, option_strings, dest, nargs=0, help=argparse.SUPPRESS, **kwargs):argparse.Action.__init__(self, option_strings, dest, nargs=nargs, help=help, **kwargs)
1
2
6
45
0
97
98
97
self,option_strings,dest,nargs,help,**kwargs
[]
None
{"Expr": 1}
1
2
1
["argparse.Action.__init__"]
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 _JSONHelp, that inherit another class.The function start at line 97 and ends at 98. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [97.0] and does not return any value. It declare 1.0 function, ...
anaconda_anaconda-client
_JSONHelp
protected
0
1
__call__
def __call__(self, parser, namespace, values, option_string=None):self.nargs = 0docs = {'prog': parser.prog,'usage': parser.format_usage()[7:],'description': parser.description,'epilog': parser.epilog,}docs['groups'] = []for group in parser._action_groups:if group._group_actions:docs['groups'].append(_json_group(group)...
3
14
5
104
0
100
115
100
self,parser,namespace,values,option_string
[]
None
{"Assign": 3, "Expr": 2, "For": 1, "If": 1}
5
16
5
["parser.format_usage", "append", "_json_group", "json.dump", "SystemExit"]
56
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content...
The function (__call__) defined within the protected class called _JSONHelp, that inherit another class.The function start at line 100 and ends at 115. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 5 parameters, represented as [100.0] and does not return any value. It declares 5.0 funct...
anaconda_anaconda-client
public
public
0
0
_get_sub_command_names
def _get_sub_command_names(module):return [name for _, name, _ in pkgutil.iter_modules([os.path.dirname(module.__file__)]) if not name.startswith('_')]
3
2
1
41
0
118
119
118
module
[]
Returns
{"Return": 1}
3
2
3
["pkgutil.iter_modules", "os.path.dirname", "name.startswith"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._get_sub_commands"]
The function (_get_sub_command_names) defined within the public class called public.The function start at line 118 and ends at 119. It contains 2 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 func...
anaconda_anaconda-client
public
public
0
0
_get_sub_commands
def _get_sub_commands(module):names = _get_sub_command_names(module)this_module = __import__(module.__package__ or module.__name__, fromlist=names)for name in names:yield getattr(this_module, name)
3
5
1
39
2
122
127
122
module
['this_module', 'names']
None
{"Assign": 2, "Expr": 1, "For": 1}
3
6
3
["_get_sub_command_names", "__import__", "getattr"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"]
The function (_get_sub_commands) defined within the public class called public.The function start at line 122 and ends at 127. It contains 5 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 3.0 functions, It has 3.0 functions cal...
anaconda_anaconda-client
public
public
0
0
_add_subparser_modules
def _add_subparser_modules(parser, module=None, entry_point_name=None):subparsers = parser.add_subparsers(title='Commands', metavar='')if module:# LOAD sub parsers from modulefor command_module in _get_sub_commands(module):command_module.add_parser(subparsers)if entry_point_name:# LOAD sub parsers from pyproject.toml e...
6
12
3
97
2
130
144
130
parser,module,entry_point_name
['add_parser', 'subparsers']
None
{"Assign": 2, "Expr": 4, "For": 3, "If": 2}
9
15
9
["parser.add_subparsers", "_get_sub_commands", "command_module.add_parser", "_get_entry_points", "entry_point.load", "add_parser", "subparsers.choices.items", "sub_parser.set_defaults", "sub_parser.add_argument"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py.binstar_main"]
The function (_add_subparser_modules) defined within the public class called public.The function start at line 130 and ends at 144. It contains 12 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [130.0] and does not return any value. It declares 9.0 functions, It has 9.0 fun...
anaconda_anaconda-client
public
public
0
0
binstar_main
def binstar_main(sub_command_module: types.ModuleType,args: typing.Optional[typing.Sequence[str]] = None,exit_: bool = True,) -> int:"""Run `anaconda-client` cli utility."""parser: argparse.ArgumentParser = argparse.ArgumentParser(description=__doc__,formatter_class=argparse.RawDescriptionHelpFormatter,)group = parser....
8
78
3
357
1
147
232
147
sub_command_module,args,exit_
['group']
int
{"AnnAssign": 2, "Assign": 2, "Expr": 14, "If": 4, "Return": 4, "Try": 2}
22
86
22
["argparse.ArgumentParser", "parser.add_argument_group", "group.add_argument", "group.add_argument", "group.add_argument", "group.add_argument", "parser.add_argument_group", "group.add_argument", "group.add_argument", "parser.add_argument", "_add_subparser_modules", "parser.parse_args", "logging_utils.setup_logging", "...
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.plugins_py._subcommand", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py.main"]
The function (binstar_main) defined within the public class called public.The function start at line 147 and ends at 232. It contains 78 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [147.0] and does not return any value. It declares 22.0 functions, It has 22.0 functions c...
anaconda_anaconda-client
public
public
0
0
_load_main_plugin
def _load_main_plugin() -> typing.Optional[typing.Callable[[], typing.Any]]:"""Allow loading a new CLI main entrypoint via plugin mechanisms. There can only be one."""plugin_group_name: typing.Final[str] = 'anaconda_cli.main'plugin_mains: typing.List[metadata.EntryPoint] = _get_entry_points(plugin_group_name)if len(plu...
4
11
0
90
0
235
253
235
[]
typing.Optional[typing.Callable[[], typing.Any]]
{"AnnAssign": 2, "Expr": 1, "If": 2, "Return": 2}
6
19
6
["_get_entry_points", "len", "EnvironmentError", "join", "load", "tuple"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py.main"]
The function (_load_main_plugin) defined within the public class called public.The function start at line 235 and ends at 253. 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 6.0 functions, It has 6.0 functions ca...
anaconda_anaconda-client
public
public
0
0
main
def main(args: typing.Optional[typing.Sequence[str]] = None,*,exit_: bool = True,allow_plugin_main: bool = True,) -> None:"""Entrypoint for CLI interface of `anaconda`."""if allow_plugin_main and (not os.environ.get('ANACONDA_CLIENT_FORCE_STANDALONE', '')):plugged_in_main: typing.Optional[typing.Callable[[], typing.Any...
4
12
3
94
0
256
269
256
args,exit_,allow_plugin_main
[]
None
{"AnnAssign": 1, "Expr": 3, "If": 2, "Return": 1}
4
14
4
["os.environ.get", "_load_main_plugin", "plugged_in_main", "binstar_main"]
304
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.pystache.tests.test_commands_py.CommandsTestCase.callScript", "_....
The function (main) defined within the public class called public.The function start at line 256 and ends at 269. It contains 12 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [256.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called insi...
anaconda_anaconda-client
public
public
0
0
jencode
def jencode(*E, **F):payload = dict(*E, **F)return json.dumps(payload), {'Content-Type': 'application/json'}
1
3
2
32
1
31
33
31
*E,**F
['payload']
Returns
{"Assign": 1, "Return": 1}
2
3
2
["dict", "json.dumps"]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.__init___py.Binstar._authenticate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.__init___py.Binstar.add_package", "...
The function (jencode) defined within the public class called public.The function start at line 31 and ends at 33. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [31.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called i...
anaconda_anaconda-client
public
public
0
0
compute_hash
def compute_hash(file, buf_size=8192, size=None, hash_algorithm=md5):hash_obj = hash_algorithm()spos = file.tell()if size and size < buf_size:chunk = file.read(size)else:chunk = file.read(buf_size)while chunk:hash_obj.update(chunk)if size:size -= len(chunk)if size <= 0:breakif size and size < buf_size:chunk = file.read...
8
22
4
155
6
36
60
36
file,buf_size,size,hash_algorithm
['chunk', 'hex_digest', 'hash_obj', 'data_size', 'spos', 'base64_digest']
Returns
{"Assign": 9, "AugAssign": 1, "Expr": 2, "If": 4, "Return": 1, "While": 1}
15
25
15
["hash_algorithm", "file.tell", "file.read", "file.read", "hash_obj.update", "len", "file.read", "file.read", "hash_obj.hexdigest", "rstrip", "decode", "base64.encodebytes", "hash_obj.digest", "file.tell", "file.seek"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3965555_kinto_kinto_signer.scripts.e2e_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3965555_kinto_kinto_signer.scripts.validate_signature_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Ou...
The function (compute_hash) defined within the public class called public.The function start at line 36 and ends at 60. It contains 22 lines of code and it has a cyclomatic complexity of 8. It takes 4 parameters, represented as [36.0], and this function return a value. It declares 15.0 functions, It has 15.0 functions ...
anaconda_anaconda-client
public
public
0
0
bool_input
def bool_input(prompt, default=True):default_str = '[Y|n]' if default else '[y|N]'while True:inpt = input('%s %s: ' % (prompt, default_str))if inpt.lower() in ['y', 'yes'] and not default:return Trueelif inpt.lower() in ['', 'n', 'no'] and not default:return Falseelif inpt.lower() in ['', 'y', 'yes']:return Trueelif in...
9
14
2
111
2
63
76
63
prompt,default
['inpt', 'default_str']
Returns
{"Assign": 2, "Expr": 1, "If": 4, "Return": 4, "While": 1}
6
14
6
["input", "inpt.lower", "inpt.lower", "inpt.lower", "inpt.lower", "sys.stderr.write"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.try_replace_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.remove_py.main", "_.cont...
The function (bool_input) defined within the public class called public.The function start at line 63 and ends at 76. It contains 14 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [63.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions call...
anaconda_anaconda-client
EnvAppDirs
public
0
0
__init__
def __init__(self, root_path):self.root_path = root_path
1
2
2
12
0
8
9
8
self,root_path
[]
None
{"Assign": 1}
0
2
0
[]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called EnvAppDirs.The function start at line 8 and ends at 9. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [8.0] and does not return any value. It has 14667.0 functions calling this function which are [...
anaconda_anaconda-client
EnvAppDirs
public
0
0
user_data_dir
def user_data_dir(self):return os.path.join(self.root_path, 'data')
1
2
1
18
0
12
13
12
self
[]
Returns
{"Return": 1}
1
2
1
["os.path.join"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.__init___py.get_omero_userdir"]
The function (user_data_dir) defined within the public class called EnvAppDirs.The function start at line 12 and ends at 13. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function call...
anaconda_anaconda-client
EnvAppDirs
public
0
0
user_config_dir
def user_config_dir(self):return os.path.join(self.root_path, 'data')
1
2
1
18
0
16
17
16
self
[]
Returns
{"Return": 1}
1
2
1
["os.path.join"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95220899_dooit_org_dooit.dooit.__main___py.config_loc"]
The function (user_config_dir) defined within the public class called EnvAppDirs.The function start at line 16 and ends at 17. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function ca...
anaconda_anaconda-client
EnvAppDirs
public
0
0
site_data_dir
def site_data_dir(self):return os.path.join(self.root_path, 'data')
1
2
1
18
0
20
21
20
self
[]
Returns
{"Return": 1}
1
2
1
["os.path.join"]
0
[]
The function (site_data_dir) defined within the public class called EnvAppDirs.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 this function return a value. It declare 1.0 function, and It has 1.0 function...
anaconda_anaconda-client
EnvAppDirs
public
0
0
user_cache_dir
def user_cache_dir(self):return os.path.join(self.root_path, 'cache')
1
2
1
18
0
24
25
24
self
[]
Returns
{"Return": 1}
1
2
1
["os.path.join"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.__init___py.get_omero_user_cache_dir"]
The function (user_cache_dir) defined within the public class called EnvAppDirs.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 this function return a value. It declare 1.0 function, It has 1.0 function cal...
anaconda_anaconda-client
EnvAppDirs
public
0
0
user_log_dir
def user_log_dir(self):return os.path.join(self.root_path, 'log')
1
2
1
18
0
28
29
28
self
[]
Returns
{"Return": 1}
1
2
1
["os.path.join"]
0
[]
The function (user_log_dir) defined within the public class called EnvAppDirs.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 this function return a value. It declare 1.0 function, and It has 1.0 function ...
anaconda_anaconda-client
public
public
0
0
find_conda
def find_conda(*prefixes: str, use_env: bool = False) -> typing.Union[CondaInfo, Empty]:"""Find :code:`conda` and collect essential details on it.:param prefixes: Extra prefixes where to look for conda.:param use_env: Use only existing environment variables if they contain all required details.If at least one variable ...
11
27
2
318
4
37
76
37
*prefixes,use_env
['root', 'prefix', 'command', 'info']
typing.Union[CondaInfo, Empty]
{"AnnAssign": 5, "Assign": 6, "Expr": 4, "For": 2, "If": 3, "Return": 3, "Try": 1}
19
40
19
["os.environ.get", "os.environ.get", "os.environ.get", "commands.append", "os.path.abspath", "os.path.join", "os.path.join", "itertools.chain", "os.path.dirname", "os.path.dirname", "commands.append", "os.path.join", "commands.append", "json.loads", "subprocess.check_output", "info.get", "info.get", "info.get", "info.g...
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.conda_py.__getattr__"]
The function (find_conda) defined within the public class called public.The function start at line 37 and ends at 76. It contains 27 lines of code and it has a cyclomatic complexity of 11. It takes 2 parameters, represented as [37.0] and does not return any value. It declares 19.0 functions, It has 19.0 functions calle...
anaconda_anaconda-client
public
public
0
0
__getattr__
def __getattr__(name: str) -> typing.Any:"""Calculate lazy module properties."""if name == 'CONDA_INFO':return globals().setdefault('CONDA_INFO', find_conda())if name in {'CONDA_EXE', 'CONDA_PREFIX', 'CONDA_ROOT'}:return sys.modules[__name__].CONDA_INFO.get(name, None)raise AttributeError(f'module {__name__!r} has no a...
3
6
1
63
0
86
94
86
name
[]
typing.Any
{"Expr": 1, "If": 2, "Return": 2}
5
9
5
["setdefault", "globals", "find_conda", "CONDA_INFO.get", "AttributeError"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3581987_googlecloudplatform_datastore_ndb_python.ndb.model_py.Expando.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720205_maxtepkeev_python_redmine.redminelib.resources.standard_py.CustomField.__geta...
The function (__getattr__) defined within the public class called public.The function start at line 86 and ends at 94. It contains 6 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 5.0 functions, It has 5.0 functions called insi...
anaconda_anaconda-client
PackageType
public
0
1
label
def label(self) -> str:return PACKAGE_TYPE_LABELS.get(self, self.value)
1
2
1
18
0
49
50
49
self
[]
str
{"Return": 1}
1
2
1
["PACKAGE_TYPE_LABELS.get"]
30
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3594492_mangroveorg_mangrove.mangrove.form_model.tests.test_form_model_py.FormModelTest._create_form_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3594492_mangroveorg_mangrove.mangrove.form_model.tests.test_...
The function (label) defined within the public class called PackageType, that inherit another class.The function start at line 49 and ends at 50. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has ...
anaconda_anaconda-client
PackageType
public
0
1
_missing_
def _missing_(cls, value: typing.Any) -> PackageType:try:return cls(PACKAGE_TYPE_ALIASES[value])except KeyError:return super()._missing_(value)
2
5
2
35
0
53
57
53
cls,value
[]
PackageType
{"Return": 2, "Try": 1}
3
5
3
["cls", "_missing_", "super"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.config_py.PackageType._missing_"]
The function (_missing_) defined within the public class called PackageType, that inherit another class.The function start at line 53 and ends at 57. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [53.0] and does not return any value. It declares 3.0 functions...
anaconda_anaconda-client
public
public
0
0
recursive_update
def recursive_update(config, update_dict):for update_key, updated_value in update_dict.items():if isinstance(updated_value, typing.Mapping):updated_value_dict = recursive_update(config.get(update_key, {}), updated_value)config[update_key] = updated_value_dictelse:config[update_key] = update_dict[update_key]return confi...
3
8
2
63
1
110
118
110
config,update_dict
['updated_value_dict']
Returns
{"Assign": 3, "For": 1, "If": 1, "Return": 1}
4
9
4
["update_dict.items", "isinstance", "recursive_update", "config.get"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.config_py.get_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.config_py.recursive_update"]
The function (recursive_update) defined within the public class called public.The function start at line 110 and ends at 118. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [110.0], and this function return a value. It declares 4.0 functions, It has 4.0 functi...
anaconda_anaconda-client
public
public
0
0
get_server_api
def get_server_api(token=None, site=None, cls=None, config=None, **kwargs):"""Get the anaconda server api class."""if not cls:from binstar_client import Binstarcls = Binstarconfig = config if config is not None else get_config(site=site)url = config.get('url', DEFAULT_URL)logger.info('Using Anaconda API: %s', url)if to...
8
23
5
175
5
121
151
121
token,site,cls,config,**kwargs
['config', 'verify', 'cls', 'url', 'token']
Returns
{"Assign": 9, "Expr": 5, "If": 6, "Return": 1}
10
31
10
["get_config", "config.get", "logger.info", "logger.debug", "logger.debug", "logger.debug", "load_token", "config.get", "config.get", "cls"]
16
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.authorizations_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.channel_py.main", "_.content...
The function (get_server_api) defined within the public class called public.The function start at line 121 and ends at 151. It contains 23 lines of code and it has a cyclomatic complexity of 8. It takes 5 parameters, represented as [121.0], and this function return a value. It declares 10.0 functions, It has 10.0 funct...
anaconda_anaconda-client
public
public
0
0
get_binstar
def get_binstar(args=None, cls=None):"""DEPRECATED METHOD,use `get_server_api`"""warnings.warn('method get_binstar is deprecated, please use `get_server_api`', DeprecationWarning)token = getattr(args, 'token', None)log_level = getattr(args, 'log_level', logging.INFO)site = getattr(args, 'site', None)aserver_api = get_s...
1
7
2
74
4
154
168
154
args,cls
['log_level', 'aserver_api', 'token', 'site']
Returns
{"Assign": 4, "Expr": 2, "Return": 1}
5
15
5
["warnings.warn", "getattr", "getattr", "getattr", "get_server_api"]
0
[]
The function (get_binstar) defined within the public class called public.The function start at line 154 and ends at 168. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [154.0], and this function return a value. It declares 5.0 functions, and It has 5.0 functi...
anaconda_anaconda-client
public
public
0
0
store_token
def store_token(token, args):config = get_config(site=args and args.site)url = config.get('url', DEFAULT_URL)if c_client is not None:logger.debug('Using conda..set_binstar_token')c_client.set_binstar_token(url, token)returnfor token_dir in TOKEN_DIRS:if not os.path.isdir(token_dir):os.makedirs(token_dir)tokenfile = os....
6
16
2
135
3
189
206
189
token,args
['config', 'tokenfile', 'url']
None
{"Assign": 3, "Expr": 6, "For": 1, "If": 3, "Return": 1, "With": 1}
13
18
13
["get_config", "config.get", "logger.debug", "c_client.set_binstar_token", "os.path.isdir", "os.makedirs", "os.path.join", "quote_plus", "os.path.isfile", "os.unlink", "open", "file.write", "os.chmod"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.interactive_login"]
The function (store_token) defined within the public class called public.The function start at line 189 and ends at 206. It contains 16 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [189.0] and does not return any value. It declares 13.0 functions, It has 13.0 functions ca...
anaconda_anaconda-client
public
public
0
0
load_token
def load_token(url):if c_client is not None:logger.debug('Using conda..read_binstar_tokens')url_c = url.rstrip('/') + '/'for binstar_url, token in c_client.read_binstar_tokens().items():if url_c.startswith(binstar_url.rstrip('/') + '/'):if token:return tokenfor token_dir in TOKEN_DIRS:tokenfile = os.path.join(token_dir...
8
20
1
150
3
209
233
209
url
['token', 'url_c', 'tokenfile']
Returns
{"Assign": 3, "Expr": 5, "For": 2, "If": 5, "Return": 3, "With": 1}
16
25
16
["logger.debug", "url.rstrip", "items", "c_client.read_binstar_tokens", "url_c.startswith", "binstar_url.rstrip", "os.path.join", "quote_plus", "os.path.isfile", "logger.debug", "open", "strip", "file.read", "logger.debug", "logger.debug", "os.unlink"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.config_py.get_server_api"]
The function (load_token) defined within the public class called public.The function start at line 209 and ends at 233. It contains 20 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters, and this function return a value. It declares 16.0 functions, It has 16.0 functions cal...
anaconda_anaconda-client
public
public
0
0
remove_token
def remove_token(args):config = get_config(site=args and args.site)url = config.get('url', DEFAULT_URL)for token_dir in TOKEN_DIRS:tokenfile = os.path.join(token_dir, '%s.token' % quote_plus(url))if os.path.isfile(tokenfile):os.unlink(tokenfile)
4
7
1
65
3
236
243
236
args
['config', 'tokenfile', 'url']
None
{"Assign": 3, "Expr": 1, "For": 1, "If": 1}
6
8
6
["get_config", "config.get", "os.path.join", "quote_plus", "os.path.isfile", "os.unlink"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.logout_py.main"]
The function (remove_token) defined within the public class called public.The function start at line 236 and ends at 243. It contains 7 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 6.0 functions, It has 6.0 functions called i...
anaconda_anaconda-client
public
public
0
0
load_config
def load_config(config_file):data = {}warn_msg = Nonetry:with open(config_file) as file:data = yaml_load(file) or dataexcept yaml.YAMLError:backup_file = config_file + '.bak'shutil.copyfile(config_file, backup_file)warn_msg = ('Config file `{}` has invalid structure and couldn\'t be read. \nFile content was backed up t...
6
21
1
96
3
246
269
246
config_file
['backup_file', 'warn_msg', 'data']
Returns
{"Assign": 6, "Expr": 3, "If": 1, "Return": 1, "Try": 1, "With": 1}
7
24
7
["open", "yaml_load", "shutil.copyfile", "format", "format", "logger.exception", "warnings.warn"]
42
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517196_debian_dput_ng.dput.configs.dputng_py.DputProfileConfig.get_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517196_debian_dput_ng.dput.hook_py.get_hooks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset...
The function (load_config) defined within the public class called public.The function start at line 246 and ends at 269. It contains 21 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters, and this function return a value. It declares 7.0 functions, It has 7.0 functions call...
anaconda_anaconda-client
public
public
0
0
load_file_configs._file_yaml_loader
def _file_yaml_loader(fullpath):assert (fullpath.endswith('.yml')# nosecor fullpath.endswith('.yaml')or fullpath.endswith('anacondarc')), fullpathyield fullpath, load_config(fullpath)
3
7
1
37
0
273
279
273
null
[]
None
null
0
0
0
null
0
null
The function (load_file_configs._file_yaml_loader) defined within the public class called public.The function start at line 273 and ends at 279. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value..
anaconda_anaconda-client
public
public
0
0
load_file_configs._dir_yaml_loader
def _dir_yaml_loader(fullpath):for filename in os.listdir(fullpath):if filename.endswith('.yml') or filename.endswith('.yaml'):filepath = os.path.join(fullpath, filename)yield filepath, load_config(filepath)
4
5
1
49
0
281
285
281
null
[]
None
null
0
0
0
null
0
null
The function (load_file_configs._dir_yaml_loader) defined within the public class called public.The function start at line 281 and ends at 285. It contains 5 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value..
anaconda_anaconda-client
public
public
0
0
load_file_configs._get_st_mode
def _get_st_mode(path):# stat the path for file type, or None if path doesn't existtry:return stat.S_IFMT(os.stat(path).st_mode)except OSError:return None
2
5
1
26
0
293
298
293
null
[]
None
null
0
0
0
null
0
null
The function (load_file_configs._get_st_mode) defined within the public class called public.The function start at line 293 and ends at 298. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
anaconda_anaconda-client
public
public
0
0
load_file_configs
def load_file_configs(search_path):def _file_yaml_loader(fullpath):assert (fullpath.endswith('.yml')# nosecor fullpath.endswith('.yaml')or fullpath.endswith('anacondarc')), fullpathyield fullpath, load_config(fullpath)def _dir_yaml_loader(fullpath):for filename in os.listdir(fullpath):if filename.endswith('.yml') or fi...
5
13
1
100
6
272
305
272
search_path
['expanded_paths', '_loader', 'stat_paths', 'filepath', 'load_paths', 'raw_data']
Returns
{"Assign": 6, "Expr": 2, "For": 1, "If": 1, "Return": 3, "Try": 1}
17
34
17
["fullpath.endswith", "fullpath.endswith", "fullpath.endswith", "load_config", "os.listdir", "filename.endswith", "filename.endswith", "os.path.join", "load_config", "stat.S_IFMT", "os.stat", "list", "map", "_get_st_mode", "zip", "collections.OrderedDict", "itertools.chain.from_iterable"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.config_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.config_py.get_config"]
The function (load_file_configs) defined within the public class called public.The function start at line 272 and ends at 305. It contains 13 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters, and this function return a value. It declares 17.0 functions, It has 17.0 functi...
anaconda_anaconda-client
public
public
0
0
get_config
def get_config(site=None):config = DEFAULT_CONFIG.copy()file_configs = load_file_configs(SEARCH_PATH)for file_name in file_configs:recursive_update(config, file_configs[file_name])site = site or config.get('default_site')sites = config.get('sites', {})if site:site = str(site)if site not in sites:logger.warning('Site al...
5
14
1
96
4
308
327
308
site
['sites', 'config', 'file_configs', 'site']
Returns
{"Assign": 5, "Expr": 3, "For": 1, "If": 2, "Return": 1}
9
20
9
["DEFAULT_CONFIG.copy", "load_file_configs", "recursive_update", "config.get", "config.get", "str", "logger.warning", "recursive_update", "sites.get"]
55
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.21593641_openforcefield_openff_fragmenter.openff.fragmenter._version_py.get_versions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670679_blaze_datashape.datashape._version_py.get_versions", "_.content.gdrive.MyD...
The function (get_config) defined within the public class called public.The function start at line 308 and ends at 327. It contains 14 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters, and this function return a value. It declares 9.0 functions, It has 9.0 functions calle...
anaconda_anaconda-client
public
public
0
0
save_config
def save_config(data, config_file):try:os.makedirs(os.path.dirname(config_file), exist_ok=True)temp_file = config_file + '~'with open(temp_file, 'w') as stream:yaml_dump(data, stream=stream)os.replace(temp_file, config_file)except (OSError, yaml.YAMLError) as error:raise BinstarError("Config file `{}` couldn't be saved...
2
9
2
80
1
330
341
330
data,config_file
['temp_file']
None
{"Assign": 1, "Expr": 3, "Try": 1, "With": 1}
7
12
7
["os.makedirs", "os.path.dirname", "open", "yaml_dump", "os.replace", "BinstarError", "format"]
9
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.82516074_womsxd_mihoyobbstools.config_py.clear_cookie", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.82516074_womsxd_mihoyobbstools.config_py.clear_cookie_cloudgame_genshin", "_.content.gdrive.MyDrive.Phd_Thesis.Da...
The function (save_config) defined within the public class called public.The function start at line 330 and ends at 341. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [330.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions calle...
anaconda_anaconda-client
public
public
0
0
set_config
def set_config(data, user=True):warnings.warn('Use save_config instead of set_config', DeprecationWarning)save_config(data, USER_CONFIG if user else SYSTEM_CONFIG)
2
3
2
27
0
344
346
344
data,user
[]
None
{"Expr": 2}
2
3
2
["warnings.warn", "save_config"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676862_pecan_pecan.pecan.commands.serve_py.gunicorn_run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676862_pecan_pecan.pecan.core_py.load_app"]
The function (set_config) defined within the public class called public.The function start at line 344 and ends at 346. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [344.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called...
anaconda_anaconda-client
public
public
0
0
checker_for.checker_for.wrapper.wrapped
def wrapped(*args: P.args, **kwargs: P.kwargs) -> OptMeta:extension: typing.Optional[str] = function(*args, **kwargs)if extension is None:return Nonereturn Meta(package_type=package_type, extension=extension)
2
5
2
54
0
52
56
52
null
[]
None
null
0
0
0
null
0
null
The function (checker_for.checker_for.wrapper.wrapped) defined within the public class called public.The function start at line 52 and ends at 56. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [52.0] and does not return any value..
anaconda_anaconda-client
public
public
0
0
checker_for.wrapper
def wrapper(function: typing.Callable[P, Raw]) -> typing.Callable[P, OptMeta]:@functools.wraps(function)def wrapped(*args: P.args, **kwargs: P.kwargs) -> OptMeta:extension: typing.Optional[str] = function(*args, **kwargs)if extension is None:return Nonereturn Meta(package_type=package_type, extension=extension)return w...
1
4
1
34
0
50
58
50
null
[]
None
null
0
0
0
null
0
null
The function (checker_for.wrapper) defined within the public class called public.The function start at line 50 and ends at 58. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value..
anaconda_anaconda-client
public
public
0
0
checker_for
def checker_for(package_type: PackageType) -> typing.Callable[[typing.Callable[P, Raw]], typing.Callable[P, OptMeta]]:"""Convert function to a checker for a particular :code:`package_type`."""def wrapper(function: typing.Callable[P, Raw]) -> typing.Callable[P, OptMeta]:@functools.wraps(function)def wrapped(*args: P.arg...
1
3
1
37
0
47
60
47
package_type
[]
typing.Callable[[typing.Callable[P, Raw]], typing.Callable[P, OptMeta]]
{"AnnAssign": 1, "Expr": 1, "If": 1, "Return": 4}
3
14
3
["function", "Meta", "functools.wraps"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.detect_py.detector_for"]
The function (checker_for) defined within the public class called public.The function start at line 47 and ends at 60. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called insi...
anaconda_anaconda-client
public
public
0
0
detector_for.register
def register(function: RawDetector) -> Detector:result: Detector = checker_for(package_type)(function)if DETECTORS.setdefault(package_type, result) is not result:raise ValueError(f'detector for "{package_type.value}" is already registered')return result
2
5
1
41
0
77
81
77
null
[]
None
null
0
0
0
null
0
null
The function (detector_for.register) defined within the public class called public.The function start at line 77 and ends at 81. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
anaconda_anaconda-client
public
public
0
0
detector_for
def detector_for(package_type: PackageType) -> typing.Callable[[RawDetector], Detector]:"""Same as :func:`~checker_for`, but also registers checker in the registry of detectors... warning::All detectors must be defined in the order they must be used to check for a package type."""def register(function: RawDetector) -> ...
1
3
1
23
0
68
83
68
package_type
[]
typing.Callable[[RawDetector], Detector]
{"AnnAssign": 1, "Expr": 1, "If": 1, "Return": 2}
3
16
3
["checker_for", "DETECTORS.setdefault", "ValueError"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.detect_py.is_conda", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.detect_py.is_environment", "_.content....
The function (detector_for) defined within the public class called public.The function start at line 68 and ends at 83. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called ins...
anaconda_anaconda-client
public
public
0
0
find_postfix
def find_postfix(value: str, *options: str) -> typing.Optional[str]:"""Find a first applicable postfix for a :code:`value` from available :code:`options`."""option: strfor option in options:if value.endswith(option):return optionreturn None
3
6
2
40
0
86
92
86
value,*options
[]
typing.Optional[str]
{"AnnAssign": 1, "Expr": 1, "For": 1, "If": 1, "Return": 2}
1
7
1
["value.endswith"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.detect_py.is_environment", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.detect_py.is_ipynb", "_.content....
The function (find_postfix) defined within the public class called public.The function start at line 86 and ends at 92. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [86.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ins...
anaconda_anaconda-client
public
public
0
0
is_conda
def is_conda(filename: str) -> typing.Optional[str]:"""Check if :code:`filename` is a conda package.:return: File extension if it is a conda package, otherwise - :code:`None`."""logger.debug('Testing if %s is a conda package ..', filename)if filename.endswith('.conda'):return '.conda'if filename.endswith('.tar.bz2'):# ...
4
16
1
95
0
96
116
96
filename
[]
typing.Optional[str]
{"AnnAssign": 1, "Expr": 6, "If": 2, "Return": 4, "Try": 1, "With": 1}
9
21
9
["logger.debug", "filename.endswith", "filename.endswith", "tarfile.open", "tar_file.getmember", "logger.debug", "logger.debug", "logger.debug", "detector_for"]
0
[]
The function (is_conda) defined within the public class called public.The function start at line 96 and ends at 116. It contains 16 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 9.0 functions, and It has 9.0 functions called ...
anaconda_anaconda-client
public
public
0
0
is_pypi
def is_pypi(filename: str) -> typing.Optional[str]:"""Check if :code:`filename` is a python package.:return: File extension if it is a python package, otherwise - :code:`None`."""package_type_label: str = PackageType.STANDARD_PYTHON.labellogger.debug('Testing if %s is a %s package ..', filename, package_type_label)if f...
5
16
1
130
0
120
140
120
filename
[]
typing.Optional[str]
{"AnnAssign": 3, "Expr": 5, "If": 3, "Return": 4, "With": 1}
11
21
11
["logger.debug", "filename.endswith", "logger.debug", "find_postfix", "logger.debug", "tarfile.open", "any", "name.endswith", "tar_file.getnames", "logger.debug", "detector_for"]
0
[]
The function (is_pypi) defined within the public class called public.The function start at line 120 and ends at 140. It contains 16 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 11.0 functions, and It has 11.0 functions calle...
anaconda_anaconda-client
public
public
0
0
is_r
def is_r(filename: str) -> typing.Optional[str]:"""Check if :code:`filename` is an r package.:return: File extension if it is an r package, otherwise - :code:`None`."""logger.debug('Testing if %s is an R package ..', filename)result: typing.Optional[str] = find_postfix(filename, '.tar.gz', 'tgz')if result is None:logge...
6
21
1
125
0
144
169
144
filename
[]
typing.Optional[str]
{"AnnAssign": 4, "AugAssign": 2, "Expr": 4, "For": 1, "If": 4, "Return": 3, "With": 1}
9
26
9
["logger.debug", "find_postfix", "logger.debug", "tarfile.open", "tar_file.getnames", "name.endswith", "name.endswith", "logger.debug", "detector_for"]
0
[]
The function (is_r) defined within the public class called public.The function start at line 144 and ends at 169. It contains 21 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called ins...
anaconda_anaconda-client
public
public
0
0
is_ipynb
def is_ipynb(filename: str) -> typing.Optional[str]:"""Check if :code:`filename` is a notebook.:return: File extension if it is a notebook, otherwise - :code:`None`."""logger.debug('Testing if %s is an ipynb file ..', filename)result: typing.Optional[str] = find_postfix(filename, '.ipynb')if result is None:logger.debug...
2
6
1
51
0
173
183
173
filename
[]
typing.Optional[str]
{"AnnAssign": 1, "Expr": 3, "If": 1, "Return": 1}
4
11
4
["logger.debug", "find_postfix", "logger.debug", "detector_for"]
0
[]
The function (is_ipynb) defined within the public class called public.The function start at line 173 and ends at 183. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called ...
anaconda_anaconda-client
public
public
0
0
is_environment
def is_environment(filename: str) -> typing.Optional[str]:"""Check if :code:`filename` is an environment.:return: File extension if it is an environment, otherwise - :code:`None`."""logger.debug('Testing if %s is an environment file ..', filename)result: typing.Optional[str] = find_postfix(filename, '.yml', '.yaml')if ...
2
6
1
53
0
187
197
187
filename
[]
typing.Optional[str]
{"AnnAssign": 1, "Expr": 3, "If": 1, "Return": 1}
4
11
4
["logger.debug", "find_postfix", "logger.debug", "detector_for"]
0
[]
The function (is_environment) defined within the public class called public.The function start at line 187 and ends at 197. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions c...
anaconda_anaconda-client
public
public
0
0
is_project
def is_project(filename: str) -> typing.Optional[str]:"""Check if :code:`filename` is a project.:return: File extension if it is a project, otherwise - :code:`None`."""logger.debug('Testing if %s is a project ..', filename)if path.isdir(filename):return ''result: typing.Optional[str] = find_postfix(filename, '.py')if r...
3
8
1
61
0
204
216
204
filename
[]
typing.Optional[str]
{"AnnAssign": 1, "Expr": 3, "If": 2, "Return": 2}
5
13
5
["logger.debug", "path.isdir", "find_postfix", "logger.debug", "detector_for"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.utils.test_detect_py.IsProjectTestCase.test_dir_project", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.utils.test_detect_py.IsProjectT...
The function (is_project) defined within the public class called public.The function start at line 204 and ends at 216. It contains 8 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 5.0 functions, It has 5.0 functions called ins...
anaconda_anaconda-client
public
public
0
0
complete_package_meta
def complete_package_meta(filename: typing.Union[str, bytes], package_type: PackageType) -> OptMeta:"""Collect package metadata on a :code:`filename` with known :code:`package_type`."""if isinstance(filename, bytes):filename = filename.decode('utf-8', errors='ignore')detector: typing.Optional[Detector] = DETECTORS.get(...
3
5
2
65
1
219
225
219
filename,package_type
['filename']
OptMeta
{"AnnAssign": 1, "Assign": 1, "Expr": 1, "If": 1, "Return": 1}
4
7
4
["isinstance", "filename.decode", "DETECTORS.get", "detector"]
0
[]
The function (complete_package_meta) defined within the public class called public.The function start at line 219 and ends at 225. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [219.0] and does not return any value. It declares 4.0 functions, and It has 4.0 ...
anaconda_anaconda-client
public
public
0
0
detect_package_meta
def detect_package_meta(filename: typing.Union[str, bytes]) -> OptMeta:"""Detect package type of a :code:`filename` with additional metadata on it."""if isinstance(filename, bytes):filename = filename.decode('utf-8', errors='ignore')detector: Detectorresult: OptMetafor detector in DETECTORS.values():if result := detect...
4
9
1
64
1
228
239
228
filename
['filename']
OptMeta
{"AnnAssign": 2, "Assign": 1, "Expr": 1, "For": 1, "If": 2, "Return": 2}
4
12
4
["isinstance", "filename.decode", "DETECTORS.values", "detector"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.detect_py.detect_package_extension", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.detect_py.detect_packa...
The function (detect_package_meta) defined within the public class called public.The function start at line 228 and ends at 239. It contains 9 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 4.0 functions, It has 4.0 functions c...
anaconda_anaconda-client
public
public
0
0
detect_package_extension
def detect_package_extension(filename: typing.Union[str, bytes]) -> typing.Optional[str]:"""Detect an extension of a package located at :code:`filename`."""result: OptMeta = detect_package_meta(filename)return result and result.extension
2
3
1
36
0
242
245
242
filename
[]
typing.Optional[str]
{"AnnAssign": 1, "Expr": 1, "Return": 1}
1
4
1
["detect_package_meta"]
0
[]
The function (detect_package_extension) defined within the public class called public.The function start at line 242 and ends at 245. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 fun...
anaconda_anaconda-client
public
public
0
0
detect_package_type
def detect_package_type(filename: typing.Union[str, bytes]) -> typing.Optional[PackageType]:"""Detect a package type of a :code:`filename`."""result: OptMeta = detect_package_meta(filename)return result and result.package_type
2
3
1
36
0
248
251
248
filename
[]
typing.Optional[PackageType]
{"AnnAssign": 1, "Expr": 1, "Return": 1}
1
4
1
["detect_package_meta"]
0
[]
The function (detect_package_type) defined within the public class called public.The function start at line 248 and ends at 251. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function...
anaconda_anaconda-client
Inspector
public
1
1
__call__
def __call__(self, filename: str, fileobj: typing.BinaryIO, *args: typing.Any, **kwargs: typing.Any) -> Attributes:"""Collect metadata on a package."""
1
1
5
32
0
265
266
265
self,filename,fileobj,*args,**kwargs
[]
Attributes
{"Expr": 1}
0
2
0
[]
56
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content...
The function (__call__) defined within the public class called Inspector, implement an interface, and it inherit another class.The function start at line 265 and ends at 266. It contains 1 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [265.0] and does not return any value....
anaconda_anaconda-client
public
public
0
0
inspect_file
def inspect_file(filename, fileobj, *args, **kwargs):"""Collect metadata on a generic file."""return {}, {'description': ''}, {'basename': path.basename(filename), 'attrs': {}}
1
2
4
39
0
269
271
269
filename,fileobj,*args,**kwargs
[]
Returns
{"Expr": 1, "Return": 1}
1
3
1
["path.basename"]
0
[]
The function (inspect_file) defined within the public class called public.The function start at line 269 and ends at 271. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [269.0], and this function return a value. It declare 1.0 function, and It has 1.0 functio...
anaconda_anaconda-client
public
public
0
0
get_attrs
def get_attrs(package_type: PackageType, filename: str, *args: typing.Any, **kwargs: typing.Any) -> Attributes:"""Collect metadata attributes on a package."""fileobj: typing.BinaryIOwith open(filename, 'rb') as fileobj:return INSPECTORS[package_type](filename, fileobj, *args, **kwargs)
1
4
4
59
0
285
289
285
package_type,filename,*args,**kwargs
[]
Attributes
{"AnnAssign": 1, "Expr": 1, "Return": 1, "With": 1}
1
5
1
["open"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.markdown.extensions.attr_list_py.AttrListTreeprocessor.assign_attrs"]
The function (get_attrs) defined within the public class called public.The function start at line 285 and ends at 289. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [285.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ins...
anaconda_anaconda-client
JSONFormatter
public
0
0
__init__
def __init__(self, *args, **extra_tags):self.dumps = extra_tags.pop('dumps', lambda obj: json.dumps(obj, default=str))object.__init__(self, *args)self.extra_tags = extra_tags
1
4
3
49
0
7
11
7
self,*args,**extra_tags
[]
None
{"Assign": 2, "Expr": 1}
3
5
3
["extra_tags.pop", "json.dumps", "object.__init__"]
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 JSONFormatter.The function start at line 7 and ends at 11. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [7.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called...
anaconda_anaconda-client
JSONFormatter
public
0
0
format
def format(self, record):if isinstance(record.msg, dict):data = record.msgelif isinstance(record.msg, (list, tuple)):data = {'items': record.msg}else:data = {'msg': record.msg}kwargs = self.extra_tags.copy()data.update(logLevel=record.levelname,logModule=record.module,logName=record.name,pid=os.getpid(),**kwargs,)if re...
4
22
2
152
0
13
38
13
self,record
[]
Returns
{"Assign": 9, "Expr": 1, "If": 3, "Return": 1}
8
26
8
["isinstance", "isinstance", "self.extra_tags.copy", "data.update", "os.getpid", "join", "traceback.format_exception", "self.dumps"]
9,697
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.api_py.Api.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.api_py.Api.create_token", "_.content.gdrive.MyDri...
The function (format) defined within the public class called JSONFormatter.The function start at line 13 and ends at 38. It contains 22 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [13.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions c...
anaconda_anaconda-client
public
public
0
0
_custom_excepthook.excepthook
def excepthook(exc_type: typing.Type[BaseException],exc_value: BaseException,exc_traceback: typing.Optional[types.TracebackType],) -> None:if issubclass(exc_type, KeyboardInterrupt):returnif show_traceback:logger.error('', exc_info=(exc_type, exc_value, exc_traceback))else:logger.error('%s', exc_value)
3
11
3
68
0
26
36
26
null
[]
None
null
0
0
0
null
0
null
The function (_custom_excepthook.excepthook) defined within the public class called public.The function start at line 26 and ends at 36. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [26.0] and does not return any value..
anaconda_anaconda-client
public
public
0
0
_custom_excepthook
def _custom_excepthook(logger: logging.Logger,show_traceback: bool = False,) -> typing.Callable[[typing.Type[BaseException], BaseException, typing.Optional[types.TracebackType]], None]:"""Generate custom exception hook to log captured exceptions."""def excepthook(exc_type: typing.Type[BaseException],exc_value: BaseExce...
1
6
2
48
0
20
38
20
logger,show_traceback
[]
typing.Callable[[typing.Type[BaseException], BaseException, typing.Optional[types.TracebackType]], None]
{"Expr": 3, "If": 2, "Return": 2}
3
19
3
["issubclass", "logger.error", "logger.error"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.logging_utils_py.setup_logging"]
The function (_custom_excepthook) defined within the public class called public.The function start at line 20 and ends at 38. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [20.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions c...
anaconda_anaconda-client
ConsoleFormatter
public
0
1
format
def format(self, record: logging.LogRecord) -> str:"""Format log record before printing it."""self._style._fmt = self.FORMAT_CUSTOM.get(record.levelno, self.FORMAT_DEFAULT)return super().format(record)
1
3
2
43
0
47
50
47
self,record
[]
str
{"Assign": 1, "Expr": 1, "Return": 1}
3
4
3
["self.FORMAT_CUSTOM.get", "format", "super"]
9,697
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.api_py.Api.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.api_py.Api.create_token", "_.content.gdrive.MyDri...
The function (format) defined within the public class called ConsoleFormatter, that inherit another class.The function start at line 47 and ends at 50. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [47.0] and does not return any value. It declares 3.0 functio...
anaconda_anaconda-client
public
public
0
0
setup_logging
def setup_logging(logger: logging.Logger,log_level: int = logging.INFO,show_traceback: bool = False,disable_ssl_warnings: bool = False,) -> None:"""Configure logging for the application."""logger.setLevel(logging.DEBUG)os.makedirs(config.USER_LOGDIR, exist_ok=True)log_file: str = os.path.join(config.USER_LOGDIR, 'cli.l...
2
24
4
179
0
53
82
53
logger,log_level,show_traceback,disable_ssl_warnings
[]
None
{"AnnAssign": 3, "Assign": 1, "Expr": 10, "If": 1}
15
30
15
["logger.setLevel", "os.makedirs", "os.path.join", "logging.handlers.RotatingFileHandler", "file_handler.setLevel", "file_handler.setFormatter", "logging.Formatter", "logger.addHandler", "logging.StreamHandler", "console_handler.setLevel", "console_handler.setFormatter", "ConsoleFormatter", "logger.addHandler", "_custo...
52
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660739_pret_pokemon_reverse_engineering_tools.pokemontools.map_editor_py.init", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963052_sibson_vncdotool.vncdotool.command_py.vncdo", "_.content.gdrive.MyDrive.Phd_Thes...
The function (setup_logging) defined within the public class called public.The function start at line 53 and ends at 82. It contains 24 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [53.0] and does not return any value. It declares 15.0 functions, It has 15.0 functions cal...
anaconda_anaconda-client
public
public
0
0
multipart_files_upload
def multipart_files_upload(url: str,data: typing.MutableMapping,files: typing.Optional[typing.Mapping[str, tuple]] = None,progress_bar: typing.Optional['tqdm.tqdm'] = None,**request_kwargs: typing.Any,) -> requests.Response:"""Uploads one or more files as a multipart form.:param url: The URL to which the files will be ...
3
21
5
135
1
12
45
12
url,data,files,progress_bar,**request_kwargs
['encoder']
requests.Response
{"Assign": 2, "Expr": 2, "If": 2, "Return": 1}
6
34
6
["data.update", "MultipartEncoder", "MultipartEncoderMonitor", "progress_bar.update", "requests.post", "request_kwargs.pop"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.__init___py.Binstar.upload"]
The function (multipart_files_upload) defined within the public class called public.The function start at line 12 and ends at 45. It contains 21 lines of code and it has a cyclomatic complexity of 3. It takes 5 parameters, represented as [12.0] and does not return any value. It declares 6.0 functions, It has 6.0 functi...
anaconda_anaconda-client
public
public
0
0
expandvars
def expandvars(path: str) -> str:"""Expand environment variables in :code:`path`.Missing conda-related variables might be injected from :data:`~binstar_client.utils.conda.CONDA_INFO`."""mapping: typing.Dict[str, str] = {**typing.cast(typing.Mapping[str, str], conda.CONDA_INFO),**os.environ,}return string.Template(path)...
1
6
1
59
0
16
26
16
path
[]
str
{"AnnAssign": 1, "Expr": 1, "Return": 1}
3
11
3
["typing.cast", "safe_substitute", "string.Template"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.tools_py.expand_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957920_mahmoud_boltons.boltons.pathutils_py.expandpath", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation....
The function (expandvars) defined within the public class called public.The function start at line 16 and ends at 26. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called insid...
anaconda_anaconda-client
public
public
0
0
normalize
def normalize(path: str) -> str:"""Normalize file :code:`path`."""return os.path.abspath(os.path.expanduser(expandvars(path)))
1
2
1
29
0
29
31
29
path
[]
str
{"Expr": 1, "Return": 1}
3
3
3
["os.path.abspath", "os.path.expanduser", "expandvars"]
36
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561509_collective_solgema_fullcalendar.Solgema.fullcalendar.browser.views_py.SFFolderSources.getColor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3561509_collective_solgema_fullcalendar.Solgema.fullcalendar.bro...
The function (normalize) defined within the public class called public.The function start at line 29 and ends at 31. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside...
anaconda_anaconda-client
public
public
0
0
pprint_orgs
def pprint_orgs(orgs):logger.info('Organizations:')for org in orgs:logger.info(' + %(login)25s', org)
2
4
1
24
0
26
29
26
orgs
[]
None
{"Expr": 2, "For": 1}
2
4
2
["logger.info", "logger.info"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.show_py.main"]
The function (pprint_orgs) defined within the public class called public.The function start at line 26 and ends at 29. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called insi...
anaconda_anaconda-client
public
public
0
0
pprint_package_header
def pprint_package_header(access=True, revisions=False):package_header = {'full_name': 'Name','access': 'Access','package_types': 'Package Types','latest_version': 'Version','conda_platforms': 'Platforms','revision': 'Rev','builds': 'Builds',}fmt = fmt_access if access else fmt_no_accessif revisions:fmt = '%(revision)-...
3
14
2
66
2
32
47
32
access,revisions
['fmt', 'package_header']
None
{"Assign": 3, "Expr": 1, "If": 1}
1
16
1
["logger.info"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.pprint_py.pprint_packages"]
The function (pprint_package_header) defined within the public class called public.The function start at line 32 and ends at 47. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [32.0] and does not return any value. It declare 1.0 function, It has 1.0 function ...
anaconda_anaconda-client
public
public
0
0
format_package_type
def format_package_type(value):value = str(value)try:return config.PackageType(value).labelexcept ValueError:return value
2
6
1
27
1
50
55
50
value
['value']
Returns
{"Assign": 1, "Return": 2, "Try": 1}
2
6
2
["str", "config.PackageType"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.show_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.pprint_py.pprint_package"]
The function (format_package_type) defined within the public class called public.The function start at line 50 and ends at 55. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions...
anaconda_anaconda-client
public
public
0
0
pprint_package
def pprint_package(package, access=True, full_name=True, revision=False):package = package.copy()if package.get('published'):package['access'] = 'published'elif package['public']:package['access'] = 'public'else:package['access'] = 'private'if package.get('conda_platforms'):package['conda_platforms'] = ', '.join(str(it...
16
26
4
229
2
58
90
58
package,access,full_name,revision
['package', 'fmt']
None
{"Assign": 11, "Expr": 2, "If": 8}
15
33
15
["package.copy", "package.get", "package.get", "join", "str", "package.get", "join", "format_package_type", "package.get", "join", "str", "logger.info", "package.get", "logger.info", "package.get"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.pprint_py.pprint_packages"]
The function (pprint_package) defined within the public class called public.The function start at line 58 and ends at 90. It contains 26 lines of code and it has a cyclomatic complexity of 16. It takes 4 parameters, represented as [58.0] and does not return any value. It declares 15.0 functions, It has 15.0 functions c...
anaconda_anaconda-client
public
public
0
0
pprint_packages
def pprint_packages(packages, access=True, full_name=True, revisions=False):if packages:logger.info('Packages:')else:logger.info('No packages found')fmt = fmt_access if access else fmt_no_accessif revisions:fmt = '%(revision)-6s | ' + fmtpprint_package_header(access, revisions=revisions)package_header = {'full_name': '...
6
21
4
148
2
93
117
93
packages,access,full_name,revisions
['fmt', 'package_header']
None
{"Assign": 3, "Expr": 5, "For": 1, "If": 2}
6
25
6
["logger.info", "logger.info", "pprint_package_header", "logger.info", "sorted", "pprint_package"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.search_py.search", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.show_py.main"]
The function (pprint_packages) defined within the public class called public.The function start at line 93 and ends at 117. It contains 21 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [93.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions ca...
anaconda_anaconda-client
public
public
0
0
pprint_user
def pprint_user(user):user = user.copy()logger.info('Username: %s', user.pop('login'))logger.info('Member since: %s', parse_date(user.pop('created_at')).ctime())for key, value in user.items():logger.info('+%s: %s', key, value)
2
6
1
66
1
120
126
120
user
['user']
None
{"Assign": 1, "Expr": 3, "For": 1}
9
7
9
["user.copy", "logger.info", "user.pop", "logger.info", "ctime", "parse_date", "user.pop", "user.items", "logger.info"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.show_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.whoami_py.main"]
The function (pprint_user) defined within the public class called public.The function start at line 120 and ends at 126. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 9.0 functions, It has 9.0 functions called in...
anaconda_anaconda-client
public
public
0
0
pprint_collections
def pprint_collections(collections):if collections:logger.info('Collections:')for collection in collections:collection['permission'] = 'public' if collection['public'] else 'private'logger.info(' + %(name)25s: [%(permission)s] %(description)s', collection)
4
6
1
40
0
129
134
129
collections
[]
None
{"Assign": 1, "Expr": 2, "For": 1, "If": 1}
2
6
2
["logger.info", "logger.info"]
0
[]
The function (pprint_collections) defined within the public class called public.The function start at line 129 and ends at 134. It contains 6 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 2.0 functions, and It has 2.0 functio...
anaconda_anaconda-client
PackageSpec
public
0
0
__init__
def __init__(self, user, package=None, version=None, basename=None, attrs=None, spec_str=None):self._user = userself._package = packageself._version = versionself._basename = basenameself.attrs = attrsif spec_str:self.spec_str = spec_strelse:spec_str = str(user)if package:spec_str = f'{spec_str}/{package}'if version:sp...
5
17
7
94
0
7
23
7
self,user,package,version,basename,attrs,spec_str
[]
None
{"Assign": 11, "If": 4}
1
17
1
["str"]
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 PackageSpec.The function start at line 7 and ends at 23. It contains 17 lines of code and it has a cyclomatic complexity of 5. It takes 7 parameters, represented as [7.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ins...
anaconda_anaconda-client
PackageSpec
public
0
0
__str__
def __str__(self):return self.spec_str
1
2
1
9
0
25
26
25
self
[]
Returns
{"Return": 1}
0
2
0
[]
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 public class called PackageSpec.The function start at line 25 and ends at 26. 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 has 26.0 functions calling this function which are ...
anaconda_anaconda-client
PackageSpec
public
0
0
__repr__
def __repr__(self):return f'<PackageSpec {self.spec_str!r}>'
1
2
1
8
0
28
29
28
self
[]
Returns
{"Return": 1}
0
2
0
[]
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 public class called PackageSpec.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 this function return a value. It has 22.0 functions calling this function which are...