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
PackageSpec
public
0
0
__eq__
def __eq__(self, other):return self.spec_str == other.spec_str
1
2
2
15
0
31
32
31
self,other
[]
Returns
{"Return": 1}
0
2
0
[]
21
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.DAM.__eq__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.IDAM.__eq__", "_.content.gdrive.My...
The function (__eq__) defined within the public class called PackageSpec.The function start at line 31 and ends at 32. It contains 2 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 has 21.0 functions calling this function which ar...
anaconda_anaconda-client
PackageSpec
public
0
0
user
def user(self):if self._user is None:raise UserError(f'user not given (got {self.spec_str!r} expected <username>)')return self._user
2
4
1
22
0
35
38
35
self
[]
Returns
{"If": 1, "Return": 1}
1
4
1
["UserError"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.behaviour.connection.user.user_steps_py.step_impl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914568_treasure_data_td_client_python.tdclient.client_py.Client.users", ...
The function (user) defined within the public class called PackageSpec.The function start at line 35 and ends at 38. It contains 4 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 declare 1.0 function, It has 1.0 function called insid...
anaconda_anaconda-client
PackageSpec
public
0
0
name
def name(self):if self._package is None:raise UserError(f'package not given in spec (got {self.spec_str!r} expected <username>/<package>)')return self._package
2
4
1
22
0
41
44
41
self
[]
Returns
{"If": 1, "Return": 1}
1
4
1
["UserError"]
13
["_.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 (name) defined within the public class called PackageSpec.The function start at line 41 and ends at 44. It contains 4 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 declare 1.0 function, It has 1.0 function called insid...
anaconda_anaconda-client
PackageSpec
public
0
0
package
def package(self):if self._package is None:raise UserError(f'package not given in spec (got {self.spec_str!r} expected <username>/<package>)')return self._package
2
4
1
22
0
47
50
47
self
[]
Returns
{"If": 1, "Return": 1}
1
4
1
["UserError"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3678342_kieranjol_ifiscripts.seq2ffv1_py.run_loop"]
The function (package) defined within the public class called PackageSpec.The function start at line 47 and ends at 50. It contains 4 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 declare 1.0 function, It has 1.0 function called in...
anaconda_anaconda-client
PackageSpec
public
0
0
version
def version(self):if self._version is None:raise UserError(f'version not given in spec (got {self.spec_str!r} expected <username>/<package>/<version>)')return self._version
2
6
1
22
0
53
58
53
self
[]
Returns
{"If": 1, "Return": 1}
1
6
1
["UserError"]
29
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719382_myint_rstcheck.src.rstcheck._cli_py.version_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720326_openxc_openxc_python.openxc.tools.control_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_C...
The function (version) defined within the public class called PackageSpec.The function start at line 53 and ends at 58. 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 declare 1.0 function, It has 1.0 function called in...
anaconda_anaconda-client
PackageSpec
public
0
0
basename
def basename(self):if self._basename is None:raise UserError(f'basename not given in spec (got {self.spec_str!r} expected <username>/<package>/<version>/<filename>)')return self._basename
2
6
1
22
0
61
66
61
self
[]
Returns
{"If": 1, "Return": 1}
1
6
1
["UserError"]
37
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.pygments.lexers.__init___py.get_lexer_for_filename", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.pygments.lexers.__init__...
The function (basename) defined within the public class called PackageSpec.The function start at line 61 and ends at 66. 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 declare 1.0 function, It has 1.0 function called i...
anaconda_anaconda-client
public
public
0
0
package_specs
def package_specs(spec):user = specpackage = Noneattrs = {}if '/' in user:user, package = user.split('/', 1)if '/' in package:raise TypeError('invalid package spec')return PackageSpec(user, package, None, None, attrs, spec)
3
9
1
57
3
69
78
69
spec
['user', 'package', 'attrs']
Returns
{"Assign": 4, "If": 2, "Return": 1}
3
10
3
["user.split", "TypeError", "PackageSpec"]
0
[]
The function (package_specs) defined within the public class called public.The function start at line 69 and ends at 78. It contains 9 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, and It has 3.0 functions ...
anaconda_anaconda-client
public
public
0
0
parse_specs
def parse_specs(spec):user = specpackage = version = basename = Noneattrs = {}if '/' in user:user, package = user.split('/', 1)if package and '/' in package:package, version = package.split('/', 1)if version and '/' in version:version, basename = version.split('/', 1)if basename and '?' in basename:basename, qsl = base...
8
14
1
117
5
81
97
81
spec
['package', 'basename', 'version', 'user', 'attrs']
Returns
{"Assign": 8, "If": 4, "Return": 1}
7
17
7
["user.split", "package.split", "version.split", "basename.rsplit", "dict", "parse_qsl", "PackageSpec"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.test_cli_py.test_copy_arg_parsing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.test_cli_py.test_move_arg_parsing", "_.content.gdrive...
The function (parse_specs) defined within the public class called public.The function start at line 81 and ends at 97. It contains 14 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 7.0 functions, It has 7.0 functions called...
anaconda_anaconda-client
PackageSpec
public
0
0
__init__
def __init__(self, org, group_name=None, member=None, spec_str=None):self._org = orgself._group_name = group_nameself._member = memberif not spec_str:spec_str = str(org)if group_name:spec_str = f'{spec_str}/{group_name}'if member:spec_str = f'{spec_str}/{member}'self.spec_str = spec_str
4
11
5
63
0
101
112
101
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 101 and ends at 112. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [101.0] and does not return any value. It declare 1.0 function, It has 1.0 function calle...
anaconda_anaconda-client
PackageSpec
public
0
0
__str__
def __str__(self):return self.spec_str
1
2
1
9
0
114
115
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 114 and ends at 115. 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 ar...
anaconda_anaconda-client
PackageSpec
public
0
0
__repr__
def __repr__(self):return f'<PackageSpec {self.spec_str!r}>'
1
2
1
8
0
117
118
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 117 and ends at 118. 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 a...
anaconda_anaconda-client
PackageSpec
public
0
0
__eq__
def __eq__(self, other):return self.spec_str == other.spec_str
1
2
2
15
0
120
121
31
self,other
[]
Returns
{"Return": 1}
0
2
0
[]
21
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.DAM.__eq__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.ibm.ibm_py.IDAM.__eq__", "_.content.gdrive.My...
The function (__eq__) defined within the public class called PackageSpec.The function start at line 120 and ends at 121. It contains 2 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 has 21.0 functions calling this function which ...
anaconda_anaconda-client
GroupSpec
public
0
0
org
def org(self):if self._org is None:raise UserError(f'Organization not given (got {self.spec_str!r} expected <organization>)')return self._org
2
4
1
22
0
124
127
124
self
[]
Returns
{"If": 1, "Return": 1}
1
4
1
["UserError"]
0
[]
The function (org) defined within the public class called GroupSpec.The function start at line 124 and ends at 127. It contains 4 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 declare 1.0 function, and It has 1.0 function called i...
anaconda_anaconda-client
GroupSpec
public
0
0
group_name
def group_name(self):if self._group_name is None:raise UserError(f'Group name not given (got {self.spec_str!r} expected <organization>/<group_name>)')return self._group_name
2
4
1
22
0
130
133
130
self
[]
Returns
{"If": 1, "Return": 1}
1
4
1
["UserError"]
0
[]
The function (group_name) defined within the public class called GroupSpec.The function start at line 130 and ends at 133. It contains 4 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 declare 1.0 function, and It has 1.0 function c...
anaconda_anaconda-client
GroupSpec
public
0
0
member
def member(self):if self._member is None:raise UserError(f'Member name not given (got {self.spec_str!r} expected <organization>/<group_name>/<member>)')return self._member
2
6
1
22
0
136
141
136
self
[]
Returns
{"If": 1, "Return": 1}
1
6
1
["UserError"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94760120_Open_Wine_Components_umu_protonfixes.config_base_py.ConfigBase.init_sections"]
The function (member) defined within the public class called GroupSpec.The function start at line 136 and ends at 141. 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 declare 1.0 function, It has 1.0 function called ins...
anaconda_anaconda-client
public
public
0
0
group_spec
def group_spec(spec):"""<organization>/<group_name>/<member>"""org = specgroup = member = Noneif '/' in org:org, group = org.split('/', 1)if group and '/' in group:group, member = group.split('/', 1)if member and '/' in member:raise UserError(f'Invalid group specification "{member}" (unexpected "/")')return GroupSpec(o...
6
10
1
74
3
144
155
144
spec
['group', 'member', 'org']
Returns
{"Assign": 4, "Expr": 1, "If": 3, "Return": 1}
4
12
4
["org.split", "group.split", "UserError", "GroupSpec"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.test_cli_py.test_groups_arg_parsing"]
The function (group_spec) defined within the public class called public.The function start at line 144 and ends at 155. It contains 10 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 4.0 functions, It has 4.0 functions calle...
anaconda_anaconda-client
public
public
0
0
lcm
def lcm(left: int, right: int) -> int:"""Find the least common multiple of two numbers."""if left == 0:left = 1if right == 0:right = 1return left * right // math.gcd(left, right)
3
6
2
35
2
17
23
17
left,right
['left', 'right']
int
{"Assign": 2, "Expr": 1, "If": 2, "Return": 1}
1
7
1
["math.gcd"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.TableCore.__render_analysis", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95211150_Hsinha11_Leetcode_solutions.2307_replace_non_coprime_numbers_in_a...
The function (lcm) defined within the public class called public.The function start at line 17 and ends at 23. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [17.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which...
anaconda_anaconda-client
ValuesView
public
0
1
__init__
def __init__(self,content: typing.Mapping[typing.Tuple[str, ...], str],key_length: int,*,default: typing.Optional[str] = None,) -> None:"""Initialize new :class:`~ValuesView` instance."""self.__content: 'typing_extensions.Final[typing.Mapping[typing.Tuple[str, ...], str]]' = contentself.__default: 'typing_extensions.Fi...
4
16
4
106
0
55
72
55
self,content,key_length,default
[]
None
{"AnnAssign": 3, "Assign": 1, "Expr": 1, "If": 1}
3
18
3
["range", "itertools.combinations", "range"]
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 ValuesView, that inherit another class.The function start at line 55 and ends at 72. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [55.0] and does not return any value. It declares 3.0 functions,...
anaconda_anaconda-client
ValuesView
public
0
1
__getitem__
def __getitem__(self, key: typing.Tuple[str, ...]) -> str:"""Retrieve a value for the :code:`key`."""if len(key) != self.__key_length:raise ValueError('invalid length of a key')combination: typing.Tuple[int, ...]for combination in COMBINATIONS[self.__key_length]:current_key = tuple(ANY if (index in combination) else va...
7
13
2
108
0
74
90
74
self,key
[]
str
{"AnnAssign": 1, "Assign": 1, "Expr": 1, "For": 1, "If": 2, "Return": 2, "Try": 1}
5
17
5
["len", "ValueError", "tuple", "enumerate", "KeyError"]
37
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.AbstractForeignList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.ForeignList.__g...
The function (__getitem__) defined within the public class called ValuesView, that inherit another class.The function start at line 74 and ends at 90. It contains 13 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [74.0] and does not return any value. It declares 5.0 functio...
anaconda_anaconda-client
ValuesView
public
0
1
__iter__
def __iter__(self) -> typing.Iterator[typing.Tuple[str, ...]]:"""Iterate through registered keys and patterns."""return iter(self.__content)
1
2
1
27
0
92
94
92
self
[]
typing.Iterator[typing.Tuple[str, ...]]
{"Expr": 1, "Return": 1}
1
3
1
["iter"]
19
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList._to_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720205_maxtepkeev_python_redmine.redminelib.resultsets_py.ResourceSet.__iter__", ...
The function (__iter__) defined within the public class called ValuesView, that inherit another class.The function start at line 92 and ends at 94. 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 ha...
anaconda_anaconda-client
ValuesView
public
0
1
__len__
def __len__(self) -> int:"""Retrieve total number of records in the collection."""return len(self.__content)
1
2
1
15
0
96
98
96
self
[]
int
{"Expr": 1, "Return": 1}
1
3
1
["len"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3576232_vmware_liota.packages.examples.kura.kura_integrate_iotcc_py.sub_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69765524_openshift_elliott.elliottlib.model_py.ListModel.__getitem__", "_.content.gdri...
The function (__len__) defined within the public class called ValuesView, that inherit another class.The function start at line 96 and ends at 98. 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
ValuesView
public
0
1
__init__
def __init__(self) -> None:"""Initialize new :class:`~TableDesign` instance."""self.__horizontal: 'typing_extensions.Final[typing.Dict[typing.Tuple[str, ...], str]]' = {}self.__horizontal_view: 'typing_extensions.Final[ValuesView]' = ValuesView(self.__horizontal, 2, default='')self.__intersection: 'typing_extensions.Fi...
1
7
1
86
0
118
127
118
self,content,key_length,default
[]
None
{"AnnAssign": 3, "Assign": 1, "Expr": 1, "If": 1}
3
18
3
["range", "itertools.combinations", "range"]
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 ValuesView, that inherit another class.The function start at line 118 and ends at 127. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, I...
anaconda_anaconda-client
TableDesign
public
0
0
horizontal
def horizontal(self) -> ValuesView:# noqa: D401"""Horizontal borders between cells above it and below it."""return self.__horizontal_view
1
2
1
12
0
130
132
130
self
[]
ValuesView
{"Expr": 1, "Return": 1}
0
3
0
[]
0
[]
The function (horizontal) defined within the public class called TableDesign.The function start at line 130 and ends at 132. 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..
anaconda_anaconda-client
TableDesign
public
0
0
intersection
def intersection(self) -> ValuesView:"""Intersection between the cells on the top-left, top-right, bottom-left and bottom right of it."""return self.__intersection_view
1
2
1
12
0
135
137
135
self
[]
ValuesView
{"Expr": 1, "Return": 1}
0
3
0
[]
54
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.object_py.ExclusiveKeys.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.views.models_py.get_model", "_.content.gdrive.MyDriv...
The function (intersection) defined within the public class called TableDesign.The function start at line 135 and ends at 137. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 54.0 functions calling this function which a...
anaconda_anaconda-client
TableDesign
public
0
0
vertical
def vertical(self) -> ValuesView:"""Vertical borders between cells on the left of it and on the right"""return self.__vertical_view
1
2
1
12
0
140
142
140
self
[]
ValuesView
{"Expr": 1, "Return": 1}
0
3
0
[]
0
[]
The function (vertical) defined within the public class called TableDesign.The function start at line 140 and ends at 142. 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..
anaconda_anaconda-client
TableDesign
public
0
0
with_border_style
def with_border_style(self,horizontal: str,vertical: str,corner_nw: str,corner_ne: str,corner_se: str,corner_sw: str,) -> 'TableDesign':"""Define a style for an external border of the table... warning::This would create a new :class:`~TableDesign` with requested modifications. There would be no modificationsto the orig...
1
19
7
140
0
144
170
144
self,horizontal,vertical,corner_nw,corner_ne,corner_se,corner_sw
[]
'TableDesign'
{"AnnAssign": 1, "Assign": 8, "Expr": 1, "Return": 1}
1
27
1
["self.__copy"]
0
[]
The function (with_border_style) defined within the public class called TableDesign.The function start at line 144 and ends at 170. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [144.0] and does not return any value. It declare 1.0 function, and It has 1.0 ...
anaconda_anaconda-client
TableDesign
public
0
0
with_border_transition
def with_border_transition(self,kind: str,top: str,right: str,bottom: str,left: str,) -> 'TableDesign':"""Define how external border should transition into borders of a :code:`kind`... warning::This would create a new :class:`~TableDesign` with requested modifications. There would be no modificationsto the original ins...
1
14
6
96
0
172
193
172
self,kind,top,right,bottom,left
[]
'TableDesign'
{"AnnAssign": 1, "Assign": 4, "Expr": 1, "Return": 1}
1
22
1
["self.__copy"]
0
[]
The function (with_border_transition) defined within the public class called TableDesign.The function start at line 172 and ends at 193. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [172.0] and does not return any value. It declare 1.0 function, and It has...
anaconda_anaconda-client
TableDesign
public
0
0
with_cell_style
def with_cell_style(self,kind: str,horizontal: str,vertical: str,intersection: str,) -> 'TableDesign':"""Define the borders between cells of the same :code:`kind`... warning::This would create a new :class:`~TableDesign` with requested modifications. There would be no modificationsto the original instance."""result: 'T...
1
12
5
70
0
195
214
195
self,kind,horizontal,vertical,intersection
[]
'TableDesign'
{"AnnAssign": 1, "Assign": 3, "Expr": 1, "Return": 1}
1
20
1
["self.__copy"]
0
[]
The function (with_cell_style) defined within the public class called TableDesign.The function start at line 195 and ends at 214. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [195.0] and does not return any value. It declare 1.0 function, and It has 1.0 fu...
anaconda_anaconda-client
TableDesign
public
0
0
with_horizontal
def with_horizontal(self,top_kind: str,bottom_kind: str,value: str,) -> 'TableDesign':"""Define a single horizontal border rule... warning::This would create a new :class:`~TableDesign` with requested modifications. There would be no modificationsto the original instance."""result: 'TableDesign' = self.__copy()result._...
1
9
4
42
0
216
232
216
self,top_kind,bottom_kind,value
[]
'TableDesign'
{"AnnAssign": 1, "Assign": 1, "Expr": 1, "Return": 1}
1
17
1
["self.__copy"]
0
[]
The function (with_horizontal) defined within the public class called TableDesign.The function start at line 216 and ends at 232. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [216.0] and does not return any value. It declare 1.0 function, and It has 1.0 fun...
anaconda_anaconda-client
TableDesign
public
0
0
with_intersection
def with_intersection(self,top_left_kind: str,top_right_kind: str,bottom_left_kind: str,bottom_right_kind: str,value: str,) -> 'TableDesign':"""Define a single intersection border rule... warning::This would create a new :class:`~TableDesign` with requested modifications. There would be no modificationsto the original ...
1
11
6
54
0
234
252
234
self,top_left_kind,top_right_kind,bottom_left_kind,bottom_right_kind,value
[]
'TableDesign'
{"AnnAssign": 1, "Assign": 1, "Expr": 1, "Return": 1}
1
19
1
["self.__copy"]
0
[]
The function (with_intersection) defined within the public class called TableDesign.The function start at line 234 and ends at 252. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [234.0] and does not return any value. It declare 1.0 function, and It has 1.0 ...
anaconda_anaconda-client
TableDesign
public
0
0
with_vertical
def with_vertical(self,left_kind: str,right_kind: str,value: str,) -> 'TableDesign':"""Define a single vertical border rule... warning::This would create a new :class:`~TableDesign` with requested modifications. There would be no modificationsto the original instance."""result: 'TableDesign' = self.__copy()result.__ver...
1
9
4
42
0
254
270
254
self,left_kind,right_kind,value
[]
'TableDesign'
{"AnnAssign": 1, "Assign": 1, "Expr": 1, "Return": 1}
1
17
1
["self.__copy"]
0
[]
The function (with_vertical) defined within the public class called TableDesign.The function start at line 254 and ends at 270. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [254.0] and does not return any value. It declare 1.0 function, and It has 1.0 funct...
anaconda_anaconda-client
TableDesign
public
0
0
__copy
def __copy(self) -> 'TableDesign':"""Create a full copy of the current instance.Used for safe modifications without any changes to the original value."""result: 'TableDesign' = TableDesign()result.__horizontal.update(self.__horizontal)result.__intersection.update(self.__intersection)result.__vertical.update(self.__vert...
1
6
1
47
0
272
282
272
self
[]
'TableDesign'
{"AnnAssign": 1, "Expr": 4, "Return": 1}
4
11
4
["TableDesign", "result.__horizontal.update", "result.__intersection.update", "result.__vertical.update"]
0
[]
The function (__copy) defined within the public class called TableDesign.The function start at line 272 and ends at 282. 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 4.0 functions, and It has 4.0 functions call...
anaconda_anaconda-client
ValuesView
public
0
1
__init__
def __init__(self,kind: str,value: typing.Any,*,alignment: 'Alignment' = '<',) -> None:"""Initialize new :class:`~TableCell` instance."""if value is None:value = ''self.alignment: 'Alignment' = alignmentself.kind: str = kindself.value: str = str(value)
2
12
4
59
0
296
309
296
self,content,key_length,default
[]
None
{"AnnAssign": 3, "Assign": 1, "Expr": 1, "If": 1}
3
18
3
["range", "itertools.combinations", "range"]
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 ValuesView, that inherit another class.The function start at line 296 and ends at 309. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [296.0] and does not return any value. It declares 3.0 functio...
anaconda_anaconda-client
TableCell
public
0
0
__repr__
def __repr__(self) -> str:"""Prepare a string representation of the instance."""return f'{type(self).__name__}(kind={self.kind!r}, value={self.value!r}, alignment={self.alignment!r})'
1
2
1
11
0
311
313
311
self
[]
str
{"Expr": 1, "Return": 1}
1
3
1
["type"]
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 TableCell.The function start at line 311 and ends at 313. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called insid...
anaconda_anaconda-client
TableCell
public
0
0
__str__
def __str__(self) -> str:"""Prepare a string representation of the instance."""return self.value
1
2
1
12
0
315
317
315
self
[]
str
{"Expr": 1, "Return": 1}
0
3
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 TableCell.The function start at line 315 and ends at 317. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 26.0 functions calling this function which are ["_....
anaconda_anaconda-client
ValuesView
public
0
1
__init__
def __init__(self, *, default: TableCell) -> None:"""Initialize new :class:`~TableCore` instance."""self.__columns: typing.Optional[int] = 0self.__content: 'typing_extensions.Final[typing.List[typing.List[typing.Optional[TableCell]]]]' = []self.__default: TableCell = defaultself.__rows: typing.Optional[int] = 0
1
5
2
53
0
335
340
335
self,content,key_length,default
[]
None
{"AnnAssign": 3, "Assign": 1, "Expr": 1, "If": 1}
3
18
3
["range", "itertools.combinations", "range"]
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 ValuesView, that inherit another class.The function start at line 335 and ends at 340. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [335.0] and does not return any value. It declares 3.0 function...
anaconda_anaconda-client
TableCore
public
0
0
columns
def columns(self) -> int:# noqa: D401"""Total number o columns in this table."""if self.__columns is None:self.__columns = max(map(len, self.__content))return self.__columns
2
4
1
34
0
343
347
343
self
[]
int
{"Assign": 1, "Expr": 1, "If": 1, "Return": 1}
2
5
2
["max", "map"]
0
[]
The function (columns) defined within the public class called TableCore.The function start at line 343 and ends at 347. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions calle...
anaconda_anaconda-client
TableCore
public
0
0
default
def default(self) -> TableCell:# noqa: D401"""Default cell content to show for empty cells."""return self.__default
1
2
1
12
0
350
352
350
self
[]
TableCell
{"Expr": 1, "Return": 1}
0
3
0
[]
67
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3516508_rvagg_archived_pangyp.gyp.pylib.gyp.msvs_emulation_py.MsvsSettings.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681252_googlecloudplatform_cloud_sql_python_connector.noxfile_py.system", "_.conte...
The function (default) defined within the public class called TableCore.The function start at line 350 and ends at 352. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 67.0 functions calling this function which are ["_....
anaconda_anaconda-client
TableCore
public
0
0
default
def default(self, value: TableCell) -> None:"""Update the `default` value."""self.__default = value
1
2
2
17
0
355
357
355
self
[]
TableCell
{"Expr": 1, "Return": 1}
0
3
0
[]
67
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3516508_rvagg_archived_pangyp.gyp.pylib.gyp.msvs_emulation_py.MsvsSettings.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3681252_googlecloudplatform_cloud_sql_python_connector.noxfile_py.system", "_.conte...
The function (default) defined within the public class called TableCore.The function start at line 355 and ends at 357. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [355.0] and does not return any value. It has 67.0 functions calling this function which are ...
anaconda_anaconda-client
TableCore
public
0
0
rows
def rows(self) -> int:# noqa: D401"""Total number of rows in this table."""if self.__rows is None:self.__rows = len(self.__content)return self.__rows
2
4
1
29
0
360
364
360
self
[]
int
{"Assign": 1, "Expr": 1, "If": 1, "Return": 1}
1
5
1
["len"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.openlineage.tests.unit.openlineage.test_sqlparser_py.TestSQLParser.test_parse_table_schemas"]
The function (rows) defined within the public class called TableCore.The function start at line 360 and ends at 364. 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 declare 1.0 function, It has 1.0 function called inside wh...
anaconda_anaconda-client
TableCore
public
0
0
append_row
def append_row(self, values: typing.Iterable[typing.Optional[TableCell]]) -> None:"""Append new row to the bottom of this table."""row: typing.List[typing.Optional[TableCell]] = list(values)self.__content.append(row)if self.__columns is not None:self.__columns = max(self.__columns, len(row))if self.__rows is not None:s...
3
7
2
84
0
366
373
366
self,values
[]
None
{"AnnAssign": 1, "Assign": 1, "AugAssign": 1, "Expr": 2, "If": 2}
4
8
4
["list", "self.__content.append", "max", "len"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.Simpl...
The function (append_row) defined within the public class called TableCore.The function start at line 366 and ends at 373. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [366.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions cal...
anaconda_anaconda-client
TableCore
public
0
0
remove_column
def remove_column(self, column: int) -> None:"""Remove a single column from the table."""row: typing.List[typing.Optional[TableCell]]for row in self.__content:try:del row[column]except IndexError:passif self.__columns is not None:self.__columns -= 1
4
9
2
56
0
375
384
375
self,column
[]
None
{"AnnAssign": 1, "AugAssign": 1, "Expr": 1, "For": 1, "If": 1, "Try": 1}
0
10
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.remove_column"]
The function (remove_column) defined within the public class called TableCore.The function start at line 375 and ends at 384. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [375.0] and does not return any value. It has 1.0 function calling this function which ...
anaconda_anaconda-client
TableCore
public
0
0
remove_row
def remove_row(self, row: int) -> None:"""Remove a single row from the table."""try:del self.__content[row]except IndexError:passif self.__rows is not None:self.__rows -= 1
3
7
2
38
0
386
393
386
self,row
[]
None
{"AugAssign": 1, "Expr": 1, "If": 1, "Try": 1}
0
8
0
[]
0
[]
The function (remove_row) defined within the public class called TableCore.The function start at line 386 and ends at 393. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [386.0] and does not return any value..
anaconda_anaconda-client
TableCore
public
0
0
render
def render(self, design: TableDesign) -> typing.Iterator[str]:"""Print table to the user (in terminal)."""empty_row = [EMPTY_CELL] * self.columnswidths: typing.Sequence[int] = self.__render_analysis(design=design)current: typing.Sequence[typing.Optional[TableCell]]previous: typing.Sequence[typing.Optional[TableCell]] =...
2
10
2
143
0
395
406
395
self,design
[]
typing.Iterator[str]
{"AnnAssign": 3, "Assign": 2, "Expr": 4, "For": 1}
4
12
4
["self.__render_analysis", "self.__render_separator", "self.__render_row", "self.__render_separator"]
503
["_.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.21593641_openforcefield_openff_fragmenter.versioneer_py.get_versions", "_.content....
The function (render) defined within the public class called TableCore.The function start at line 395 and ends at 406. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [395.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called...
anaconda_anaconda-client
TableCore
public
0
0
trim
def trim(self,*,empty_columns: bool = False,empty_rows: bool = False,empty_values: bool = False,) -> typing.Tuple[typing.List[int], typing.List[int]]:"""Remove trailing empty cells from each row.:param empty_columns: Also remove columns if all of their cells are empty.:param empty_rows: Also remove rows if all of their...
17
50
4
317
0
408
485
408
self,empty_columns,empty_rows,empty_values
[]
typing.Tuple[typing.List[int], typing.List[int]]
{"AnnAssign": 8, "Assign": 5, "AugAssign": 5, "Expr": 7, "For": 1, "If": 4, "Return": 1, "Try": 1, "While": 4}
7
78
7
["len", "pop", "self.remove_row", "removed_rows.append", "self.remove_row", "self.remove_column", "removed_columns.append"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564484_cornell_brg_pydgin.riscv.isa_RV32A_py.execute_amoadd_w", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564484_cornell_brg_pydgin.riscv.isa_RV32A_py.execute_amoand_w", "_.content.gdrive.MyDrive.Phd_Thesis.Da...
The function (trim) defined within the public class called TableCore.The function start at line 408 and ends at 485. It contains 50 lines of code and it has a cyclomatic complexity of 17. It takes 4 parameters, represented as [408.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called ...
anaconda_anaconda-client
TableCore
public
0
0
__iterate_row
def __iterate_row(self, row: typing.Iterable[typing.Optional[TableCell]]) -> typing.Iterator[TableCell]:"""Iterate all cells in a single row.This may add trailing cells to ensure the number of columns."""for value in itertools.islice(itertools.chain(row, itertools.repeat(self.__default)), self.__columns):yield value or...
3
3
2
61
0
487
494
487
self,row
[]
typing.Iterator[TableCell]
{"Expr": 2, "For": 1}
3
8
3
["itertools.islice", "itertools.chain", "itertools.repeat"]
0
[]
The function (__iterate_row) defined within the public class called TableCore.The function start at line 487 and ends at 494. It contains 3 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [487.0] and does not return any value. It declares 3.0 functions, and It has 3.0 funct...
anaconda_anaconda-client
TableCore
public
0
0
__render_analysis
def __render_analysis(self, design: TableDesign) -> typing.Sequence[int]:"""Measure each column and vertical border."""curr: typing.Sequence[typing.Optional[TableCell]]curr_cell: TableCellcurr_prev: strprev: typing.Sequence[typing.Optional[TableCell]]prev_cell: TableCellprev_prev: strindex: inttemp: intsteps: typing.Li...
6
48
2
457
0
496
560
496
self,design
[]
typing.Sequence[int]
{"AnnAssign": 10, "Assign": 18, "AugAssign": 5, "Expr": 1, "For": 4, "If": 1, "Return": 1}
22
65
22
["zip", "self.__iterate_row", "self.__iterate_row", "max", "len", "len", "lcm", "len", "max", "len", "max", "len", "len", "self.__iterate_row", "max", "len", "lcm", "len", "max", "len", "range", "len"]
0
[]
The function (__render_analysis) defined within the public class called TableCore.The function start at line 496 and ends at 560. It contains 48 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [496.0] and does not return any value. It declares 22.0 functions, and It has 22....
anaconda_anaconda-client
TableCore
public
0
0
__render_row
def __render_row(self,row: typing.Sequence[typing.Optional[TableCell]],widths: typing.Iterable[int],design: TableDesign,) -> typing.Iterator[str]:"""Render a row with values."""cell: typing.Optional[TableCell]result: str = ''previous_kind: str = EMPTYwidths = iter(widths)for cell in self.__iterate_row(row):result += TE...
2
15
4
144
0
562
577
562
self,row,widths,design
[]
typing.Iterator[str]
{"AnnAssign": 3, "Assign": 2, "AugAssign": 2, "Expr": 2, "For": 1}
8
16
8
["iter", "self.__iterate_row", "format", "TEMPLATE.format", "next", "format", "TEMPLATE.format", "next"]
0
[]
The function (__render_row) defined within the public class called TableCore.The function start at line 562 and ends at 577. It contains 15 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [562.0] and does not return any value. It declares 8.0 functions, and It has 8.0 funct...
anaconda_anaconda-client
TableCore
public
0
0
__render_separator
def __render_separator(self,above_row: typing.Sequence[typing.Optional[TableCell]],below_row: typing.Sequence[typing.Optional[TableCell]],widths: typing.Iterable[int],design: TableDesign,) -> typing.Iterator[str]:"""Render a string that contains of horizontal separators and intersections."""above_cell: typing.Optional[...
4
30
5
245
0
579
609
579
self,above_row,below_row,widths,design
[]
typing.Iterator[str]
{"AnnAssign": 6, "Assign": 5, "AugAssign": 3, "Expr": 2, "For": 1, "If": 2}
13
31
13
["iter", "zip", "self.__iterate_row", "self.__iterate_row", "format", "TEMPLATE.format", "next", "next", "len", "next", "format", "TEMPLATE.format", "next"]
0
[]
The function (__render_separator) defined within the public class called TableCore.The function start at line 579 and ends at 609. It contains 30 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [579.0] and does not return any value. It declares 13.0 functions, and It has 13...
anaconda_anaconda-client
TableCore
public
0
0
__delitem__
def __delitem__(self, cell: typing.Tuple[int, int]) -> None:"""Remove a single cell from the table (set it to empty)."""try:self.__content[cell[0]][cell[1]] = Noneexcept IndexError:pass
2
5
2
42
0
611
616
611
self,cell
[]
None
{"Assign": 1, "Expr": 1, "Try": 1}
0
6
0
[]
17
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.store_py.NpyStore.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.case_insensitive_dict_py.CIDict.__delitem__", "_....
The function (__delitem__) defined within the public class called TableCore.The function start at line 611 and ends at 616. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [611.0] and does not return any value. It has 17.0 functions calling this function which ...
anaconda_anaconda-client
ValuesView
public
0
1
__getitem__
def __getitem__(self, cell: typing.Tuple[int, int]) -> TableCell:"""Retrieve a single cell from the table."""try:return self.__content[cell[0]][cell[1]] or self.__defaultexcept IndexError:return self.__default
3
5
2
48
0
618
623
618
self,key
[]
str
{"AnnAssign": 1, "Assign": 1, "Expr": 1, "For": 1, "If": 2, "Return": 2, "Try": 1}
5
17
5
["len", "ValueError", "tuple", "enumerate", "KeyError"]
37
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.AbstractForeignList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.ForeignList.__g...
The function (__getitem__) defined within the public class called ValuesView, that inherit another class.The function start at line 618 and ends at 623. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [618.0] and does not return any value. It declares 5.0 funct...
anaconda_anaconda-client
TableCore
public
0
0
__setitem__
def __setitem__(self, cell: typing.Tuple[int, int], value: TableCell) -> None:"""Update a single cell in a table."""while len(self.__content) <= cell[0]:self.__content.append([])while len(self.__content[cell[0]]) <= cell[1]:self.__content[cell[0]].append(None)self.__content[cell[0]][cell[1]] = valueif self.__columns is...
5
10
3
145
0
625
636
625
self,cell,value
[]
None
{"Assign": 3, "Expr": 3, "If": 2, "While": 2}
6
12
6
["len", "self.__content.append", "len", "append", "max", "max"]
27
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.output.__init___py.Object.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList.__setitem__", "_.cont...
The function (__setitem__) defined within the public class called TableCore.The function start at line 625 and ends at 636. It contains 10 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [625.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions c...
anaconda_anaconda-client
ValuesView
public
0
1
__init__
def __init__(self,heading_rows: int = 0,heading_columns: int = 0,) -> None:"""Initialize new :class:`~SimpleTable` instance."""self.__alignment: typing.Dict[typing.Tuple[int, int], 'Alignment'] = {(-1, -1): '<'}self.__clean: bool = Trueself.__core: 'typing_extensions.Final[TableCore]' = TableCore(default=TableCell(kind...
1
10
3
94
0
653
663
653
self,content,key_length,default
[]
None
{"AnnAssign": 3, "Assign": 1, "Expr": 1, "If": 1}
3
18
3
["range", "itertools.combinations", "range"]
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 ValuesView, that inherit another class.The function start at line 653 and ends at 663. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [653.0] and does not return any value. It declares 3.0 functio...
anaconda_anaconda-client
SimpleTable
public
0
0
alignment
def alignment(self) -> 'Alignment':# noqa: D401"""Default alignment value for all cells."""return self.__alignment[-1, -1]
1
2
1
19
0
666
668
666
self
[]
'Alignment'
{"Expr": 1, "Return": 1}
0
3
0
[]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69736792_webassembly_component_model.design.mvp.canonical_abi.definitions_py.BufferGuestImpl.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69736792_webassembly_component_model.design.mvp.canonical_abi.def...
The function (alignment) defined within the public class called SimpleTable.The function start at line 666 and ends at 668. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 14.0 functions calling this function which are ...
anaconda_anaconda-client
SimpleTable
public
0
0
alignment
def alignment(self, value: 'Alignment') -> None:"""Update default alignment value."""self.__alignment[-1, -1] = value
1
2
2
24
0
671
673
671
self
[]
'Alignment'
{"Expr": 1, "Return": 1}
0
3
0
[]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69736792_webassembly_component_model.design.mvp.canonical_abi.definitions_py.BufferGuestImpl.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69736792_webassembly_component_model.design.mvp.canonical_abi.def...
The function (alignment) defined within the public class called SimpleTable.The function start at line 671 and ends at 673. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [671.0] and does not return any value. It has 14.0 functions calling this function which ...
anaconda_anaconda-client
TableCore
public
0
0
columns
def columns(self) -> int:# noqa: D401"""Number of columns in this table."""return self.__core.columns
1
2
1
14
0
676
678
676
self
[]
int
{"Assign": 1, "Expr": 1, "If": 1, "Return": 1}
2
5
2
["max", "map"]
0
[]
The function (columns) defined within the public class called TableCore.The function start at line 676 and ends at 678. 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 2.0 functions, and It has 2.0 functions calle...
anaconda_anaconda-client
TableCore
public
0
0
rows
def rows(self) -> int:# noqa: D401"""Number of rows in this table."""return self.__core.rows
1
2
1
14
0
681
683
681
self
[]
int
{"Assign": 1, "Expr": 1, "If": 1, "Return": 1}
1
5
1
["len"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.openlineage.tests.unit.openlineage.test_sqlparser_py.TestSQLParser.test_parse_table_schemas"]
The function (rows) defined within the public class called TableCore.The function start at line 681 and ends at 683. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside wh...
anaconda_anaconda-client
SimpleTable
public
0
0
align_cell
def align_cell(self, row: int, column: int, alignment: 'Alignment') -> None:"""Align a single cell in the table."""if row < 0:raise AttributeError(f'row index must be at least 0, not {row}')if column < 0:raise AttributeError(f'column index must be at least 0, not {column}')self.__alignment[row, column] = alignmentself....
3
7
4
57
0
685
693
685
self,row,column,alignment
[]
None
{"Assign": 2, "Expr": 1, "If": 2}
2
9
2
["AttributeError", "AttributeError"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.align_cell"]
The function (align_cell) defined within the public class called SimpleTable.The function start at line 685 and ends at 693. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [685.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions c...
anaconda_anaconda-client
SimpleTable
public
0
0
align_column
def align_column(self, column: int, alignment: 'Alignment') -> None:"""Align each cell in a single column of the table."""new_alignment: typing.Dict[typing.Tuple[int, int], 'Alignment'] = {key: value for key, value in self.__alignment.items() if key[1] != column}new_alignment[-1, column] = alignmentself.__alignment = n...
3
7
3
77
0
695
702
695
self,column,alignment
[]
None
{"AnnAssign": 1, "Assign": 3, "Expr": 1}
1
8
1
["self.__alignment.items"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.align_column"]
The function (align_column) defined within the public class called SimpleTable.The function start at line 695 and ends at 702. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [695.0] and does not return any value. It declare 1.0 function, It has 1.0 function ca...
anaconda_anaconda-client
SimpleTable
public
0
0
align_row
def align_row(self, row: int, alignment: 'Alignment') -> None:"""Aline each cell in a single row of the table."""new_alignment: typing.Dict[typing.Tuple[int, int], 'Alignment'] = {key: value for key, value in self.__alignment.items() if key[0] != row}new_alignment[row, -1] = alignmentself.__alignment = new_alignmentsel...
3
7
3
77
0
704
711
704
self,row,alignment
[]
None
{"AnnAssign": 1, "Assign": 3, "Expr": 1}
1
8
1
["self.__alignment.items"]
0
[]
The function (align_row) defined within the public class called SimpleTable.The function start at line 704 and ends at 711. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [704.0] and does not return any value. It declare 1.0 function, and It has 1.0 function ...
anaconda_anaconda-client
TableCore
public
0
0
append_row
def append_row(self, values: typing.Iterable[typing.Any]) -> None:"""Append new row to the bottom of this table."""self.__core.append_row([TableCell(kind=CELL, value=value) for value in values])self.__clean = False
2
3
2
47
0
713
716
713
self,values
[]
None
{"AnnAssign": 1, "Assign": 1, "AugAssign": 1, "Expr": 2, "If": 2}
4
8
4
["list", "self.__content.append", "max", "len"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.Simpl...
The function (append_row) defined within the public class called TableCore.The function start at line 713 and ends at 716. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [713.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions cal...
anaconda_anaconda-client
TableCore
public
0
0
remove_column
def remove_column(self, column: int) -> None:"""Remove a single column from the table."""self.__core.remove_column(column)new_alignment: typing.Dict[typing.Tuple[int, int], 'Alignment'] = {(key_row, key_column - (key_column > column)): valuefor (key_row, key_column), value in self.__alignment.items()if key_column != co...
3
9
2
83
0
718
727
718
self,column
[]
None
{"AnnAssign": 1, "AugAssign": 1, "Expr": 1, "For": 1, "If": 1, "Try": 1}
0
10
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.remove_column"]
The function (remove_column) defined within the public class called TableCore.The function start at line 718 and ends at 727. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [718.0] and does not return any value. It has 1.0 function calling this function which ...
anaconda_anaconda-client
TableCore
public
0
0
remove_row
def remove_row(self, row: int) -> None:"""Remove a single row from the table."""self.__core.remove_row(row)new_alignment: typing.Dict[typing.Tuple[int, int], 'Alignment'] = {(key_row - (key_row > row), key_column): valuefor (key_row, key_column), value in self.__alignment.items()if key_row != row}self.__alignment = new...
3
9
2
83
0
729
738
729
self,row
[]
None
{"AugAssign": 1, "Expr": 1, "If": 1, "Try": 1}
0
8
0
[]
0
[]
The function (remove_row) defined within the public class called TableCore.The function start at line 729 and ends at 738. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [729.0] and does not return any value..
anaconda_anaconda-client
TableCore
public
0
0
render
def render(self, design: TableDesign) -> typing.Iterator[str]:"""Print table to the user (in terminal)."""self._normalize()return self.__core.render(design)
1
3
2
31
0
740
743
740
self,design
[]
typing.Iterator[str]
{"AnnAssign": 3, "Assign": 2, "Expr": 4, "For": 1}
4
12
4
["self.__render_analysis", "self.__render_separator", "self.__render_row", "self.__render_separator"]
503
["_.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.21593641_openforcefield_openff_fragmenter.versioneer_py.get_versions", "_.content....
The function (render) defined within the public class called TableCore.The function start at line 740 and ends at 743. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [740.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called ...
anaconda_anaconda-client
TableCore
public
0
0
trim
def trim(self, *, empty_columns: bool = False, empty_rows: bool = False, empty_values: bool = False) -> None:"""Remove trailing empty cells from each row.:param empty_columns: Also remove columns if all of their cells are empty.:param empty_rows: Also remove rows if all of their cells are empty:param empty_values: If a...
6
18
4
157
0
745
773
745
self,empty_columns,empty_rows,empty_values
[]
typing.Tuple[typing.List[int], typing.List[int]]
{"AnnAssign": 8, "Assign": 5, "AugAssign": 5, "Expr": 7, "For": 1, "If": 4, "Return": 1, "Try": 1, "While": 4}
7
78
7
["len", "pop", "self.remove_row", "removed_rows.append", "self.remove_row", "self.remove_column", "removed_columns.append"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564484_cornell_brg_pydgin.riscv.isa_RV32A_py.execute_amoadd_w", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564484_cornell_brg_pydgin.riscv.isa_RV32A_py.execute_amoand_w", "_.content.gdrive.MyDrive.Phd_Thesis.Da...
The function (trim) defined within the public class called TableCore.The function start at line 745 and ends at 773. It contains 18 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [745.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called i...
anaconda_anaconda-client
SimpleTable
public
0
0
_normalize
def _normalize(self) -> None:"""Apply table visualization preferences to the table (e.g. alignments)."""if self.__clean:returnfor row in range(self.__core.rows):for column in range(self.__core.columns):kind: strif (row < self.__heading_rows) or (column < self.__heading_columns):kind = HEADINGelse:kind = CELLalignment: ...
14
26
1
237
0
775
807
775
self
[]
None
{"AnnAssign": 3, "Assign": 6, "Expr": 1, "For": 2, "If": 4, "Return": 1}
7
33
7
["range", "range", "self.__alignment.get", "self.__alignment.get", "self.__alignment.get", "self.__alignment.get", "TableCell"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984106_jupyter_nbformat.nbformat.validator_py.normalize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984106_jupyter_nbformat.nbformat.validator_py.validate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creatio...
The function (_normalize) defined within the public class called SimpleTable.The function start at line 775 and ends at 807. It contains 26 lines of code and it has a cyclomatic complexity of 14. The function does not take any parameters and does not return any value. It declares 7.0 functions, It has 7.0 functions cal...
anaconda_anaconda-client
TableCore
public
0
0
__delitem__
def __delitem__(self, cell: typing.Tuple[int, int]) -> None:"""Remove a single cell from the table (set it to default)."""del self.__core[cell]
1
2
2
26
0
809
811
809
self,cell
[]
None
{"Assign": 1, "Expr": 1, "Try": 1}
0
6
0
[]
17
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.store_py.NpyStore.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.case_insensitive_dict_py.CIDict.__delitem__", "_....
The function (__delitem__) defined within the public class called TableCore.The function start at line 809 and ends at 811. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [809.0] and does not return any value. It has 17.0 functions calling this function which ...
anaconda_anaconda-client
ValuesView
public
0
1
__getitem__
def __getitem__(self, cell: typing.Tuple[int, int]) -> str:"""Retrieve a value of a single cell in the table."""return self.__core[cell].value
1
2
2
28
0
813
815
813
self,key
[]
str
{"AnnAssign": 1, "Assign": 1, "Expr": 1, "For": 1, "If": 2, "Return": 2, "Try": 1}
5
17
5
["len", "ValueError", "tuple", "enumerate", "KeyError"]
37
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.AbstractForeignList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.ForeignList.__g...
The function (__getitem__) defined within the public class called ValuesView, that inherit another class.The function start at line 813 and ends at 815. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [813.0] and does not return any value. It declares 5.0 funct...
anaconda_anaconda-client
TableCore
public
0
0
__setitem__
def __setitem__(self, cell: typing.Tuple[int, int], value: str) -> None:"""Update a value of a single cell in the table."""self.__core[cell] = TableCell(kind=CELL, value=value)self.__clean = False
1
3
3
45
0
817
820
817
self,cell,value
[]
None
{"Assign": 3, "Expr": 3, "If": 2, "While": 2}
6
12
6
["len", "self.__content.append", "len", "append", "max", "max"]
27
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.output.__init___py.Object.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList.__setitem__", "_.cont...
The function (__setitem__) defined within the public class called TableCore.The function start at line 817 and ends at 820. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [817.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions ca...
anaconda_anaconda-client
ValuesView
public
0
1
__init__
def __init__(self,aliases: typing.Union[typing.Iterable[typing.Union[str, typing.Tuple[str, str]]], typing.Mapping[str, str]],heading_rows: int = 0,heading_columns: int = 0,) -> None:"""Initialize new :class:`~SimpleTableWithAliases` instance."""super().__init__(heading_rows=heading_rows, heading_columns=heading_column...
5
33
4
263
0
838
876
838
self,content,key_length,default
[]
None
{"AnnAssign": 3, "Assign": 1, "Expr": 1, "If": 1}
3
18
3
["range", "itertools.combinations", "range"]
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 ValuesView, that inherit another class.The function start at line 838 and ends at 876. It contains 33 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [838.0] and does not return any value. It declares 3.0 functio...
anaconda_anaconda-client
SimpleTable
public
0
0
align_cell
def align_cell(self, row: int, column: typing.Union[int, str], alignment: 'Alignment') -> None:"""Align a single cell in the table."""if isinstance(column, str):column = self.__aliases.index(column)super().align_cell(row=row, column=column, alignment=alignment)
2
4
4
63
0
878
882
878
self,row,column,alignment
[]
None
{"Assign": 2, "Expr": 1, "If": 2}
2
9
2
["AttributeError", "AttributeError"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.align_cell"]
The function (align_cell) defined within the public class called SimpleTable.The function start at line 878 and ends at 882. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [878.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions c...
anaconda_anaconda-client
SimpleTable
public
0
0
align_column
def align_column(self, column: typing.Union[int, str], alignment: 'Alignment') -> None:"""Align each cell in a single column of the table."""if isinstance(column, str):column = self.__aliases.index(column)super().align_column(column=column, alignment=alignment)
2
4
3
55
0
884
888
884
self,column,alignment
[]
None
{"AnnAssign": 1, "Assign": 3, "Expr": 1}
1
8
1
["self.__alignment.items"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.align_column"]
The function (align_column) defined within the public class called SimpleTable.The function start at line 884 and ends at 888. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [884.0] and does not return any value. It declare 1.0 function, It has 1.0 function ca...
anaconda_anaconda-client
TableCore
public
0
0
append_row
def append_row(self,values: typing.Union[typing.Iterable[typing.Any], typing.Mapping[str, typing.Any]],*,strict: bool = False,) -> None:"""Append new row to the bottom of this table."""if isinstance(values, typing.Mapping):old_values: typing.Dict[str, typing.Any] = dict(values)values = [old_values.pop(alias, None) for ...
5
12
3
108
0
890
903
890
self,values
[]
None
{"AnnAssign": 1, "Assign": 1, "AugAssign": 1, "Expr": 2, "If": 2}
4
8
4
["list", "self.__content.append", "max", "len"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.Simpl...
The function (append_row) defined within the public class called TableCore.The function start at line 890 and ends at 903. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [890.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions ca...
anaconda_anaconda-client
TableCore
public
0
0
remove_column
def remove_column(self, column: typing.Union[int, str]) -> None:"""Remove a single column from the table."""if isinstance(column, str):column = self.__aliases.index(column)super().remove_column(column)
2
4
2
45
0
905
909
905
self,column
[]
None
{"AnnAssign": 1, "AugAssign": 1, "Expr": 1, "For": 1, "If": 1, "Try": 1}
0
10
0
[]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.tables_py.SimpleTableWithAliases.remove_column"]
The function (remove_column) defined within the public class called TableCore.The function start at line 905 and ends at 909. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [905.0] and does not return any value. It has 1.0 function calling this function which ...
anaconda_anaconda-client
SimpleTableWithAliases
public
0
1
__normalize_cell_index
def __normalize_cell_index(self, cell: typing.Tuple[int, typing.Union[int, str]]) -> typing.Tuple[int, int]:"""Normalize value of a cell index."""row: intcolumn: typing.Union[int, str]row, column = cellif isinstance(column, str):column = self.__aliases.index(column)return row, column
2
7
2
73
0
911
918
911
self,cell
[]
typing.Tuple[int, int]
{"AnnAssign": 2, "Assign": 2, "Expr": 1, "If": 1, "Return": 1}
2
8
2
["isinstance", "self.__aliases.index"]
0
[]
The function (__normalize_cell_index) defined within the public class called SimpleTableWithAliases, that inherit another class.The function start at line 911 and ends at 918. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [911.0] and does not return any value...
anaconda_anaconda-client
TableCore
public
0
0
__delitem__
def __delitem__(self, cell: typing.Tuple[int, typing.Union[int, str]]) -> None:"""Remove a single cell from the table (set it to default)."""super().__delitem__(self.__normalize_cell_index(cell))
1
2
2
39
0
920
922
920
self,cell
[]
None
{"Assign": 1, "Expr": 1, "Try": 1}
0
6
0
[]
17
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.store_py.NpyStore.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.case_insensitive_dict_py.CIDict.__delitem__", "_....
The function (__delitem__) defined within the public class called TableCore.The function start at line 920 and ends at 922. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [920.0] and does not return any value. It has 17.0 functions calling this function which ...
anaconda_anaconda-client
ValuesView
public
0
1
__getitem__
def __getitem__(self, cell: typing.Tuple[int, typing.Union[int, str]]) -> str:"""Retrieve a value of a single cell in the table."""return super().__getitem__(self.__normalize_cell_index(cell))
1
2
2
40
0
924
926
924
self,key
[]
str
{"AnnAssign": 1, "Assign": 1, "Expr": 1, "For": 1, "If": 2, "Return": 2, "Try": 1}
5
17
5
["len", "ValueError", "tuple", "enumerate", "KeyError"]
37
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.AbstractForeignList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.ForeignList.__g...
The function (__getitem__) defined within the public class called ValuesView, that inherit another class.The function start at line 924 and ends at 926. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [924.0] and does not return any value. It declares 5.0 funct...
anaconda_anaconda-client
TableCore
public
0
0
__setitem__
def __setitem__(self, cell: typing.Tuple[int, int], value: str) -> None:"""Update a value of a single cell in the table."""self.__core[cell] = TableCell(kind=CELL, value=value)self.__clean = False
1
2
3
45
0
928
930
817
self,cell,value
[]
None
{"Assign": 3, "Expr": 3, "If": 2, "While": 2}
6
12
6
["len", "self.__content.append", "len", "append", "max", "max"]
27
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3549150_freenas_cli.freenas.cli.output.__init___py.Object.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList.__setitem__", "_.cont...
The function (__setitem__) defined within the public class called TableCore.The function start at line 928 and ends at 930. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [817.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
yaml_load
def yaml_load(stream):"""Loads a dictionary from a stream"""return safe_load(stream)
1
2
1
11
0
10
12
10
stream
[]
Returns
{"Expr": 1, "Return": 1}
1
3
1
["safe_load"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.inspect_package.conda_installer_py.inspect_package", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.inspect_package.en...
The function (yaml_load) defined within the public class called public.The function start at line 10 and ends at 12. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called insid...
anaconda_anaconda-client
public
public
0
0
yaml_dump
def yaml_dump(data, stream=None):"""Dumps an object to a YAML string"""return safe_dump(data, stream=stream, default_flow_style=False)
1
2
2
23
0
15
17
15
data,stream
[]
Returns
{"Expr": 1, "Return": 1}
1
3
1
["safe_dump"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69753201_searxng_searx_instances.searxinstances.model_py.save", "_.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_...
The function (yaml_dump) defined within the public class called public.The function start at line 15 and ends at 17. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [15.0], and this function return a value. It declare 1.0 function, It has 1.0 function called in...
anaconda_anaconda-client
public
public
0
0
parse
def parse(handle):""">>> parse("user/notebook")('user', 'notebook')>>> parse("notebook")(None, 'notebook'):param handle: String:return: username, notebooks"""components = handle.split('/', 1)if len(components) == 1:return None, components[0]if len(components) == 2:return components[0], components[1]raise BinstarError("...
3
7
1
59
1
8
24
8
handle
['components']
Returns
{"Assign": 1, "Expr": 1, "If": 2, "Return": 2}
5
17
5
["handle.split", "len", "len", "BinstarError", "format"]
342
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.dateutil.parser_py.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3531886_donschoe_p2pool_n.p2pool.bitcoin.script_py.get_sigop_count", "_.content.gdrive.MyDrive.Phd_Thesi...
The function (parse) defined within the public class called public.The function start at line 8 and ends at 24. It contains 7 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 5.0 functions, It has 5.0 functions called inside ...
anaconda_anaconda-client
public
public
0
0
notebook_url
def notebook_url(upload_info):parsed = urlparse(upload_info['url'])if parsed.netloc == 'anaconda.org':url = '{}://notebooks.{}{}'.format(parsed.scheme, parsed.netloc, parsed.path)else:url = '{}://{}/notebooks{}'.format(parsed.scheme, parsed.netloc, parsed.path)return url
2
7
1
61
2
27
33
27
upload_info
['url', 'parsed']
Returns
{"Assign": 3, "If": 1, "Return": 1}
3
7
3
["urlparse", "format", "format"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.utils.notebook.test_base_py.NotebookURLTestCase.test_anaconda_org_installation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.utils.no...
The function (notebook_url) defined within the public class called public.The function start at line 27 and ends at 33. It contains 7 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 3.0 functions, It has 3.0 functions called...
anaconda_anaconda-client
public
public
0
0
has_environment
def has_environment(nb_file):if nbformat is None:return Falsetry:with open(nb_file) as file:data = file.read()notebook = nbformat.reader.reads(data)return 'environment' in notebook['metadata']except (ValueError, AttributeError, KeyError, IOError, nbformat.reader.NotJSONError):return False
3
10
1
65
2
36
46
36
nb_file
['notebook', 'data']
Returns
{"Assign": 2, "If": 1, "Return": 3, "Try": 1, "With": 1}
3
11
3
["open", "file.read", "nbformat.reader.reads"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.utils.notebook.test_base_py.HasEnvironmentTestCase.test_has_environment", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.utils.notebook....
The function (has_environment) defined within the public class called public.The function start at line 36 and ends at 46. It contains 10 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 functions ca...
anaconda_anaconda-client
DataURIConverter
public
0
0
__init__
def __init__(self, location, data=None):self.check_pillow_installed()self.location = locationself.data = data
1
4
3
26
0
20
23
20
self,location,data
[]
None
{"Assign": 2, "Expr": 1}
1
4
1
["self.check_pillow_installed"]
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 DataURIConverter.The function start at line 20 and ends at 23. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [20.0] and does not return any value. It declare 1.0 function, It has 1.0 function call...
anaconda_anaconda-client
DataURIConverter
public
0
0
check_pillow_installed
def check_pillow_installed(self):if Image is None:raise PillowNotInstalled()
2
3
1
14
0
25
27
25
self
[]
None
{"If": 1}
1
3
1
["PillowNotInstalled"]
0
[]
The function (check_pillow_installed) defined within the public class called DataURIConverter.The function start at line 25 and ends at 27. 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...
anaconda_anaconda-client
DataURIConverter
public
0
0
__call__
def __call__(self):if self.data:file = io.BytesIO(self.data)b64 = self._encode(self.resize_and_convert(file).read())elif os.path.exists(self.location):with open(self.location, 'rb') as file:b64 = self._encode(self.resize_and_convert(file).read())elif self.is_url():content = requests.get(self.location, timeout=10 * 60 *...
4
16
1
157
0
29
44
29
self
[]
Returns
{"Assign": 6, "Expr": 2, "If": 3, "Return": 1, "With": 1}
19
16
19
["io.BytesIO", "self._encode", "read", "self.resize_and_convert", "os.path.exists", "open", "self._encode", "read", "self.resize_and_convert", "self.is_url", "requests.get", "io.BytesIO", "file.write", "file.seek", "self._encode", "read", "self.resize_and_convert", "IOError", "format"]
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 DataURIConverter.The function start at line 29 and ends at 44. It contains 16 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It declares 19.0 functions, It has 19.0 functio...
anaconda_anaconda-client
DataURIConverter
public
0
0
resize_and_convert
def resize_and_convert(self, file):if Image is None:raise PillowNotInstalled()image = Image.open(file)image.thumbnail(THUMB_SIZE)out = io.BytesIO()image.save(out, format='png')out.seek(0)return out
2
9
2
55
0
46
54
46
self,file
[]
Returns
{"Assign": 2, "Expr": 3, "If": 1, "Return": 1}
6
9
6
["PillowNotInstalled", "Image.open", "image.thumbnail", "io.BytesIO", "image.save", "out.seek"]
0
[]
The function (resize_and_convert) defined within the public class called DataURIConverter.The function start at line 46 and ends at 54. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [46.0], and this function return a value. It declares 6.0 functions, and It ...
anaconda_anaconda-client
DataURIConverter
public
0
0
is_py3
def is_py3(self):return sys.version_info[0] == 3
1
2
1
14
0
56
57
56
self
[]
Returns
{"Return": 1}
0
2
0
[]
0
[]
The function (is_py3) defined within the public class called DataURIConverter.The function start at line 56 and ends at 57. 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..
anaconda_anaconda-client
DataURIConverter
public
0
0
is_url
def is_url(self):return self.location is not None and urlparse(self.location).scheme in ['http', 'https']
2
2
1
27
0
59
60
59
self
[]
Returns
{"Return": 1}
1
2
1
["urlparse"]
33
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3709410_scrapy_w3lib.tests.test_url_py.TestUrl.test_is_url", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69274874_etalab_csv_detective.csv_detective.detection.engine_py.detect_engine", "_.content.gdrive.MyDrive.Ph...
The function (is_url) defined within the public class called DataURIConverter.The function start at line 59 and ends at 60. It contains 2 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 declare 1.0 function, It has 1.0 function calle...
anaconda_anaconda-client
DataURIConverter
public
0
0
_encode
def _encode(self, content):if self.is_py3():data64 = base64.b64encode(content).decode('ascii')else:data64 = content.encode('base64').replace('\n', '')return data64
2
6
2
46
0
62
67
62
self,content
[]
Returns
{"Assign": 2, "If": 1, "Return": 1}
5
6
5
["self.is_py3", "decode", "base64.b64encode", "replace", "content.encode"]
7
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.markdown.serializers_py._write_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3716730_edgewall_genshi.genshi.output_py.encode", "_.content.gdrive.MyDrive.Phd_Thesi...
The function (_encode) defined within the public class called DataURIConverter.The function start at line 62 and ends at 67. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [62.0], and this function return a value. It declares 5.0 functions, It has 5.0 function...
anaconda_anaconda-client
public
public
0
0
data_uri_from
def data_uri_from(location):return DataURIConverter(location)()
1
2
1
12
0
70
71
70
location
[]
Returns
{"Return": 1}
1
2
1
["DataURIConverter"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.inspect_package.ipynb_py.inspect_ipynb_package", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.notebook.uploade...
The function (data_uri_from) defined within the public class called public.The function start at line 70 and ends at 71. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called i...
anaconda_anaconda-client
public
public
0
0
data_uri_from_bytes
def data_uri_from_bytes(data):return DataURIConverter(location=None, data=data)()
1
2
1
18
0
74
75
74
data
[]
Returns
{"Return": 1}
1
2
1
["DataURIConverter"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.inspect_package.conda_py.inspect_conda_info_dir"]
The function (data_uri_from_bytes) defined within the public class called public.The function start at line 74 and ends at 75. 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
Downloader
public
0
0
__init__
def __init__(self, aserver_api, username, notebook):self.aserver_api = aserver_apiself.username = usernameself.notebook = notebookself.output = None
1
5
4
31
0
17
21
17
self,aserver_api,username,notebook
[]
None
{"Assign": 4}
0
5
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 Downloader.The function start at line 17 and ends at 21. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [17.0] and does not return any value. It has 14667.0 functions calling this function which ar...
anaconda_anaconda-client
Downloader
public
0
0
__call__
def __call__(self, package_types, output='.', force=False):self.output = outputself.ensure_output()return self.download_files(package_types, force)
1
4
4
34
0
23
26
23
self,package_types,output,force
[]
Returns
{"Assign": 1, "Expr": 1, "Return": 1}
2
4
2
["self.ensure_output", "self.download_files"]
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 Downloader.The function start at line 23 and ends at 26. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [23.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions cal...
anaconda_anaconda-client
Downloader
public
0
0
list_download_files
def list_download_files(self, package_types, output='.', force=False):"""This additional method was created to better handle the log outputas files are downloaded one by one on the commands/download.py."""self.output = outputself.ensure_output()files = OrderedDict()for file in self.list_files():pkg_type = file.get('typ...
4
14
4
98
0
28
46
28
self,package_types,output,force
[]
Returns
{"Assign": 5, "Expr": 2, "For": 1, "If": 2, "Return": 1, "With": 1}
8
19
8
["self.ensure_output", "OrderedDict", "self.list_files", "file.get", "suppress", "PackageType", "self.can_download", "DestinationPathExists"]
0
[]
The function (list_download_files) defined within the public class called Downloader.The function start at line 28 and ends at 46. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [28.0], and this function return a value. It declares 8.0 functions, and It has ...
anaconda_anaconda-client
Downloader
public
0
0
download_files
def download_files(self, package_types, force=False):output = []for file in self.list_files():# Check typepkg_type = file.get('type', '')with suppress(ValueError):pkg_type = PackageType(pkg_type)if pkg_type in package_types:if self.can_download(file, force):self.download(file)output.append(file['basename'])else:raise D...
4
13
3
91
0
48
62
48
self,package_types,force
[]
Returns
{"Assign": 3, "Expr": 2, "For": 1, "If": 2, "Return": 1, "With": 1}
9
15
9
["self.list_files", "file.get", "suppress", "PackageType", "self.can_download", "self.download", "output.append", "DestinationPathExists", "sorted"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3968520_nanoporetech_bonito.bonito.cli.download_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.90033906_opengeos_leafmap.leafmap.common_py.download_google_buildings"]
The function (download_files) defined within the public class called Downloader.The function start at line 48 and ends at 62. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [48.0], and this function return a value. It declares 9.0 functions, It has 9.0 functi...
anaconda_anaconda-client
Downloader
public
0
0
download
def download(self, dist):"""Download file into location."""filename = dist['basename']requests_handle = self.aserver_api.download(self.username, self.notebook, dist['version'], filename)if not os.path.exists(os.path.dirname(filename)):try:os.makedirs(os.path.dirname(filename))except OSError:passwith open(os.path.join(s...
4
11
2
111
0
64
79
64
self,dist
[]
None
{"Assign": 2, "Expr": 3, "For": 1, "If": 1, "Try": 1, "With": 1}
9
16
9
["self.aserver_api.download", "os.path.exists", "os.path.dirname", "os.makedirs", "os.path.dirname", "open", "os.path.join", "requests_handle.iter_content", "fdout.write"]
48
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.update_py.download_by_tag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.update_py.download_latest", "_.content.gd...
The function (download) defined within the public class called Downloader.The function start at line 64 and ends at 79. It contains 11 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [64.0] and does not return any value. It declares 9.0 functions, It has 9.0 functions called...
anaconda_anaconda-client
Downloader
public
0
0
can_download
def can_download(self, dist, force=False):"""Can download if location/file does not exist or if force=True:param dist::param force::return: True/False"""return not os.path.exists(os.path.join(self.output, dist['basename'])) or force
2
2
3
38
0
81
88
81
self,dist,force
[]
Returns
{"Expr": 1, "Return": 1}
2
8
2
["os.path.exists", "os.path.join"]
0
[]
The function (can_download) defined within the public class called Downloader.The function start at line 81 and ends at 88. It contains 2 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [81.0], and this function return a value. It declares 2.0 functions, and It has 2.0 func...
anaconda_anaconda-client
Downloader
public
0
0
ensure_output
def ensure_output(self):"""Ensure output's directory exists"""if not os.path.exists(self.output):os.makedirs(self.output)
2
3
1
27
0
90
95
90
self
[]
None
{"Expr": 2, "If": 1}
2
6
2
["os.path.exists", "os.makedirs"]
0
[]
The function (ensure_output) defined within the public class called Downloader.The function start at line 90 and ends at 95. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions ...
anaconda_anaconda-client
Downloader
public
0
0
list_files
def list_files(self):"""List available files in a project (aka notebook).:return: list"""output = []tmp = {}files = self.aserver_api.package(self.username, self.notebook)['files']for file in files:if file['basename'] in tmp:tmp[file['basename']].append(file)else:tmp[file['basename']] = [file]for basename, versions in t...
6
17
1
153
0
97
121
97
self
[]
Returns
{"Assign": 4, "Expr": 5, "For": 2, "If": 1, "Return": 1, "Try": 1}
12
25
12
["self.aserver_api.package", "append", "tmp.items", "output.append", "max", "int", "output.append", "max", "mktime", "timetuple", "parse", "output.append"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95085986_MLSysOps_MLE_agent.mle.cli_py.chat", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95085986_MLSysOps_MLE_agent.mle.cli_py.memory"]
The function (list_files) defined within the public class called Downloader.The function start at line 97 and ends at 121. It contains 17 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 12.0 functions, It has 12.0 functions ...