project_name
string
class_name
string
class_modifiers
string
class_implements
int64
class_extends
int64
function_name
string
function_body
string
cyclomatic_complexity
int64
NLOC
int64
num_parameter
int64
num_token
int64
num_variable
int64
start_line
int64
end_line
int64
function_index
int64
function_params
string
function_variable
string
function_return_type
string
function_body_line_type
string
function_num_functions
int64
function_num_lines
int64
outgoing_function_count
int64
outgoing_function_names
string
incoming_function_count
int64
incoming_function_names
string
lexical_representation
string
anaconda_anaconda-client
public
public
0
0
parameterize
def parameterize(string, separator='-'):"""Replace special characters in a string so that it may be used as part of a'pretty' URL.Example::>>> parameterize(u"Donald E. Knuth")'donald-e-knuth'"""string = transliterate(string)# Turn unwanted chars into the separatorstring = re.sub(r'(?i)[^a-z0-9\-_]+', separator, string)...
2
8
2
80
2
6
24
6
string,separator
['re_sep', 'string']
Returns
{"Assign": 5, "Expr": 1, "If": 1, "Return": 1}
6
19
6
["transliterate", "re.sub", "re.escape", "re.sub", "re.sub", "string.lower"]
3
["_.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 (parameterize) defined within the public class called public.The function start at line 6 and ends at 24. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [6.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions calle...
anaconda_anaconda-client
public
public
0
0
transliterate
def transliterate(string):"""Replace non-ASCII characters with an ASCII approximation. If noapproximation exists, the non-ASCII character is ignored. The string mustbe ``unicode``.Examples::>>> transliterate('älämölö')'alamolo'>>> transliterate('Ærøskøbing')'rskbing'"""try:normalized = unicodedata.normalize('NFKD', str...
2
6
1
48
1
27
42
27
string
['normalized']
Returns
{"Assign": 2, "Expr": 1, "Return": 1, "Try": 1}
5
16
5
["unicodedata.normalize", "str", "unicodedata.normalize", "decode", "normalized.encode"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.utils.notebook.inflection_py.parameterize"]
The function (transliterate) defined within the public class called public.The function start at line 27 and ends at 42. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 5.0 functions, It has 5.0 functions calle...
anaconda_anaconda-client
Uploader
public
0
0
__init__
def __init__(self, aserver_api, filepath, **kwargs):self.aserver_api = aserver_apiself.filepath = filepathself._username = kwargs.get('user', None)self._version = kwargs.get('version', None)self._summary = kwargs.get('summary', None)self._thumbnail = kwargs.get('thumbnail', None)if 'name' in kwargs and kwargs['name'] i...
3
9
4
94
0
25
33
25
self,aserver_api,filepath,**kwargs
[]
None
{"Assign": 7, "If": 1}
5
9
5
["kwargs.get", "kwargs.get", "kwargs.get", "kwargs.get", "parameterize"]
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 Uploader.The function start at line 25 and ends at 33. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [25.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called in...
anaconda_anaconda-client
Uploader
public
0
0
upload
def upload(self, force=False):"""Uploads a notebook:param force: True/False:returns {}"""try:return self.aserver_api.upload(self.username,self.project,self.version,basename(self.filepath),open(self.filepath, 'rb'),self.filepath.split('.')[-1],)except errors.Conflict as error:if force:self.remove()return self.upload()ms...
3
16
2
109
0
35
55
35
self,force
[]
Returns
{"Assign": 1, "Expr": 2, "If": 1, "Return": 2, "Try": 1}
8
21
8
["self.aserver_api.upload", "basename", "open", "self.filepath.split", "self.remove", "self.upload", "format", "errors.BinstarError"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517196_debian_dput_ng.tests.test_upload_py.test_double_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3517196_debian_dput_ng.tests.test_upload_py.test_ppa_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Datas...
The function (upload) defined within the public class called Uploader.The function start at line 35 and ends at 55. It contains 16 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [35.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called...
anaconda_anaconda-client
Uploader
public
0
0
remove
def remove(self):return self.aserver_api.remove_dist(self,self.username,self.project,self.version,basename=self.notebook,)
1
8
1
33
0
57
64
57
self
[]
Returns
{"Return": 1}
1
8
1
["self.aserver_api.remove_dist"]
200
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.bot_py.Bobbit.remove_user_channel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3525927_samuel_kokki.kokki.cookbooks.nagios3.libraries.host_py.Host", "_.content.gdrive.MyDrive.Phd_T...
The function (remove) defined within the public class called Uploader.The function start at line 57 and ends at 64. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside...
anaconda_anaconda-client
Uploader
public
0
0
notebook_attrs
def notebook_attrs(self):if self._thumbnail is not None:return {'thumbnail': data_uri_from(self._thumbnail)}return {}
2
4
1
27
0
67
70
67
self
[]
Returns
{"If": 1, "Return": 2}
1
4
1
["data_uri_from"]
0
[]
The function (notebook_attrs) defined within the public class called Uploader.The function start at line 67 and ends at 70. 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 ...
anaconda_anaconda-client
Uploader
public
0
0
project
def project(self):if self._project is None:return re.sub('\\-ipynb$', '', parameterize(os.path.basename(self.filepath)))return self._project
2
4
1
39
0
73
76
73
self
[]
Returns
{"If": 1, "Return": 2}
3
4
3
["re.sub", "parameterize", "os.path.basename"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.cli.project_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70178690_paddlepaddle_paddlers.paddlers.models.ppdet.modeling.necks.centernet_fpn_py.IDAUp.forward", "_.content.gdrive.My...
The function (project) defined within the public class called Uploader.The function start at line 73 and ends at 76. 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 declares 3.0 functions, It has 3.0 functions called in...
anaconda_anaconda-client
Uploader
public
0
0
username
def username(self):if self._username is None:self._username = self.aserver_api.user()['login']return self._username
2
4
1
30
0
79
82
79
self
[]
Returns
{"Assign": 1, "If": 1, "Return": 1}
1
4
1
["self.aserver_api.user"]
0
[]
The function (username) defined within the public class called Uploader.The function start at line 79 and ends at 82. 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...
anaconda_anaconda-client
Uploader
public
0
0
version
def version(self):if self._version is None:self._version = time.strftime('%Y.%m.%d.%H%M')return self._version
2
4
1
26
0
85
88
85
self
[]
Returns
{"Assign": 1, "If": 1, "Return": 1}
1
4
1
["time.strftime"]
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 Uploader.The function start at line 85 and ends at 88. 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
Uploader
public
0
0
summary
def summary(self):if self._summary is None:self._summary = 'IPython notebook'return self._summary
2
4
1
21
0
91
94
91
self
[]
Returns
{"Assign": 1, "If": 1, "Return": 1}
0
4
0
[]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3701004_elfi_dev_elfi.elfi.methods.results_py.SmcSample.summary", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3962390_keselekpermen69_userbutt.userbot.modules.scrapers_py.wiki", "_.content.gdrive.MyDrive.Phd_Thesi...
The function (summary) defined within the public class called Uploader.The function start at line 91 and ends at 94. 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 has 6.0 functions calling this function which are ["_....
anaconda_anaconda-client
Uploader
public
0
0
package
def package(self):if self._package is None:try:self._package = self.aserver_api.package(self.username, self.project)except errors.NotFound:self._package = self.aserver_api.add_package(self.username, self.project, summary=self.summary, attrs=self.notebook_attrs)return self._package
3
9
1
71
0
97
105
97
self
[]
Returns
{"Assign": 2, "If": 1, "Return": 1, "Try": 1}
2
9
2
["self.aserver_api.package", "self.aserver_api.add_package"]
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 Uploader.The function start at line 97 and ends at 105. 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 2.0 functions, It has 2.0 functions called i...
anaconda_anaconda-client
Uploader
public
0
0
release
def release(self):if self._release is None:try:self._release = self.aserver_api.release(self.username, self.project, self.version)except errors.NotFound:self._release = self.aserver_api.add_release(self.username, self.project, self.version, None, None, None)return self._release
3
9
1
73
0
108
116
108
self
[]
Returns
{"Assign": 2, "If": 1, "Return": 1, "Try": 1}
2
9
2
["self.aserver_api.release", "self.aserver_api.add_release"]
17
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.dateutil.rrule_py.rrulebase._iter_cached", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy.lib.sessions_py.MemcachedSession....
The function (release) defined within the public class called Uploader.The function start at line 108 and ends at 116. 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 2.0 functions, It has 2.0 functions called ...
anaconda_anaconda-client
Uploader
public
0
0
files
def files(self):return self.package['files']
1
2
1
12
0
119
120
119
self
[]
Returns
{"Return": 1}
0
2
0
[]
11
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69722503_billyeatcookies_biscuit.src.biscuit.settings.resources_py.Resources.get_res_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.src.airflow.providers.google.marketi...
The function (files) defined within the public class called Uploader.The function start at line 119 and ends at 120. 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 11.0 functions calling this function which are ["_...
anaconda_anaconda-client
public
public
0
0
make_callback.func
def func():if i == N-1:ds.data['x'].append(50)ds.data['y'].append(95)ds.data['text'].append("DONE")ds.data['text_color'].append("white")else:ds.data['x'].append(np.random.random()*70 + 15)ds.data['y'].append(np.random.random()*70 + 15)ds.data['text_color'].append(RdYlBu3[i%3])ds.data['text'].append(str(i))ds.trigger('d...
2
12
0
143
0
38
49
38
null
[]
None
null
0
0
0
null
0
null
The function (make_callback.func) defined within the public class called public.The function start at line 38 and ends at 49. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
anaconda_anaconda-client
public
public
0
0
make_callback
def make_callback(i):ds = r.data_sourcedef func():if i == N-1:ds.data['x'].append(50)ds.data['y'].append(95)ds.data['text'].append("DONE")ds.data['text_color'].append("white")else:ds.data['x'].append(np.random.random()*70 + 15)ds.data['y'].append(np.random.random()*70 + 15)ds.data['text_color'].append(RdYlBu3[i%3])ds.d...
1
5
1
21
1
35
52
35
i
['ds']
Returns
{"Assign": 2, "Expr": 9, "If": 1, "Return": 1}
12
18
12
["append", "append", "append", "append", "append", "np.random.random", "append", "np.random.random", "append", "append", "str", "ds.trigger"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3514474_ntfreedom_neverendshadowsocks.shadowsocks.asyncdns_py.test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3596930_mengskysama_shadowsocks_rm.shadowsocks.asyncdns_py.test", "_.content.gdrive.MyDrive.Phd_Thes...
The function (make_callback) defined within the public class called public.The function start at line 35 and ends at 52. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 12.0 functions, It has 12.0 functions cal...
anaconda_anaconda-client
public
public
0
0
get_dataset
def get_dataset(src, name, distribution):df = src[src.airport == name].copy()del df['airport']df['date'] = pd.to_datetime(df.date)df['left'] = df.date - pd.DateOffset(days=0.5)df['right'] = df.date + pd.DateOffset(days=0.5)df = df.set_index(['date'])df.sort_index(inplace=True)if distribution == 'Smooth':window, order =...
3
13
3
137
1
14
27
14
src,name,distribution
['df']
Returns
{"Assign": 7, "Expr": 1, "For": 1, "If": 1, "Return": 1}
8
14
8
["copy", "pd.to_datetime", "pd.DateOffset", "pd.DateOffset", "df.set_index", "df.sort_index", "savgol_filter", "ColumnDataSource"]
56
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3714737_divio_aldryn_forms.aldryn_forms.admin.views_py.FormExportWizardView.done", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69376580_substra_substra_tests.substratest.client_py.Client.add_dataset", "_.content.g...
The function (get_dataset) defined within the public class called public.The function start at line 14 and ends at 27. It contains 13 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [14.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions cal...
anaconda_anaconda-client
public
public
0
0
make_plot
def make_plot(source, title):plot = Figure(x_axis_type="datetime", plot_width=1000, tools="", toolbar_location=None)plot.title = titlecolors = Blues4[0:3]plot.quad(top='record_max_temp', bottom='record_min_temp', left='left', right='right', color=colors[2], source=source, legend="Record")plot.quad(top='average_max_temp...
1
17
2
234
2
30
50
30
source,title
['plot', 'colors']
Returns
{"Assign": 12, "Expr": 3, "Return": 1}
5
21
5
["Figure", "plot.quad", "plot.quad", "plot.quad", "DataRange1d"]
0
[]
The function (make_plot) defined within the public class called public.The function start at line 30 and ends at 50. It contains 17 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [30.0], and this function return a value. It declares 5.0 functions, and It has 5.0 functions ...
anaconda_anaconda-client
public
public
0
0
update_plot
def update_plot(attrname, old, new):city = city_select.valueplot.title = cities[city]['title']src = get_dataset(df, cities[city]['airport'], distribution_select.value)for key in STATISTICS + ['left', 'right']:source.data.update(src.data)
2
6
3
64
2
54
60
54
attrname,old,new
['city', 'src']
None
{"Assign": 3, "Expr": 1, "For": 1}
2
7
2
["get_dataset", "source.data.update"]
0
[]
The function (update_plot) defined within the public class called public.The function start at line 54 and ends at 60. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [54.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions cal...
anaconda_anaconda-client
public
public
0
0
refresh_coveragerc
def refresh_coveragerc() -> None:"""Generate new .condarc file and put it in the project root."""exclude: typing.List[str] = ['cov-linux', 'cov-osx', 'cov-skip', 'cov-unix', 'cov-win']if os.name == 'nt':# Windowsexclude.remove('cov-win')else:# Others, Unix-likeexclude.remove('cov-unix')if sys.platform.startswith('linux...
4
18
0
153
0
38
58
38
[]
None
{"AnnAssign": 5, "Expr": 6, "If": 3, "With": 1}
12
21
12
["exclude.remove", "exclude.remove", "sys.platform.startswith", "exclude.remove", "exclude.remove", "ValueError", "jinja2.Environment", "environment.from_string", "template.render", "open", "os.path.join", "stream.write"]
0
[]
The function (refresh_coveragerc) defined within the public class called public.The function start at line 38 and ends at 58. It contains 18 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 12.0 functions, and It has 12.0 functi...
anaconda_anaconda-client
public
public
0
0
main
def main(args: typing.Sequence[str]) -> None:"""Alternative entrypoint to use in tests."""cli.main(args, allow_plugin_main=False, exit_=False)
1
2
1
29
0
17
19
17
args
[]
None
{"Expr": 2}
1
3
1
["cli.main"]
304
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.pystache.tests.test_commands_py.CommandsTestCase.callScript", "_....
The function (main) defined within the public class called public.The function start at line 17 and ends at 19. 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 which i...
anaconda_anaconda-client
AnyIO
public
0
1
write
def write(self, msg):if hasattr('msg', 'decode'):msg = msg.decode()return io.StringIO.write(self, msg)
2
4
2
33
0
23
26
23
self,msg
[]
Returns
{"Assign": 1, "If": 1, "Return": 1}
3
4
3
["hasattr", "msg.decode", "io.StringIO.write"]
235
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.integration.test_typedb_py.test_Transaction.test_commit_normal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.integration.test...
The function (write) defined within the public class called AnyIO, that inherit another class.The function start at line 23 and ends at 26. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [23.0], and this function return a value. It declares 3.0 functions, It h...
anaconda_anaconda-client
CLITestCase
public
0
1
setUp
def setUp(self):self.get_config_patch = unittest.mock.patch('binstar_client.utils.get_config')self.get_config = self.get_config_patch.start()self.get_config.return_value = {}self.load_token_patch = unittest.mock.patch('binstar_client.utils.config.load_token')self.load_token = self.load_token_patch.start()self.load_toke...
1
17
1
165
0
30
50
30
self
[]
None
{"Assign": 12, "Expr": 4}
14
21
14
["unittest.mock.patch", "self.get_config_patch.start", "unittest.mock.patch", "self.load_token_patch.start", "unittest.mock.patch", "self.store_token_patch.start", "unittest.mock.patch", "self.setup_logging_patch.start", "logging.getLogger", "logger.setLevel", "AnyIO", "logging.StreamHandler", "hndlr.setLevel", "logger...
303
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_backend_py.TestCouchDBBackend.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_backend_py.TestMemoryBackend.setUp"...
The function (setUp) defined within the public class called CLITestCase, that inherit another class.The function start at line 30 and ends at 50. It contains 17 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 14.0 functions, It ...
anaconda_anaconda-client
CLITestCase
public
0
1
tearDown
def tearDown(self):self.setup_logging_patch.stop()self.get_config_patch.stop()self.load_token_patch.stop()self.store_token_patch.stop()self.logger.removeHandler(self.hndlr)
1
6
1
43
0
52
58
52
self
[]
None
{"Expr": 5}
5
7
5
["self.setup_logging_patch.stop", "self.get_config_patch.stop", "self.load_token_patch.stop", "self.store_token_patch.stop", "self.logger.removeHandler"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535444_stormpath_stormpath_flask.tests.test_settings_py.TestCheckSettings.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3581987_googlecloudplatform_datastore_ndb_python.ndb.test_utils_py.NDBCloudDatastor...
The function (tearDown) defined within the public class called CLITestCase, that inherit another class.The function start at line 52 and ends at 58. 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 5.0 functions, It...
anaconda_anaconda-client
public
public
0
0
green
def green(text):return BOLD + OKGREEN + text + ENDC
1
2
1
13
0
20
21
20
text
[]
Returns
{"Return": 1}
0
2
0
[]
7
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_aliases_py.test_alias_are_correctly_styled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3633612_rgs1_zk_shell.zk_shell.shell_py.Shell.do_chkzk", "_.content.gdrive.MyDrive.Phd_The...
The function (green) defined within the public class called public.The function start at line 20 and ends at 21. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 7.0 functions calling this function which are ["_.cont...
anaconda_anaconda-client
public
public
0
0
red
def red(text):return BOLD + FAIL + text + ENDC
1
2
1
13
0
24
25
24
text
[]
Returns
{"Return": 1}
0
2
0
[]
7
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_aliases_py.test_alias_are_correctly_styled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3633612_rgs1_zk_shell.zk_shell.shell_py.Shell.do_chkzk", "_.content.gdrive.MyDrive.Phd_The...
The function (red) defined within the public class called public.The function start at line 24 and ends at 25. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 7.0 functions calling this function which are ["_.conten...
anaconda_anaconda-client
public
public
0
0
orange
def orange(text):return WARNING + text + ENDC
1
2
1
11
0
28
29
28
text
[]
Returns
{"Return": 1}
0
2
0
[]
0
[]
The function (orange) defined within the public class called public.The function start at line 28 and ends at 29. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
anaconda_anaconda-client
public
public
0
0
blue
def blue(text):return OKBLUE + text + ENDC
1
2
1
11
0
32
33
32
text
[]
Returns
{"Return": 1}
0
2
0
[]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964638_python_restx_flask_restx.tasks_py.header", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.runner_py.ColorTextTestResult.addExpectedFailure", "_.content.gdrive.MyDrive.P...
The function (blue) defined within the public class called public.The function start at line 32 and ends at 33. 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 4.0 functions calling this function which are ["_.conte...
anaconda_anaconda-client
ColorTextTestResult
public
0
1
addSuccess
def addSuccess(self, test):super().addSuccess(test)if self.showAll:self.stream.writeln(green('ok'))elif self.dots:self.stream.write('.')self.stream.flush()
3
7
2
51
0
37
43
37
self,test
[]
None
{"Expr": 4, "If": 2}
6
7
6
["addSuccess", "super", "self.stream.writeln", "green", "self.stream.write", "self.stream.flush"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.runner_py.ColorTextTestResult.addSuccess"]
The function (addSuccess) defined within the public class called ColorTextTestResult, that inherit another class.The function start at line 37 and ends at 43. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [37.0] and does not return any value. It declares 6.0 ...
anaconda_anaconda-client
ColorTextTestResult
public
0
1
addError
def addError(self, test, err):super().addError(test, err)if self.showAll:self.stream.writeln(red('ERROR'))elif self.dots:self.stream.write(red('E'))self.stream.flush()
3
7
3
58
0
45
51
45
self,test,err
[]
None
{"Expr": 4, "If": 2}
7
7
7
["addError", "super", "self.stream.writeln", "red", "self.stream.write", "red", "self.stream.flush"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.runner_py.ColorTextTestResult.addError"]
The function (addError) defined within the public class called ColorTextTestResult, that inherit another class.The function start at line 45 and ends at 51. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [45.0] and does not return any value. It declares 7.0 fu...
anaconda_anaconda-client
ColorTextTestResult
public
0
1
addFailure
def addFailure(self, test, err):super().addFailure(test, err)if self.showAll:self.stream.writeln(red('FAIL'))elif self.dots:self.stream.write(red('F'))self.stream.flush()
3
7
3
58
0
53
59
53
self,test,err
[]
None
{"Expr": 4, "If": 2}
7
7
7
["addFailure", "super", "self.stream.writeln", "red", "self.stream.write", "red", "self.stream.flush"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.runner_py.ColorTextTestResult.addFailure"]
The function (addFailure) defined within the public class called ColorTextTestResult, that inherit another class.The function start at line 53 and ends at 59. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [53.0] and does not return any value. It declares 7.0 ...
anaconda_anaconda-client
ColorTextTestResult
public
0
1
addSkip
def addSkip(self, test, reason):super().addSkip(test, reason)if self.showAll:self.stream.writeln(blue('skipped {0!r}'.format(reason)))elif self.dots:self.stream.write(blue('s'))self.stream.flush()
3
7
3
63
0
61
67
61
self,test,reason
[]
None
{"Expr": 4, "If": 2}
8
7
8
["addSkip", "super", "self.stream.writeln", "blue", "format", "self.stream.write", "blue", "self.stream.flush"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.runner_py.ColorTextTestResult.addSkip"]
The function (addSkip) defined within the public class called ColorTextTestResult, that inherit another class.The function start at line 61 and ends at 67. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [61.0] and does not return any value. It declares 8.0 fun...
anaconda_anaconda-client
ColorTextTestResult
public
0
1
addExpectedFailure
def addExpectedFailure(self, test, err):super().addExpectedFailure(test, err)if self.showAll:self.stream.writeln(blue('expected failure'))elif self.dots:self.stream.write(blue('x'))self.stream.flush()
3
7
3
58
0
69
75
69
self,test,err
[]
None
{"Expr": 4, "If": 2}
7
7
7
["addExpectedFailure", "super", "self.stream.writeln", "blue", "self.stream.write", "blue", "self.stream.flush"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.runner_py.ColorTextTestResult.addExpectedFailure"]
The function (addExpectedFailure) defined within the public class called ColorTextTestResult, that inherit another class.The function start at line 69 and ends at 75. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [69.0] and does not return any value. It decla...
anaconda_anaconda-client
ColorTextTestResult
public
0
1
addUnexpectedSuccess
def addUnexpectedSuccess(self, test):super().addUnexpectedSuccess(test)if self.showAll:self.stream.writeln(blue('unexpected success'))elif self.dots:self.stream.write(blue('u'))self.stream.flush()
3
7
2
54
0
77
83
77
self,test
[]
None
{"Expr": 4, "If": 2}
7
7
7
["addUnexpectedSuccess", "super", "self.stream.writeln", "blue", "self.stream.write", "blue", "self.stream.flush"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.runner_py.ColorTextTestResult.addUnexpectedSuccess"]
The function (addUnexpectedSuccess) defined within the public class called ColorTextTestResult, that inherit another class.The function start at line 77 and ends at 83. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [77.0] and does not return any value. It dec...
anaconda_anaconda-client
ColorTextTestResult
public
0
1
printErrors
def printErrors(self):if self.dots or self.showAll:self.stream.writeln()self.printErrorList(red('ERROR'), self.errors)self.printErrorList(red('FAIL'), self.failures)
3
5
1
47
0
85
89
85
self
[]
None
{"Expr": 3, "If": 1}
5
5
5
["self.stream.writeln", "self.printErrorList", "red", "self.printErrorList", "red"]
0
[]
The function (printErrors) defined within the public class called ColorTextTestResult, that inherit another class.The function start at line 85 and ends at 89. It contains 5 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 5.0 fu...
anaconda_anaconda-client
ColorTextTestRunner
public
0
1
__init__
def __init__(self,stream=sys.stderr,descriptions=True,verbosity=1,failfast=False,buffer=False,resultclass=ColorTextTestResult,):TextTestRunner.__init__(self,stream=stream,descriptions=descriptions,verbosity=verbosity,failfast=failfast,buffer=buffer,resultclass=resultclass,)
1
18
7
63
0
93
110
93
self,stream,descriptions,verbosity,failfast,buffer,resultclass
[]
None
{"Expr": 1}
1
18
1
["TextTestRunner.__init__"]
14,667
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_...
The function (__init__) defined within the public class called ColorTextTestRunner, that inherit another class.The function start at line 93 and ends at 110. It contains 18 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [93.0] and does not return any value. It declare 1.0 f...
anaconda_anaconda-client
ColorTextTestRunner
public
0
1
run
def run(self, test):'Run the given test case or test suite.'result = self._makeResult()registerResult(result)result.failfast = self.failfastresult.buffer = self.bufferstartTime = time.time()startTestRun = getattr(result, 'startTestRun', None)if startTestRun is not None:startTestRun()try:test(result)finally:stopTestRun ...
7
25
2
157
0
112
137
112
self,test
[]
Returns
{"Assign": 9, "Expr": 9, "If": 3, "Return": 1, "Try": 1}
14
26
14
["self._makeResult", "registerResult", "time.time", "getattr", "startTestRun", "test", "getattr", "stopTestRun", "time.time", "result.printErrors", "hasattr", "self.stream.writeln", "self.stream.writeln", "self.stream.writeln"]
864
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.app.handlers.package_versions_py.PackageVersions.index", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.cherrypy.test.benchmark_py.run_m...
The function (run) defined within the public class called ColorTextTestRunner, that inherit another class.The function start at line 112 and ends at 137. It contains 25 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [112.0], and this function return a value. It declares 14....
anaconda_anaconda-client
ColorTextTestRunner
public
0
1
write_end
def write_end(self, result):expectedFails = unexpectedSuccesses = skipped = 0try:results = map(len, (result.expectedFailures, result.unexpectedSuccesses, result.skipped))except AttributeError:passelse:expectedFails, unexpectedSuccesses, skipped = resultsinfos = []if not result.wasSuccessful():self.stream.write('Tests: ...
9
26
2
183
0
139
165
139
self,result
[]
None
{"Assign": 5, "Expr": 8, "If": 7, "Try": 1}
14
27
14
["map", "result.wasSuccessful", "self.stream.write", "red", "map", "infos.append", "infos.append", "self.stream.write", "green", "infos.append", "infos.append", "infos.append", "self.stream.write", "join"]
0
[]
The function (write_end) defined within the public class called ColorTextTestRunner, that inherit another class.The function start at line 139 and ends at 165. It contains 26 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [139.0] and does not return any value. It declares 1...
anaconda_anaconda-client
public
public
0
0
main
def main():parser = ArgumentParser()parser.add_argument('--html', action='store_true')parser.add_argument('source_dir', nargs='?', default='')args = parser.parse_args()print(binstar_client)loader = unittest.loader.TestLoader()discover_dir = join(dirname(binstar_client.__path__[0]), args.source_dir)print('Discover %s' %...
2
14
0
122
7
18
32
18
['parser', 'args', 'result', 'discover_dir', 'runner', 'tests', 'loader']
None
{"Assign": 7, "Expr": 6}
15
15
15
["ArgumentParser", "parser.add_argument", "parser.add_argument", "parser.parse_args", "print", "unittest.loader.TestLoader", "join", "dirname", "print", "loader.discover", "ColorTextTestRunner", "runner.run", "runner.write_end", "sys.exit", "result.wasSuccessful"]
304
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3511986_dart_archive_pub_dartlang.third_party.pystache.tests.test_commands_py.CommandsTestCase.callScript", "_....
The function (main) defined within the public class called public.The function start at line 18 and ends at 32. It contains 14 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 15.0 functions, It has 15.0 functions called inside w...
anaconda_anaconda-client
Test
public
0
1
test_remove_token_from_org
def test_remove_token_from_org(self, urls):remove_token = urls.register(method='DELETE',path='/authentications/org/orgname/name/tokenname',content='{"token": "a-token"}',status=201,)main(['--show-traceback', 'auth', '--remove', 'tokenname', '-o', 'orgname'])self.assertIn('Removed token tokenname', self.stream.getvalue(...
1
10
2
65
0
13
23
13
self,urls
[]
None
{"Assign": 1, "Expr": 3}
5
11
5
["urls.register", "main", "self.assertIn", "self.stream.getvalue", "remove_token.assertCalled"]
0
[]
The function (test_remove_token_from_org) defined within the public class called Test, that inherit another class.The function start at line 13 and ends at 23. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [13.0] and does not return any value. It declares 5....
anaconda_anaconda-client
Test
public
0
1
test_remove_token
def test_remove_token(self, urls):remove_token = urls.register(method='DELETE', path='/authentications/name/tokenname', content='{"token": "a-token"}', status=201)main(['--show-traceback', 'auth', '--remove', 'tokenname'])self.assertIn('Removed token tokenname', self.stream.getvalue())remove_token.assertCalled()
1
7
2
60
0
26
33
26
self,urls
[]
None
{"Assign": 1, "Expr": 3}
5
8
5
["urls.register", "main", "self.assertIn", "self.stream.getvalue", "remove_token.assertCalled"]
0
[]
The function (test_remove_token) defined within the public class called Test, that inherit another class.The function start at line 26 and ends at 33. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [26.0] and does not return any value. It declares 5.0 function...
anaconda_anaconda-client
Test
public
0
1
test_remove_token_forbidden
def test_remove_token_forbidden(self, urls):remove_token = urls.register(method='DELETE',path='/authentications/org/wrong_org/name/tokenname',content='{"token": "a-token"}',status=403,)with self.assertRaises(BinstarError):main(['--show-traceback', 'auth', '--remove', 'tokenname', '-o', 'wrong_org'])remove_token.assertC...
1
10
2
59
0
36
46
36
self,urls
[]
None
{"Assign": 1, "Expr": 2, "With": 1}
4
11
4
["urls.register", "self.assertRaises", "main", "remove_token.assertCalled"]
0
[]
The function (test_remove_token_forbidden) defined within the public class called Test, that inherit another class.The function start at line 36 and ends at 46. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [36.0] and does not return any value. It declares 4...
anaconda_anaconda-client
public
public
0
0
ensure_wide_terminal
def ensure_wide_terminal(monkeypatch: MonkeyPatch) -> None:"""Ensure the terminal is wide enough for long output to stdout to prevent line breaks."""monkeypatch.setattr(rich_utils, "MAX_WIDTH", 10000)
1
2
1
20
0
38
40
38
monkeypatch
[]
None
{"Expr": 2}
2
3
2
["monkeypatch.setattr", "pytest.fixture"]
0
[]
The function (ensure_wide_terminal) defined within the public class called public.The function start at line 38 and ends at 40. 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 functio...
anaconda_anaconda-client
public
public
0
0
enable_base_cli_plugin
def enable_base_cli_plugin(monkeypatch: MonkeyPatch) -> Generator[None, None, None]:"""Make sure that we get a clean app with plugins loaded"""monkeypatch.setenv("ANACONDA_CLI_FORCE_NEW", "1")monkeypatch.delenv("ANACONDA_CLIENT_FORCE_STANDALONE", raising=False)reload(anaconda_cli_base.cli)reload(binstar_client.plugins)...
1
6
1
48
0
44
51
44
monkeypatch
[]
Generator[None, None, None]
{"Expr": 6}
5
8
5
["monkeypatch.setenv", "monkeypatch.delenv", "reload", "reload", "pytest.fixture"]
0
[]
The function (enable_base_cli_plugin) defined within the public class called public.The function start at line 44 and ends at 51. 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 5.0 functions, and It has 5.0 funct...
anaconda_anaconda-client
MockedCliInvoker
public
0
0
__init__
def __init__(self, func: Callable, main_func: str, mocker: Any, parser: Any):self._func = funcself._main_mock = mocker.patch(main_func)self._invoked = Falseself.parser = parser
1
5
5
46
0
55
59
55
self,func,main_func,mocker,parser
[]
None
{"Assign": 4}
1
5
1
["mocker.patch"]
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 MockedCliInvoker.The function start at line 55 and ends at 59. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [55.0] and does not return any value. It declare 1.0 function, It has 1.0 function call...
anaconda_anaconda-client
MockedCliInvoker
public
0
0
invoke
def invoke(self, args: List[str], prefix_args: Optional[List[str]] = None) -> Any:"""Invoke the CLI with a list of arguments.The optional prefix_args are passed after the `anaconda` entrypoint."""result = self._func(args, prefix_args=prefix_args)self._invoked = Truereturn result
1
4
3
46
0
61
69
61
self,args,prefix_args
[]
Any
{"Assign": 2, "Expr": 1, "Return": 1}
1
9
1
["self._func"]
4
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3676862_pecan_pecan.pecan.commands.shell_py.ShellCommand.invoke_shell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961676_fandoghpaas_fandogh_cli.fandogh_cli.base_commands_py.FandoghCommand.invoke", "_.content.g...
The function (invoke) defined within the public class called MockedCliInvoker.The function start at line 61 and ends at 69. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [61.0] and does not return any value. It declare 1.0 function, It has 1.0 function called...
anaconda_anaconda-client
MockedCliInvoker
public
0
0
assert_main_called_once
def assert_main_called_once(self) -> None:"""Assert that the mocked main function was called once."""self._main_mock.assert_called_once()
1
2
1
15
0
71
73
71
self
[]
None
{"Expr": 2}
1
3
1
["self._main_mock.assert_called_once"]
0
[]
The function (assert_main_called_once) defined within the public class called MockedCliInvoker.The function start at line 71 and ends at 73. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has ...
anaconda_anaconda-client
MockedCliInvoker
public
0
0
assert_main_args_contains
def assert_main_args_contains(self, expected: Dict) -> None:"""Return True if the args passed to the main function is a superset of the kwargs provided."""assert self._invoked, "cli_mocker was never invoked"# This extracts the Namespace for all of those casesargs, _ = self._main_mock.call_argsnamespace = args[0]actual ...
3
7
2
64
0
75
86
75
self,expected
[]
None
{"Assign": 4, "Expr": 1}
2
12
2
["vars", "actual.items"]
0
[]
The function (assert_main_args_contains) defined within the public class called MockedCliInvoker.The function start at line 75 and ends at 86. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [75.0] and does not return any value. It declares 2.0 functions, and ...
anaconda_anaconda-client
public
public
0
0
cli_mocker.func
def func(args, prefix_args=None):if org_prefix:args = [org_prefix] + argsif prefix_args:args = prefix_args + argsmonkeypatch.setattr(sys, "argv", ["/path/to/anaconda"] + args)if parser == "original":try:binstar_client.scripts.cli.main(args, allow_plugin_main=False)return Namespace(exit_code=0)except SystemExit as e:ret...
5
14
2
105
0
140
154
140
null
[]
None
null
0
0
0
null
0
null
The function (cli_mocker.func) defined within the public class called public.The function start at line 140 and ends at 154. It contains 14 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [140.0] and does not return any value..
anaconda_anaconda-client
public
public
0
0
cli_mocker.closure
def closure(main_func: str) -> MockedCliInvoker:return MockedCliInvoker(func=func, main_func=main_func, mocker=mocker, parser=parser)
1
2
1
28
0
156
157
156
null
[]
None
null
0
0
0
null
0
null
The function (cli_mocker.closure) defined within the public class called public.The function start at line 156 and ends at 157. 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
public
public
0
0
cli_mocker
def cli_mocker(request: FixtureRequest,monkeypatch: MonkeyPatch,mocker: Any,) -> Generator[InvokerFactory, None, None]:"""Fixture returns a function that can be used to invoke the CLI via different methods.The different methods are various levels of gradual migration:* original: Uses the original argparse-based CLI par...
5
28
3
193
2
101
165
101
request,monkeypatch,mocker
['runner', 'args']
Generator[InvokerFactory, None, None]
{"Assign": 5, "Expr": 16, "If": 7, "Return": 4, "Try": 1}
28
65
28
["monkeypatch.delenv", "monkeypatch.setenv", "monkeypatch.setenv", "monkeypatch.setattr", "set", "monkeypatch.setenv", "monkeypatch.delenv", "monkeypatch.setenv", "monkeypatch.delenv", "ValueError", "reload", "reload", "monkeypatch.setattr", "binstar_client.scripts.cli.main", "Namespace", "Namespace", "CliRunner", "run...
15
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.test_cli_py.test_arg_parsing_search_command_platform_choice", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.test_cli_py.test_auth_arg_p...
The function (cli_mocker) defined within the public class called public.The function start at line 101 and ends at 165. It contains 28 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [101.0] and does not return any value. It declares 28.0 functions, It has 28.0 functions cal...
anaconda_anaconda-client
public
public
0
0
test_entrypoint
def test_entrypoint() -> None:"""Has the entrypoint been loaded?"""groups = [grp.name for grp in anaconda_cli_base.cli.app.registered_groups]assert "org" in groups
2
3
0
28
1
168
172
168
['groups']
None
{"Assign": 1, "Expr": 1}
0
5
0
[]
0
[]
The function (test_entrypoint) defined within the public class called public.The function start at line 168 and ends at 172. 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..
anaconda_anaconda-client
public
public
0
0
test_org_subcommand_help
def test_org_subcommand_help(flag: str) -> None:"""anaconda org -h and anaconda --help are both available"""runner = CliRunner()result = runner.invoke(anaconda_cli_base.cli.app, ["org", flag])assert result.exit_code == 0
1
4
1
39
2
176
181
176
flag
['runner', 'result']
None
{"Assign": 2, "Expr": 1}
3
6
3
["CliRunner", "runner.invoke", "pytest.mark.parametrize"]
0
[]
The function (test_org_subcommand_help) defined within the public class called public.The function start at line 176 and ends at 181. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 f...
anaconda_anaconda-client
public
public
0
0
assert_binstar_args.check_args
def check_args(args):mock.assert_called_once_with(commands, args, True)
1
2
1
15
0
191
192
191
null
[]
None
null
0
0
0
null
0
null
The function (assert_binstar_args.check_args) defined within the public class called public.The function start at line 191 and ends at 192. 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
public
public
0
0
assert_binstar_args
def assert_binstar_args(mocker):"""Returns a closure that can be used to assert that binstar_main was called with a specific list of args."""mock = mocker.spy(binstar_client.scripts.cli, "binstar_main")def check_args(args):mock.assert_called_once_with(commands, args, True)return check_args
1
4
1
24
1
185
194
185
mocker
['mock']
Returns
{"Assign": 1, "Expr": 2, "Return": 1}
3
10
3
["mocker.spy", "mock.assert_called_once_with", "pytest.fixture"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.test_cli_py.test_deprecated_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.tests.test_cli_py.test_hidden_commands", "_.content.gdriv...
The function (assert_binstar_args) defined within the public class called public.The function start at line 185 and ends at 194. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functio...
anaconda_anaconda-client
public
public
0
0
test_org_subcommands
def test_org_subcommands(cmd: str, monkeypatch: MonkeyPatch, assert_binstar_args: Any) -> None:"""anaconda org <cmd>"""args = ["org", cmd, "-h"]monkeypatch.setattr(sys, "argv", ["/path/to/anaconda"] + args)org = next((group for group in anaconda_cli_base.cli.app.registered_groups if group.name == "org"), None)assert or...
6
15
3
160
5
198
218
198
cmd,monkeypatch,assert_binstar_args
['args', 'subcmd', 'runner', 'org', 'result']
None
{"Assign": 5, "Expr": 3, "If": 1}
9
21
9
["monkeypatch.setattr", "next", "next", "CliRunner", "runner.invoke", "result.stdout.lower", "assert_binstar_args", "pytest.mark.parametrize", "sorted"]
0
[]
The function (test_org_subcommands) defined within the public class called public.The function start at line 198 and ends at 218. It contains 15 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [198.0] and does not return any value. It declares 9.0 functions, and It has 9.0 ...
anaconda_anaconda-client
public
public
0
0
test_hidden_commands
def test_hidden_commands(cmd: str, monkeypatch: MonkeyPatch, assert_binstar_args: Any) -> None:"""anaconda <cmd>"""args = [cmd, "-h"]monkeypatch.setattr(sys, "argv", ["/path/to/anaconda"] + args)subcmd = next((subcmd for subcmd in anaconda_cli_base.cli.app.registered_commands if subcmd.name == cmd), None)assert subcmd ...
4
13
3
132
4
222
239
222
cmd,monkeypatch,assert_binstar_args
['result', 'runner', 'args', 'subcmd']
None
{"Assign": 4, "Expr": 3, "If": 1}
8
18
8
["monkeypatch.setattr", "next", "CliRunner", "runner.invoke", "result.stdout.lower", "assert_binstar_args", "pytest.mark.parametrize", "list"]
0
[]
The function (test_hidden_commands) defined within the public class called public.The function start at line 222 and ends at 239. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [222.0] and does not return any value. It declares 8.0 functions, and It has 8.0 ...
anaconda_anaconda-client
public
public
0
0
test_non_hidden_commands
def test_non_hidden_commands(cmd: str, monkeypatch: MonkeyPatch, assert_binstar_args: Any) -> None:"""anaconda login"""args = [cmd, "-h"]monkeypatch.setattr(sys, "argv", ["/path/to/anaconda"] + args)subcmd = next((subcmd for subcmd in anaconda_cli_base.cli.app.registered_commands if subcmd.name == cmd), None)assert sub...
4
13
3
132
4
243
260
243
cmd,monkeypatch,assert_binstar_args
['result', 'runner', 'args', 'subcmd']
None
{"Assign": 4, "Expr": 3, "If": 1}
8
18
8
["monkeypatch.setattr", "next", "CliRunner", "runner.invoke", "result.stdout.lower", "assert_binstar_args", "pytest.mark.parametrize", "list"]
0
[]
The function (test_non_hidden_commands) defined within the public class called public.The function start at line 243 and ends at 260. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [243.0] and does not return any value. It declares 8.0 functions, and It has ...
anaconda_anaconda-client
public
public
0
0
test_deprecated_message
def test_deprecated_message(cmd: str, caplog: LogCaptureFixture, monkeypatch: MonkeyPatch, assert_binstar_args: Any) -> None:"""anaconda <cmd> warning"""args = [cmd, "-h"]monkeypatch.setattr(sys, "argv", ["/path/to/anaconda"] + args)with caplog.at_level(logging.WARNING):runner = CliRunner()result = runner.invoke(anacon...
2
12
4
103
3
264
279
264
cmd,caplog,monkeypatch,assert_binstar_args
['result', 'runner', 'args']
None
{"Assign": 3, "Expr": 3, "If": 1, "With": 1}
7
16
7
["monkeypatch.setattr", "caplog.at_level", "CliRunner", "runner.invoke", "assert_binstar_args", "pytest.mark.parametrize", "list"]
0
[]
The function (test_deprecated_message) defined within the public class called public.The function start at line 264 and ends at 279. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [264.0] and does not return any value. It declares 7.0 functions, and It has 7...
anaconda_anaconda-client
public
public
0
0
test_top_level_options_passed_through
def test_top_level_options_passed_through(cmd: str, monkeypatch: MonkeyPatch, assert_binstar_args: Any) -> None:"""Ensure top-level CLI options are passed through to binstar_main."""args = ["-t", "TOKEN", "-s", "some-site.com", cmd, "-h"]# nosecmonkeypatch.setattr(sys, "argv", ["/path/to/anaconda"] + args)runner = CliR...
2
9
3
104
3
283
295
283
cmd,monkeypatch,assert_binstar_args
['result', 'runner', 'args']
None
{"Assign": 3, "Expr": 3, "If": 1}
7
13
7
["monkeypatch.setattr", "CliRunner", "runner.invoke", "result.stdout.lower", "assert_binstar_args", "pytest.mark.parametrize", "list"]
0
[]
The function (test_top_level_options_passed_through) defined within the public class called public.The function start at line 283 and ends at 295. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [283.0] and does not return any value. It declares 7.0 functions, ...
anaconda_anaconda-client
public
public
0
0
test_whoami_arg_parsing
def test_whoami_arg_parsing(prefix_args: List[str],args: List[str],mods: Dict[str, Any],cli_mocker: InvokerFactory,request: FixtureRequest,) -> None:# This is a bit of a hack but not worth fixing since usage of legacy parser# (which doesn't support --at) is temporaryat_arg = ["--at", "anaconda.org"] if "orig-bar" not i...
2
19
5
125
6
306
327
306
prefix_args,args,mods,cli_mocker,request
['args', 'mock', 'expected', 'defaults', 'at_arg', 'result']
None
{"Assign": 6, "Expr": 2}
13
22
13
["str", "dict", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "pytest.param", "dict", "pytest.param", "dict", "pytest.param", "dict"]
0
[]
The function (test_whoami_arg_parsing) defined within the public class called public.The function start at line 306 and ends at 327. It contains 19 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [306.0] and does not return any value. It declares 13.0 functions, and It has ...
anaconda_anaconda-client
MockedCliInvoker
public
0
0
__init__
def __init__(self,args: str = "",mods: Optional[Dict[str, Any]] = None,*,id: str,prefix: bool = False,):args_list = shlex.split(args)if prefix:self.prefix_args, self.args = args_list, []else:self.prefix_args, self.args = [], args_listself.id = idself.mods = mods or {}self.marks = ()self.values = (self,)
3
17
5
102
0
331
349
331
self,func,main_func,mocker,parser
[]
None
{"Assign": 4}
1
5
1
["mocker.patch"]
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 MockedCliInvoker.The function start at line 331 and ends at 349. It contains 17 lines of code and it has a cyclomatic complexity of 3. It takes 5 parameters, represented as [331.0] and does not return any value. It declare 1.0 function, It has 1.0 function ...
anaconda_anaconda-client
public
public
0
0
test_upload_arg_parsing
def test_upload_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:filename = "some-file"args = ["upload"] + case.args + [filename]defaults: Dict[str, Any] = dict(token=None,site=None,files=[[filename]],disable_ssl_warnings=False,show_traceback=False,log_level=20,labels=[],no_progress=False,user=None,keep_b...
1
33
2
186
5
407
440
407
case,cli_mocker
['args', 'mock', 'expected', 'filename', 'result']
None
{"AnnAssign": 1, "Assign": 5, "Expr": 2}
89
34
89
["dict", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICas...
0
[]
The function (test_upload_arg_parsing) defined within the public class called public.The function start at line 407 and ends at 440. It contains 33 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [407.0] and does not return any value. It declares 89.0 functions, and It has ...
anaconda_anaconda-client
public
public
0
0
test_upload_mutually_exclusive_options
def test_upload_mutually_exclusive_options(opts, error_opt, conflict_opt, mocker):mock = mocker.patch("binstar_client.commands.upload.main")runner = CliRunner()args = ["org", "upload"] + opts + ["./some-file"]result = runner.invoke(anaconda_cli_base.cli.app, args)assert result.exit_code == 2, result.stdoutassert f"Inva...
1
8
4
77
4
455
465
455
opts,error_opt,conflict_opt,mocker
['result', 'runner', 'args', 'mock']
None
{"Assign": 4, "Expr": 1}
12
11
12
["mocker.patch", "CliRunner", "runner.invoke", "mock.assert_not_called", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_upload_mutually_exclusive_options) defined within the public class called public.The function start at line 455 and ends at 465. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [455.0] and does not return any value. It declares 12.0 functions...
anaconda_anaconda-client
public
public
0
0
test_copy_arg_parsing
def test_copy_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:args = ["copy"] + case.args + ["some-spec"]defaults: Dict[str, Any] = dict(spec=parse_specs("some-spec"),to_owner=None,from_label="main",to_label="main",replace=False,update=False,)expected = {**defaults, **case.mods}mock = cli_mocker("binstar...
1
16
2
117
4
481
497
481
case,cli_mocker
['result', 'args', 'expected', 'mock']
None
{"AnnAssign": 1, "Assign": 4, "Expr": 2}
22
17
22
["dict", "parse_specs", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict"]
0
[]
The function (test_copy_arg_parsing) defined within the public class called public.The function start at line 481 and ends at 497. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [481.0] and does not return any value. It declares 22.0 functions, and It has 22...
anaconda_anaconda-client
public
public
0
0
test_move_arg_parsing
def test_move_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:args = ["move"] + case.args + ["some-spec"]defaults: Dict[str, Any] = dict(token=None,site=None,spec=parse_specs("some-spec"),from_label="main",to_label="main",)expected = {**defaults, **case.mods}mock = cli_mocker("binstar_client.commands.mov...
1
15
2
113
4
510
525
510
case,cli_mocker
['result', 'args', 'expected', 'mock']
None
{"AnnAssign": 1, "Assign": 4, "Expr": 2}
16
16
16
["dict", "parse_specs", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict"]
0
[]
The function (test_move_arg_parsing) defined within the public class called public.The function start at line 510 and ends at 525. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [510.0] and does not return any value. It declares 16.0 functions, and It has 16...
anaconda_anaconda-client
public
public
0
0
test_channel_arg_parsing
def test_channel_arg_parsing(subcommand: str, case: CLICase, cli_mocker: InvokerFactory) -> None:args = [subcommand] + case.argsdefaults = dict(token=None,site=None,organization=None,copy=None,list=False,show=None,lock=None,unlock=None,remove=None,)expected = {**defaults, **case.mods}mock = cli_mocker("binstar_client.c...
1
19
3
119
5
545
564
545
subcommand,case,cli_mocker
['args', 'mock', 'expected', 'defaults', 'result']
None
{"Assign": 5, "Expr": 2}
23
20
23
["dict", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "pytest.mark.parametrize", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict"]
0
[]
The function (test_channel_arg_parsing) defined within the public class called public.The function start at line 545 and ends at 564. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [545.0] and does not return any value. It declares 23.0 functions, and It has...
anaconda_anaconda-client
public
public
0
0
test_channel_mutually_exclusive_options
def test_channel_mutually_exclusive_options(opts, error_opt, conflict_opt, mocker):mock = mocker.patch("binstar_client.commands.channel.main")runner = CliRunner()args = ["org", "channel"] + optsresult = runner.invoke(anaconda_cli_base.cli.app, args)assert result.exit_code == 2, result.stdoutassert f"Invalid value for {...
1
8
4
73
4
577
587
577
opts,error_opt,conflict_opt,mocker
['result', 'runner', 'args', 'mock']
None
{"Assign": 4, "Expr": 1}
10
11
10
["mocker.patch", "CliRunner", "runner.invoke", "mock.assert_not_called", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_channel_mutually_exclusive_options) defined within the public class called public.The function start at line 577 and ends at 587. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [577.0] and does not return any value. It declares 10.0 function...
anaconda_anaconda-client
public
public
0
0
test_channel_mutually_exclusive_options_required
def test_channel_mutually_exclusive_options_required(mocker):mock = mocker.patch("binstar_client.commands.channel.main")runner = CliRunner()args = ["org", "channel", "--organization", "need-some-argument-to-prevent-help"]result = runner.invoke(anaconda_cli_base.cli.app, args)assert result.exit_code == 2, result.stdouta...
1
10
1
70
4
590
602
590
mocker
['result', 'runner', 'args', 'mock']
None
{"Assign": 4, "Expr": 1}
4
13
4
["mocker.patch", "CliRunner", "runner.invoke", "mock.assert_not_called"]
0
[]
The function (test_channel_mutually_exclusive_options_required) defined within the public class called public.The function start at line 590 and ends at 602. It contains 10 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 fun...
anaconda_anaconda-client
public
public
0
0
test_update_arg_parsing
def test_update_arg_parsing(case: CLICase, cli_mocker: InvokerFactory, tmp_path: Path) -> None:source_path = str(tmp_path / "metadata.json")with open(source_path, "w", encoding="utf-8") as fp:fp.write("Hi")args = ["update"] + case.args + ["some-spec", source_path]defaults = dict(token=None,site=None,spec=parse_specs("s...
1
19
3
144
6
616
636
616
case,cli_mocker,tmp_path
['args', 'mock', 'expected', 'defaults', 'result', 'source_path']
None
{"Assign": 6, "Expr": 3, "With": 1}
21
21
21
["str", "open", "fp.write", "dict", "parse_specs", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict"]
0
[]
The function (test_update_arg_parsing) defined within the public class called public.The function start at line 616 and ends at 636. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [616.0] and does not return any value. It declares 21.0 functions, and It has ...
anaconda_anaconda-client
public
public
0
0
test_search_arg_parsing
def test_search_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:args = ["search"] + case.args + ["search-term"]defaults = dict(token=None,site=None,name=["search-term"],package_type=None,platform=None,)expected = {**defaults, **case.mods}mock = cli_mocker("binstar_client.commands.search.search")result = ...
1
15
2
105
5
651
666
651
case,cli_mocker
['args', 'mock', 'expected', 'defaults', 'result']
None
{"Assign": 5, "Expr": 2}
19
16
19
["dict", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict"]
0
[]
The function (test_search_arg_parsing) defined within the public class called public.The function start at line 651 and ends at 666. It contains 15 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [651.0] and does not return any value. It declares 19.0 functions, and It has ...
anaconda_anaconda-client
public
public
0
0
test_arg_parsing_search_command_platform_choice
def test_arg_parsing_search_command_platform_choice(platform: str, expected_exit_code: int, cli_mocker: InvokerFactory) -> None:args = ["search", "--platform", platform, "search-term"]mock = cli_mocker("binstar_client.commands.search.search")result = mock.invoke(args)assert result.exit_code == expected_exit_code, resul...
2
18
3
98
4
687
707
687
platform,expected_exit_code,cli_mocker
['result', 'args', 'expected', 'mock']
None
{"Assign": 4, "Expr": 2, "If": 1, "Return": 1}
6
21
6
["cli_mocker", "mock.invoke", "dict", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize"]
0
[]
The function (test_arg_parsing_search_command_platform_choice) defined within the public class called public.The function start at line 687 and ends at 707. It contains 18 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [687.0] and does not return any value. It declares 6.0 ...
anaconda_anaconda-client
public
public
0
0
test_groups_arg_parsing
def test_groups_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:spec = "my-org/my-group/my-member"args = ["groups"] + (case.args or ["add"]) + [spec]defaults = dict(token=None,site=None,action=None,spec=group_spec(spec),perms="read",)expected = {**defaults, **case.mods}mock = cli_mocker("binstar_client.c...
2
16
2
115
6
729
745
729
case,cli_mocker
['args', 'mock', 'expected', 'defaults', 'spec', 'result']
None
{"Assign": 6, "Expr": 2}
35
17
35
["dict", "group_spec", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLI...
0
[]
The function (test_groups_arg_parsing) defined within the public class called public.The function start at line 729 and ends at 745. It contains 16 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [729.0] and does not return any value. It declares 35.0 functions, and It has ...
anaconda_anaconda-client
public
public
0
0
test_show_arg_parsing
def test_show_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:spec = "someone/some-package/some-version"args = ["show"] + case.args + [spec]defaults = dict(token=None,site=None,spec=parse_specs(spec),)expected = {**defaults, **case.mods}mock = cli_mocker("binstar_client.commands.show.main")result = mock....
1
14
2
101
6
756
770
756
case,cli_mocker
['args', 'mock', 'expected', 'defaults', 'spec', 'result']
None
{"Assign": 6, "Expr": 2}
12
15
12
["dict", "parse_specs", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict"]
0
[]
The function (test_show_arg_parsing) defined within the public class called public.The function start at line 756 and ends at 770. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [756.0] and does not return any value. It declares 12.0 functions, and It has 12...
anaconda_anaconda-client
public
public
0
0
test_remove_arg_parsing
def test_remove_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:spec_1 = "some-user/some-package/some-version/some-file"spec_2 = "some-user/some-package/some-version/some-other-file"args = ["remove"] + case.args + [spec_1, spec_2]defaults = dict(token=None,site=None,specs=[parse_specs(spec_1), parse_spec...
1
16
2
117
7
783
800
783
case,cli_mocker
['args', 'mock', 'spec_1', 'expected', 'defaults', 'spec_2', 'result']
None
{"Assign": 7, "Expr": 2}
17
18
17
["dict", "parse_specs", "parse_specs", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict"]
0
[]
The function (test_remove_arg_parsing) defined within the public class called public.The function start at line 783 and ends at 800. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [783.0] and does not return any value. It declares 17.0 functions, and It has ...
anaconda_anaconda-client
public
public
0
0
test_auth_arg_parsing.__eq__
def __eq__(self, other):return other is not None
1
2
2
12
0
858
859
858
null
[]
None
null
0
0
0
null
0
null
The function (test_auth_arg_parsing.__eq__) defined within the public class called public.The function start at line 858 and ends at 859. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [858.0] and does not return any value..
anaconda_anaconda-client
public
public
0
0
test_auth_arg_parsing
def test_auth_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:if case.prefix_args:# Need this for the prefix-args tests, since we need an actioncase.args = ["-i"]expected_info = Trueelse:expected_info = Falseargs = ["auth"] + case.argsclass NotNone:# Just a hack to test the out parameter, which I am not ...
2
31
2
171
5
846
884
846
case,cli_mocker
['args', 'mock', 'expected', 'result', 'expected_info']
None
{"AnnAssign": 1, "Assign": 7, "Expr": 2, "If": 1, "Return": 1}
68
39
68
["dict", "gethostname", "NotNone", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", ...
0
[]
The function (test_auth_arg_parsing) defined within the public class called public.The function start at line 846 and ends at 884. It contains 31 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [846.0] and does not return any value. It declares 68.0 functions, and It has 68...
anaconda_anaconda-client
public
public
0
0
test_auth_mutually_exclusive_options
def test_auth_mutually_exclusive_options(opts, error_opt, conflict_opt, mocker):mock = mocker.patch("binstar_client.commands.authorizations.main")runner = CliRunner()args = ["auth"] + optsresult = runner.invoke(anaconda_cli_base.cli.app, args)assert result.exit_code == 2, result.stdoutassert f"Invalid value for {error_...
1
8
4
71
4
896
906
896
opts,error_opt,conflict_opt,mocker
['result', 'runner', 'args', 'mock']
None
{"Assign": 4, "Expr": 1}
9
11
9
["mocker.patch", "CliRunner", "runner.invoke", "mock.assert_not_called", "pytest.mark.parametrize", "pytest.param", "pytest.param", "pytest.param", "pytest.param"]
0
[]
The function (test_auth_mutually_exclusive_options) defined within the public class called public.The function start at line 896 and ends at 906. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [896.0] and does not return any value. It declares 9.0 functions, a...
anaconda_anaconda-client
public
public
0
0
test_auth_mutually_exclusive_options_required
def test_auth_mutually_exclusive_options_required(mocker):mock = mocker.patch("binstar_client.commands.authorizations.main")args = ["auth", "required-arg"]runner = CliRunner()result = runner.invoke(anaconda_cli_base.cli.app, args)assert result.exit_code == 2, result.stdoutassert "one of --list-scopes, --list, --list, -...
1
8
1
64
4
909
919
909
mocker
['result', 'runner', 'args', 'mock']
None
{"Assign": 4, "Expr": 1}
4
11
4
["mocker.patch", "CliRunner", "runner.invoke", "mock.assert_not_called"]
0
[]
The function (test_auth_mutually_exclusive_options_required) defined within the public class called public.The function start at line 909 and ends at 919. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functio...
anaconda_anaconda-client
public
public
0
0
test_config_arg_parsing
def test_config_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:args = ["config"] + case.args + ["--type", "int"]defaults: Dict[str, Any] = dict(token=None,site=None,set=[],get=None,remove=[],show=False,files=False,show_sources=False,user=True,)expected = {**defaults, **case.mods}mock = cli_mocker("binst...
1
19
2
130
4
942
962
942
case,cli_mocker
['result', 'args', 'expected', 'mock']
None
{"AnnAssign": 1, "Assign": 4, "Expr": 2}
36
21
36
["dict", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict",...
0
[]
The function (test_config_arg_parsing) defined within the public class called public.The function start at line 942 and ends at 962. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [942.0] and does not return any value. It declares 36.0 functions, and It has ...
anaconda_anaconda-client
public
public
0
0
test_package_arg_parsing
def test_package_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:spec = "user/package"if not case.args:case.args = ["--list-collaborators"]case.mods["list_collaborators"] = Trueargs = ["package"] + case.args + [spec]defaults: Dict[str, Any] = dict(token=None,site=None,spec=parse_specs(spec),add_collabora...
2
24
2
157
5
981
1,007
981
case,cli_mocker
['args', 'mock', 'expected', 'spec', 'result']
None
{"AnnAssign": 1, "Assign": 7, "Expr": 2, "If": 1}
28
27
28
["dict", "parse_specs", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", ...
0
[]
The function (test_package_arg_parsing) defined within the public class called public.The function start at line 981 and ends at 1007. It contains 24 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [981.0] and does not return any value. It declares 28.0 functions, and It ha...
anaconda_anaconda-client
public
public
0
0
test_package_mutually_exclusive_options
def test_package_mutually_exclusive_options(mocker, opts, error_opt, conflict_opt):mock = mocker.patch("binstar_client.commands.package.main")args = ["package"] + opts + ["spec"]runner = CliRunner()result = runner.invoke(anaconda_cli_base.cli.app, args)assert result.exit_code == 2, result.stdoutassert f"Invalid value f...
1
8
4
75
4
1,019
1,029
1,019
mocker,opts,error_opt,conflict_opt
['result', 'runner', 'args', 'mock']
None
{"Assign": 4, "Expr": 1}
7
11
7
["mocker.patch", "CliRunner", "runner.invoke", "mock.assert_not_called", "pytest.mark.parametrize", "pytest.param", "pytest.param"]
0
[]
The function (test_package_mutually_exclusive_options) defined within the public class called public.The function start at line 1019 and ends at 1029. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [1019.0] and does not return any value. It declares 7.0 functi...
anaconda_anaconda-client
public
public
0
0
test_package_mutually_exclusive_options_required
def test_package_mutually_exclusive_options_required(mocker):mock = mocker.patch("binstar_client.commands.package.main")args = ["package", "spec"]runner = CliRunner()result = runner.invoke(anaconda_cli_base.cli.app, args)assert result.exit_code == 2, result.stdoutassert "one of --add-collaborator, --list-collaborators,...
1
10
1
66
4
1,032
1,044
1,032
mocker
['result', 'runner', 'args', 'mock']
None
{"Assign": 4, "Expr": 1}
4
13
4
["mocker.patch", "CliRunner", "runner.invoke", "mock.assert_not_called"]
0
[]
The function (test_package_mutually_exclusive_options_required) defined within the public class called public.The function start at line 1032 and ends at 1044. It contains 10 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 f...
anaconda_anaconda-client
public
public
0
0
test_download_arg_parsing
def test_download_arg_parsing(case: CLICase, cli_mocker: InvokerFactory) -> None:args = ["download"] + case.args + ["handle"]defaults: Dict[str, Any] = dict(token=None,site=None,handle="handle",force=False,output=".",package_type=None,)expected = {**defaults, **case.mods}mock = cli_mocker("binstar_client.commands.downl...
1
16
2
114
4
1,062
1,079
1,062
case,cli_mocker
['result', 'args', 'expected', 'mock']
None
{"AnnAssign": 1, "Assign": 4, "Expr": 2}
25
18
25
["dict", "cli_mocker", "mock.invoke", "mock.assert_main_called_once", "mock.assert_main_args_contains", "pytest.mark.parametrize", "CLICase", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict", "CLICase", "dict"]
0
[]
The function (test_download_arg_parsing) defined within the public class called public.The function start at line 1062 and ends at 1079. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1062.0] and does not return any value. It declares 25.0 functions, and It...
anaconda_anaconda-client
Test
public
0
1
test_write_env
def test_write_env(self):tmpdir = tempfile.mkdtemp()self.addCleanup(shutil.rmtree, tmpdir)with unittest.mock.patch('binstar_client.commands.config.USER_CONFIG', os.path.join(tmpdir, 'config.yaml')), unittest.mock.patch('binstar_client.commands.config.SEARCH_PATH', [tmpdir]):main(['config', '--set', 'url', 'http://local...
1
17
1
171
0
15
36
15
self
[]
None
{"Assign": 4, "Expr": 6, "With": 2}
18
22
18
["tempfile.mkdtemp", "self.addCleanup", "unittest.mock.patch", "os.path.join", "unittest.mock.patch", "main", "self.assertTrue", "os.path.exists", "os.path.join", "open", "os.path.join", "conf_file.read", "self.assertEqual", "main", "format", "os.path.join", "self.assertIn", "self.stream.getvalue"]
0
[]
The function (test_write_env) defined within the public class called Test, that inherit another class.The function start at line 15 and ends at 36. It contains 17 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 18.0 functions, a...
anaconda_anaconda-client
Test
public
0
1
test_copy_label
def test_copy_label(self, urls):urls.register(method='GET', path='/channels/u1', content='["dev"]')copy = urls.register(method='POST', path='/copy/package/u1/p1/1.0/', content='[{"basename": "copied-file_1.0.tgz"}]')main(['--show-traceback', 'copy', '--from-label', 'dev', '--to-label', 'release/xyz', 'u1/p1/1.0'])urls....
1
10
2
98
0
15
26
15
self,urls
[]
None
{"Assign": 2, "Expr": 5}
7
12
7
["urls.register", "urls.register", "main", "urls.assertAllCalled", "json.loads", "self.assertEqual", "self.assertEqual"]
0
[]
The function (test_copy_label) defined within the public class called Test, that inherit another class.The function start at line 15 and ends at 26. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [15.0] and does not return any value. It declares 7.0 functions...
anaconda_anaconda-client
Test
public
0
1
test_copy_replace
def test_copy_replace(self, urls):urls.register(method='GET', path='/channels/u1', content='["dev"]')copy = urls.register(method='PUT', path='/copy/package/u1/p1/1.0/', content='[{"basename": "copied-file_1.0.tgz"}]')main(['--show-traceback', 'copy', '--from-label', 'dev', '--to-label', 'release/xyz', 'u1/p1/1.0', '--r...
1
10
2
100
0
29
40
29
self,urls
[]
None
{"Assign": 2, "Expr": 5}
7
12
7
["urls.register", "urls.register", "main", "urls.assertAllCalled", "json.loads", "self.assertEqual", "self.assertEqual"]
0
[]
The function (test_copy_replace) defined within the public class called Test, that inherit another class.The function start at line 29 and ends at 40. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [29.0] and does not return any value. It declares 7.0 functio...
anaconda_anaconda-client
Test
public
0
1
test_copy_update
def test_copy_update(self, urls):urls.register(method='GET', path='/channels/u1', content='["dev"]')copy = urls.register(method='PATCH', path='/copy/package/u1/p1/1.0/', content='[{"basename": "copied-file_1.0.tgz"}]')main(['--show-traceback', 'copy', '--from-label', 'dev', '--to-label', 'release/xyz', 'u1/p1/1.0', '--...
1
10
2
100
0
43
54
43
self,urls
[]
None
{"Assign": 2, "Expr": 5}
7
12
7
["urls.register", "urls.register", "main", "urls.assertAllCalled", "json.loads", "self.assertEqual", "self.assertEqual"]
0
[]
The function (test_copy_update) defined within the public class called Test, that inherit another class.The function start at line 43 and ends at 54. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [43.0] and does not return any value. It declares 7.0 function...
anaconda_anaconda-client
Test
public
0
1
test_copy_file_conflict
def test_copy_file_conflict(self, urls):urls.register(method='GET', path='/channels/u1', content='["dev"]')copy = urls.register(method='POST', path='/copy/package/u1/p1/1.0/', status=409)with self.assertRaises(Conflict):main(['--show-traceback', 'copy', '--from-label', 'dev', '--to-label', 'release/xyz', 'u1/p1/1.0'])u...
1
9
2
106
0
57
66
57
self,urls
[]
None
{"Assign": 2, "Expr": 5, "With": 1}
8
10
8
["urls.register", "urls.register", "self.assertRaises", "main", "urls.assertAllCalled", "json.loads", "self.assertEqual", "self.assertEqual"]
0
[]
The function (test_copy_file_conflict) defined within the public class called Test, that inherit another class.The function start at line 57 and ends at 66. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [57.0] and does not return any value. It declares 8.0 fu...
anaconda_anaconda-client
Test
public
0
1
test_copy_argument_error
def test_copy_argument_error(self, urls):urls.register(method='GET', path='/channels/u1', content='["dev"]')with self.assertRaises(SystemExit):main(['--show-traceback','copy','--from-label','dev','--to-label','release/xyz','u1/p1/1.0','--update','--replace',])
1
16
2
54
0
69
84
69
self,urls
[]
None
{"Expr": 2, "With": 1}
3
16
3
["urls.register", "self.assertRaises", "main"]
0
[]
The function (test_copy_argument_error) defined within the public class called Test, that inherit another class.The function start at line 69 and ends at 84. It contains 16 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [69.0] and does not return any value. It declares 3.0 ...
anaconda_anaconda-client
Test
public
0
1
test_show
def test_show(self, urls):urls.register(method='GET',path='/groups/org',content='{"groups": [{"name":"grp", "permission": "read"}]}',)main(['--show-traceback', 'groups', 'show', 'org'])urls.assertAllCalled()
1
8
2
41
0
13
22
13
self,urls
[]
None
{"Expr": 3}
3
10
3
["urls.register", "main", "urls.assertAllCalled"]
0
[]
The function (test_show) defined within the public class called Test, that inherit another class.The function start at line 13 and ends at 22. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [13.0] and does not return any value. It declares 3.0 functions, and ...
anaconda_anaconda-client
Test
public
0
1
test_show_group
def test_show_group(self, urls):urls.register(method='GET',path='/group/org/owners',content='{"name": "owners", "permission": "read", "members_count": 1, "repos_count": 1}',)main(['--show-traceback', 'groups', 'show', 'org/owners'])urls.assertAllCalled()
1
8
2
41
0
25
34
25
self,urls
[]
None
{"Expr": 3}
3
10
3
["urls.register", "main", "urls.assertAllCalled"]
0
[]
The function (test_show_group) defined within the public class called Test, that inherit another class.The function start at line 25 and ends at 34. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [25.0] and does not return any value. It declares 3.0 functions,...
anaconda_anaconda-client
Test
public
0
1
test_create
def test_create(self, urls):urls.register(method='POST',path='/group/org/new_grp',status=204,)main(['--show-traceback', 'groups', 'add', 'org/new_grp'])urls.assertAllCalled()
1
8
2
41
0
37
46
37
self,urls
[]
None
{"Expr": 3}
3
10
3
["urls.register", "main", "urls.assertAllCalled"]
0
[]
The function (test_create) defined within the public class called Test, that inherit another class.The function start at line 37 and ends at 46. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [37.0] and does not return any value. It declares 3.0 functions, and...
anaconda_anaconda-client
Test
public
0
1
test_create_missing_group
def test_create_missing_group(self):with self.assertRaisesRegex(errors.UserError, 'Group name not given'):main(['--show-traceback', 'groups', 'add', 'org'])
1
3
1
29
0
48
50
48
self
[]
None
{"Expr": 1, "With": 1}
2
3
2
["self.assertRaisesRegex", "main"]
0
[]
The function (test_create_missing_group) defined within the public class called Test, that inherit another class.The function start at line 48 and ends at 50. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 fun...
anaconda_anaconda-client
Test
public
0
1
test_add_member
def test_add_member(self, urls):urls.register(method='PUT',path='/group/org/grp/members/new_member',status=204,)main(['--show-traceback', 'groups', 'add_member', 'org/grp/new_member'])urls.assertAllCalled()
1
8
2
41
0
53
62
53
self,urls
[]
None
{"Expr": 3}
3
10
3
["urls.register", "main", "urls.assertAllCalled"]
0
[]
The function (test_add_member) defined within the public class called Test, that inherit another class.The function start at line 53 and ends at 62. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [53.0] and does not return any value. It declares 3.0 functions,...
anaconda_anaconda-client
Test
public
0
1
test_add_member_missing_member
def test_add_member_missing_member(self):with self.assertRaisesRegex(errors.UserError, 'Member name not given'):main(['--show-traceback', 'groups', 'add_member', 'org/grp'])
1
3
1
29
0
64
66
64
self
[]
None
{"Expr": 1, "With": 1}
2
3
2
["self.assertRaisesRegex", "main"]
0
[]
The function (test_add_member_missing_member) defined within the public class called Test, that inherit another class.The function start at line 64 and ends at 66. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2....
anaconda_anaconda-client
Test
public
0
1
test_remove_member
def test_remove_member(self, urls):urls.register(method='DELETE',path='/group/org/grp/members/new_member',status=204,)main(['--show-traceback', 'groups', 'remove_member', 'org/grp/new_member'])urls.assertAllCalled()
1
8
2
41
0
69
78
69
self,urls
[]
None
{"Expr": 3}
3
10
3
["urls.register", "main", "urls.assertAllCalled"]
0
[]
The function (test_remove_member) defined within the public class called Test, that inherit another class.The function start at line 69 and ends at 78. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [69.0] and does not return any value. It declares 3.0 functio...
anaconda_anaconda-client
Test
public
0
1
test_packages
def test_packages(self, urls):urls.register(method='GET',path='/group/org/grp/packages',content='[{"name": "pkg", "full_name": "org/pkg", "summary": "An org pkg"}]',)main(['--show-traceback', 'groups', 'packages', 'org/grp'])urls.assertAllCalled()
1
8
2
41
0
81
90
81
self,urls
[]
None
{"Expr": 3}
3
10
3
["urls.register", "main", "urls.assertAllCalled"]
0
[]
The function (test_packages) defined within the public class called Test, that inherit another class.The function start at line 81 and ends at 90. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [81.0] and does not return any value. It declares 3.0 functions, a...
anaconda_anaconda-client
Test
public
0
1
test_add_package
def test_add_package(self, urls):urls.register(method='PUT',path='/group/org/grp/packages/pkg',status=204,)main(['--show-traceback', 'groups', 'add_package', 'org/grp/pkg'])urls.assertAllCalled()
1
8
2
41
0
93
102
93
self,urls
[]
None
{"Expr": 3}
3
10
3
["urls.register", "main", "urls.assertAllCalled"]
0
[]
The function (test_add_package) defined within the public class called Test, that inherit another class.The function start at line 93 and ends at 102. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [93.0] and does not return any value. It declares 3.0 function...
anaconda_anaconda-client
Test
public
0
1
test_remove_package
def test_remove_package(self, urls):urls.register(method='DELETE',path='/group/org/grp/packages/pkg',status=204,)main(['--show-traceback', 'groups', 'remove_package', 'org/grp/pkg'])urls.assertAllCalled()
1
8
2
41
0
105
114
105
self,urls
[]
None
{"Expr": 3}
3
10
3
["urls.register", "main", "urls.assertAllCalled"]
0
[]
The function (test_remove_package) defined within the public class called Test, that inherit another class.The function start at line 105 and ends at 114. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [105.0] and does not return any value. It declares 3.0 fun...
anaconda_anaconda-client
Test
public
0
1
test_licenses_array_param
def test_licenses_array_param(self, urls):api = Binstar()urls.register(method='GET', path='/license', content='[]')api.user_licenses()urls.assertAllCalled()
1
5
2
38
0
9
13
9
self,urls
[]
None
{"Assign": 1, "Expr": 3}
4
5
4
["Binstar", "urls.register", "api.user_licenses", "urls.assertAllCalled"]
0
[]
The function (test_licenses_array_param) defined within the public class called Test, that inherit another class.The function start at line 9 and ends at 13. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [9.0] and does not return any value. It declares 4.0 fu...