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 | Binstar | public | 0 | 1 | package_collaborators | def package_collaborators(self, owner, package_name):url = '%s/packages/%s/%s/collaborators' % (self.domain, owner, package_name)res = self.session.get(url)self._check_response(res, [200])return res.json() | 1 | 5 | 3 | 48 | 0 | 305 | 309 | 305 | self,owner,package_name | [] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 3 | 5 | 3 | ["self.session.get", "self._check_response", "res.json"] | 0 | [] | The function (package_collaborators) defined within the public class called Binstar, that inherit another class.The function start at line 305 and ends at 309. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [305.0], and this function return a value. It declare... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | all_packages | def all_packages(self, modified_after=None):url = '%s/package_listing' % (self.domain)data = {'modified_after': modified_after or ''}res = self.session.get(url, data=data)self._check_response(res)return res.json() | 2 | 6 | 2 | 53 | 0 | 311 | 316 | 311 | self,modified_after | [] | Returns | {"Assign": 3, "Expr": 1, "Return": 1} | 3 | 6 | 3 | ["self.session.get", "self._check_response", "res.json"] | 0 | [] | The function (all_packages) defined within the public class called Binstar, that inherit another class.The function start at line 311 and ends at 316. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [311.0], and this function return a value. It declares 3.0 fun... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | add_package | def add_package(self,login,package_name,summary=None,license=None,public=True,license_url=None,license_family=None,attrs=None,package_type=None,):"""Add a new package to a users account:param login: the login of the package owner:param package_name: the name of the package to be created:param package_type: A type ident... | 4 | 27 | 10 | 165 | 0 | 318 | 360 | 318 | self,login,package_name,summary,license,public,license_url,license_family,attrs,package_type | [] | Returns | {"Assign": 9, "Expr": 2, "Return": 1} | 6 | 43 | 6 | ["bool", "dict", "jencode", "self.session.post", "self._check_response", "res.json"] | 0 | [] | The function (add_package) defined within the public class called Binstar, that inherit another class.The function start at line 318 and ends at 360. It contains 27 lines of code and it has a cyclomatic complexity of 4. It takes 10 parameters, represented as [318.0], and this function return a value. It declares 6.0 fu... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | update_package | def update_package(self, login, package_name, attrs):"""Update public_attrs of the package on a users account:param login: the login of the package owner:param package_name: the name of the package to be updated:param attrs: A dictionary of attributes to update"""url = '{}/package/{}/{}'.format(self.domain, login, pack... | 1 | 7 | 4 | 74 | 0 | 362 | 376 | 362 | self,login,package_name,attrs | [] | Returns | {"Assign": 4, "Expr": 2, "Return": 1} | 6 | 15 | 6 | ["format", "dict", "jencode", "self.session.patch", "self._check_response", "res.json"] | 0 | [] | The function (update_package) defined within the public class called Binstar, that inherit another class.The function start at line 362 and ends at 376. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [362.0], and this function return a value. It declares 6.0 f... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | update_release | def update_release(self, login, package_name, version, attrs):"""Update release public_attrs of the package on a users account:param login: the login of the package owner:param package_name: the name of the package to be updated:param version: version of the package to update:param attrs: A dictionary of attributes to ... | 1 | 7 | 5 | 78 | 0 | 378 | 392 | 378 | self,login,package_name,version,attrs | [] | Returns | {"Assign": 4, "Expr": 2, "Return": 1} | 6 | 15 | 6 | ["format", "dict", "jencode", "self.session.patch", "self._check_response", "res.json"] | 0 | [] | The function (update_release) defined within the public class called Binstar, that inherit another class.The function start at line 378 and ends at 392. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [378.0], and this function return a value. It declares 6.0 f... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | remove_package | def remove_package(self, username, package_name):url = '%s/package/%s/%s' % (self.domain, username, package_name)res = self.session.delete(url)self._check_response(res, [201]) | 1 | 4 | 3 | 42 | 0 | 394 | 398 | 394 | self,username,package_name | [] | None | {"Assign": 2, "Expr": 1} | 2 | 5 | 2 | ["self.session.delete", "self._check_response"] | 0 | [] | The function (remove_package) defined within the public class called Binstar, that inherit another class.The function start at line 394 and ends at 398. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [394.0] and does not return any value. It declares 2.0 funct... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | release | def release(self, login, package_name, version):"""Get information about a specific release:param login: the login of the package owner:param package_name: the name of the package:param version: the name of the package"""url = '%s/release/%s/%s/%s' % (self.domain, login, package_name, version)res = self.session.get(url... | 1 | 5 | 4 | 49 | 0 | 400 | 411 | 400 | self,login,package_name,version | [] | Returns | {"Assign": 2, "Expr": 2, "Return": 1} | 3 | 12 | 3 | ["self.session.get", "self._check_response", "res.json"] | 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 Binstar, that inherit another class.The function start at line 400 and ends at 411. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [400.0], and this function return a value. It declares 3.0 function... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | remove_release | def remove_release(self, username, package_name, version):"""Remove a release and all files under it.:param username: the login of the package owner:param package_name: the name of the package:param version: the name of the package"""url = '%s/release/%s/%s/%s' % (self.domain, username, package_name, version)res = self... | 1 | 4 | 4 | 47 | 0 | 413 | 423 | 413 | self,username,package_name,version | [] | None | {"Assign": 2, "Expr": 2} | 2 | 11 | 2 | ["self.session.delete", "self._check_response"] | 0 | [] | The function (remove_release) defined within the public class called Binstar, that inherit another class.The function start at line 413 and ends at 423. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [413.0] and does not return any value. It declares 2.0 funct... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | add_release | def add_release(self, login, package_name, version, requirements, announce, release_attrs):"""Add a new release to a package.:param login: the login of the package owner:param package_name: the name of the package:param version: the version string of the release:param requirements: A dict of requirements NOTE: describe... | 2 | 14 | 7 | 101 | 0 | 425 | 451 | 425 | self,login,package_name,version,requirements,announce,release_attrs | [] | Returns | {"Assign": 5, "Expr": 3, "If": 1, "Return": 1} | 5 | 27 | 5 | ["payload.update", "jencode", "self.session.post", "self._check_response", "res.json"] | 0 | [] | The function (add_release) defined within the public class called Binstar, that inherit another class.The function start at line 425 and ends at 451. It contains 14 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [425.0], and this function return a value. It declares 5.0 fun... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | distribution | def distribution(self, login, package_name, release, basename=None):url = '%s/dist/%s/%s/%s/%s' % (self.domain, login, package_name, release, basename)res = self.session.get(url)self._check_response(res)return res.json() | 1 | 5 | 5 | 54 | 0 | 453 | 458 | 453 | self,login,package_name,release,basename | [] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 3 | 6 | 3 | ["self.session.get", "self._check_response", "res.json"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984311_astropy_pytest_doctestplus.pytest_doctestplus.utils_py.ModuleChecker.find_distribution", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70598532_awslabs_gluonts.test.mx.distribution.test_mx_distribution_infer... | The function (distribution) defined within the public class called Binstar, that inherit another class.The function start at line 453 and ends at 458. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [453.0], and this function return a value. It declares 3.0 fun... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | remove_dist | def remove_dist(self, login, package_name, release, basename=None, _id=None):if basename:url = '%s/dist/%s/%s/%s/%s' % (self.domain, login, package_name, release, basename)elif _id:url = '%s/dist/%s/%s/%s/-/%s' % (self.domain, login, package_name, release, _id)else:raise TypeError("method remove_dist expects either 'ba... | 3 | 10 | 6 | 88 | 0 | 460 | 470 | 460 | self,login,package_name,release,basename,_id | [] | Returns | {"Assign": 3, "Expr": 1, "If": 2, "Return": 1} | 4 | 11 | 4 | ["TypeError", "self.session.delete", "self._check_response", "res.json"] | 0 | [] | The function (remove_dist) defined within the public class called Binstar, that inherit another class.The function start at line 460 and ends at 470. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 6 parameters, represented as [460.0], and this function return a value. It declares 4.0 fun... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | download | def download(self, login, package_name, release, basename, md5=None):"""Download a package distribution:param login: the login of the package owner:param package_name: the name of the package:param version: the version string of the release:param basename: the basename of the distribution to download:param md5: (option... | 5 | 16 | 6 | 139 | 0 | 472 | 509 | 472 | self,login,package_name,release,basename,md5 | [] | Returns | {"Assign": 5, "Expr": 2, "If": 4, "Return": 4} | 3 | 38 | 3 | ["self.session.get", "self._check_response", "requests.get"] | 48 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.update_py.download_by_tag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.update_py.download_latest", "_.content.gd... | The function (download) defined within the public class called Binstar, that inherit another class.The function start at line 472 and ends at 509. It contains 16 lines of code and it has a cyclomatic complexity of 5. It takes 6 parameters, represented as [472.0], and this function return a value. It declares 3.0 functi... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | upload | def upload(self,login,package_name,release,basename,file,distribution_type,description='',md5=None,sha256=None,size=None,dependencies=None,attrs=None,channels=('main',),):"""Upload a new distribution to a package release.:param login: the login of the package owner:param package_name: the name of the package:param rele... | 9 | 65 | 14 | 471 | 0 | 511 | 603 | 511 | self,login,package_name,release,basename,file,distribution_type,description,md5,sha256,size,dependencies,attrs,channels | [] | Returns | {"Assign": 24, "Expr": 6, "If": 7, "Return": 1, "With": 1} | 28 | 93 | 28 | ["quote", "isinstance", "TypeError", "compute_hash", "isinstance", "jencode", "self.session.post", "self._check_response", "res.json", "compute_hash", "file.tell", "file.seek", "file.tell", "file.seek", "str", "os.fstat", "file.fileno", "tqdm", "multipart_files_upload", "logger.info", "ET.fromstring", "xml_error.find",... | 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 Binstar, that inherit another class.The function start at line 511 and ends at 603. It contains 65 lines of code and it has a cyclomatic complexity of 9. It takes 14 parameters, represented as [511.0], and this function return a value. It declares 28.0 functi... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | search | def search(self, query, package_type=None, platform=None):if package_type is not None:package_type = package_type.valueurl = '%s/search' % self.domainres = self.session.get(url,params={'name': query,'type': package_type,'platform': platform,},)self._check_response(res)return res.json() | 2 | 14 | 4 | 73 | 0 | 605 | 619 | 605 | self,query,package_type,platform | [] | Returns | {"Assign": 3, "Expr": 1, "If": 1, "Return": 1} | 3 | 15 | 3 | ["self.session.get", "self._check_response", "res.json"] | 114 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.apple2.apple2_gcr_py.Apple2GCR.decode_flux", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.commodore.c64_gcr_py.C64... | The function (search) defined within the public class called Binstar, that inherit another class.The function start at line 605 and ends at 619. It contains 14 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [605.0], and this function return a value. It declares 3.0 function... |
anaconda_anaconda-client | Binstar | public | 0 | 1 | user_licenses | def user_licenses(self):"""Download the user current trial/paid licenses."""url = '{domain}/license'.format(domain=self.domain)res = self.session.get(url)self._check_response(res)return res.json() | 1 | 5 | 1 | 40 | 0 | 621 | 626 | 621 | self | [] | Returns | {"Assign": 2, "Expr": 2, "Return": 1} | 4 | 6 | 4 | ["format", "self.session.get", "self._check_response", "res.json"] | 0 | [] | The function (user_licenses) defined within the public class called Binstar, that inherit another class.The function start at line 621 and ends at 626. 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 4.0 functi... |
anaconda_anaconda-client | BinstarError | public | 0 | 1 | __init__ | def __init__(self, *args):super().__init__(*args)if not hasattr(self, 'message'):try:self.message = str(args[0])except IndexError:self.message = None | 3 | 7 | 2 | 47 | 0 | 2 | 9 | 2 | self,*args | [] | None | {"Assign": 2, "Expr": 1, "If": 1, "Try": 1} | 4 | 8 | 4 | ["__init__", "super", "hasattr", "str"] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called BinstarError, that inherit another class.The function start at line 2 and ends at 9. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [2.0] and does not return any value. It declares 4.0 functions, I... |
anaconda_anaconda-client | BinstarError | public | 0 | 1 | __init__ | def __init__(self, *args):super().__init__(*args)self.msg = self.message | 1 | 3 | 2 | 24 | 0 | 21 | 23 | 21 | self,*args | [] | None | {"Assign": 2, "Expr": 1, "If": 1, "Try": 1} | 4 | 8 | 4 | ["__init__", "super", "hasattr", "str"] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called BinstarError, that inherit another class.The function start at line 21 and ends at 23. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [21.0] and does not return any value. It declares 4.0 functions... |
anaconda_anaconda-client | BinstarError | public | 0 | 1 | __init__ | def __init__(self, location):self.msg = "destination path '{}' already exists.".format(location)self.location = locationsuper().__init__(self.msg) | 1 | 4 | 2 | 32 | 0 | 43 | 46 | 43 | self,*args | [] | None | {"Assign": 2, "Expr": 1, "If": 1, "Try": 1} | 4 | 8 | 4 | ["__init__", "super", "hasattr", "str"] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called BinstarError, that inherit another class.The function start at line 43 and ends at 46. It contains 4 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 4.0 functions... |
anaconda_anaconda-client | BinstarError | public | 0 | 1 | __init__ | def __init__(self):self.msg = 'pillow is not installed. Install it with:\n\tconda install pillow'super().__init__(self.msg) | 1 | 3 | 1 | 20 | 0 | 50 | 52 | 50 | self,*args | [] | None | {"Assign": 2, "Expr": 1, "If": 1, "Try": 1} | 4 | 8 | 4 | ["__init__", "super", "hasattr", "str"] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called BinstarError, that inherit another class.The function start at line 50 and ends at 52. 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 4.0 functions, I... |
anaconda_anaconda-client | public | public | 0 | 0 | cli_base_main_callback | def cli_base_main_callback(ctx: typer.Context,token: Optional[str] = typer.Option(None,"-t","--token",help="Authentication token to use. A token string or path to a file containing a token",hidden=True,),site: Optional[str] = typer.Option(None,"-s","--site",help="select the anaconda-client site to use",hidden=True,),di... | 5 | 71 | 4 | 357 | 1 | 111 | 194 | 111 | ctx,token,site,disable_ssl_warnings,show_traceback,verbose,quiet,version,show_help | ['log_level'] | None | {"Assign": 4, "Expr": 5, "If": 4} | 21 | 84 | 21 | ["typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "ContextExtras", "ctx.obj.params.update", "ctx.params.copy", "console.print", "ctx.get_help", "typer.Exit", "console.print", "typer.Exit", "ctx.obj.params.get", "ctx.obj.params.get", "logging... | 0 | [] | The function (cli_base_main_callback) defined within the public class called public.The function start at line 111 and ends at 194. It contains 71 lines of code and it has a cyclomatic complexity of 5. It takes 4 parameters, represented as [111.0] and does not return any value. It declares 21.0 functions, and It has 2... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(ctx: typer.Context,show_help: Optional[bool] = typer.Option(False,"-h","--help",help="Show this message and exit.",),) -> None:"""Add -h and --help options to anaconda org base subcommand."""# We do this instead of using context_settings for now so we can fallback# on the existing help for all subcommands. Thi... | 2 | 12 | 3 | 55 | 0 | 204 | 219 | 204 | ctx,show_help | [] | None | {"Expr": 2, "If": 1} | 5 | 16 | 5 | ["typer.Option", "console.print", "ctx.get_help", "typer.Exit", "app.callback"] | 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 204 and ends at 219. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [204.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called insi... |
anaconda_anaconda-client | public | public | 0 | 0 | _get_help_text | def _get_help_text(parser: ArgumentParser, name: str) -> str:"""Extract the help text from the anaconda-client CLI Argument Parser."""if parser._subparsers is None:return ""# MyPy says this was unreachable# if parser._subparsers._actions is None:# return ""if parser._subparsers._actions[1].choices is None:return ""subc... | 5 | 12 | 2 | 84 | 2 | 222 | 237 | 222 | parser,name | ['subcommand_parser', 'description'] | str | {"Assign": 2, "Expr": 1, "If": 4, "Return": 5} | 3 | 16 | 3 | ["get", "dict", "description.strip"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.plugins_py.load_legacy_subcommands"] | The function (_get_help_text) defined within the public class called public.The function start at line 222 and ends at 237. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [222.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions c... |
anaconda_anaconda-client | public | public | 0 | 0 | _deprecate.new_func | def new_func() -> Any:msg = (f"The existing anaconda-client commands will be deprecated. To maintain compatibility, "f"please either pin `anaconda-client<2` or update your system call with the `org` prefix, "f'e.g. "anaconda org {name} ..."')log.warning(msg)return func() | 1 | 8 | 0 | 26 | 0 | 249 | 256 | 249 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_deprecate.new_func) defined within the public class called public.The function start at line 249 and ends at 256. 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.. |
anaconda_anaconda-client | public | public | 0 | 0 | _deprecate | def _deprecate(name: str, func: Callable) -> Callable:"""Mark a named subcommand as deprecated.Args:name: The name of the subcommand.f: The subcommand callable."""def new_func() -> Any:msg = (f"The existing anaconda-client commands will be deprecated. To maintain compatibility, "f"please either pin `anaconda-client<2` ... | 1 | 3 | 2 | 18 | 1 | 240 | 258 | 240 | name,func | ['msg'] | Callable | {"Assign": 1, "Expr": 2, "Return": 2} | 2 | 19 | 2 | ["log.warning", "func"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.plugins_py._mount_subcommand"] | The function (_deprecate) defined within the public class called public.The function start at line 240 and ends at 258. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [240.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called... |
anaconda_anaconda-client | public | public | 0 | 0 | _subcommand | def _subcommand() -> None:"""A common function to use for all subcommands.In a proper typer/click app, this is the function that is decorated."""# We use the sys.argv and remove the "org" subcommand, in order to properly handle# any CLI flags or parameters passed in before the subcommand,# e.g. anaconda -t TOKEN upload... | 3 | 3 | 0 | 34 | 1 | 261 | 271 | 261 | ['args'] | None | {"Assign": 1, "Expr": 2} | 1 | 11 | 1 | ["binstar_main"] | 0 | [] | The function (_subcommand) defined within the public class called public.The function start at line 261 and ends at 271. It contains 3 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 declare 1.0 function, and It has 1.0 function called ... | |
anaconda_anaconda-client | public | public | 0 | 0 | _mount_subcommand | def _mount_subcommand(*,name: str,help_text: str,is_deprecated: bool,mount_to_main: bool,is_hidden_on_main: bool,) -> None:"""Mount an existing subcommand to the `anaconda org` typer application.Args:name: The name of the subcommand.help_text: The help text for the subcommandis_deprecated: If True, mark the subcommand ... | 6 | 37 | 5 | 186 | 5 | 274 | 333 | 274 | name,help_text,is_deprecated,mount_to_main,is_hidden_on_main | ['deprecated_text', 'func', 'help_text', 'force_use_new_cli', 'main_help_text'] | None | {"Assign": 6, "Expr": 5, "If": 4, "Return": 1} | 8 | 60 | 8 | ["bool", "os.getenv", "typer.style", "_deprecate", "_load_new_subcommand", "_load_new_subcommand", "app.command", "main_app.command"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.plugins_py.load_legacy_subcommands"] | The function (_mount_subcommand) defined within the public class called public.The function start at line 274 and ends at 333. It contains 37 lines of code and it has a cyclomatic complexity of 6. It takes 5 parameters, represented as [274.0] and does not return any value. It declares 8.0 functions, It has 8.0 function... |
anaconda_anaconda-client | public | public | 0 | 0 | _load_new_subcommand | def _load_new_subcommand(name: str, help_text: str, app_: Optional[typer.Typer] = None, hidden: bool = False) -> None:"""Load the new typer version of a subcommand from a commands module.Args:name: The name of the module, within the binstar_client.commands subpackage.help_text: The help text for the subcommand.hidden: ... | 4 | 19 | 4 | 104 | 2 | 336 | 364 | 336 | name,help_text,app_,hidden | ['mod_name', 'subcommand_module'] | None | {"Assign": 4, "Expr": 2, "If": 2} | 2 | 29 | 2 | ["getattr", "subcommand_module.mount_subcommand"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.plugins_py._mount_subcommand"] | The function (_load_new_subcommand) defined within the public class called public.The function start at line 336 and ends at 364. It contains 19 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [336.0] and does not return any value. It declares 2.0 functions, It has 2.0 funct... |
anaconda_anaconda-client | public | public | 0 | 0 | load_legacy_subcommands | def load_legacy_subcommands() -> None:"""Load each of the legacy subcommands into its own typer subcommand.This allows them to be called from the new CLI, without having to manually migrate."""# TODO: We should use a config parameterif bool(os.getenv("ANACONDA_CLIENT_FORCE_STANDALONE")):# Don't mount the typer subcomma... | 3 | 13 | 0 | 83 | 1 | 367 | 389 | 367 | ['parser'] | None | {"Assign": 1, "Expr": 3, "For": 1, "If": 1, "Return": 1} | 6 | 23 | 6 | ["bool", "os.getenv", "ArgumentParser", "add_subparser_modules", "_mount_subcommand", "_get_help_text"] | 0 | [] | The function (load_legacy_subcommands) defined within the public class called public.The function start at line 367 and ends at 389. It contains 13 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 6.0 functions, and It has 6.0 f... | |
anaconda_anaconda-client | public | public | 0 | 0 | package_list | def package_list(lst, verbose=True):if verbose:result = pformat(lst)else:result = '\n'.join('%-25s %s' % (pkg['full_name'], pkg['summary']) for pkg in lst)return result | 3 | 6 | 2 | 46 | 1 | 4 | 9 | 4 | lst,verbose | ['result'] | Returns | {"Assign": 2, "If": 1, "Return": 1} | 2 | 6 | 2 | ["pformat", "join"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.groups_py.main"] | The function (package_list) defined within the public class called public.The function start at line 4 and ends at 9. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [4.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called... |
anaconda_anaconda-client | public | public | 0 | 0 | user_list | def user_list(lst, verbose=True):if verbose:result = pformat(lst)else:result = '\n'.join('%-25s %s' % (user['login'], user['name']) for user in lst)return result | 3 | 6 | 2 | 46 | 1 | 12 | 17 | 12 | lst,verbose | ['result'] | Returns | {"Assign": 2, "If": 1, "Return": 1} | 2 | 6 | 2 | ["pformat", "join"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.groups_py.main"] | The function (user_list) defined within the public class called public.The function start at line 12 and ends at 17. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [12.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called... |
anaconda_anaconda-client | public | public | 0 | 0 | iter_fields | def iter_fields(fields: typing.Union[typing.Mapping[KeyT, ValueT], typing.Iterable[typing.Tuple[KeyT, ValueT]]],) -> typing.Iterator[typing.Tuple[KeyT, ValueT]]:"""Iterate over fields."""if isinstance(fields, typing.Mapping):return iter(fields.items())return iter(fields) | 2 | 6 | 1 | 73 | 0 | 21 | 27 | 21 | fields | [] | typing.Iterator[typing.Tuple[KeyT, ValueT]] | {"Expr": 1, "If": 1, "Return": 2} | 4 | 7 | 4 | ["isinstance", "iter", "fields.items", "iter"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.requests_ext_py.encode_multipart_formdata_stream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.requests_ext_py.stre... | The function (iter_fields) defined within the public class called public.The function start at line 21 and ends at 27. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called insi... |
anaconda_anaconda-client | NullAuth | public | 0 | 1 | __call__ | def __call__(self, r):return r | 1 | 2 | 2 | 9 | 0 | 45 | 46 | 45 | self,r | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 56 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content... | The function (__call__) defined within the public class called NullAuth, that inherit another class.The function start at line 45 and ends at 46. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [45.0], and this function return a value. It has 56.0 functions cal... |
anaconda_anaconda-client | public | public | 0 | 0 | encode_multipart_formdata_stream.body_write | def body_write(item):if isinstance(item, bytes):item = BytesIO(item)elif isinstance(item, str):item = StringIO(item)body.append(item) | 3 | 6 | 1 | 39 | 0 | 67 | 72 | 67 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (encode_multipart_formdata_stream.body_write) defined within the public class called public.The function start at line 67 and ends at 72. It contains 6 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | encode_multipart_formdata_stream.body_write_encode | def body_write_encode(item):body.append(BytesIO(item.encode('utf-8'))) | 1 | 2 | 1 | 19 | 0 | 74 | 75 | 74 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (encode_multipart_formdata_stream.body_write_encode) defined within the public class called public.The function start at line 74 and ends at 75. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | encode_multipart_formdata_stream | def encode_multipart_formdata_stream(fields, boundary=None):"""Encode a dictionary of ``fields`` using the multipart/form-data MIME format.:param fields:Dictionary of fields or list of (key, value) or (key, value, MIME type)field tuples.The key is treated as the field name, and the value asthe body of the form-data byt... | 8 | 33 | 2 | 192 | 5 | 49 | 114 | 49 | fields,boundary | ['item', 'body', 'content_type', 'boundary', 'data'] | Returns | {"Assign": 11, "Expr": 12, "For": 1, "If": 8, "Return": 1} | 25 | 66 | 25 | ["isinstance", "BytesIO", "isinstance", "StringIO", "body.append", "body.append", "BytesIO", "item.encode", "choose_boundary", "iter_fields", "body_write_encode", "isinstance", "len", "guess_type", "body_write_encode", "body_write_encode", "body_write_encode", "body_write", "isinstance", "str", "isinstance", "body_writ... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.requests_ext_py.stream_multipart"] | The function (encode_multipart_formdata_stream) defined within the public class called public.The function start at line 49 and ends at 114. It contains 33 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [49.0], and this function return a value. It declares 25.0 functions, I... |
anaconda_anaconda-client | MultiPartIO | public | 0 | 0 | __init__ | def __init__(self, body, callback=None):self.to_read = bodyself.have_read = []self._total = 0self.callback = callbackself.cursor = None | 1 | 6 | 3 | 37 | 0 | 118 | 123 | 118 | self,body,callback | [] | None | {"Assign": 5} | 0 | 6 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_... | The function (__init__) defined within the public class called MultiPartIO.The function start at line 118 and ends at 123. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [118.0] and does not return any value. It has 14667.0 functions calling this function whic... |
anaconda_anaconda-client | MultiPartIO | public | 0 | 0 | read | def read(self, n=-1):if self.callback:self.callback(self.tell(), self._total)if n == -1:return b''.join(fd.read() for fd in self.to_read)if not self.to_read:return b''while self.to_read:data = self.to_read[0].read(n)if data:return datafile_obj = self.to_read.pop(0)self.have_read.append(file_obj)return b'' | 7 | 14 | 2 | 106 | 0 | 125 | 144 | 125 | self,n | [] | Returns | {"Assign": 2, "Expr": 2, "If": 4, "Return": 4, "While": 1} | 7 | 20 | 7 | ["self.callback", "self.tell", "join", "fd.read", "read", "self.to_read.pop", "self.have_read.append"] | 586 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.integration.test_typedb_py.test_Transaction.test_query_batch_all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18354993_vaticle_typedb_client_python.tests.integration.te... | The function (read) defined within the public class called MultiPartIO.The function start at line 125 and ends at 144. It contains 14 lines of code and it has a cyclomatic complexity of 7. It takes 2 parameters, represented as [125.0], and this function return a value. It declares 7.0 functions, It has 7.0 functions ca... |
anaconda_anaconda-client | MultiPartIO | public | 0 | 0 | tell | def tell(self):cursor = sum(fd.tell() for fd in self.have_read)if self.to_read:cursor += self.to_read[0].tell()return cursor | 3 | 5 | 1 | 40 | 0 | 146 | 150 | 146 | self | [] | Returns | {"Assign": 1, "AugAssign": 1, "If": 1, "Return": 1} | 3 | 5 | 3 | ["sum", "fd.tell", "tell"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client._producers_py.FileBodyProducer._determineLength", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87138903_intel_bmap_tools.bmaptools.TransRead_py.TransRead.tell", "_.content.gdrive.... | The function (tell) defined within the public class called MultiPartIO.The function start at line 146 and ends at 150. It contains 5 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called ... |
anaconda_anaconda-client | MultiPartIO | public | 0 | 0 | seek | def seek(self, pos, mode=0):assert pos == 0# nosecif mode == 0:self.to_read = self.have_read + self.to_readself.have_read = []for fd in self.to_read:fd.seek(pos, mode)self.cursor = 0elif mode == 2:self.have_read = self.have_read + self.to_readself.to_read = []for fd in self.have_read:fd.seek(pos, mode)self._total = sel... | 5 | 14 | 3 | 103 | 0 | 152 | 166 | 152 | self,pos,mode | [] | None | {"Assign": 6, "Expr": 2, "For": 2, "If": 2} | 3 | 15 | 3 | ["fd.seek", "fd.seek", "self.tell"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.clean_py.clean", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.tools.seek_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.... | The function (seek) defined within the public class called MultiPartIO.The function start at line 152 and ends at 166. It contains 14 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [152.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called... |
anaconda_anaconda-client | public | public | 0 | 0 | stream_multipart | def stream_multipart(data, files=None, callback=None):if files:fields = chain(iter_fields(data), iter_fields(files))else:fields = databody, content_type = encode_multipart_formdata_stream(fields)data = MultiPartIO(body, callback=callback)headers = {'Content-Type': content_type}return data, headers | 2 | 9 | 3 | 64 | 3 | 169 | 178 | 169 | data,files,callback | ['headers', 'data', 'fields'] | Returns | {"Assign": 5, "If": 1, "Return": 1} | 5 | 10 | 5 | ["chain", "iter_fields", "iter_fields", "encode_multipart_formdata_stream", "MultiPartIO"] | 0 | [] | The function (stream_multipart) defined within the public class called public.The function start at line 169 and ends at 178. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [169.0], and this function return a value. It declares 5.0 functions, and It has 5.0 f... |
anaconda_anaconda-client | public | public | 0 | 0 | format_timedelta | def format_timedelta(date: typing.Optional[datetime.datetime], expired: bool = True) -> str:if not date:return 'never'result: str = ''now: datetime.datetime = datetime.datetime.utcnow().replace(tzinfo=pytz.utc)if date < now:if expired:return 'expired'now, date = date, nowresult = ' ago'group: TimeDeltaGroupdelta: typin... | 9 | 23 | 2 | 154 | 2 | 82 | 111 | 82 | date,expired | ['result', 'delta'] | str | {"AnnAssign": 4, "Assign": 4, "AugAssign": 1, "For": 1, "If": 7, "Return": 4} | 5 | 30 | 5 | ["replace", "datetime.datetime.utcnow", "total_seconds", "group.format.endswith", "int"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957049_trim21_transmission_rpc.transmission_rpc.torrent_py.Torrent.format_eta", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.authorizations_py.show_auths"] | The function (format_timedelta) defined within the public class called public.The function start at line 82 and ends at 111. It contains 23 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [82.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions c... |
anaconda_anaconda-client | public | public | 0 | 0 | show_auths | def show_auths(authentications: typing.Sequence[typing.Mapping[str, typing.Any]]) -> None:table: tables.SimpleTableWithAliases = tables.SimpleTableWithAliases(aliases=(('id', 'ID'),('application', 'Application'),('remote_addr', 'Remote Addr'),('hostname', 'Host'),('expires', 'Expires In'),('scopes', 'Scopes'),),heading... | 7 | 29 | 1 | 193 | 2 | 114 | 145 | 114 | authentications | ['auth', 'first'] | None | {"AnnAssign": 3, "Assign": 4, "Expr": 4, "For": 3, "If": 1} | 8 | 32 | 8 | ["tables.SimpleTableWithAliases", "format_timedelta", "parse_date", "table.append_row", "logger.info", "table.render", "logger.info", "logger.info"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.authorizations_py.main"] | The function (show_auths) defined within the public class called public.The function start at line 114 and ends at 145. It contains 29 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value. It declares 8.0 functions, It has 8.0 functions called in... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)if args.info:data = aserver_api.authentication()logger.info('Name: %s', data['application'])logger.info('Id: %s', data['id'])if args.list:show_auths(aserver_api.authentications())returnelif args.remove:for auth_name in args.remove:aserver_api.remove_auth... | 17 | 71 | 1 | 405 | 8 | 148 | 223 | 148 | args | ['auth_type', 'aserver_api', 'scopes', 'password', 'username', 'token', 'data', 'current_user'] | None | {"Assign": 12, "Expr": 18, "For": 3, "If": 8, "Return": 3, "Try": 2} | 31 | 76 | 31 | ["get_server_api", "aserver_api.authentication", "logger.info", "logger.info", "show_auths", "aserver_api.authentications", "aserver_api.remove_authentication", "logger.info", "aserver_api.list_scopes", "sorted", "logger.info", "logger.info", "logger.info", "logger.info", "aserver_api.authentication_type", "aserver_api... | 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 148 and ends at 223. It contains 71 lines of code and it has a cyclomatic complexity of 17. The function does not take any parameters and does not return any value. It declares 31.0 functions, It has 31.0 functions called insid... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):description = 'Manage Authorization Tokens'parser = subparsers.add_parser('auth',help=description,description=description,epilog=__doc__,formatter_class=argparse.RawDescriptionHelpFormatter,)parser.add_argument('-n','--name',default='binstar_token:%s' % (socket.gethostname()),help='A unique n... | 1 | 59 | 1 | 350 | 4 | 226 | 292 | 226 | subparsers | ['group', 'parser', 'token_group', 'description'] | None | {"Assign": 5, "Expr": 15} | 21 | 67 | 21 | ["subparsers.add_parser", "parser.add_argument", "socket.gethostname", "parser.add_argument", "parser.add_argument_group", "token_group.add_argument", "token_group.add_argument", "token_group.add_argument", "token_group.add_argument", "token_group.add_argument", "token_group.add_argument", "token_group.add_argument", "... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 226 and ends at 292. It contains 59 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 21.0 functions, It has 21.0 functions called ... |
anaconda_anaconda-client | public | public | 0 | 0 | _exclusive_action | def _exclusive_action(ctx: typer.Context, param: typer.CallbackParam, value: str) -> str:"""Check for exclusivity of action options.To do this, we attach a new special attribute onto the typer Context the first timeone of the options in the group is used."""if getattr(ctx, '_actions', None) is None:ctx._actions = set()... | 5 | 9 | 3 | 87 | 0 | 295 | 309 | 295 | ctx,param,value | [] | str | {"Assign": 2, "Expr": 2, "If": 3, "Return": 1} | 5 | 15 | 5 | ["getattr", "set", "typer.BadParameter", "ctx._actions.add", "join"] | 0 | [] | The function (_exclusive_action) defined within the public class called public.The function start at line 295 and ends at 309. It contains 9 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [295.0] and does not return any value. It declares 5.0 functions, and It has 5.0 func... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.auth_subcommand | def auth_subcommand(ctx: typer.Context,name_: str = typer.Option(...,'-n','--name',default_factory=lambda: f'binstar_token:{socket.gethostname()}',help='A unique name so you can identify this token later. View your tokens at anaconda.org/settings/access',),organization: typing.Optional[str] = typer.Option(None,'-o','--... | 6 | 115 | 4 | 536 | 0 | 327 | 448 | 327 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.auth_subcommand) defined within the public class called public.The function start at line 327 and ends at 448. It contains 115 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [327.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def auth_subcommand(ctx: typer.Context,name_: str = typer.Option(...,'-n','--name',default_factory=l... | 1 | 9 | 5 | 55 | 2 | 319 | 448 | 319 | app,name,hidden,help_text,context_settings | ['strength', 'args'] | None | {"Assign": 3, "AugAssign": 1, "Expr": 1, "If": 4} | 23 | 130 | 23 | ["typer.Option", "socket.gethostname", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Argument", "any", "typer.BadParameter", "argparse.Namespace", "ctx... | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 319 and ends at 448. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [319.0] and does not return any value. It declares 23.0 functions, and It has 23.0 fun... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args, name, deprecated=False):aserver_api = get_server_api(args.token, args.site)if args.organization:owner = args.organizationelse:current_user = aserver_api.user()owner = current_user['login']if deprecated:logger.warning('channel command is deprecated in favor of label')if args.copy:aserver_api.copy_channel(... | 14 | 35 | 3 | 317 | 4 | 19 | 57 | 19 | args,name,deprecated | ['info', 'owner', 'current_user', 'aserver_api'] | None | {"Assign": 5, "Expr": 14, "For": 2, "If": 9} | 26 | 39 | 26 | ["get_server_api", "aserver_api.user", "logger.warning", "aserver_api.copy_channel", "logger.info", "tuple", "aserver_api.remove_channel", "logger.info", "logger.info", "name.title", "items", "aserver_api.list_channels", "isinstance", "logger.info", "logger.info", "aserver_api.show_channel", "logger.info", "name.title"... | 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 19 and ends at 57. It contains 35 lines of code and it has a cyclomatic complexity of 14. It takes 3 parameters, represented as [19.0] and does not return any value. It declares 26.0 functions, It has 26.0 functions called insi... |
anaconda_anaconda-client | public | public | 0 | 0 | _add_parser | def _add_parser(subparsers, name, deprecated=False):deprecated_warn = ''if deprecated:deprecated_warn = '[DEPRECATED in favor of label] \n'subparser = subparsers.add_parser(name,help='{}Manage your Anaconda repository {}s'.format(deprecated_warn, name),formatter_class=argparse.RawDescriptionHelpFormatter,description=__... | 2 | 21 | 3 | 237 | 3 | 60 | 84 | 60 | subparsers,name,deprecated | ['group', 'deprecated_warn', 'subparser'] | None | {"Assign": 4, "Expr": 8, "If": 1} | 23 | 25 | 23 | ["subparsers.add_parser", "format", "subparser.add_argument", "format", "subparser.add_mutually_exclusive_group", "group.add_argument", "name.upper", "group.add_argument", "format", "group.add_argument", "name.upper", "format", "group.add_argument", "name.upper", "format", "group.add_argument", "name.upper", "format", ... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.channel_py.add_parser"] | The function (_add_parser) defined within the public class called public.The function start at line 60 and ends at 84. It contains 21 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [60.0] and does not return any value. It declares 23.0 functions, It has 23.0 functions calle... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):_add_parser(subparsers, name='label')_add_parser(subparsers, name='channel', deprecated=True) | 1 | 3 | 1 | 25 | 0 | 87 | 89 | 87 | subparsers | [] | None | {"Expr": 2} | 2 | 3 | 2 | ["_add_parser", "_add_parser"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 87 and ends at 89. 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 functions, It has 2.0 functions called insid... |
anaconda_anaconda-client | public | public | 0 | 0 | _parse_optional_tuple | def _parse_optional_tuple(value: Tuple[str, str]) -> Optional[List[str]]:# Convert a sentinel tuple of empty strings to None, since it is not possible with typer parser or callbackif value == ('', ''):return Nonereturn list(value) | 2 | 4 | 1 | 36 | 0 | 92 | 96 | 92 | value | [] | Optional[List[str]] | {"If": 1, "Return": 2} | 1 | 5 | 1 | ["list"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.channel_py._exclusive_action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.channel_py.mount_subco... | The function (_parse_optional_tuple) defined within the public class called public.The function start at line 92 and ends at 96. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function call... |
anaconda_anaconda-client | public | public | 0 | 0 | _exclusive_action | def _exclusive_action(ctx: typer.Context, param: typer.CallbackParam, value: Any) -> Any:"""Check for exclusivity of action options.To do this, we attach a new special attribute onto the typer Context the first timeone of the options in the group is used."""if isinstance(value, tuple):# This is here so we can treat the... | 6 | 13 | 3 | 106 | 1 | 99 | 119 | 99 | ctx,param,value | ['parsed_value'] | Any | {"Assign": 4, "Expr": 2, "If": 4, "Return": 1} | 7 | 21 | 7 | ["isinstance", "_parse_optional_tuple", "getattr", "set", "typer.BadParameter", "ctx._actions.add", "join"] | 0 | [] | The function (_exclusive_action) defined within the public class called public.The function start at line 99 and ends at 119. It contains 13 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [99.0] and does not return any value. It declares 7.0 functions, and It has 7.0 funct... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.channel | def channel(ctx: typer.Context,organization: Optional[str] = typer.Option(None,'-o','--organization',help='Manage an organizations {}s'.format(name),),copy: Tuple[str, str] = typer.Option(('', ''),help=f'Copy a package from one {name} to another',show_default=False,callback=_exclusive_action,),list_: bool = typer.Optio... | 2 | 57 | 3 | 302 | 0 | 130 | 188 | 130 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.channel) defined within the public class called public.The function start at line 130 and ends at 188. It contains 57 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [130.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def channel(ctx: typer.Context,organization: Optional[str] = typer.Option(None,'-o','--organization'... | 1 | 9 | 5 | 55 | 2 | 122 | 188 | 122 | app,name,hidden,help_text,context_settings | ['parsed_copy', 'args'] | None | {"Assign": 2, "Expr": 1, "If": 1} | 16 | 67 | 16 | ["typer.Option", "format", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "_parse_optional_tuple", "any", "typer.BadParameter", "argparse.Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "main", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 122 and ends at 188. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [122.0] and does not return any value. It declares 16.0 functions, and It has 16.0 fun... |
anaconda_anaconda-client | public | public | 0 | 0 | recursive_set | def recursive_set(config_data, key, value, type_):while '.' in key:prefix, key = key.split('.', 1)config_data = config_data.setdefault(prefix, {})if key not in CONFIGURATION_KEYS:logger.warning('"%s" is not a known configuration key', key)if key in DEPRECATED:message = '{} is deprecated: {}'.format(key, DEPRECATED[key]... | 4 | 10 | 4 | 86 | 2 | 93 | 105 | 93 | config_data,key,value,type_ | ['config_data', 'message'] | None | {"Assign": 4, "Expr": 2, "If": 2, "While": 1} | 6 | 13 | 6 | ["key.split", "config_data.setdefault", "logger.warning", "format", "logger.warning", "type_"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.config_py.main"] | The function (recursive_set) defined within the public class called public.The function start at line 93 and ends at 105. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [93.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions call... |
anaconda_anaconda-client | public | public | 0 | 0 | recursive_remove | def recursive_remove(config_data, key):while '.' in key:if not config_data:returnprefix, key = key.split('.', 1)config_data = config_data.get(prefix, {})del config_data[key] | 3 | 7 | 2 | 45 | 1 | 108 | 115 | 108 | config_data,key | ['config_data'] | None | {"Assign": 2, "If": 1, "Return": 1, "While": 1} | 2 | 8 | 2 | ["key.split", "config_data.get"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unimake_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unimake_py.recursive_remove", "_.content.gdrive.MyDrive.Phd_The... | The function (recursive_remove) defined within the public class called public.The function start at line 108 and ends at 115. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [108.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions ... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):config = get_config()if args.show:logger.info(yaml_dump(config))returnif args.show_sources:config_files = load_file_configs(SEARCH_PATH)for path in config_files:logger.info('==> %s <==', path)logger.info(yaml_dump(config_files[path]))returnif args.get:if args.get in config:logger.info(config[args.get])el... | 13 | 33 | 1 | 204 | 3 | 118 | 160 | 118 | args | ['config_file', 'config', 'config_files'] | None | {"Assign": 4, "Expr": 11, "For": 3, "If": 6, "Return": 4, "Try": 1} | 17 | 43 | 17 | ["get_config", "logger.info", "yaml_dump", "load_file_configs", "logger.info", "logger.info", "yaml_dump", "logger.info", "logger.info", "logger.info", "logger.info", "load_config", "recursive_set", "recursive_remove", "logger.error", "ShowHelp", "save_config"] | 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 118 and ends at 160. It contains 33 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value. It declares 17.0 functions, It has 17.0 functions called insid... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):description = 'Anaconda client configuration'parser = subparsers.add_parser('config', help=description, description=description, epilog=__doc__, formatter_class=RawDescriptionHelpFormatter)parser.add_argument('--type', default=safe_load, help='The type of the values in the set commands')agrou... | 1 | 28 | 1 | 233 | 4 | 163 | 194 | 163 | subparsers | ['parser', 'lgroup', 'agroup', 'description'] | None | {"Assign": 4, "Expr": 10} | 13 | 32 | 13 | ["subparsers.add_parser", "parser.add_argument", "parser.add_argument_group", "agroup.add_argument", "agroup.add_argument", "agroup.add_argument", "agroup.add_argument", "agroup.add_argument", "agroup.add_argument", "parser.add_argument_group", "lgroup.add_argument", "lgroup.add_argument", "parser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 163 and ends at 194. It contains 28 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 13.0 functions, It has 13.0 functions called ... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.config_subcommand | def config_subcommand(ctx: typer.Context,type_: Optional[str] = typer.Option(None, '--type', help='The type of the values in the set commands'),set_: List[click.Tuple] = typer.Option([],'--set',help='sets a new variable: name value',click_type=click.Tuple([str, str]),),get: Optional[str] = typer.Option(None,help='get v... | 6 | 61 | 3 | 315 | 0 | 205 | 272 | 205 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.config_subcommand) defined within the public class called public.The function start at line 205 and ends at 272. It contains 61 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [205.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def config_subcommand(ctx: typer.Context,type_: Optional[str] = typer.Option(None, '--type', help='T... | 1 | 9 | 5 | 55 | 4 | 197 | 272 | 197 | app,name,hidden,help_text,context_settings | ['user', 'type_func', 'set_list', 'args'] | None | {"AnnAssign": 1, "Assign": 6, "Expr": 1, "If": 4} | 16 | 76 | 16 | ["typer.Option", "typer.Option", "click.Tuple", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "list", "Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "main", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 197 and ends at 272. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [197.0] and does not return any value. It declares 16.0 functions, and It has 16.0 fun... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)spec = args.specchannels = aserver_api.list_channels(spec.user)label_text = 'label' if (args.from_label and args.to_label) else 'channel'from_label = args.from_labelto_label = args.to_labelif from_label not in channels:raise errors.UserError('{} {} does ... | 8 | 32 | 1 | 198 | 9 | 19 | 57 | 19 | args | ['no_copied_files', 'aserver_api', 'to_label', 'files', 'label_text', 'spec', 'update_msg', 'from_label', 'channels'] | None | {"Assign": 9, "Expr": 3, "For": 1, "If": 2} | 12 | 39 | 12 | ["get_server_api", "aserver_api.list_channels", "errors.UserError", "format", "label_text.title", "join", "aserver_api.copy", "print", "format", "logger.info", "len", "logger.warning"] | 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 19 and ends at 57. It contains 32 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value. It declares 12.0 functions, It has 12.0 functions called inside w... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):parser = subparsers.add_parser('copy', help='Copy packages from one account to another', description=__doc__)parser.add_argument('spec',help=('Package - written as user/package/version[/filename] ''If filename is not given, copy all files in the version'),type=parse_specs,)parser.add_argument... | 1 | 21 | 1 | 134 | 4 | 60 | 85 | 60 | subparsers | ['parser', 'method_group', '_from', '_to'] | None | {"Assign": 4, "Expr": 7} | 11 | 26 | 11 | ["subparsers.add_parser", "parser.add_argument", "parser.add_argument", "parser.add_mutually_exclusive_group", "parser.add_mutually_exclusive_group", "_from.add_argument", "_to.add_argument", "parser.add_mutually_exclusive_group", "method_group.add_argument", "method_group.add_argument", "parser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 60 and ends at 85. It contains 21 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 11.0 functions, It has 11.0 functions called in... |
anaconda_anaconda-client | public | public | 0 | 0 | _exclusive_method | def _exclusive_method(ctx: typer.Context, param: typer.CallbackParam, value: str) -> str:"""Check for exclusivity of method arguments.To do this, we attach a new special attribute onto the typer Context the first timeone of the options in the group is used."""if getattr(ctx, '_methods', None) is None:ctx._methods = set... | 5 | 9 | 3 | 87 | 0 | 88 | 102 | 88 | ctx,param,value | [] | str | {"Assign": 2, "Expr": 2, "If": 3, "Return": 1} | 5 | 15 | 5 | ["getattr", "set", "typer.BadParameter", "ctx._methods.add", "join"] | 0 | [] | The function (_exclusive_method) defined within the public class called public.The function start at line 88 and ends at 102. It contains 9 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [88.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functi... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.copy | def copy(ctx: typer.Context,spec: str = typer.Argument(help=('Package - written as user/package/version[/filename]. ''If filename is not given, copy all files in the version'),callback=parse_specs,), | 1 | 9 | 2 | 29 | 0 | 113 | 121 | 113 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.copy) defined within the public class called public.The function start at line 113 and ends at 121. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [113.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def copy(ctx: typer.Context,spec: str = typer.Argument(help=('Package - written as user/package/vers... | 1 | 43 | 5 | 211 | 1 | 105 | 156 | 105 | app,name,hidden,help_text,context_settings | ['args'] | None | {"Assign": 1, "Expr": 1} | 11 | 52 | 11 | ["typer.Argument", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "argparse.Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "main", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 105 and ends at 156. It contains 43 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [105.0] and does not return any value. It declares 11.0 functions, and It has 11.0 fu... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):description = 'Download packages from your Anaconda repository'parser = subparsers.add_parser('download',formatter_class=argparse.RawDescriptionHelpFormatter,help=description,description=description,epilog=__doc__,)parser.add_argument('handle', help='<channel_name>/<package_name>', action='st... | 2 | 20 | 1 | 125 | 3 | 24 | 46 | 24 | subparsers | ['parser', 'pkg_types', 'description'] | None | {"Assign": 3, "Expr": 5} | 8 | 23 | 8 | ["subparsers.add_parser", "parser.add_argument", "parser.add_argument", "parser.add_argument", "join", "parser.add_argument", "format", "parser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 24 and ends at 46. It contains 20 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 8.0 functions, It has 8.0 functions called insi... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)username, package_name = parse(args.handle)username = username or aserver_api.user()['login']downloader = Downloader(aserver_api, username, package_name)packages_types = list(map(PackageType, args.package_type) if args.package_type else PackageType)try:d... | 5 | 13 | 1 | 144 | 5 | 49 | 62 | 49 | args | ['download_files', 'aserver_api', 'downloader', 'username', 'packages_types'] | None | {"Assign": 6, "Expr": 3, "For": 1, "Try": 1} | 11 | 14 | 11 | ["get_server_api", "parse", "aserver_api.user", "Downloader", "list", "map", "downloader.list_download_files", "download_files.items", "downloader.download", "logger.info", "logger.info"] | 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 49 and ends at 62. It contains 13 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside w... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.download | def download(ctx: typer.Context,handle: str = typer.Argument(help='<channel_name>/<package_name>'),force: bool = typer.Option(False,'-f','--force',help='Overwrite',),output: str = typer.Option('.','-o','--output',help='Download as',),package_type: List[str] = typer.Option(None,'-t','--package-type',help='Set the packag... | 2 | 31 | 2 | 148 | 0 | 75 | 106 | 75 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.download) defined within the public class called public.The function start at line 75 and ends at 106. It contains 31 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [75.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:pkg_types = ', '.join(pkg_type.value for pkg_type in PackageType)@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def download(ctx: typer.Context,han... | 2 | 10 | 5 | 69 | 2 | 65 | 106 | 65 | app,name,hidden,help_text,context_settings | ['args', 'pkg_types'] | None | {"Assign": 2, "Expr": 1} | 11 | 42 | 11 | ["join", "typer.Argument", "typer.Option", "typer.Option", "typer.Option", "format", "argparse.Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "main", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 65 and ends at 106. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [65.0] and does not return any value. It declares 11.0 functions, and It has 11.0 func... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)spec = args.specaction = args.actionverbose = args.log_level == logging.DEBUGif action == 'add':aserver_api.add_group(spec.org, spec.group_name, args.perms)logger.info('Created the group %s', spec)elif action == 'show':if spec._group_name:result = aserve... | 10 | 34 | 1 | 335 | 5 | 15 | 49 | 15 | args | ['action', 'aserver_api', 'verbose', 'spec', 'result'] | None | {"Assign": 8, "Expr": 13, "If": 9} | 22 | 35 | 22 | ["get_server_api", "aserver_api.add_group", "logger.info", "aserver_api.group", "aserver_api.groups", "logger.info", "pformat", "aserver_api.group_members", "logger.info", "user_list", "aserver_api.add_group_member", "logger.info", "aserver_api.remove_group_member", "logger.info", "aserver_api.group_packages", "logger.... | 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 15 and ends at 49. It contains 34 lines of code and it has a cyclomatic complexity of 10. The function does not take any parameters and does not return any value. It declares 22.0 functions, It has 22.0 functions called inside ... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):parser = subparsers.add_parser('groups', help='Manage Groups', description=__doc__)parser.add_argument('action',choices=['add', 'show', 'members', 'add_member', 'remove_member', 'packages', 'add_package', 'remove_package'],help='The group management command to execute',)parser.add_argument('s... | 1 | 12 | 1 | 100 | 1 | 52 | 65 | 52 | subparsers | ['parser'] | None | {"Assign": 1, "Expr": 4} | 5 | 14 | 5 | ["subparsers.add_parser", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 52 and ends at 65. It contains 12 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 has 5.0 functions called insi... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.groups_subcommand | def groups_subcommand(ctx: typer.Context,action: GroupAction = typer.Argument(help='The group management command to execute'),spec: str = typer.Argument(callback=group_spec,help=group_spec.__doc__,),perms: Permission = typer.Option('read',help='The permission the group should provide',),) -> None:args = argparse.Namesp... | 1 | 20 | 2 | 114 | 0 | 97 | 117 | 97 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.groups_subcommand) defined within the public class called public.The function start at line 97 and ends at 117. It contains 20 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [97.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def groups_subcommand(ctx: typer.Context,action: GroupAction = typer.Argument(help='The group manage... | 1 | 9 | 5 | 55 | 1 | 89 | 117 | 89 | app,name,hidden,help_text,context_settings | ['args'] | None | {"Assign": 1, "Expr": 1} | 8 | 29 | 8 | ["typer.Argument", "typer.Argument", "typer.Option", "argparse.Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "main", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 89 and ends at 117. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [89.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functio... |
anaconda_anaconda-client | public | public | 0 | 0 | try_replace_token | def try_replace_token(authenticate, **kwargs):"""Authenticates using the given *authenticate*, retrying if the token needs to be replaced."""try:return authenticate(**kwargs)except errors.BinstarError as err:if kwargs.get('fail_if_already_exists', False) and (len(err.args) >= 2) and (err.args[1] == 400):logger.warning(... | 6 | 15 | 2 | 100 | 0 | 18 | 36 | 18 | authenticate,**kwargs | [] | Returns | {"Assign": 1, "Expr": 4, "If": 2, "Return": 2, "Try": 1} | 9 | 19 | 9 | ["authenticate", "kwargs.get", "len", "logger.warning", "socket.gethostname", "logger.warning", "logger.warning", "bool_input", "authenticate"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.interactive_get_token"] | The function (try_replace_token) defined within the public class called public.The function start at line 18 and ends at 36. It contains 15 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [18.0], and this function return a value. It declares 9.0 functions, It has 9.0 functio... |
anaconda_anaconda-client | public | public | 0 | 0 | interactive_get_token | def interactive_get_token(args, fail_if_already_exists=True):api_client = get_server_api(args.token, args.site)config = get_config(site=args.site)token = None# This function could be called from a totally different CLI, so we don't# know if the attribute hostname exists.hostname = getattr(args, 'hostname', platform.nod... | 12 | 64 | 2 | 338 | 14 | 39 | 118 | 39 | args,fail_if_already_exists | ['parsed_url', 'auth_type', 'config', 'hostname', 'hostparts', 'netloc', 'auth_name', 'site', 'password', 'url', 'username', 'api_client', 'msg', 'token'] | Returns | {"Assign": 20, "AugAssign": 2, "Expr": 3, "For": 1, "If": 7, "Return": 1, "Try": 1} | 22 | 80 | 22 | ["get_server_api", "get_config", "getattr", "platform.node", "config.get", "config.get", "getpass.getuser", "api_client.check_server", "api_client.authentication_type", "try_replace_token", "errors.BinstarError", "getattr", "input", "getattr", "range", "sys.stderr.write", "getpass.getpass", "try_replace_token", "logger... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.interactive_login"] | The function (interactive_get_token) defined within the public class called public.The function start at line 39 and ends at 118. It contains 64 lines of code and it has a cyclomatic complexity of 12. It takes 2 parameters, represented as [39.0], and this function return a value. It declares 22.0 functions, It has 22.0... |
anaconda_anaconda-client | public | public | 0 | 0 | interactive_login | def interactive_login(args):token = interactive_get_token(args)store_token(token, args)logger.info('login successful') | 1 | 4 | 1 | 23 | 1 | 121 | 124 | 121 | args | ['token'] | None | {"Assign": 1, "Expr": 2} | 3 | 4 | 3 | ["interactive_get_token", "store_token", "logger.info"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.login_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py.binstar_main"] | The function (interactive_login) defined within the public class called public.The function start at line 121 and ends at 124. 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, It has 3.0 functions cal... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):interactive_login(args) | 1 | 2 | 1 | 9 | 0 | 127 | 128 | 127 | args | [] | None | {"Expr": 1} | 1 | 2 | 1 | ["interactive_login"] | 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 127 and ends at 128. 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... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):subparser = subparsers.add_parser('login', help='Authenticate a user', description=__doc__)subparser.add_argument('--hostname',default=platform.node(),help='Specify the host name of this login, this should be unique (default: %(default)s)',)subparser.add_argument('--username', dest='login_use... | 1 | 14 | 1 | 76 | 1 | 131 | 144 | 131 | subparsers | ['subparser'] | None | {"Assign": 1, "Expr": 4} | 6 | 14 | 6 | ["subparsers.add_parser", "subparser.add_argument", "platform.node", "subparser.add_argument", "subparser.add_argument", "subparser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 131 and ends at 144. It contains 14 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 6.0 functions, It has 6.0 functions called in... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)if aserver_api.token:# NOTE: named 'application' because I was using the github model# Change it to name once we release the latest version of binstar servertry:aserver_api.remove_authentication()except errors.Unauthorized as err:logger.debug('The token ... | 3 | 11 | 1 | 62 | 1 | 13 | 26 | 13 | args | ['aserver_api'] | None | {"Assign": 1, "Expr": 5, "If": 1, "Try": 1} | 6 | 14 | 6 | ["get_server_api", "aserver_api.remove_authentication", "logger.debug", "remove_token", "logger.info", "logger.info"] | 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 13 and ends at 26. It contains 11 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 6.0 functions, It has 6.0 functions called inside whi... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):subparser = subparsers.add_parser('logout', help='Log out from your Anaconda repository', description=__doc__)subparser.set_defaults(main=main) | 1 | 3 | 1 | 29 | 1 | 29 | 32 | 29 | subparsers | ['subparser'] | None | {"Assign": 1, "Expr": 1} | 2 | 4 | 2 | ["subparsers.add_parser", "subparser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 29 and ends at 32. 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 functions, It has 2.0 functions called insid... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)spec = args.specchannels = aserver_api.list_channels(spec.user)label_text = 'label' if (args.from_label and args.to_label) else 'channel'from_label = args.from_label.lower()to_label = args.to_label.lower()if from_label not in channels:raise errors.UserEr... | 7 | 33 | 1 | 192 | 6 | 21 | 62 | 21 | args | ['aserver_api', 'to_label', 'label_text', 'spec', 'from_label', 'channels'] | None | {"Assign": 6, "Expr": 4, "If": 2, "Try": 2} | 13 | 42 | 13 | ["get_server_api", "aserver_api.list_channels", "args.from_label.lower", "args.to_label.lower", "errors.UserError", "format", "label_text.title", "join", "errors.UserError", "aserver_api.add_channel", "logger.exception", "aserver_api.remove_channel", "logger.exception"] | 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 21 and ends at 62. It contains 33 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters and does not return any value. It declares 13.0 functions, It has 13.0 functions called inside w... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):parser = subparsers.add_parser('move',help='Move packages between labels',description=__doc__,)parser.add_argument('spec',help=('Package - written as user/package/version[/filename] '+ 'If filename is not given, move all files in the version'),type=parse_specs,)# NOTE: To be implemented later... | 1 | 27 | 1 | 93 | 3 | 74 | 107 | 74 | subparsers | ['parser', '_from', '_to'] | None | {"Assign": 3, "Expr": 4} | 7 | 34 | 7 | ["subparsers.add_parser", "parser.add_argument", "parser.add_mutually_exclusive_group", "parser.add_mutually_exclusive_group", "_from.add_argument", "_to.add_argument", "parser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 74 and ends at 107. It contains 27 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 7.0 functions, It has 7.0 functions called ins... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.move | def move(ctx: typer.Context,spec: str = typer.Argument(help=('Package - written as user/package/version[/filename]. ''If filename is not given, move all files in the version'),callback=parse_specs,), | 1 | 9 | 2 | 29 | 0 | 118 | 126 | 118 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.move) defined within the public class called public.The function start at line 118 and ends at 126. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [118.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def move(ctx: typer.Context,spec: str = typer.Argument(help=('Package - written as user/package/vers... | 1 | 26 | 5 | 140 | 1 | 110 | 144 | 110 | app,name,hidden,help_text,context_settings | ['args'] | None | {"Assign": 1, "Expr": 1} | 8 | 35 | 8 | ["typer.Argument", "typer.Option", "typer.Option", "argparse.Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "main", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 110 and ends at 144. It contains 26 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [110.0] and does not return any value. It declares 8.0 functions, and It has 8.0 func... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)spec = args.specowner = spec.userpackage = spec.packageif args.add_collaborator:collaborator = args.add_collaboratoraserver_api.package_add_collaborator(owner, package, collaborator)elif args.list_collaborators:logger.info(':Collaborators:')for collab in... | 5 | 23 | 1 | 139 | 6 | 18 | 43 | 18 | args | ['public', 'owner', 'package', 'aserver_api', 'spec', 'collaborator'] | None | {"Assign": 6, "Expr": 5, "For": 1, "If": 3} | 7 | 26 | 7 | ["get_server_api", "aserver_api.package_add_collaborator", "logger.info", "aserver_api.package_collaborators", "logger.info", "aserver_api.add_package", "logger.info"] | 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 43. It contains 23 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside whi... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):parser = subparsers.add_parser('package', help='Package utils', description=__doc__)parser.add_argument('spec', help='Package to operate on', type=parse_specs, metavar='USER/PACKAGE')agroup = parser.add_argument_group('actions')group = agroup.add_mutually_exclusive_group(required=True)group.a... | 1 | 31 | 1 | 213 | 5 | 46 | 80 | 46 | subparsers | ['group', 'parser', 'pgroup', 'agroup', 'mgroup'] | None | {"Assign": 6, "Expr": 10} | 16 | 35 | 16 | ["subparsers.add_parser", "parser.add_argument", "parser.add_argument_group", "agroup.add_mutually_exclusive_group", "group.add_argument", "group.add_argument", "group.add_argument", "parser.add_argument_group", "mgroup.add_argument", "mgroup.add_argument", "mgroup.add_argument", "parser.add_argument_group", "pgroup.ad... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 46 and ends at 80. It contains 31 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 16.0 functions, It has 16.0 functions called in... |
anaconda_anaconda-client | public | public | 0 | 0 | _exclusive_action | def _exclusive_action(ctx: typer.Context, param: typer.CallbackParam, value: str) -> str:"""Check for exclusivity of action options.To do this, we attach a new special attribute onto the typer Context the first timeone of the options in the group is used."""if getattr(ctx, '_actions', None) is None:ctx._actions = set()... | 5 | 9 | 3 | 87 | 0 | 83 | 97 | 83 | ctx,param,value | [] | str | {"Assign": 2, "Expr": 2, "If": 3, "Return": 1} | 5 | 15 | 5 | ["getattr", "set", "typer.BadParameter", "ctx._actions.add", "join"] | 0 | [] | The function (_exclusive_action) defined within the public class called public.The function start at line 83 and ends at 97. It contains 9 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [83.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functio... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.package_subcommand | def package_subcommand(ctx: typer.Context,spec: str = typer.Argument(...,help='Package to operate on',parser=parse_specs,),add_collaborator: Optional[str] = typer.Option(None,help='username of the collaborator you want to add',callback=_exclusive_action,),list_collaborators: bool = typer.Option(False,help='list all of ... | 6 | 70 | 4 | 307 | 0 | 108 | 181 | 108 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.package_subcommand) defined within the public class called public.The function start at line 108 and ends at 181. It contains 70 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [108.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def package_subcommand(ctx: typer.Context,spec: str = typer.Argument(...,help='Package to operate on... | 1 | 9 | 5 | 55 | 2 | 100 | 181 | 100 | app,name,hidden,help_text,context_settings | ['access', 'args'] | None | {"Assign": 4, "Expr": 1, "If": 4} | 17 | 82 | 17 | ["typer.Argument", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "typer.Option", "any", "typer.BadParameter", "typer.BadParameter", "Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "main", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 100 and ends at 181. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [100.0] and does not return any value. It declares 17.0 functions, and It has 17.0 fun... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)for spec in args.specs:try:if spec._basename:msg = 'Are you sure you want to remove file %s ?' % (spec,)if args.force or bool_input(msg, False):aserver_api.remove_dist(spec.user, spec.package, spec.version, spec.basename)else:logger.warning('Not removing... | 13 | 29 | 1 | 211 | 2 | 22 | 52 | 22 | args | ['msg', 'aserver_api'] | None | {"Assign": 4, "Expr": 8, "For": 1, "If": 7, "Try": 1} | 12 | 31 | 12 | ["get_server_api", "bool_input", "aserver_api.remove_dist", "logger.warning", "bool_input", "aserver_api.remove_release", "logger.warning", "bool_input", "aserver_api.remove_package", "logger.warning", "logger.error", "logger.warning"] | 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 22 and ends at 52. It contains 29 lines of code and it has a cyclomatic complexity of 13. The function does not take any parameters and does not return any value. It declares 12.0 functions, It has 12.0 functions called inside ... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):parser = subparsers.add_parser('remove',help=('Remove an object from your Anaconda repository. ''Must refer to the formal package name as it appears in the URL of the package. ''Also use anaconda show <USERNAME> to see list of package names. ''Example: anaconda remove continuumio/empty-exampl... | 1 | 25 | 1 | 75 | 1 | 55 | 81 | 55 | subparsers | ['parser'] | None | {"Assign": 1, "Expr": 3} | 4 | 27 | 4 | ["subparsers.add_parser", "parser.add_argument", "parser.add_argument", "parser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 55 and ends at 81. It contains 25 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called insi... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.remove_subcommand | def remove_subcommand(ctx: typer.Context,specs: List[str] = typer.Argument(show_default=False, parser=parse_specs, help='Package written as USER[/PACKAGE[/VERSION[/FILE]]]'),force: bool = typer.Option(False,'-f','--force',help='Do not prompt removal',),) -> None:args = Namespace(token=ctx.obj.params.get('token'),site=c... | 1 | 19 | 4 | 99 | 0 | 92 | 111 | 92 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.remove_subcommand) defined within the public class called public.The function start at line 92 and ends at 111. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [92.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def remove_subcommand(ctx: typer.Context,specs: List[str] = typer.Argument(show_default=False, parse... | 1 | 9 | 5 | 55 | 1 | 84 | 111 | 84 | app,name,hidden,help_text,context_settings | ['args'] | None | {"Assign": 1, "Expr": 1} | 7 | 28 | 7 | ["typer.Argument", "typer.Option", "Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "main", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 84 and ends at 111. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [84.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functio... |
anaconda_anaconda-client | public | public | 0 | 0 | search | def search(args):aserver_api = get_server_api(args.token, args.site)package_type = Noneif args.package_type:package_type = config.PackageType(args.package_type)packages = aserver_api.search(args.name, package_type=package_type, platform=args.platform)pprint_packages(packages, access=False)logger.info('Found %d packages... | 2 | 9 | 1 | 80 | 3 | 19 | 29 | 19 | args | ['packages', 'package_type', 'aserver_api'] | None | {"Assign": 4, "Expr": 3, "If": 1} | 7 | 11 | 7 | ["get_server_api", "config.PackageType", "aserver_api.search", "pprint_packages", "logger.info", "len", "logger.info"] | 114 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.apple2.apple2_gcr_py.Apple2GCR.decode_flux", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.codec.commodore.c64_gcr_py.C64... | The function (search) defined within the public class called public.The function start at line 19 and ends at 29. It contains 9 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 7.0 functions, It has 7.0 functions called inside wh... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):parser = subparsers.add_parser('search',help='Search in your Anaconda repository',description='Search in your Anaconda repository',epilog=__doc__,)parser.add_argument('name',nargs=1,help='Search string',)parser.add_argument('-t','--package-type',# choices=['conda', 'pypi', 'r'],help='only sea... | 1 | 37 | 1 | 104 | 1 | 32 | 69 | 32 | subparsers | ['parser'] | None | {"Assign": 1, "Expr": 4} | 5 | 38 | 5 | ["subparsers.add_parser", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 32 and ends at 69. It contains 37 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 has 5.0 functions called insi... |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand.search_subcommand | def search_subcommand(ctx: typer.Context,name: str = typer.Argument(help='Search string',show_default=False,),package_type: Optional[str] = typer.Option(None,'-t','--package-type',help='Only search for packages of this type',),platform: Optional[Platform] = typer.Option(None,'-p','--platform',help='Only search for pack... | 2 | 27 | 3 | 136 | 0 | 97 | 124 | 97 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (mount_subcommand.search_subcommand) defined within the public class called public.The function start at line 97 and ends at 124. It contains 27 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [97.0] and does not return any value.. |
anaconda_anaconda-client | public | public | 0 | 0 | mount_subcommand | def mount_subcommand(app: typer.Typer, name: str, hidden: bool, help_text: str, context_settings: dict) -> None:@app.command(name=name,hidden=hidden,help=help_text,context_settings=context_settings,no_args_is_help=True,)def search_subcommand(ctx: typer.Context,name: str = typer.Argument(help='Search string',show_defaul... | 1 | 9 | 5 | 55 | 1 | 89 | 124 | 89 | app,name,hidden,help_text,context_settings | ['args'] | None | {"Assign": 1, "Expr": 1} | 8 | 36 | 8 | ["typer.Argument", "typer.Option", "typer.Option", "argparse.Namespace", "ctx.obj.params.get", "ctx.obj.params.get", "search", "app.command"] | 0 | [] | The function (mount_subcommand) defined within the public class called public.The function start at line 89 and ends at 124. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [89.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functio... |
anaconda_anaconda-client | public | public | 0 | 0 | install_info | def install_info(package, package_type):if package_type is PackageType.STANDARD_PYTHON:logger.info('To install this package with %s run:', package_type.value)if package['public']:url = 'https://pypi.anaconda.org/%s/simple' % package['owner']['login']else:url = 'https://pypi.anaconda.org/t/$TOKEN/%s/simple' % package['o... | 5 | 15 | 2 | 127 | 1 | 24 | 40 | 24 | package,package_type | ['url'] | None | {"Assign": 4, "Expr": 4, "If": 4} | 4 | 17 | 4 | ["logger.info", "logger.info", "logger.info", "logger.info"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.commands.show_py.main"] | The function (install_info) defined within the public class called public.The function start at line 24 and ends at 40. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [24.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called... |
anaconda_anaconda-client | public | public | 0 | 0 | main | def main(args):aserver_api = get_server_api(args.token, args.site)spec = args.specif spec._basename:dist = aserver_api.distribution(spec.user, spec.package, spec.version, spec.basename)logger.info(dist.pop('basename'))logger.info(dist.pop('description') or 'no description')logger.info('')metadata = dist.pop('attrs', {}... | 16 | 45 | 1 | 428 | 8 | 43 | 96 | 43 | args | ['dist', 'package', 'user_info', 'aserver_api', 'package_types', 'spec', 'metadata', 'release'] | None | {"Assign": 9, "Expr": 23, "For": 5, "If": 6} | 42 | 54 | 42 | ["get_server_api", "aserver_api.distribution", "logger.info", "dist.pop", "logger.info", "dist.pop", "logger.info", "dist.pop", "dist.items", "logger.info", "logger.info", "metadata.items", "logger.info", "logger.info", "aserver_api.release", "logger.info", "logger.info", "get", "release.get", "aserver_api.package", "j... | 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 43 and ends at 96. It contains 45 lines of code and it has a cyclomatic complexity of 16. The function does not take any parameters and does not return any value. It declares 42.0 functions, It has 42.0 functions called inside ... |
anaconda_anaconda-client | public | public | 0 | 0 | add_parser | def add_parser(subparsers):description = 'Show information about an object'parser = subparsers.add_parser('show', help=description, description=description, epilog=__doc__, formatter_class=RawTextHelpFormatter)parser.add_argument('spec', type=parse_specs, help='Package written as USER[/PACKAGE[/VERSION[/FILE]]]')parser... | 1 | 7 | 1 | 54 | 2 | 99 | 107 | 99 | subparsers | ['parser', 'description'] | None | {"Assign": 2, "Expr": 2} | 3 | 9 | 3 | ["subparsers.add_parser", "parser.add_argument", "parser.set_defaults"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87136529_vladimir_csp_uwsm.uwsm.main_py.Args.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95060891_anaconda_anaconda_client.binstar_client.scripts.cli_py._add_subparser_modules"] | The function (add_parser) defined within the public class called public.The function start at line 99 and ends at 107. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called insi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.