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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pasteorg_paste | URLMap | public | 0 | 1 | __delitem__ | def __delitem__(self, url):url = self.normalize_url(url)for app_url, app in self.applications:if app_url == url:self.applications.remove((app_url, app))breakelse:raise KeyError("No application with the url %r" % (url,)) | 3 | 9 | 2 | 54 | 0 | 180 | 188 | 180 | self,url | [] | None | {"Assign": 1, "Expr": 1, "For": 1, "If": 1} | 3 | 9 | 3 | ["self.normalize_url", "self.applications.remove", "KeyError"] | 14 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.mm.utils_py.APIDict.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.utils_py.APIList.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Data... | The function (__delitem__) defined within the public class called URLMap, that inherit another class.The function start at line 180 and ends at 188. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [180.0] and does not return any value. It declares 3.0 functions... |
pasteorg_paste | URLMap | public | 0 | 1 | keys | def keys(self):return [app_url for app_url, app in self.applications] | 2 | 2 | 1 | 17 | 0 | 190 | 191 | 190 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 420 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.filters_py.contains_filter", "_.conte... | The function (keys) defined within the public class called URLMap, that inherit another class.The function start at line 190 and ends at 191. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It has 420.0 functions calling t... |
pasteorg_paste | URLMap | public | 0 | 1 | __call__ | def __call__(self, environ, start_response):host = environ.get('HTTP_HOST', environ.get('SERVER_NAME')).lower()if ':' in host:host, port = host.split(':', 1)else:if environ['wsgi.url_scheme'] == 'http':port = '80'else:port = '443'path_info = environ.get('PATH_INFO')path_info = self.normalize_url(path_info, False)[1]for... | 9 | 21 | 3 | 170 | 0 | 193 | 213 | 193 | self,environ,start_response | [] | Returns | {"Assign": 8, "AugAssign": 1, "For": 1, "If": 4, "Return": 2} | 10 | 21 | 10 | ["lower", "environ.get", "environ.get", "host.split", "environ.get", "self.normalize_url", "path_info.startswith", "len", "app", "self.not_found_application"] | 43 | ["_.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 URLMap, that inherit another class.The function start at line 193 and ends at 213. It contains 21 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [193.0], and this function return a value. It declares 10.0 functi... |
pasteorg_paste | URLMap | public | 0 | 1 | __init__ | def __init__(self, map, base_paste_url, base_path, builder):self.map = mapself.base_paste_url = self.map.normalize_url(base_paste_url)self.base_path = base_pathself.builder = builder | 1 | 5 | 5 | 40 | 0 | 232 | 236 | 232 | self,not_found_app | [] | None | {"Assign": 3, "If": 1} | 0 | 5 | 0 | [] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called URLMap, that inherit another class.The function start at line 232 and ends at 236. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [232.0] and does not return any value. It has 6814.0 functions call... |
pasteorg_paste | URLMap | public | 0 | 1 | __setitem__ | def __setitem__(self, url, app):if isinstance(app, str):app_fn = os.path.join(self.base_path, app)app = self.builder(app_fn)url = self.map.normalize_url(url)# @@: This means http://foo.com/bar will potentially# match foo.com, but /base_paste_url/bar, which is unintuitiveurl = (url[0] or self.base_paste_url[0], self.bas... | 3 | 8 | 3 | 84 | 0 | 238 | 247 | 238 | self,url,app | [] | None | {"Assign": 1, "Expr": 2, "If": 2, "Return": 1, "Try": 1} | 3 | 12 | 3 | ["self.normalize_url", "self.applications.append", "self.sort_apps"] | 33 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.mm.utils_py.APIDict.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList.__setitem__", "_.content.gdri... | The function (__setitem__) defined within the public class called URLMap, that inherit another class.The function start at line 238 and ends at 247. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [238.0] and does not return any value. It declares 3.0 functions... |
pasteorg_paste | PathProxyURLMap | public | 0 | 0 | __getattr__ | def __getattr__(self, attr):return getattr(self.map, attr) | 1 | 2 | 2 | 16 | 0 | 249 | 250 | 249 | self,attr | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["getattr"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69693687_agnostiqhq_covalent.covalent._workflow.electron_py.Electron.__ge... | The function (__getattr__) defined within the public class called PathProxyURLMap.The function start at line 249 and ends at 250. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [249.0], and this function return a value. It declare 1.0 function, It has 1.0 func... |
pasteorg_paste | PathProxyURLMap | public | 0 | 0 | not_found_application__get | def not_found_application__get(self):return self.map.not_found_application | 1 | 2 | 1 | 11 | 0 | 253 | 254 | 253 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (not_found_application__get) defined within the public class called PathProxyURLMap.The function start at line 253 and ends at 254. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value.. |
pasteorg_paste | PathProxyURLMap | public | 0 | 0 | not_found_application__set | def not_found_application__set(self, value):self.map.not_found_application = value | 1 | 2 | 2 | 14 | 0 | 255 | 256 | 255 | self,value | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (not_found_application__set) defined within the public class called PathProxyURLMap.The function start at line 255 and ends at 256. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [255.0] and does not return any value.. |
pasteorg_paste | URLParser | public | 0 | 0 | __init__ | def __init__(self, global_conf, directory, base_python_name, index_names=NO_DEFAULT, hide_extensions=NO_DEFAULT, ignore_extensions=NO_DEFAULT, constructors=None, **constructor_conf):"""Create a URLParser object that looks at `directory`.`base_python_name` is the package that this directoryrepresents, thus any Python mo... | 10 | 44 | 9 | 269 | 0 | 87 | 139 | 87 | self,global_conf,directory,base_python_name,index_names,hide_extensions,ignore_extensions,constructors,**constructor_conf | [] | None | {"Assign": 14, "Expr": 3, "For": 1, "If": 8} | 17 | 53 | 17 | ["warnings.warn", "directory.replace", "global_conf.get", "converters.aslist", "global_conf.get", "converters.aslist", "global_conf.get", "converters.aslist", "self.global_constructors.copy", "self.constructors.update", "constructor_conf.items", "name.startswith", "ValueError", "strip", "len", "isinstance", "import_str... | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called URLParser.The function start at line 87 and ends at 139. It contains 44 lines of code and it has a cyclomatic complexity of 10. It takes 9 parameters, represented as [87.0] and does not return any value. It declares 17.0 functions, It has 17.0 functions cal... |
pasteorg_paste | URLParser | public | 0 | 0 | __call__ | def __call__(self, environ, start_response):environ['paste.urlparser.base_python_name'] = self.base_python_nameif self.init_module is NO_DEFAULT:self.init_module = self.find_init_module(environ)path_info = environ.get('PATH_INFO', '')if not path_info:return self.add_slash(environ, start_response)if (self.init_moduleand... | 14 | 46 | 3 | 298 | 0 | 141 | 187 | 141 | self,environ,start_response | [] | Returns | {"Assign": 12, "Expr": 2, "If": 8, "Return": 6} | 17 | 47 | 17 | ["self.find_init_module", "environ.get", "self.add_slash", "getattr", "self.init_module.urlparser_hook", "self.find_application", "getattr", "environ.get", "not_found_hook", "request.path_info_split", "join", "self.not_found", "write", "self.not_found", "getattr", "self.init_module.urlparser_wrap", "application"] | 43 | ["_.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 URLParser.The function start at line 141 and ends at 187. It contains 46 lines of code and it has a cyclomatic complexity of 14. It takes 3 parameters, represented as [141.0], and this function return a value. It declares 17.0 functions, It has 17.0 functio... |
pasteorg_paste | URLParser | public | 0 | 0 | find_application | def find_application(self, environ):if (self.init_moduleand getattr(self.init_module, 'application', None)and not environ.get('paste.urlparser.init_application') == environ['SCRIPT_NAME']):environ['paste.urlparser.init_application'] = environ['SCRIPT_NAME']return self.init_module.application, Nonename, rest_of_path = r... | 9 | 24 | 2 | 164 | 0 | 189 | 213 | 189 | self,environ | [] | Returns | {"Assign": 8, "For": 1, "If": 5, "Return": 3} | 7 | 25 | 7 | ["getattr", "environ.get", "request.path_info_split", "environ.get", "self.find_file", "self.find_file", "self.get_application"] | 0 | [] | The function (find_application) defined within the public class called URLParser.The function start at line 189 and ends at 213. It contains 24 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [189.0], and this function return a value. It declares 7.0 functions, and It has 7... |
pasteorg_paste | URLParser | public | 0 | 0 | not_found | def not_found(self, environ, start_response, debug_message=None):exc = httpexceptions.HTTPNotFound('The resource at %s could not be found'% request.construct_url(environ),comment=debug_message)return exc.wsgi_application(environ, start_response) | 1 | 6 | 4 | 41 | 0 | 215 | 220 | 215 | self,environ,start_response,debug_message | [] | Returns | {"Assign": 1, "Return": 1} | 3 | 6 | 3 | ["httpexceptions.HTTPNotFound", "request.construct_url", "exc.wsgi_application"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.debug.fsdiff_py.Snapshot.compare_expected"] | The function (not_found) defined within the public class called URLParser.The function start at line 215 and ends at 220. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [215.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions ... |
pasteorg_paste | URLParser | public | 0 | 0 | add_slash | def add_slash(self, environ, start_response):"""This happens when you try to get to a directorywithout a trailing /"""url = request.construct_url(environ, with_query_string=False)url += '/'if environ.get('QUERY_STRING'):url += '?' + environ['QUERY_STRING']exc = httpexceptions.HTTPMovedPermanently('The resource has move... | 2 | 10 | 3 | 71 | 0 | 222 | 235 | 222 | self,environ,start_response | [] | Returns | {"Assign": 2, "AugAssign": 2, "Expr": 1, "If": 1, "Return": 1} | 4 | 14 | 4 | ["request.construct_url", "environ.get", "httpexceptions.HTTPMovedPermanently", "exc.wsgi_application"] | 0 | [] | The function (add_slash) defined within the public class called URLParser.The function start at line 222 and ends at 235. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [222.0], and this function return a value. It declares 4.0 functions, and It has 4.0 func... |
pasteorg_paste | URLParser | public | 0 | 0 | find_file | def find_file(self, environ, base_filename):possible = []"""Cache a few values to reduce function call overhead"""for filename in os.listdir(self.directory):base, ext = os.path.splitext(filename)full_filename = os.path.join(self.directory, filename)if (ext in self.hide_extensionsor not base):continueif filename == base... | 10 | 27 | 3 | 151 | 0 | 237 | 270 | 237 | self,environ,base_filename | [] | Returns | {"Assign": 3, "Expr": 4, "For": 1, "If": 7, "Return": 4} | 9 | 34 | 9 | ["os.listdir", "os.path.splitext", "os.path.join", "possible.append", "possible.append", "len", "write", "request.construct_url", "join"] | 14 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720326_openxc_openxc_python.openxc.generator.coder_py.CodeGenerator._build_extra_sources", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720326_openxc_openxc_python.openxc.generator.message_sets_py.JsonMessageSet.... | The function (find_file) defined within the public class called URLParser.The function start at line 237 and ends at 270. It contains 27 lines of code and it has a cyclomatic complexity of 10. It takes 3 parameters, represented as [237.0], and this function return a value. It declares 9.0 functions, It has 9.0 function... |
pasteorg_paste | URLParser | public | 0 | 0 | get_application | def get_application(self, environ, filename):if os.path.isdir(filename):t = 'dir'else:t = os.path.splitext(filename)[1]constructor = self.constructors.get(t, self.constructors.get('*'))if constructor is None:#environ['wsgi.errors'].write(#'No constructor found for %s\n' % t)return constructorapp = constructor(self, env... | 4 | 12 | 3 | 81 | 0 | 272 | 288 | 272 | self,environ,filename | [] | Returns | {"Assign": 4, "If": 3, "Return": 2} | 5 | 17 | 5 | ["os.path.isdir", "os.path.splitext", "self.constructors.get", "self.constructors.get", "constructor"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.activitystream_py.activity_signup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.api.activitystream_py.activity_signup_revoke"] | The function (get_application) defined within the public class called URLParser.The function start at line 272 and ends at 288. It contains 12 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [272.0], and this function return a value. It declares 5.0 functions, It has 5.0 fun... |
pasteorg_paste | URLParser | public | 0 | 0 | register_constructor | def register_constructor(cls, extension, constructor):"""Register a function as a constructor.Registered constructorsapply to all instances of `URLParser`.The extension should have a leading ``.``, or the specialextensions ``dir`` (for directories) and ``*`` (a catch-all).`constructor` must be a callable that takes two... | 1 | 7 | 3 | 42 | 0 | 290 | 306 | 290 | cls,extension,constructor | [] | None | {"Assign": 2, "Expr": 1} | 0 | 17 | 0 | [] | 0 | [] | The function (register_constructor) defined within the public class called URLParser.The function start at line 290 and ends at 306. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [290.0] and does not return any value.. |
pasteorg_paste | URLParser | public | 0 | 0 | get_parser | def get_parser(self, directory, base_python_name):"""Get a parser for the given directory, or create one ifnecessary.This way parsers can be cached and reused.# @@: settings are inherited from the first caller"""try:return self.parsers_by_directory[(directory, base_python_name)]except KeyError:parser = self.__class__({... | 2 | 13 | 3 | 77 | 0 | 309 | 327 | 309 | self,directory,base_python_name | [] | Returns | {"Assign": 2, "Expr": 1, "Return": 2, "Try": 1} | 1 | 19 | 1 | ["self.__class__"] | 37 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688630_openstack_python_zaqarclient.zaqarclient.queues.v2.cli_py.CreateClaim.get_parser", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3688630_openstack_python_zaqarclient.zaqarclient.queues.v2.cli_py.CreateFlavor... | The function (get_parser) defined within the public class called URLParser.The function start at line 309 and ends at 327. It contains 13 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [309.0], and this function return a value. It declare 1.0 function, It has 1.0 function c... |
pasteorg_paste | URLParser | public | 0 | 0 | find_init_module | def find_init_module(self, environ):filename = os.path.join(self.directory, '__init__.py')if not os.path.exists(filename):return Nonereturn load_module(environ, filename) | 2 | 5 | 2 | 41 | 0 | 329 | 333 | 329 | self,environ | [] | Returns | {"Assign": 1, "If": 1, "Return": 2} | 3 | 5 | 3 | ["os.path.join", "os.path.exists", "load_module"] | 0 | [] | The function (find_init_module) defined within the public class called URLParser.The function start at line 329 and ends at 333. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [329.0], and this function return a value. It declares 3.0 functions, and It has 3.... |
pasteorg_paste | URLParser | public | 0 | 0 | __repr__ | def __repr__(self):return '<%s directory=%r; module=%s at %s>' % (self.__class__.__name__,self.directory,self.base_python_name,hex(abs(id(self)))) | 1 | 6 | 1 | 34 | 0 | 335 | 340 | 335 | self | [] | Returns | {"Return": 1} | 3 | 6 | 3 | ["hex", "abs", "id"] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called URLParser.The function start at line 335 and ends at 340. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions calle... |
pasteorg_paste | public | public | 0 | 0 | make_directory | def make_directory(parser, environ, filename):base_python_name = environ['paste.urlparser.base_python_name']if base_python_name:base_python_name += "." + os.path.basename(filename)else:base_python_name = os.path.basename(filename)return parser.get_parser(filename, base_python_name) | 2 | 7 | 3 | 51 | 1 | 342 | 348 | 342 | parser,environ,filename | ['base_python_name'] | Returns | {"Assign": 2, "AugAssign": 1, "If": 1, "Return": 1} | 3 | 7 | 3 | ["os.path.basename", "os.path.basename", "parser.get_parser"] | 0 | [] | The function (make_directory) defined within the public class called public.The function start at line 342 and ends at 348. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [342.0], and this function return a value. It declares 3.0 functions, and It has 3.0 fun... |
pasteorg_paste | public | public | 0 | 0 | make_unknown | def make_unknown(parser, environ, filename):return fileapp.FileApp(filename) | 1 | 2 | 3 | 16 | 0 | 352 | 353 | 352 | parser,environ,filename | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["fileapp.FileApp"] | 0 | [] | The function (make_unknown) defined within the public class called public.The function start at line 352 and ends at 353. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [352.0], and this function return a value. It declare 1.0 function, and It has 1.0 functio... |
pasteorg_paste | public | public | 0 | 0 | load_module | def load_module(environ, filename):base_python_name = environ['paste.urlparser.base_python_name']module_name = os.path.splitext(os.path.basename(filename))[0]if base_python_name:module_name = base_python_name + '.' + module_namereturn load_module_from_name(environ, filename, module_name, environ['wsgi.errors']) | 2 | 7 | 2 | 57 | 2 | 357 | 363 | 357 | environ,filename | ['base_python_name', 'module_name'] | Returns | {"Assign": 3, "If": 1, "Return": 1} | 3 | 7 | 3 | ["os.path.splitext", "os.path.basename", "load_module_from_name"] | 15 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.__init___py.load_modules", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.main_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Cre... | The function (load_module) defined within the public class called public.The function start at line 357 and ends at 363. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [357.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions c... |
pasteorg_paste | public | public | 0 | 0 | load_module_from_name | def load_module_from_name(environ, filename, module_name, errors):if module_name in sys.modules:return sys.modules[module_name]init_filename = os.path.join(os.path.dirname(filename), '__init__.py')if not os.path.exists(init_filename):try:f = open(init_filename, 'w')except (OSError, IOError) as e:errors.write('Cannot wr... | 7 | 30 | 4 | 224 | 7 | 365 | 397 | 365 | environ,filename,module_name,errors | ['parent', 'f', 'init_filename', 'spec', 'base_name', 'module', 'parent_name'] | Returns | {"Assign": 10, "Expr": 4, "If": 5, "Return": 4, "Try": 1} | 16 | 33 | 16 | ["os.path.join", "os.path.dirname", "os.path.exists", "open", "errors.write", "os.path.dirname", "f.write", "f.close", "join", "module_name.split", "module_name.split", "load_module_from_name", "os.path.dirname", "imputil.spec_from_file_location", "imputil.module_from_spec", "spec.loader.exec_module"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.load_module", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.load_module_from_name"] | The function (load_module_from_name) defined within the public class called public.The function start at line 365 and ends at 397. It contains 30 lines of code and it has a cyclomatic complexity of 7. It takes 4 parameters, represented as [365.0], and this function return a value. It declares 16.0 functions, It has 16.... |
pasteorg_paste | public | public | 0 | 0 | make_py | def make_py(parser, environ, filename):module = load_module(environ, filename)if not module:return Noneif hasattr(module, 'application') and module.application:return getattr(module.application, 'wsgi_application', module.application)base_name = module.__name__.split('.')[-1]if hasattr(module, base_name):obj = getattr(... | 6 | 17 | 3 | 118 | 3 | 399 | 416 | 399 | parser,environ,filename | ['obj', 'base_name', 'module'] | Returns | {"Assign": 3, "Expr": 1, "If": 4, "Return": 5} | 9 | 18 | 9 | ["load_module", "hasattr", "getattr", "module.__name__.split", "hasattr", "getattr", "hasattr", "getattr", "write"] | 0 | [] | The function (make_py) defined within the public class called public.The function start at line 399 and ends at 416. It contains 17 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [399.0], and this function return a value. It declares 9.0 functions, and It has 9.0 functions... |
pasteorg_paste | URLParser | public | 0 | 0 | __init__ | def __init__(self, directory, root_directory=None, cache_max_age=None):self.directory = self.normpath(directory)self.root_directory = self.normpath(root_directory or directory)self.cache_max_age = cache_max_age | 2 | 5 | 4 | 42 | 0 | 429 | 433 | 429 | self,global_conf,directory,base_python_name,index_names,hide_extensions,ignore_extensions,constructors,**constructor_conf | [] | None | {"Assign": 14, "Expr": 3, "For": 1, "If": 8} | 17 | 53 | 17 | ["warnings.warn", "directory.replace", "global_conf.get", "converters.aslist", "global_conf.get", "converters.aslist", "global_conf.get", "converters.aslist", "self.global_constructors.copy", "self.constructors.update", "constructor_conf.items", "name.startswith", "ValueError", "strip", "len", "isinstance", "import_str... | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called URLParser.The function start at line 429 and ends at 433. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [429.0] and does not return any value. It declares 17.0 functions, It has 17.0 functions cal... |
pasteorg_paste | StaticURLParser | public | 0 | 0 | normpath | def normpath(path):return os.path.normcase(os.path.abspath(path)) | 1 | 2 | 1 | 21 | 0 | 435 | 436 | 435 | path | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["os.path.normcase", "os.path.abspath"] | 7 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3700921_gruns_furl.furl.furl_py.Path.normalize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918097_mherrmann_fbs.fbs_runtime._source_py.path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_... | The function (normpath) defined within the public class called StaticURLParser.The function start at line 435 and ends at 436. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions... |
pasteorg_paste | URLParser | public | 0 | 0 | __call__ | def __call__(self, environ, start_response):path_info = environ.get('PATH_INFO', '')if not path_info:return self.add_slash(environ, start_response)if path_info == '/':# @@: This should obviously be configurablefilename = 'index.html'else:filename = request.path_info_pop(environ)full = self.normpath(os.path.join(self.di... | 11 | 31 | 3 | 250 | 0 | 439 | 475 | 439 | self,environ,start_response | [] | Returns | {"Assign": 12, "Expr": 2, "If": 8, "Return": 6} | 17 | 47 | 17 | ["self.find_init_module", "environ.get", "self.add_slash", "getattr", "self.init_module.urlparser_hook", "self.find_application", "getattr", "environ.get", "not_found_hook", "request.path_info_split", "join", "self.not_found", "write", "self.not_found", "getattr", "self.init_module.urlparser_wrap", "application"] | 43 | ["_.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 URLParser.The function start at line 439 and ends at 475. It contains 31 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [439.0], and this function return a value. It declares 17.0 functions, It has 17.0 functio... |
pasteorg_paste | StaticURLParser | public | 0 | 0 | make_app | def make_app(self, filename):return fileapp.FileApp(filename) | 1 | 2 | 2 | 14 | 0 | 477 | 478 | 477 | self,filename | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["fileapp.FileApp"] | 23 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.contrib.wsgi_autoreloading_py.make_autoreloading_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dat... | The function (make_app) defined within the public class called StaticURLParser.The function start at line 477 and ends at 478. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [477.0], and this function return a value. It declare 1.0 function, It has 1.0 functio... |
pasteorg_paste | URLParser | public | 0 | 0 | add_slash | def add_slash(self, environ, start_response):"""This happens when you try to get to a directorywithout a trailing /"""url = request.construct_url(environ, with_query_string=False)url += '/'if environ.get('QUERY_STRING'):url += '?' + environ['QUERY_STRING']exc = httpexceptions.HTTPMovedPermanently('The resource has move... | 2 | 10 | 3 | 71 | 0 | 480 | 493 | 222 | self,environ,start_response | [] | Returns | {"Assign": 2, "AugAssign": 2, "Expr": 1, "If": 1, "Return": 1} | 4 | 14 | 4 | ["request.construct_url", "environ.get", "httpexceptions.HTTPMovedPermanently", "exc.wsgi_application"] | 0 | [] | The function (add_slash) defined within the public class called URLParser.The function start at line 480 and ends at 493. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [222.0], and this function return a value. It declares 4.0 functions, and It has 4.0 func... |
pasteorg_paste | URLParser | public | 0 | 0 | not_found | def not_found(self, environ, start_response, debug_message=None):exc = httpexceptions.HTTPNotFound('The resource at %s could not be found'% request.construct_url(environ),comment='SCRIPT_NAME=%r; PATH_INFO=%r; looking in %r; debug: %s'% (environ.get('SCRIPT_NAME'), environ.get('PATH_INFO'), self.directory, debug_messag... | 2 | 8 | 4 | 65 | 0 | 495 | 502 | 495 | self,environ,start_response,debug_message | [] | Returns | {"Assign": 1, "Return": 1} | 3 | 6 | 3 | ["httpexceptions.HTTPNotFound", "request.construct_url", "exc.wsgi_application"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.debug.fsdiff_py.Snapshot.compare_expected"] | The function (not_found) defined within the public class called URLParser.The function start at line 495 and ends at 502. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [495.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions ... |
pasteorg_paste | StaticURLParser | public | 0 | 0 | error_extra_path | def error_extra_path(self, environ, start_response):exc = httpexceptions.HTTPNotFound('The trailing path %r is not allowed' % environ['PATH_INFO'])return exc.wsgi_application(environ, start_response) | 1 | 4 | 3 | 31 | 0 | 504 | 507 | 504 | self,environ,start_response | [] | Returns | {"Assign": 1, "Return": 1} | 2 | 4 | 2 | ["httpexceptions.HTTPNotFound", "exc.wsgi_application"] | 0 | [] | The function (error_extra_path) defined within the public class called StaticURLParser.The function start at line 504 and ends at 507. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [504.0], and this function return a value. It declares 2.0 functions, and It ... |
pasteorg_paste | URLParser | public | 0 | 0 | __repr__ | def __repr__(self):return '<%s %r>' % (self.__class__.__name__, self.directory) | 1 | 2 | 1 | 19 | 0 | 509 | 510 | 509 | self | [] | Returns | {"Return": 1} | 3 | 6 | 3 | ["hex", "abs", "id"] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called URLParser.The function start at line 509 and ends at 510. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions calle... |
pasteorg_paste | public | public | 0 | 0 | make_static | def make_static(global_conf, document_root, cache_max_age=None):"""Return a WSGI application that serves a directory (configuredwith document_root)cache_max_age - integer specifies CACHE_CONTROL max_age in seconds"""if cache_max_age is not None:cache_max_age = int(cache_max_age)return StaticURLParser(document_root, cac... | 2 | 5 | 3 | 33 | 1 | 512 | 522 | 512 | global_conf,document_root,cache_max_age | ['cache_max_age'] | Returns | {"Assign": 1, "Expr": 1, "If": 1, "Return": 1} | 2 | 11 | 2 | ["int", "StaticURLParser"] | 0 | [] | The function (make_static) defined within the public class called public.The function start at line 512 and ends at 522. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [512.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functi... |
pasteorg_paste | URLParser | public | 0 | 0 | __init__ | def __init__(self, egg_or_spec, resource_name, manager=None, root_resource=None):if pkg_resources is None:raise NotImplementedError("This class requires pkg_resources.")if isinstance(egg_or_spec, (bytes, str)):self.egg = pkg_resources.get_distribution(egg_or_spec)else:self.egg = egg_or_specself.resource_name = resource... | 5 | 14 | 5 | 98 | 0 | 526 | 539 | 526 | self,global_conf,directory,base_python_name,index_names,hide_extensions,ignore_extensions,constructors,**constructor_conf | [] | None | {"Assign": 14, "Expr": 3, "For": 1, "If": 8} | 17 | 53 | 17 | ["warnings.warn", "directory.replace", "global_conf.get", "converters.aslist", "global_conf.get", "converters.aslist", "global_conf.get", "converters.aslist", "self.global_constructors.copy", "self.constructors.update", "constructor_conf.items", "name.startswith", "ValueError", "strip", "len", "isinstance", "import_str... | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called URLParser.The function start at line 526 and ends at 539. It contains 14 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [526.0] and does not return any value. It declares 17.0 functions, It has 17.0 functions ca... |
pasteorg_paste | URLParser | public | 0 | 0 | __repr__ | def __repr__(self):return '<%s for %s:%r>' % (self.__class__.__name__,self.egg.project_name,self.resource_name) | 1 | 5 | 1 | 25 | 0 | 541 | 545 | 541 | self | [] | Returns | {"Return": 1} | 3 | 6 | 3 | ["hex", "abs", "id"] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called URLParser.The function start at line 541 and ends at 545. 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 3.0 functions, It has 3.0 functions calle... |
pasteorg_paste | URLParser | public | 0 | 0 | __call__ | def __call__(self, environ, start_response):path_info = environ.get('PATH_INFO', '')if not path_info:return self.add_slash(environ, start_response)if path_info == '/':# @@: This should obviously be configurablefilename = 'index.html'else:filename = request.path_info_pop(environ)resource = os.path.normcase(os.path.normp... | 13 | 33 | 3 | 277 | 0 | 547 | 584 | 547 | self,environ,start_response | [] | Returns | {"Assign": 12, "Expr": 2, "If": 8, "Return": 6} | 17 | 47 | 17 | ["self.find_init_module", "environ.get", "self.add_slash", "getattr", "self.init_module.urlparser_hook", "self.find_application", "getattr", "environ.get", "not_found_hook", "request.path_info_split", "join", "self.not_found", "write", "self.not_found", "getattr", "self.init_module.urlparser_wrap", "application"] | 43 | ["_.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 URLParser.The function start at line 547 and ends at 584. It contains 33 lines of code and it has a cyclomatic complexity of 13. It takes 3 parameters, represented as [547.0], and this function return a value. It declares 17.0 functions, It has 17.0 functio... |
pasteorg_paste | URLParser | public | 0 | 0 | not_found | def not_found(self, environ, start_response, debug_message=None):exc = httpexceptions.HTTPNotFound('The resource at %s could not be found'% request.construct_url(environ),comment='SCRIPT_NAME=%r; PATH_INFO=%r; looking in egg:%s#%r; debug: %s'% (environ.get('SCRIPT_NAME'), environ.get('PATH_INFO'), self.egg, self.resour... | 2 | 8 | 4 | 69 | 0 | 586 | 593 | 586 | self,environ,start_response,debug_message | [] | Returns | {"Assign": 1, "Return": 1} | 3 | 6 | 3 | ["httpexceptions.HTTPNotFound", "request.construct_url", "exc.wsgi_application"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.debug.fsdiff_py.Snapshot.compare_expected"] | The function (not_found) defined within the public class called URLParser.The function start at line 586 and ends at 593. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [586.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions ... |
pasteorg_paste | public | public | 0 | 0 | make_pkg_resources | def make_pkg_resources(global_conf, egg, resource_name=''):"""A static file parser that loads data from an egg using``pkg_resources``.Takes a configuration value ``egg``, which isan egg spec, and a base ``resource_name`` (default empty string)which is the path in the egg that this starts at."""if pkg_resources is None:... | 2 | 4 | 3 | 29 | 0 | 595 | 604 | 595 | global_conf,egg,resource_name | [] | Returns | {"Expr": 1, "If": 1, "Return": 1} | 2 | 10 | 2 | ["NotImplementedError", "PkgResourcesParser"] | 0 | [] | The function (make_pkg_resources) defined within the public class called public.The function start at line 595 and ends at 604. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [595.0], and this function return a value. It declares 2.0 functions, and It has 2.0... |
pasteorg_paste | public | public | 0 | 0 | make_url_parser | def make_url_parser(global_conf, directory, base_python_name,index_names=None, hide_extensions=None,ignore_extensions=None,**constructor_conf):"""Create a URLParser application that looks in ``directory``, whichshould be the directory for the Python package named in``base_python_name``.``index_names`` are used when vie... | 4 | 21 | 7 | 134 | 3 | 606 | 639 | 606 | global_conf,directory,base_python_name,index_names,hide_extensions,ignore_extensions,**constructor_conf | ['hide_extensions', 'ignore_extensions', 'index_names'] | Returns | {"Assign": 6, "Expr": 1, "If": 3, "Return": 1} | 7 | 34 | 7 | ["global_conf.get", "converters.aslist", "global_conf.get", "converters.aslist", "global_conf.get", "converters.aslist", "URLParser"] | 0 | [] | The function (make_url_parser) defined within the public class called public.The function start at line 606 and ends at 639. It contains 21 lines of code and it has a cyclomatic complexity of 4. It takes 7 parameters, represented as [606.0], and this function return a value. It declares 7.0 functions, and It has 7.0 f... |
pasteorg_paste | add_close | public | 0 | 0 | __init__ | def __init__(self, app_iterable, close_func):self.app_iterable = app_iterableself.app_iter = iter(app_iterable)self.close_func = close_funcself._closed = False | 1 | 5 | 3 | 32 | 0 | 36 | 40 | 36 | self,app_iterable,close_func | [] | None | {"Assign": 4} | 1 | 5 | 1 | ["iter"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called add_close.The function start at line 36 and ends at 40. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [36.0] and does not return any value. It declare 1.0 function, It has 1.0 function called insi... |
pasteorg_paste | add_close | public | 0 | 0 | __iter__ | def __iter__(self):return self | 1 | 2 | 1 | 7 | 0 | 42 | 43 | 42 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.soup_py.AttrList.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForei... | The function (__iter__) defined within the public class called add_close.The function start at line 42 and ends at 43. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 17.0 functions calling this function which are [... |
pasteorg_paste | add_close | public | 0 | 0 | next | def next(self):return self.__next__() | 1 | 2 | 1 | 11 | 0 | 45 | 46 | 45 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.__next__"] | 984 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Package.build_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.get", "_.content... | The function (next) defined within the public class called add_close.The function start at line 45 and ends at 46. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside ... |
pasteorg_paste | add_close | public | 0 | 0 | __next__ | def __next__(self):return next(self.app_iter) | 1 | 2 | 1 | 12 | 0 | 49 | 50 | 49 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["next"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73263884_aequilibrae_qaequilibrae.qaequilibrae.modules.network.Network_preparation_procedure_py.NetworkPreparationProcedure.with_node_ids", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.aut... | The function (__next__) defined within the public class called add_close.The function start at line 49 and ends at 50. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called ins... |
pasteorg_paste | add_close | public | 0 | 0 | close | def close(self):self._closed = Trueif hasattr(self.app_iterable, 'close'):self.app_iterable.close()self.close_func() | 2 | 5 | 1 | 32 | 0 | 52 | 56 | 52 | self | [] | None | {"Assign": 1, "Expr": 2, "If": 1} | 3 | 5 | 3 | ["hasattr", "self.app_iterable.close", "self.close_func"] | 158 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.tests.test_client_py.SSHClientTest.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.presenters.formats_py.text", "_.content.gdrive.MyDrive.Phd_Th... | The function (close) defined within the public class called add_close.The function start at line 52 and ends at 56. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside ... |
pasteorg_paste | add_close | public | 0 | 0 | __del__ | def __del__(self):if not self._closed:# We can't raise an error or anything at this stageprint("Error: app_iter.close() was not called when finishing ""WSGI request. finalization function %s not called"% self.close_func, file=sys.stderr) | 2 | 5 | 1 | 26 | 0 | 58 | 63 | 58 | self | [] | None | {"Expr": 1, "If": 1} | 1 | 6 | 1 | ["print"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3958607_irods_python_irodsclient.irods.test.login_auth_test_must_run_manually_py.TestMiscellaneous.test_destruct_session_with_no_pool_315"] | The function (__del__) defined within the public class called add_close.The function start at line 58 and ends at 63. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside w... |
pasteorg_paste | add_close | public | 0 | 0 | __init__ | def __init__(self, app_iterable, start_func, close_func=None):self.app_iterable = app_iterableself.app_iter = iter(app_iterable)self.first = Trueself.start_func = start_funcself.close_func = close_funcself._closed = False | 1 | 7 | 4 | 46 | 0 | 72 | 78 | 72 | self,app_iterable,close_func | [] | None | {"Assign": 4} | 1 | 5 | 1 | ["iter"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called add_close.The function start at line 72 and ends at 78. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [72.0] and does not return any value. It declare 1.0 function, It has 1.0 function called insi... |
pasteorg_paste | add_close | public | 0 | 0 | __iter__ | def __iter__(self):return self | 1 | 2 | 1 | 7 | 0 | 80 | 81 | 42 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.soup_py.AttrList.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForei... | The function (__iter__) defined within the public class called add_close.The function start at line 80 and ends at 81. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 17.0 functions calling this function which are [... |
pasteorg_paste | add_close | public | 0 | 0 | next | def next(self):if self.first:self.start_func()self.first = Falsereturn next(self.app_iter) | 2 | 5 | 1 | 27 | 0 | 83 | 87 | 83 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.__next__"] | 984 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Package.build_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.get", "_.content... | The function (next) defined within the public class called add_close.The function start at line 83 and ends at 87. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside ... |
pasteorg_paste | add_close | public | 0 | 0 | close | def close(self):self._closed = Trueif hasattr(self.app_iterable, 'close'):self.app_iterable.close()if self.close_func is not None:self.close_func() | 3 | 6 | 1 | 40 | 0 | 90 | 95 | 90 | self | [] | None | {"Assign": 1, "Expr": 2, "If": 1} | 3 | 5 | 3 | ["hasattr", "self.app_iterable.close", "self.close_func"] | 158 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.tests.test_client_py.SSHClientTest.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.presenters.formats_py.text", "_.content.gdrive.MyDrive.Phd_Th... | The function (close) defined within the public class called add_close.The function start at line 90 and ends at 95. It contains 6 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside ... |
pasteorg_paste | add_close | public | 0 | 0 | __del__ | def __del__(self):if not self._closed:# We can't raise an error or anything at this stageprint("Error: app_iter.close() was not called when finishing ""WSGI request. finalization function %s not called"% self.close_func, file=sys.stderr) | 2 | 5 | 1 | 26 | 0 | 97 | 102 | 58 | self | [] | None | {"Expr": 1, "If": 1} | 1 | 6 | 1 | ["print"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3958607_irods_python_irodsclient.irods.test.login_auth_test_must_run_manually_py.TestMiscellaneous.test_destruct_session_with_no_pool_315"] | The function (__del__) defined within the public class called add_close.The function start at line 97 and ends at 102. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside ... |
pasteorg_paste | add_close | public | 0 | 0 | __init__ | def __init__(self, *chained):self.app_iters = chainedself.chained = [iter(item) for item in chained]self._closed = False | 2 | 4 | 2 | 32 | 0 | 111 | 114 | 111 | self,app_iterable,close_func | [] | None | {"Assign": 4} | 1 | 5 | 1 | ["iter"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called add_close.The function start at line 111 and ends at 114. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [111.0] and does not return any value. It declare 1.0 function, It has 1.0 function called i... |
pasteorg_paste | add_close | public | 0 | 0 | __iter__ | def __iter__(self):return self | 1 | 2 | 1 | 7 | 0 | 116 | 117 | 42 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.soup_py.AttrList.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForei... | The function (__iter__) defined within the public class called add_close.The function start at line 116 and ends at 117. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 17.0 functions calling this function which are... |
pasteorg_paste | add_close | public | 0 | 0 | next | def next(self):if len(self.chained) == 1:return next(self.chained[0])else:try:return next(self.chained[0])except StopIteration:self.chained.pop(0)return self.next() | 3 | 9 | 1 | 56 | 0 | 119 | 127 | 119 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.__next__"] | 984 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Package.build_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.get", "_.content... | The function (next) defined within the public class called add_close.The function start at line 119 and ends at 127. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called insid... |
pasteorg_paste | add_close | public | 0 | 0 | close | def close(self):self._closed = Truegot_exc = Nonefor app_iter in self.app_iters:try:if hasattr(app_iter, 'close'):app_iter.close()except Exception:got_exc = sys.exc_info()if got_exc:raise got_exc | 5 | 11 | 1 | 50 | 0 | 130 | 140 | 130 | self | [] | None | {"Assign": 1, "Expr": 2, "If": 1} | 3 | 5 | 3 | ["hasattr", "self.app_iterable.close", "self.close_func"] | 158 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.tests.test_client_py.SSHClientTest.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.presenters.formats_py.text", "_.content.gdrive.MyDrive.Phd_Th... | The function (close) defined within the public class called add_close.The function start at line 130 and ends at 140. It contains 11 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 3.0 functions, It has 3.0 functions called insi... |
pasteorg_paste | add_close | public | 0 | 0 | __del__ | def __del__(self):if not self._closed:# We can't raise an error or anything at this stageprint("Error: app_iter.close() was not called when finishing ""WSGI request. finalization function %s not called"% self.close_func, file=sys.stderr) | 2 | 5 | 1 | 26 | 0 | 142 | 147 | 58 | self | [] | None | {"Expr": 1, "If": 1} | 1 | 6 | 1 | ["print"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3958607_irods_python_irodsclient.irods.test.login_auth_test_must_run_manually_py.TestMiscellaneous.test_destruct_session_with_no_pool_315"] | The function (__del__) defined within the public class called add_close.The function start at line 142 and ends at 147. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside... |
pasteorg_paste | add_close | public | 0 | 0 | __init__ | def __init__(self, app_iterable, encoding=sys.getdefaultencoding(), errors='strict'): | 1 | 2 | 3 | 19 | 0 | 154 | 155 | 154 | self,app_iterable,close_func | [] | None | {"Assign": 4} | 1 | 5 | 1 | ["iter"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called add_close.The function start at line 154 and ends at 155. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [154.0] and does not return any value. It declare 1.0 function, It has 1.0 function called i... |
pasteorg_paste | add_close | public | 0 | 0 | __iter__ | def __iter__(self):return self | 1 | 2 | 1 | 7 | 0 | 161 | 162 | 42 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.soup_py.AttrList.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForei... | The function (__iter__) defined within the public class called add_close.The function start at line 161 and ends at 162. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 17.0 functions calling this function which are... |
pasteorg_paste | add_close | public | 0 | 0 | next | def next(self):content = next(self.app_iter)if isinstance(content, str):content = content.encode(self.encoding, self.errors)return content | 2 | 5 | 1 | 37 | 0 | 164 | 168 | 164 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.__next__"] | 984 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Package.build_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.get", "_.content... | The function (next) defined within the public class called add_close.The function start at line 164 and ends at 168. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called insid... |
pasteorg_paste | add_close | public | 0 | 0 | close | def close(self):if hasattr(self.app_iterable, 'close'):self.app_iterable.close() | 2 | 3 | 1 | 22 | 0 | 171 | 173 | 171 | self | [] | None | {"Assign": 1, "Expr": 2, "If": 1} | 3 | 5 | 3 | ["hasattr", "self.app_iterable.close", "self.close_func"] | 158 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.tests.test_client_py.SSHClientTest.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.presenters.formats_py.text", "_.content.gdrive.MyDrive.Phd_Th... | The function (close) defined within the public class called add_close.The function start at line 171 and ends at 173. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called insid... |
pasteorg_paste | public | public | 0 | 0 | catch_errors | def catch_errors(application, environ, start_response, error_callback, ok_callback=None):"""Runs the application, and returns the application iterator (which should bepassed upstream).If an error occurs then error_callback will be called withexc_info as its sole argument.If no errors occur and ok_callback is given,then... | 4 | 13 | 5 | 69 | 1 | 175 | 194 | 175 | application,environ,start_response,error_callback,ok_callback | ['app_iter'] | Returns | {"Assign": 1, "Expr": 3, "If": 2, "Return": 2, "Try": 1} | 6 | 20 | 6 | ["application", "error_callback", "sys.exc_info", "type", "ok_callback", "_wrap_app_iter"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.progress_py.UploadProgressMonitor.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.transaction_py.BasicTransactionHandler", "_.content.gdrive.MyDri... | The function (catch_errors) defined within the public class called public.The function start at line 175 and ends at 194. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [175.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions... |
pasteorg_paste | add_close | public | 0 | 0 | __init__ | def __init__(self, app_iterable, error_callback, ok_callback):self.app_iterable = app_iterableself.app_iter = iter(app_iterable)self.error_callback = error_callbackself.ok_callback = ok_callbackif hasattr(self.app_iterable, 'close'):self.close = self.app_iterable.close | 2 | 7 | 4 | 53 | 0 | 198 | 204 | 198 | self,app_iterable,close_func | [] | None | {"Assign": 4} | 1 | 5 | 1 | ["iter"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called add_close.The function start at line 198 and ends at 204. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [198.0] and does not return any value. It declare 1.0 function, It has 1.0 function called i... |
pasteorg_paste | add_close | public | 0 | 0 | __iter__ | def __iter__(self):return self | 1 | 2 | 1 | 7 | 0 | 206 | 207 | 42 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.soup_py.AttrList.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForei... | The function (__iter__) defined within the public class called add_close.The function start at line 206 and ends at 207. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 17.0 functions calling this function which are... |
pasteorg_paste | add_close | public | 0 | 0 | next | def next(self):try:return next(self.app_iter)except StopIteration:if self.ok_callback:self.ok_callback()raiseexcept Exception:self.error_callback(sys.exc_info())raise | 4 | 10 | 1 | 42 | 0 | 209 | 218 | 209 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.__next__"] | 984 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Package.build_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.get", "_.content... | The function (next) defined within the public class called add_close.The function start at line 209 and ends at 218. It contains 10 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called insi... |
pasteorg_paste | public | public | 0 | 0 | catch_errors_app | def catch_errors_app(application, environ, start_response, error_callback_app, ok_callback=None, catch=Exception):"""Like ``catch_errors``, except error_callback_app should be acallable that will receive *three* arguments -- ``environ``,``start_response``, and ``exc_info``.It should call``start_response`` (*with* the e... | 4 | 14 | 6 | 88 | 1 | 221 | 242 | 221 | application,environ,start_response,error_callback_app,ok_callback,catch | ['app_iter'] | Returns | {"Assign": 1, "Expr": 2, "If": 2, "Return": 3, "Try": 1} | 6 | 22 | 6 | ["application", "error_callback_app", "sys.exc_info", "type", "ok_callback", "_wrap_app_iter_app"] | 0 | [] | The function (catch_errors_app) defined within the public class called public.The function start at line 221 and ends at 242. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 6 parameters, represented as [221.0], and this function return a value. It declares 6.0 functions, and It has 6.0 ... |
pasteorg_paste | add_close | public | 0 | 0 | __init__ | def __init__(self, environ, start_response, app_iterable, error_callback_app, ok_callback, catch=Exception):self.environ = environself.start_response = start_responseself.app_iterable = app_iterableself.app_iter = iter(app_iterable)self.error_callback_app = error_callback_appself.ok_callback = ok_callbackself.catch = c... | 2 | 11 | 7 | 76 | 0 | 246 | 256 | 246 | self,app_iterable,close_func | [] | None | {"Assign": 4} | 1 | 5 | 1 | ["iter"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called add_close.The function start at line 246 and ends at 256. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 7 parameters, represented as [246.0] and does not return any value. It declare 1.0 function, It has 1.0 function called ... |
pasteorg_paste | add_close | public | 0 | 0 | __iter__ | def __iter__(self):return self | 1 | 2 | 1 | 7 | 0 | 258 | 259 | 42 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.soup_py.AttrList.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForei... | The function (__iter__) defined within the public class called add_close.The function start at line 258 and ends at 259. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 17.0 functions calling this function which are... |
pasteorg_paste | add_close | public | 0 | 0 | next | def next(self):try:return next(self.app_iter)except StopIteration:if self.ok_callback:self.ok_callback()raiseexcept self.catch:if hasattr(self.app_iterable, 'close'):try:self.app_iterable.close()except Exception:# @@: Print to wsgi.errors?passnew_app_iterable = self.error_callback_app(self.environ, self.start_response,... | 7 | 20 | 1 | 113 | 0 | 261 | 281 | 261 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.__next__"] | 984 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Package.build_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.get", "_.content... | The function (next) defined within the public class called add_close.The function start at line 261 and ends at 281. It contains 20 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called insi... |
pasteorg_paste | public | public | 0 | 0 | raw_interactive.start_response | def start_response(status, headers, exc_info=None):if exc_info:try:if headers_sent:# Re-raise original exception only if headers sentraise exc_infofinally:# avoid dangling circular referenceexc_info = Noneelif headers_set:# You cannot set the headers more than once, unless the# exc_info is provided.raise AssertionError... | 5 | 13 | 3 | 56 | 0 | 333 | 349 | 333 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (raw_interactive.start_response) defined within the public class called public.The function start at line 333 and ends at 349. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [333.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | raw_interactive | def raw_interactive(application, path='', raise_on_wsgi_error=False,**environ):"""Runs the application in a fake environment."""assert "path_info" not in environ, "argument list changed"if raise_on_wsgi_error:errors = ErrorRaiser()else:errors = io.StringIO()basic_environ = {# mandatory CGI variables'REQUEST_METHOD': 'G... | 14 | 64 | 4 | 390 | 11 | 284 | 371 | 284 | application,path,raise_on_wsgi_error,**environ | ['basic_environ', 'output', 'errors', 'path_info', 'istream', 'headers_sent', 'app_iter', 'name', 'headers_set', 'data', 'exc_info'] | Returns | {"Assign": 23, "Expr": 5, "For": 2, "If": 11, "Return": 2, "Try": 3} | 25 | 88 | 25 | ["ErrorRaiser", "io.StringIO", "io.BytesIO", "urlsplit", "str", "unquote", "str", "str", "environ.items", "name.replace", "isinstance", "io.BytesIO", "len", "AssertionError", "headers_set.append", "application", "isinstance", "ValueError", "headers_sent.append", "AssertionError", "output.append", "hasattr", "app_iter.c... | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.test_basic", "_.content.gdrive.MyDrive.Phd_Thesis.Data... | The function (raw_interactive) defined within the public class called public.The function start at line 284 and ends at 371. It contains 64 lines of code and it has a cyclomatic complexity of 14. It takes 4 parameters, represented as [284.0], and this function return a value. It declares 25.0 functions, It has 25.0 fun... |
pasteorg_paste | ErrorRaiser | public | 0 | 0 | flush | def flush(self):pass | 1 | 2 | 1 | 6 | 0 | 375 | 376 | 375 | self | [] | None | {} | 0 | 2 | 0 | [] | 9 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625987_abdur_rahmaanj_honeybot.honeybot.plugins.poker_assets.best5_py.hand_rank", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675065_rouxrc_gazouilleur.gazouilleur.lib.filelogger_py.FileLogger.close", "_.content... | The function (flush) defined within the public class called ErrorRaiser.The function start at line 375 and ends at 376. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 9.0 functions calling this function which are ["_.c... |
pasteorg_paste | ErrorRaiser | public | 0 | 0 | write | def write(self, value):if not value:returnraise AssertionError("No errors should be written (got: %r)" % value) | 2 | 5 | 2 | 19 | 0 | 378 | 382 | 378 | self,value | [] | None | {"If": 1, "Return": 1} | 1 | 5 | 1 | ["AssertionError"] | 501 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.gen_pickles_py.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.examples.crawler_py.write_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creatio... | The function (write) defined within the public class called ErrorRaiser.The function start at line 378 and ends at 382. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [378.0] and does not return any value. It declare 1.0 function, It has 1.0 function called in... |
pasteorg_paste | ErrorRaiser | public | 0 | 0 | writelines | def writelines(self, seq):raise AssertionError("No errors should be written (got lines: %s)" % list(seq)) | 1 | 3 | 2 | 17 | 0 | 384 | 386 | 384 | self,seq | [] | None | {} | 2 | 3 | 2 | ["AssertionError", "list"] | 0 | [] | The function (writelines) defined within the public class called ErrorRaiser.The function start at line 384 and ends at 386. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [384.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functi... |
pasteorg_paste | ErrorRaiser | public | 0 | 0 | getvalue | def getvalue(self):return '' | 1 | 2 | 1 | 7 | 0 | 388 | 389 | 388 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 11 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.yaml.__init___py.dump_all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.yaml.__init___py.emit", "_.content.gdrive.MyDrive.Phd_Thesis.... | The function (getvalue) defined within the public class called ErrorRaiser.The function start at line 388 and ends at 389. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 11.0 functions calling this function which a... |
pasteorg_paste | public | public | 0 | 0 | interactive | def interactive(*args, **kw):"""Runs the application interatively, wrapping `raw_interactive` butreturning the output in a formatted way."""status, headers, content, errors = raw_interactive(*args, **kw)full = StringIO()if errors:full.write('Errors:\n')full.write(errors.strip())full.write('\n----------end errors\n')ful... | 3 | 13 | 2 | 101 | 1 | 391 | 407 | 391 | *args,**kw | ['full'] | Returns | {"Assign": 2, "Expr": 8, "For": 1, "If": 1, "Return": 1} | 11 | 17 | 11 | ["raw_interactive", "StringIO", "full.write", "full.write", "errors.strip", "full.write", "full.write", "full.write", "full.write", "full.write", "full.getvalue"] | 22 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969997_anchore_anchore_cli.anchorecli.clients.apiexternal_py.interactive_analyze", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969997_anchore_anchore_cli.anchorecli.clients.apiexternal_py.interactive_evaluate", ... | The function (interactive) defined within the public class called public.The function start at line 391 and ends at 407. It contains 13 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [391.0], and this function return a value. It declares 11.0 functions, It has 11.0 function... |
pasteorg_paste | public | public | 0 | 0 | dump_environ | def dump_environ(environ, start_response):"""Application which simply dumps the current environmentvariables out as a plain text response."""output = []keys = list(environ.keys())keys.sort()for k in keys:v = str(environ[k]).replace("\n","\n")output.append("%s: %s\n" % (k, v))output.append("\n")content_length = environ.... | 3 | 18 | 2 | 149 | 5 | 410 | 431 | 410 | environ,start_response | ['output', 'v', 'headers', 'keys', 'content_length'] | Returns | {"Assign": 7, "Expr": 7, "For": 1, "If": 1, "Return": 1} | 17 | 22 | 17 | ["list", "environ.keys", "keys.sort", "replace", "str", "output.append", "output.append", "environ.get", "output.append", "read", "int", "output.append", "join", "output.encode", "str", "len", "start_response"] | 0 | [] | The function (dump_environ) defined within the public class called public.The function start at line 410 and ends at 431. It contains 18 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [410.0], and this function return a value. It declares 17.0 functions, and It has 17.0 fu... |
pasteorg_paste | public | public | 0 | 0 | send_file | def send_file(filename):warnings.warn("wsgilib.send_file has been moved to paste.fileapp.FileApp",DeprecationWarning, 2)from paste import fileappreturn fileapp.FileApp(filename) | 1 | 6 | 1 | 26 | 0 | 433 | 438 | 433 | filename | [] | Returns | {"Expr": 1, "Return": 1} | 2 | 6 | 2 | ["warnings.warn", "fileapp.FileApp"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914578_biolink_biolink_api.biolink.api.evidence.endpoints.graph_py.EvidenceGraphImage.get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964620_benbusby_whoogle_search.app.routes_py.element", "_.content.gdrive.My... | The function (send_file) defined within the public class called public.The function start at line 433 and ends at 438. It contains 6 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 2.0 functions, It has 2.0 functions called ... |
pasteorg_paste | public | public | 0 | 0 | capture_output.replacement_start_response | def replacement_start_response(status, headers, exc_info=None):if data:data[:] = []data.append(status)data.append(headers)start_response(status, headers, exc_info)return output.write | 2 | 7 | 3 | 45 | 0 | 469 | 475 | 469 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (capture_output.replacement_start_response) defined within the public class called public.The function start at line 469 and ends at 475. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [469.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | capture_output | def capture_output(environ, start_response, application):"""Runs application with environ and start_response, and capturesstatus, headers, and body.Sends status and header, but *not* body.Returns (status,headers, body).Typically this is used like:.. code-block:: pythondef dehtmlifying_middleware(application):def replac... | 6 | 21 | 3 | 104 | 3 | 440 | 488 | 440 | environ,start_response,application | ['app_iter', 'output', 'data'] | Returns | {"Assign": 4, "Expr": 10, "For": 1, "If": 4, "Return": 2, "Try": 1} | 14 | 49 | 14 | ["warnings.warn", "StringIO", "data.append", "data.append", "start_response", "application", "output.write", "hasattr", "app_iter.close", "data.append", "len", "data.append", "data.append", "output.getvalue"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._lint.context_py.LintContext.get_graph", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._lint.linter_py.Linter._generate_file_contents_from_notebo... | The function (capture_output) defined within the public class called public.The function start at line 440 and ends at 488. It contains 21 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [440.0], and this function return a value. It declares 14.0 functions, It has 14.0 funct... |
pasteorg_paste | public | public | 0 | 0 | intercept_output.replacement_start_response | def replacement_start_response(status, headers, exc_info=None):if conditional is not None and not conditional(status, headers):data.append(None)return start_response(status, headers, exc_info)if data:data[:] = []data.append(status)data.append(headers)return output.write | 4 | 9 | 3 | 66 | 0 | 542 | 550 | 542 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (intercept_output.replacement_start_response) defined within the public class called public.The function start at line 542 and ends at 550. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [542.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | intercept_output | def intercept_output(environ, application, conditional=None, start_response=None):"""Runs application with environ and captures status, headers, andbody.None are sent on; you must send them on yourself (unlike``capture_output``)Typically this is used like:.. code-block:: pythondef dehtmlifying_middleware(application):d... | 9 | 24 | 4 | 131 | 3 | 490 | 565 | 490 | environ,application,conditional,start_response | ['app_iter', 'output', 'data'] | Returns | {"Assign": 4, "Expr": 9, "For": 1, "If": 7, "Return": 4, "Try": 1} | 16 | 76 | 16 | ["TypeError", "StringIO", "conditional", "data.append", "start_response", "data.append", "data.append", "application", "output.write", "hasattr", "app_iter.close", "data.append", "len", "data.append", "data.append", "output.getvalue"] | 0 | [] | The function (intercept_output) defined within the public class called public.The function start at line 490 and ends at 565. It contains 24 lines of code and it has a cyclomatic complexity of 9. It takes 4 parameters, represented as [490.0], and this function return a value. It declares 16.0 functions, and It has 16.... |
pasteorg_paste | add_close | public | 0 | 0 | __init__ | def __init__(self, *args, **kw):warnings.warn("The class wsgilib.ResponseHeaderDict has been moved ""to paste.response.HeaderDict",DeprecationWarning, 2)HeaderDict.__init__(self, *args, **kw) | 1 | 6 | 3 | 34 | 0 | 571 | 576 | 571 | self,app_iterable,close_func | [] | None | {"Assign": 4} | 1 | 5 | 1 | ["iter"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called add_close.The function start at line 571 and ends at 576. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [571.0] and does not return any value. It declare 1.0 function, It has 1.0 function called i... |
pasteorg_paste | public | public | 0 | 0 | _warn_deprecated.replacement | def replacement(*args, **kw):warnings.warn("The function wsgilib.%s has been moved to %s"% (new_name, new_path),DeprecationWarning, 2)return new_func(*args, **kw) | 1 | 6 | 2 | 34 | 0 | 581 | 586 | 581 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_warn_deprecated.replacement) defined within the public class called public.The function start at line 581 and ends at 586. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [581.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | _warn_deprecated | def _warn_deprecated(new_func):new_name = new_func.func_namenew_path = new_func.func_globals['__name__'] + '.' + new_namedef replacement(*args, **kw):warnings.warn("The function wsgilib.%s has been moved to %s"% (new_name, new_path),DeprecationWarning, 2)return new_func(*args, **kw)try:replacement.func_name = new_func.... | 2 | 9 | 1 | 39 | 2 | 578 | 591 | 578 | new_func | ['new_path', 'new_name'] | Returns | {"Assign": 3, "Expr": 1, "Return": 2, "Try": 1} | 2 | 14 | 2 | ["warnings.warn", "new_func"] | 0 | [] | The function (_warn_deprecated) defined within the public class called public.The function start at line 578 and ends at 591. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 funct... |
pasteorg_paste | DeprecatedSettings | public | 0 | 1 | _push_object | def _push_object(self, obj):warnings.warn('paste.wsgiwrappers.settings is deprecated: Please use ''paste.wsgiwrappers.WSGIRequest.defaults instead',DeprecationWarning, 3)WSGIResponse.defaults._push_object(obj)StackedObjectProxy._push_object(self, obj) | 1 | 6 | 2 | 34 | 0 | 27 | 32 | 27 | self,obj | [] | None | {"Expr": 3} | 3 | 6 | 3 | ["warnings.warn", "WSGIResponse.defaults._push_object", "StackedObjectProxy._push_object"] | 0 | [] | The function (_push_object) defined within the public class called DeprecatedSettings, that inherit another class.The function start at line 27 and ends at 32. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value. It declares 3.0... |
pasteorg_paste | environ_getter | public | 0 | 0 | __init__ | def __init__(self, key, default='', default_factory=None):self.key = keyself.default = defaultself.default_factory = default_factory | 1 | 4 | 4 | 30 | 0 | 40 | 43 | 40 | self,key,default,default_factory | [] | None | {"Assign": 3} | 0 | 4 | 0 | [] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called environ_getter.The function start at line 40 and ends at 43. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [40.0] and does not return any value. It has 6814.0 functions calling this function which... |
pasteorg_paste | environ_getter | public | 0 | 0 | __get__ | def __get__(self, obj, type=None):if type is None:return selfif self.key not in obj.environ:if self.default_factory:val = obj.environ[self.key] = self.default_factory()return valelse:return self.defaultreturn obj.environ[self.key] | 4 | 10 | 3 | 66 | 0 | 44 | 53 | 44 | self,obj,type | [] | Returns | {"Assign": 1, "If": 3, "Return": 4} | 1 | 10 | 1 | ["self.default_factory"] | 7 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.abstractforeignfield_py.AbstractForeignField.__get__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.foreignfield... | The function (__get__) defined within the public class called environ_getter.The function start at line 44 and ends at 53. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [44.0], and this function return a value. It declare 1.0 function, It has 1.0 function ca... |
pasteorg_paste | environ_getter | public | 0 | 0 | __repr__ | def __repr__(self):return '<Proxy for WSGI environ %r key>' % self.key | 1 | 2 | 1 | 11 | 0 | 55 | 56 | 55 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called environ_getter.The function start at line 55 and ends at 56. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 29.0 functions calling this function which ... |
pasteorg_paste | environ_getter | public | 0 | 0 | __init__ | def __init__(self, environ):self.environ = environ# This isn't "state" really, since the object is derivative:self.headers = EnvironHeaders(environ)defaults = self.defaults._current_obj()self.charset = defaults.get('charset')if self.charset:# There's a charset: params will be coerced to unicode. In that# case, attempt ... | 3 | 12 | 2 | 88 | 0 | 106 | 121 | 106 | self,key,default,default_factory | [] | None | {"Assign": 3} | 0 | 4 | 0 | [] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called environ_getter.The function start at line 106 and ends at 121. It contains 12 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [106.0] and does not return any value. It has 6814.0 functions calling this function w... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | urlvars | def urlvars(self):"""Return any variables matched in the URL (e.g.,``wsgiorg.routing_args``)."""if 'paste.urlvars' in self.environ:return self.environ['paste.urlvars']elif 'wsgiorg.routing_args' in self.environ:return self.environ['wsgiorg.routing_args'][1]else:return {} | 3 | 7 | 1 | 42 | 0 | 129 | 139 | 129 | self | [] | Returns | {"Expr": 1, "If": 2, "Return": 3} | 0 | 11 | 0 | [] | 0 | [] | The function (urlvars) defined within the public class called WSGIRequest.The function start at line 129 and ends at 139. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value.. |
pasteorg_paste | WSGIRequest | public | 0 | 0 | is_xhr | def is_xhr(self):"""Returns a boolean if X-Requested-With is present and a XMLHttpRequest"""return self.environ.get('HTTP_X_REQUESTED_WITH', '') == 'XMLHttpRequest' | 1 | 2 | 1 | 19 | 0 | 142 | 144 | 142 | self | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 3 | 1 | ["self.environ.get"] | 0 | [] | The function (is_xhr) defined within the public class called WSGIRequest.The function start at line 142 and ends at 144. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function cal... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | host | def host(self):"""Host name provided in HTTP_HOST, with fall-back to SERVER_NAME"""return self.environ.get('HTTP_HOST', self.environ.get('SERVER_NAME')) | 1 | 2 | 1 | 24 | 0 | 147 | 149 | 147 | self | [] | Returns | {"Expr": 1, "Return": 1} | 2 | 3 | 2 | ["self.environ.get", "self.environ.get"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_wrapper_py.TestRemoteSQLite.launch_server"] | The function (host) defined within the public class called WSGIRequest.The function start at line 147 and ends at 149. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called ... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | languages | def languages(self):"""Return a list of preferred languages, most preferred first.The list may be empty."""if self._languages is not None:return self._languagesacceptLanguage = self.environ.get('HTTP_ACCEPT_LANGUAGE')langs = ACCEPT_LANGUAGE.parse(self.environ)fallback = self.defaults.get('language', 'en-us')if not fall... | 4 | 14 | 1 | 95 | 0 | 152 | 169 | 152 | self | [] | Returns | {"Assign": 6, "Expr": 2, "If": 3, "Return": 3} | 5 | 18 | 5 | ["self.environ.get", "ACCEPT_LANGUAGE.parse", "self.defaults.get", "langs.append", "langs.index"] | 0 | [] | The function (languages) defined within the public class called WSGIRequest.The function start at line 152 and ends at 169. It contains 14 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It declares 5.0 functions, and It has 5.0 functi... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | _GET | def _GET(self):return parse_dict_querystring(self.environ) | 1 | 2 | 1 | 12 | 0 | 172 | 173 | 172 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["parse_dict_querystring"] | 0 | [] | The function (_GET) defined within the public class called WSGIRequest.The function start at line 172 and ends at 173. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function calle... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | GET | def GET(self):"""Dictionary-like object representing the QUERY_STRINGparameters. Always present, if possibly empty.If the same key is present in the query string multiple times, alist of its values can be retrieved from the ``MultiDict`` viathe ``getall`` method.Returns a ``MultiDict`` container or a ``UnicodeMultiDict... | 2 | 7 | 1 | 44 | 0 | 175 | 192 | 175 | self | [] | Returns | {"Assign": 2, "Expr": 1, "If": 1, "Return": 1} | 2 | 18 | 2 | ["self._GET", "UnicodeMultiDict"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87026889_mtrab_pyworxcloud.pyworxcloud.api_py.LandroidCloudAPI.get_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87026889_mtrab_pyworxcloud.pyworxcloud.api_py.LandroidCloudAPI.get_mowers"] | The function (GET) defined within the public class called WSGIRequest.The function start at line 175 and ends at 192. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called i... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | _POST | def _POST(self):return parse_formvars(self.environ, include_get_vars=False,encoding=self.charset, errors=self.errors) | 1 | 3 | 1 | 28 | 0 | 195 | 197 | 195 | self | [] | Returns | {"Return": 1} | 1 | 3 | 1 | ["parse_formvars"] | 0 | [] | The function (_POST) defined within the public class called WSGIRequest.The function start at line 195 and ends at 197. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function call... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | POST | def POST(self):"""Dictionary-like object representing the POST body.Most values are encoded strings, or unicode strings when``charset`` is set. There may also be FieldStorage objectsrepresenting file uploads. If this is not a POST request, or thebody is not encoded fields (e.g., an XMLRPC request) then thiswill be empt... | 2 | 7 | 1 | 44 | 0 | 199 | 220 | 199 | self | [] | Returns | {"Assign": 2, "Expr": 1, "If": 1, "Return": 1} | 2 | 22 | 2 | ["self._POST", "UnicodeMultiDict"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87026889_mtrab_pyworxcloud.pyworxcloud.__init___py.WorxCloud.reset_blade_counter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87026889_mtrab_pyworxcloud.pyworxcloud.__init___py.WorxCloud.reset_charge_cycle_counte... | The function (POST) defined within the public class called WSGIRequest.The function start at line 199 and ends at 220. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called ... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | params | def params(self):"""Dictionary-like object of keys from POST, GET, URL dictsReturn a key value from the parameters, they are checked in thefollowing order: POST, GET, URLAdditional methods supported:``getlist(key)``Returns a list of all the values by that key, collected fromPOST, GET, URL dictsReturns a ``MultiDict`` c... | 2 | 9 | 1 | 62 | 0 | 223 | 245 | 223 | self | [] | Returns | {"Assign": 2, "Expr": 3, "If": 1, "Return": 1} | 6 | 23 | 6 | ["MultiDict", "params.update", "self._POST", "params.update", "self._GET", "UnicodeMultiDict"] | 9 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77599168_scrapy_plugins_scrapy_zyte_api.scrapy_zyte_api._session_py.LocationSessionConfig.location_params", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77599168_scrapy_plugins_scrapy_zyte_api.scrapy_zyte_api._sess... | The function (params) defined within the public class called WSGIRequest.The function start at line 223 and ends at 245. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 6.0 functions, It has 6.0 functions calle... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | cookies | def cookies(self):"""Dictionary of cookies keyed by cookie name.Just a plain dictionary, may be empty but not None."""return get_cookie_dict(self.environ) | 1 | 2 | 1 | 13 | 0 | 248 | 254 | 248 | self | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 7 | 1 | ["get_cookie_dict"] | 0 | [] | The function (cookies) defined within the public class called WSGIRequest.The function start at line 248 and ends at 254. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function ca... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | determine_browser_charset | def determine_browser_charset(self):"""Determine the encoding as specified by the browser via theContent-Type's charset parameter, if one is set"""charset_match = _CHARSET_RE.search(self.headers.get('Content-Type', ''))if charset_match:return charset_match.group(1) | 2 | 4 | 1 | 33 | 0 | 257 | 264 | 257 | self | [] | Returns | {"Assign": 1, "Expr": 1, "If": 1, "Return": 1} | 3 | 8 | 3 | ["_CHARSET_RE.search", "self.headers.get", "charset_match.group"] | 0 | [] | The function (determine_browser_charset) defined within the public class called WSGIRequest.The function start at line 257 and ends at 264. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 3.0 functions, and It... |
pasteorg_paste | WSGIRequest | public | 0 | 0 | match_accept | def match_accept(self, mimetypes):"""Return a list of specified mime-types that the browser's HTTP Acceptheader allows in the order provided."""return desired_matches(mimetypes, self.environ.get('HTTP_ACCEPT', '*/*')) | 1 | 3 | 2 | 24 | 0 | 266 | 270 | 266 | self,mimetypes | [] | Returns | {"Expr": 1, "Return": 1} | 2 | 5 | 2 | ["desired_matches", "self.environ.get"] | 0 | [] | The function (match_accept) defined within the public class called WSGIRequest.The function start at line 266 and ends at 270. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [266.0], and this function return a value. It declares 2.0 functions, and It has 2.0 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.