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 | EvalContext | public | 0 | 0 | exec_expr | def exec_expr(self, s):out = StringIO()exec_lock.acquire()save_stdout = sys.stdouttry:debugger = _OutputRedirectingPdb(save_stdout)debugger.reset()pdb.set_trace = debugger.set_tracesys.stdout = outtry:code = compile(s, '<web>', "single", 0, 1)exec(code, self.globs, self.namespace)debugger.set_continue()except KeyboardInterrupt:raiseexcept Exception:traceback.print_exc(file=out)debugger.set_continue()finally:sys.stdout = save_stdoutexec_lock.release()return out.getvalue() | 4 | 22 | 2 | 118 | 0 | 26 | 47 | 26 | self,s | [] | Returns | {"Assign": 7, "Expr": 7, "Return": 1, "Try": 2} | 11 | 22 | 11 | ["StringIO", "exec_lock.acquire", "_OutputRedirectingPdb", "debugger.reset", "compile", "exec", "debugger.set_continue", "traceback.print_exc", "debugger.set_continue", "exec_lock.release", "out.getvalue"] | 0 | [] | The function (exec_expr) defined within the public class called EvalContext.The function start at line 26 and ends at 47. It contains 22 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [26.0], and this function return a value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["StringIO", "exec_lock.acquire", "_OutputRedirectingPdb", "debugger.reset", "compile", "exec", "debugger.set_continue", "traceback.print_exc", "debugger.set_continue", "exec_lock.release", "out.getvalue"]. |
pasteorg_paste | EvalContext | public | 0 | 0 | __init__ | def __init__(self, out):self.__out = outpdb.Pdb.__init__(self) | 1 | 3 | 2 | 20 | 0 | 56 | 58 | 56 | self,namespace,globs | [] | None | {"Assign": 2} | 0 | 3 | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called EvalContext.The function start at line 56 and ends at 58. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [56.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | _OutputRedirectingPdb | protected | 0 | 1 | trace_dispatch | def trace_dispatch(self, *args):# Redirect stdout to the given stream.save_stdout = sys.stdoutsys.stdout = self.__out# Call Pdb's trace dispatch method.try:return pdb.Pdb.trace_dispatch(self, *args)finally:sys.stdout = save_stdout | 2 | 7 | 2 | 41 | 0 | 60 | 68 | 60 | self,*args | [] | Returns | {"Assign": 3, "Return": 1, "Try": 1} | 1 | 9 | 1 | ["pdb.Pdb.trace_dispatch"] | 0 | [] | The function (trace_dispatch) defined within the protected class called _OutputRedirectingPdb, that inherit another class.The function start at line 60 and ends at 68. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [60.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["pdb.Pdb.trace_dispatch"]. |
pasteorg_paste | public | public | 0 | 0 | cmp | def cmp(a, b):return (a > b) - (a < b) | 1 | 2 | 2 | 19 | 0 | 48 | 49 | 48 | a,b | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 32 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.utils_py.deque.__cmp__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.ec2.client_py.Signature.old_signing_text", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637706_disqus_gutter.gutter.client.arguments.variables_py.String.__cmp__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.enumvalue_py.EnumValue.compare_sort", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.field_py.Field.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.node_py.Node.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.node_py.Node.compare_sort", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.templatetypeparameter_py.TemplateNonTypeParameter.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.templatetypeparameter_py.TemplateTypeParameter.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.union_py.Union.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.tree_py.Tree.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3672733_nose_devs_nose.distribute_setup_py._extractall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3674272_myano_jenni.modules.unostats_py.rankings", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706154_collective_buildout_python.src.scripts.ez_setup_1_x_py._extractall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720326_openxc_openxc_python.fabfile_py.compare_versions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334892_f4pga_prjxray.utils.cmp_py.cmp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.arch_py.vercmp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.gentoo_py.vercmp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.maven_py.Restriction.__cmp__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.maven_py.VersionRange.__cmp__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortNumericAlpha", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortRelease", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortReleaseAlpha", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortReleaseLabelCount", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortReleaseNumeric"] | The function (cmp) defined within the public class called public.The function start at line 48 and ends at 49. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [48.0], and this function return a value. It has 32.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.utils_py.deque.__cmp__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.ec2.client_py.Signature.old_signing_text", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637706_disqus_gutter.gutter.client.arguments.variables_py.String.__cmp__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.enumvalue_py.EnumValue.compare_sort", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.field_py.Field.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.node_py.Node.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.node_py.Node.compare_sort", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.templatetypeparameter_py.TemplateNonTypeParameter.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.templatetypeparameter_py.TemplateTypeParameter.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.nodes.union_py.Union.compare_same", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.tree_py.Tree.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3672733_nose_devs_nose.distribute_setup_py._extractall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3674272_myano_jenni.modules.unostats_py.rankings", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706154_collective_buildout_python.src.scripts.ez_setup_1_x_py._extractall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3720326_openxc_openxc_python.fabfile_py.compare_versions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334892_f4pga_prjxray.utils.cmp_py.cmp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.arch_py.vercmp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.gentoo_py.vercmp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.maven_py.Restriction.__cmp__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.src.univers.maven_py.VersionRange.__cmp__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortNumericAlpha", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortRelease", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortReleaseAlpha", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortReleaseLabelCount", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69695072_nexb_univers.tests.nuget.test_nuget_semver_201_spec_py.test_SemVerSortReleaseNumeric"]. |
pasteorg_paste | public | public | 0 | 0 | html_quote | def html_quote(v):"""Escape HTML characters, plus translate None to ''"""if v is None:return ''return html.escape(str(v), 1) | 2 | 4 | 1 | 25 | 0 | 51 | 57 | 51 | v | [] | Returns | {"Expr": 1, "If": 1, "Return": 2} | 2 | 7 | 2 | ["html.escape", "str"] | 11 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.get_debug_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.make_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.preserve_whitespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py._str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.html__get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.attr"] | The function (html_quote) defined within the public class called public.The function start at line 51 and ends at 57. 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 2.0 functions, It has 2.0 functions called inside which are ["html.escape", "str"], It has 11.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.get_debug_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.make_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.preserve_whitespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py._str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.html__get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.attr"]. |
pasteorg_paste | public | public | 0 | 0 | preserve_whitespace | def preserve_whitespace(v, quote=True):"""Quote a value for HTML, preserving whitespace (translatingnewlines to ``<br>`` and multiple spaces to use `` ``).If ``quote`` is true, then the value will be HTML quoted first."""if quote:v = html_quote(v)v = v.replace('\n', '<br>\n')v = re.sub(r'()(+)', _repl_nbsp, v)v = re.sub(r'(\n)( +)', _repl_nbsp, v)v = re.sub(r'^()( +)', _repl_nbsp, v)return '<code>%s</code>' % v | 2 | 8 | 2 | 72 | 1 | 59 | 72 | 59 | v,quote | ['v'] | Returns | {"Assign": 5, "Expr": 1, "If": 1, "Return": 1} | 5 | 14 | 5 | ["html_quote", "v.replace", "re.sub", "re.sub", "re.sub"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.EvalException.exec_input", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.make_table"] | The function (preserve_whitespace) defined within the public class called public.The function start at line 59 and ends at 72. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [59.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["html_quote", "v.replace", "re.sub", "re.sub", "re.sub"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.EvalException.exec_input", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.make_table"]. |
pasteorg_paste | public | public | 0 | 0 | _repl_nbsp | def _repl_nbsp(match):if len(match.group(2)) == 1:return ' 'return match.group(1) + ' ' * (len(match.group(2))-1) + ' ' | 2 | 4 | 1 | 45 | 0 | 74 | 77 | 74 | match | [] | Returns | {"If": 1, "Return": 2} | 5 | 4 | 5 | ["len", "match.group", "match.group", "len", "match.group"] | 0 | [] | The function (_repl_nbsp) defined within the public class called public.The function start at line 74 and ends at 77. 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 5.0 functions, and It has 5.0 functions called inside which are ["len", "match.group", "match.group", "len", "match.group"]. |
pasteorg_paste | public | public | 0 | 0 | simplecatcher.simplecatcher_app | def simplecatcher_app(environ, start_response):try:return application(environ, start_response)except Exception:out = StringIO()traceback.print_exc(file=out)start_response('500 Server Error', [('content-type', 'text/html')], sys.exc_info())res = out.getvalue()return ['<h3>Error</h3><pre>%s</pre>'% html_quote(res)] | 2 | 12 | 2 | 66 | 0 | 84 | 95 | 84 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (simplecatcher.simplecatcher_app) defined within the public class called public.The function start at line 84 and ends at 95. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [84.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | simplecatcher | def simplecatcher(application):"""A simple middleware that catches errors and turns them into simpletracebacks."""def simplecatcher_app(environ, start_response):try:return application(environ, start_response)except Exception:out = StringIO()traceback.print_exc(file=out)start_response('500 Server Error', [('content-type', 'text/html')], sys.exc_info())res = out.getvalue()return ['<h3>Error</h3><pre>%s</pre>'% html_quote(res)]return simplecatcher_app | 1 | 3 | 1 | 10 | 2 | 79 | 96 | 79 | application | ['out', 'res'] | Returns | {"Assign": 2, "Expr": 3, "Return": 3, "Try": 1} | 7 | 18 | 7 | ["application", "StringIO", "traceback.print_exc", "start_response", "sys.exc_info", "out.getvalue", "html_quote"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.wsgiapp"] | The function (simplecatcher) defined within the public class called public.The function start at line 79 and ends at 96. 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 declares 7.0 functions, It has 7.0 functions called inside which are ["application", "StringIO", "traceback.print_exc", "start_response", "sys.exc_info", "out.getvalue", "html_quote"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.wsgiapp"]. |
pasteorg_paste | public | public | 0 | 0 | wsgiapp.wsgiapp.decorator.wsgiapp.wsgiapp.decorator.wsgiapp_wrapper.application | def application(environ, start_response):form = wsgilib.parse_formvars(environ,include_get_vars=True)headers = response.HeaderDict({'content-type': 'text/html', 'status': '200 OK'})form['environ'] = environform['headers'] = headersres = func(*args, **form.mixed())status = headers.pop('status')start_response(status, headers.headeritems())return [res] | 1 | 12 | 2 | 83 | 0 | 113 | 124 | 113 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (wsgiapp.wsgiapp.decorator.wsgiapp.wsgiapp.decorator.wsgiapp_wrapper.application) defined within the public class called public.The function start at line 113 and ends at 124. It contains 12 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [113.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | wsgiapp.wsgiapp.decorator.wsgiapp_wrapper | def wsgiapp_wrapper(*args):# we get 3 args when this is a method, two when it is# a function :(if len(args) == 3:environ = args[1]start_response = args[2]args = [args[0]]else:environ, start_response = argsargs = []def application(environ, start_response):form = wsgilib.parse_formvars(environ,include_get_vars=True)headers = response.HeaderDict({'content-type': 'text/html', 'status': '200 OK'})form['environ'] = environform['headers'] = headersres = func(*args, **form.mixed())status = headers.pop('status')start_response(status, headers.headeritems())return [res]app = httpexceptions.make_middleware(application)app = simplecatcher(app)return app(environ, start_response) | 2 | 12 | 1 | 68 | 0 | 103 | 127 | 103 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (wsgiapp.wsgiapp.decorator.wsgiapp_wrapper) defined within the public class called public.The function start at line 103 and ends at 127. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | wsgiapp.decorator | def decorator(func):def wsgiapp_wrapper(*args):# we get 3 args when this is a method, two when it is# a function :(if len(args) == 3:environ = args[1]start_response = args[2]args = [args[0]]else:environ, start_response = argsargs = []def application(environ, start_response):form = wsgilib.parse_formvars(environ,include_get_vars=True)headers = response.HeaderDict({'content-type': 'text/html', 'status': '200 OK'})form['environ'] = environform['headers'] = headersres = func(*args, **form.mixed())status = headers.pop('status')start_response(status, headers.headeritems())return [res]app = httpexceptions.make_middleware(application)app = simplecatcher(app)return app(environ, start_response)wsgiapp_wrapper.exposed = Truereturn wsgiapp_wrapper | 1 | 4 | 1 | 14 | 0 | 102 | 129 | 102 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (wsgiapp.decorator) defined within the public class called public.The function start at line 102 and ends at 129. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | wsgiapp | def wsgiapp():"""Turns a function or method into a WSGI application."""def decorator(func):def wsgiapp_wrapper(*args):# we get 3 args when this is a method, two when it is# a function :(if len(args) == 3:environ = args[1]start_response = args[2]args = [args[0]]else:environ, start_response = argsargs = []def application(environ, start_response):form = wsgilib.parse_formvars(environ,include_get_vars=True)headers = response.HeaderDict({'content-type': 'text/html', 'status': '200 OK'})form['environ'] = environform['headers'] = headersres = func(*args, **form.mixed())status = headers.pop('status')start_response(status, headers.headeritems())return [res]app = httpexceptions.make_middleware(application)app = simplecatcher(app)return app(environ, start_response)wsgiapp_wrapper.exposed = Truereturn wsgiapp_wrapperreturn decorator | 1 | 3 | 0 | 9 | 8 | 98 | 130 | 98 | ['form', 'args', 'res', 'app', 'status', 'headers', 'start_response', 'environ'] | Returns | {"Assign": 14, "Expr": 2, "If": 1, "Return": 4} | 11 | 33 | 11 | ["len", "wsgilib.parse_formvars", "response.HeaderDict", "func", "form.mixed", "headers.pop", "start_response", "headers.headeritems", "httpexceptions.make_middleware", "simplecatcher", "app"] | 0 | [] | The function (wsgiapp) defined within the public class called public.The function start at line 98 and ends at 130. 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 declares 11.0 functions, and It has 11.0 functions called inside which are ["len", "wsgilib.parse_formvars", "response.HeaderDict", "func", "form.mixed", "headers.pop", "start_response", "headers.headeritems", "httpexceptions.make_middleware", "simplecatcher", "app"]. | |
pasteorg_paste | public | public | 0 | 0 | get_debug_info.debug_info_replacement | def debug_info_replacement(self, **form):try:if 'debugcount' not in form:raise ValueError('You must provide a debugcount parameter')debugcount = form.pop('debugcount')try:debugcount = int(debugcount)except ValueError:raise ValueError('Bad value for debugcount')if debugcount not in self.debug_infos:raise ValueError('Debug %s no longer found (maybe it has expired?)'% debugcount)debug_info = self.debug_infos[debugcount]return func(self, debug_info=debug_info, **form)except ValueError as e:form['headers']['status'] = '500 Server Error'return '<html>There was an error: %s</html>' % html_quote(e) | 5 | 18 | 2 | 101 | 0 | 138 | 155 | 138 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (get_debug_info.debug_info_replacement) defined within the public class called public.The function start at line 138 and ends at 155. It contains 18 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [138.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | get_debug_info | def get_debug_info(func):"""A decorator (meant to be used under ``wsgiapp()``) that resolvesthe ``debugcount`` variable to a ``DebugInfo`` object (or gives anerror if it can't be found)."""def debug_info_replacement(self, **form):try:if 'debugcount' not in form:raise ValueError('You must provide a debugcount parameter')debugcount = form.pop('debugcount')try:debugcount = int(debugcount)except ValueError:raise ValueError('Bad value for debugcount')if debugcount not in self.debug_infos:raise ValueError('Debug %s no longer found (maybe it has expired?)'% debugcount)debug_info = self.debug_infos[debugcount]return func(self, debug_info=debug_info, **form)except ValueError as e:form['headers']['status'] = '500 Server Error'return '<html>There was an error: %s</html>' % html_quote(e)return debug_info_replacement | 1 | 3 | 1 | 10 | 2 | 132 | 156 | 132 | func | ['debugcount', 'debug_info'] | Returns | {"Assign": 4, "Expr": 1, "If": 2, "Return": 3, "Try": 2} | 7 | 25 | 7 | ["ValueError", "form.pop", "int", "ValueError", "ValueError", "func", "html_quote"] | 0 | [] | The function (get_debug_info) defined within the public class called public.The function start at line 132 and ends at 156. 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 declares 7.0 functions, and It has 7.0 functions called inside which are ["ValueError", "form.pop", "int", "ValueError", "ValueError", "func", "html_quote"]. |
pasteorg_paste | public | public | 0 | 0 | get_debug_count | def get_debug_count(environ):"""Return the unique debug count for the current request"""if 'paste.evalexception.debug_count' in environ:return environ['paste.evalexception.debug_count']else:environ['paste.evalexception.debug_count'] = _next = next(debug_counter)return _next | 2 | 6 | 1 | 31 | 1 | 159 | 167 | 159 | environ | ['_next'] | Returns | {"Assign": 1, "Expr": 1, "If": 1, "Return": 2} | 1 | 9 | 1 | ["next"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.EvalException.respond", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.registry_py.StackedObjectRestorer.get_request_id"] | The function (get_debug_count) defined within the public class called public.The function start at line 159 and ends at 167. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["next"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.EvalException.respond", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.registry_py.StackedObjectRestorer.get_request_id"]. |
pasteorg_paste | EvalException | public | 0 | 0 | __init__ | def __init__(self, application, global_conf=None, xmlhttp_key=None):self.application = applicationself.debug_infos = {}if xmlhttp_key is None:if global_conf is None:xmlhttp_key = '_'else:xmlhttp_key = global_conf.get('xmlhttp_key', '_')self.xmlhttp_key = xmlhttp_key | 3 | 10 | 4 | 56 | 0 | 171 | 180 | 171 | self,application,global_conf,xmlhttp_key | [] | None | {"Assign": 5, "If": 2} | 1 | 10 | 1 | ["global_conf.get"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called EvalException.The function start at line 171 and ends at 180. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [171.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["global_conf.get"], It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | EvalException | public | 0 | 0 | __call__ | def __call__(self, environ, start_response):assert not environ['wsgi.multiprocess'], ("The EvalException middleware is not usable in a ""multi-process environment")environ['paste.evalexception'] = selfif environ.get('PATH_INFO', '').startswith('/_debug/'):return self.debug(environ, start_response)else:return self.respond(environ, start_response) | 2 | 9 | 3 | 61 | 0 | 182 | 190 | 182 | self,environ,start_response | [] | Returns | {"Assign": 1, "If": 1, "Return": 2} | 4 | 9 | 4 | ["startswith", "environ.get", "self.debug", "self.respond"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"] | The function (__call__) defined within the public class called EvalException.The function start at line 182 and ends at 190. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [182.0], and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["startswith", "environ.get", "self.debug", "self.respond"], It has 43.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]. |
pasteorg_paste | EvalException | public | 0 | 0 | debug | def debug(self, environ, start_response):assert request.path_info_pop(environ) == '_debug'next_part = request.path_info_pop(environ)method = getattr(self, next_part, None)if not method:exc = httpexceptions.HTTPNotFound('%r not found when parsing %r'% (next_part, wsgilib.construct_url(environ)))return exc.wsgi_application(environ, start_response)if not getattr(method, 'exposed', False):exc = httpexceptions.HTTPForbidden('%r not allowed' % next_part)return exc.wsgi_application(environ, start_response)return method(environ, start_response) | 3 | 14 | 3 | 105 | 0 | 192 | 205 | 192 | self,environ,start_response | [] | Returns | {"Assign": 4, "If": 2, "Return": 3} | 10 | 14 | 10 | ["request.path_info_pop", "request.path_info_pop", "getattr", "httpexceptions.HTTPNotFound", "wsgilib.construct_url", "exc.wsgi_application", "getattr", "httpexceptions.HTTPForbidden", "exc.wsgi_application", "method"] | 129 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI._osm", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.PgctlApp.__locked_handle_service_change_state", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.debug_py.trace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.service_py.Service.__get_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.service_py.Service.flock", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent._import_tcollector", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent._maybe_connect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.on_hostname", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.on_initialized", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.stop", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952372_thebjorn_pydeps.pydeps.arguments_py.Arguments.write_default_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.database_py.Database.create_symbol", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.database_py.Database.rename_symbol", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.extension_py.Extension.debug", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.extension_py.Extension.format_page", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.formatter_py.Formatter.parse_toplevel_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.tree_py.Page.__format_symbols", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.tree_py.Page.__resolve_symbol", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.__init___py.get_extension_classes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.c_extension_py.ClangScanner.__parse_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.c_extension_py.ClangScanner.scan", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.utils_py.CCommentExtractor.parse_comments"] | The function (debug) defined within the public class called EvalException.The function start at line 192 and ends at 205. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [192.0], and this function return a value. It declares 10.0 functions, It has 10.0 functions called inside which are ["request.path_info_pop", "request.path_info_pop", "getattr", "httpexceptions.HTTPNotFound", "wsgilib.construct_url", "exc.wsgi_application", "getattr", "httpexceptions.HTTPForbidden", "exc.wsgi_application", "method"], It has 129.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI._osm", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.cli_py.PgctlApp.__locked_handle_service_change_state", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.debug_py.trace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.service_py.Service.__get_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.service_py.Service.flock", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent._import_tcollector", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent._maybe_connect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.on_hostname", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.on_initialized", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.TcollectorAgent.stop", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.eos.tcollector_agent_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952372_thebjorn_pydeps.pydeps.arguments_py.Arguments.write_default_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.database_py.Database.create_symbol", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.database_py.Database.rename_symbol", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.extension_py.Extension.debug", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.extension_py.Extension.format_page", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.formatter_py.Formatter.parse_toplevel_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.tree_py.Page.__format_symbols", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.core.tree_py.Page.__resolve_symbol", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.__init___py.get_extension_classes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.c_extension_py.ClangScanner.__parse_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.c_extension_py.ClangScanner.scan", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.utils_py.CCommentExtractor.parse_comments"]. |
pasteorg_paste | EvalException | public | 0 | 0 | media | def media(self, environ, start_response):"""Static path where images and other files live"""app = urlparser.StaticURLParser(os.path.join(os.path.dirname(__file__), 'media'))return app(environ, start_response) | 1 | 4 | 3 | 41 | 0 | 207 | 213 | 207 | self,environ,start_response | [] | Returns | {"Assign": 1, "Expr": 1, "Return": 1} | 4 | 7 | 4 | ["urlparser.StaticURLParser", "os.path.join", "os.path.dirname", "app"] | 0 | [] | The function (media) defined within the public class called EvalException.The function start at line 207 and ends at 213. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [207.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["urlparser.StaticURLParser", "os.path.join", "os.path.dirname", "app"]. |
pasteorg_paste | EvalException | public | 0 | 0 | mochikit | def mochikit(self, environ, start_response):"""Static path where MochiKit lives"""app = urlparser.StaticURLParser(os.path.join(os.path.dirname(__file__), 'mochikit'))return app(environ, start_response) | 1 | 4 | 3 | 41 | 0 | 216 | 222 | 216 | self,environ,start_response | [] | Returns | {"Assign": 1, "Expr": 1, "Return": 1} | 4 | 7 | 4 | ["urlparser.StaticURLParser", "os.path.join", "os.path.dirname", "app"] | 0 | [] | The function (mochikit) defined within the public class called EvalException.The function start at line 216 and ends at 222. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [216.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["urlparser.StaticURLParser", "os.path.join", "os.path.dirname", "app"]. |
pasteorg_paste | EvalException | public | 0 | 0 | summary | def summary(self, environ, start_response):"""Returns a JSON-format summary of all the cachedexception reports"""start_response('200 OK', [('Content-type', 'text/x-json')])data = [];items = self.debug_infos.values()items.sort(lambda a, b: cmp(a.created, b.created))data = [item.json() for item in items]return [repr(data)] | 2 | 7 | 3 | 76 | 0 | 225 | 235 | 225 | self,environ,start_response | [] | Returns | {"Assign": 3, "Expr": 3, "Return": 1} | 6 | 11 | 6 | ["start_response", "self.debug_infos.values", "items.sort", "cmp", "item.json", "repr"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95255939_DIRACGrid_diracx.diracx_client.src.diracx.client.patches.jobs.aio_py.JobsOperations.summary", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95255939_DIRACGrid_diracx.diracx_client.src.diracx.client.patches.jobs.sync_py.JobsOperations.summary"] | The function (summary) defined within the public class called EvalException.The function start at line 225 and ends at 235. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [225.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions called inside which are ["start_response", "self.debug_infos.values", "items.sort", "cmp", "item.json", "repr"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95255939_DIRACGrid_diracx.diracx_client.src.diracx.client.patches.jobs.aio_py.JobsOperations.summary", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95255939_DIRACGrid_diracx.diracx_client.src.diracx.client.patches.jobs.sync_py.JobsOperations.summary"]. |
pasteorg_paste | EvalException | public | 0 | 0 | view | def view(self, environ, start_response):"""View old exception reports"""id = int(request.path_info_pop(environ))if id not in self.debug_infos:start_response('500 Server Error',[('Content-type', 'text/html')])return ["Traceback by id %s does not exist (maybe ""the server has been restarted?)"% id]debug_info = self.debug_infos[id]return debug_info.wsgi_application(environ, start_response) | 2 | 12 | 3 | 65 | 0 | 238 | 252 | 238 | self,environ,start_response | [] | Returns | {"Assign": 2, "Expr": 2, "If": 1, "Return": 2} | 4 | 15 | 4 | ["int", "request.path_info_pop", "start_response", "debug_info.wsgi_application"] | 78 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.authentication.test_decorators_py.DecoratorsTestCase.test_worker_token_required", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3568546_onnxbot_onnx_fb_universe.test.model_defs.densenet_py.DenseNet.forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3568546_onnxbot_onnx_fb_universe.test.test_caffe2_py.TestCaffe2Backend.run_word_language_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3568546_onnxbot_onnx_fb_universe.test.test_caffe2_py.TestCaffe2Backend.test_dynamic_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.me", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916995_moble_quaternion.src.quaternion.__init___py.as_float_array", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916995_moble_quaternion.src.quaternion.__init___py.as_spinor_array", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916995_moble_quaternion.tests.test_quaternion_py.test_numpy_save_and_load", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957925_pallets_flask_sqlalchemy.examples.flaskr.flaskr.auth.views_py.login_required", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.fletcher._algorithms_py._buffer_to_view", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.fletcher._algorithms_py._extract_data_buffer_as_np_array", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.fletcher.algorithms.string_py._extract_string_buffers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.fletcher.string_array_py.buffers_as_arrays", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.tests.test_numba_integration_py.test_decode_example", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.join_struct_arrays", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.profiling_py.view_profile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.storage._chunks_py._safe_ids", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69613475_pallets_eco_flask_sqlalchemy.examples.flaskr.flaskr.auth.views_py.login_required", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69650994_krakenrf_krakensdr_doa._sdr._receiver.kraken_sdr_receiver_py.ReceiverRTLSDR.get_iq_online", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70258536_basetenlabs_truss.truss.templates.trtllm_audio.packages.whisper_trt.utils_py.remove_tensor_padding", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.examples.data_efficiency.analyze_data_py.metric_total_vocab_freq", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.finetune_pulse_7bv8_use_dataset_py.model_provider", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.data_py.broadcast_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_layers_py.test_column_parallel_linear", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_layers_py.test_row_parallel_linear"] | The function (view) defined within the public class called EvalException.The function start at line 238 and ends at 252. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [238.0], and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["int", "request.path_info_pop", "start_response", "debug_info.wsgi_application"], It has 78.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.tests.authentication.test_decorators_py.DecoratorsTestCase.test_worker_token_required", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3568546_onnxbot_onnx_fb_universe.test.model_defs.densenet_py.DenseNet.forward", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3568546_onnxbot_onnx_fb_universe.test.test_caffe2_py.TestCaffe2Backend.run_word_language_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3568546_onnxbot_onnx_fb_universe.test.test_caffe2_py.TestCaffe2Backend.test_dynamic_sizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.me", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916995_moble_quaternion.src.quaternion.__init___py.as_float_array", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916995_moble_quaternion.src.quaternion.__init___py.as_spinor_array", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916995_moble_quaternion.tests.test_quaternion_py.test_numpy_save_and_load", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957925_pallets_flask_sqlalchemy.examples.flaskr.flaskr.auth.views_py.login_required", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.fletcher._algorithms_py._buffer_to_view", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.fletcher._algorithms_py._extract_data_buffer_as_np_array", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.fletcher.algorithms.string_py._extract_string_buffers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.fletcher.string_array_py.buffers_as_arrays", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963092_xhochy_fletcher.tests.test_numba_integration_py.test_decode_example", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.join_struct_arrays", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.profiling_py.view_profile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.storage._chunks_py._safe_ids", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69613475_pallets_eco_flask_sqlalchemy.examples.flaskr.flaskr.auth.views_py.login_required", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69650994_krakenrf_krakensdr_doa._sdr._receiver.kraken_sdr_receiver_py.ReceiverRTLSDR.get_iq_online", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70258536_basetenlabs_truss.truss.templates.trtllm_audio.packages.whisper_trt.utils_py.remove_tensor_padding", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.examples.data_efficiency.analyze_data_py.metric_total_vocab_freq", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.finetune_pulse_7bv8_use_dataset_py.model_provider", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.data_py.broadcast_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_layers_py.test_column_parallel_linear", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_layers_py.test_row_parallel_linear"]. |
pasteorg_paste | EvalException | public | 0 | 0 | make_view_url | def make_view_url(self, environ, base_path, count):return base_path + '/_debug/view/%s' % count | 1 | 2 | 4 | 17 | 0 | 255 | 256 | 255 | self,environ,base_path,count | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (make_view_url) defined within the public class called EvalException.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 4 parameters, represented as [255.0], and this function return a value.. |
pasteorg_paste | EvalException | public | 0 | 0 | show_frame | def show_frame(self, tbid, debug_info, **kw):frame = debug_info.frame(int(tbid))vars = frame.tb_frame.f_localsif vars:registry.restorer.restoration_begin(debug_info.counter)local_vars = make_table(vars)registry.restorer.restoration_end()else:local_vars = 'No local vars'return input_form(tbid, debug_info) + local_vars | 2 | 10 | 4 | 70 | 0 | 260 | 269 | 260 | self,tbid,debug_info,**kw | [] | Returns | {"Assign": 4, "Expr": 2, "If": 1, "Return": 1} | 6 | 10 | 6 | ["debug_info.frame", "int", "registry.restorer.restoration_begin", "make_table", "registry.restorer.restoration_end", "input_form"] | 0 | [] | The function (show_frame) defined within the public class called EvalException.The function start at line 260 and ends at 269. It contains 10 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [260.0], and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["debug_info.frame", "int", "registry.restorer.restoration_begin", "make_table", "registry.restorer.restoration_end", "input_form"]. |
pasteorg_paste | EvalException | public | 0 | 0 | exec_input | def exec_input(self, tbid, debug_info, input, **kw):if not input.strip():return ''input = input.rstrip() + '\n'frame = debug_info.frame(int(tbid))vars = frame.tb_frame.f_localsglob_vars = frame.tb_frame.f_globalscontext = evalcontext.EvalContext(vars, glob_vars)registry.restorer.restoration_begin(debug_info.counter)output = context.exec_expr(input)registry.restorer.restoration_end()input_html = formatter.str2html(input)return ('<code style="color: #060">>>></code> ''<code>%s</code><br>\n%s'% (preserve_whitespace(input_html, quote=False), preserve_whitespace(output))) | 2 | 16 | 5 | 122 | 0 | 275 | 290 | 275 | self,tbid,debug_info,input,**kw | [] | Returns | {"Assign": 7, "Expr": 2, "If": 1, "Return": 2} | 11 | 16 | 11 | ["input.strip", "input.rstrip", "debug_info.frame", "int", "evalcontext.EvalContext", "registry.restorer.restoration_begin", "context.exec_expr", "registry.restorer.restoration_end", "formatter.str2html", "preserve_whitespace", "preserve_whitespace"] | 0 | [] | The function (exec_input) defined within the public class called EvalException.The function start at line 275 and ends at 290. It contains 16 lines of code and it has a cyclomatic complexity of 2. It takes 5 parameters, represented as [275.0], and this function return a value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["input.strip", "input.rstrip", "debug_info.frame", "int", "evalcontext.EvalContext", "registry.restorer.restoration_begin", "context.exec_expr", "registry.restorer.restoration_end", "formatter.str2html", "preserve_whitespace", "preserve_whitespace"]. |
pasteorg_paste | public | public | 0 | 0 | respond.detect_start_response | def detect_start_response(status, headers, exc_info=None):try:return start_response(status, headers, exc_info)except Exception:raiseelse:started.append(True) | 2 | 7 | 3 | 34 | 0 | 301 | 307 | 301 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (respond.detect_start_response) defined within the public class called public.The function start at line 301 and ends at 307. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [301.0] and does not return any value.. |
pasteorg_paste | EvalException | public | 0 | 0 | respond | def respond(self, environ, start_response):if environ.get('paste.throw_errors'):return self.application(environ, start_response)base_path = request.construct_url(environ, with_path_info=False,with_query_string=False)environ['paste.throw_errors'] = Truestarted = []def detect_start_response(status, headers, exc_info=None):try:return start_response(status, headers, exc_info)except Exception:raiseelse:started.append(True)try:__traceback_supplement__ = errormiddleware.Supplement, self, environapp_iter = self.application(environ, detect_start_response)try:return_iter = list(app_iter)return return_iterfinally:if hasattr(app_iter, 'close'):app_iter.close()except Exception:exc_info = sys.exc_info()for expected in environ.get('paste.expected_exceptions', []):if isinstance(exc_info[1], expected):raise# Tell the Registry to save its StackedObjectProxies current state# for later restorationregistry.restorer.save_registry_state(environ)count = get_debug_count(environ)view_uri = self.make_view_url(environ, base_path, count)if not started:headers = [('content-type', 'text/html')]headers.append(('X-Debug-URL', view_uri))start_response('500 Internal Server Error', headers, exc_info)msg = 'Debug at: %s\n' % view_urienviron['wsgi.errors'].write(msg)exc_data = collector.collect_exception(*exc_info)debug_info = DebugInfo(count, exc_info, exc_data, base_path, environ, view_uri)assert count not in self.debug_infosself.debug_infos[count] = debug_infoif self.xmlhttp_key:get_vars = request.parse_querystring(environ)if dict(get_vars).get(self.xmlhttp_key):exc_data = collector.collect_exception(*exc_info)html = formatter.format_html(exc_data, include_hidden_frames=False,include_reusable=False, show_extra_data=False)return [html]# @@: it would be nice to deal with bad content types herereturn debug_info.content() | 10 | 47 | 3 | 311 | 0 | 294 | 354 | 294 | self,environ,start_response | [] | Returns | {"Assign": 17, "Expr": 6, "For": 1, "If": 6, "Return": 5, "Try": 3} | 26 | 61 | 26 | ["environ.get", "self.application", "request.construct_url", "start_response", "started.append", "self.application", "list", "hasattr", "app_iter.close", "sys.exc_info", "environ.get", "isinstance", "registry.restorer.save_registry_state", "get_debug_count", "self.make_view_url", "headers.append", "start_response", "write", "collector.collect_exception", "DebugInfo", "request.parse_querystring", "get", "dict", "collector.collect_exception", "formatter.format_html", "debug_info.content"] | 19 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567810_openfisca_openfisca_web_api.openfisca_web_api.controllers.formula_py.api1_formula", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567810_openfisca_openfisca_web_api.openfisca_web_api.controllers.formula_py.api2_formula", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_brokerclient_py.BrokerClientTests.test_makeRequest_connected", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_brokerclient_py.BrokerClientTests.test_makeRequest_connecting", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_client_py.TestKafkaClient.test_send_fetch_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_client_py.TestKafkaClient.test_send_offset_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_client_py.TestKafkaClient.test_send_produce_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.junit_processing.test_check_failing_spans_py.test_all_failing_tests_quarantined", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.junit_processing.test_check_failing_spans_py.test_no_failing_tests_quarantined", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.junit_processing.test_check_failing_spans_py.test_some_failing_tests_quarantined", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.junit_processing.test_check_failing_spans_py.test_status_code_resp_not_200", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.test_detector_py.test_get_head_sha_circle_ci", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_create_single_pull", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_on_destination_branch_raises_an_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_update_keep_title_and_body", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_update_no_rebase", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_without_common_commit_raises_an_error"] | The function (respond) defined within the public class called EvalException.The function start at line 294 and ends at 354. It contains 47 lines of code and it has a cyclomatic complexity of 10. It takes 3 parameters, represented as [294.0], and this function return a value. It declares 26.0 functions, It has 26.0 functions called inside which are ["environ.get", "self.application", "request.construct_url", "start_response", "started.append", "self.application", "list", "hasattr", "app_iter.close", "sys.exc_info", "environ.get", "isinstance", "registry.restorer.save_registry_state", "get_debug_count", "self.make_view_url", "headers.append", "start_response", "write", "collector.collect_exception", "DebugInfo", "request.parse_querystring", "get", "dict", "collector.collect_exception", "formatter.format_html", "debug_info.content"], It has 19.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567810_openfisca_openfisca_web_api.openfisca_web_api.controllers.formula_py.api1_formula", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567810_openfisca_openfisca_web_api.openfisca_web_api.controllers.formula_py.api2_formula", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_brokerclient_py.BrokerClientTests.test_makeRequest_connected", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_brokerclient_py.BrokerClientTests.test_makeRequest_connecting", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_client_py.TestKafkaClient.test_send_fetch_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_client_py.TestKafkaClient.test_send_offset_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3697546_ciena_afkak.afkak.test.test_client_py.TestKafkaClient.test_send_produce_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.junit_processing.test_check_failing_spans_py.test_all_failing_tests_quarantined", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.junit_processing.test_check_failing_spans_py.test_no_failing_tests_quarantined", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.junit_processing.test_check_failing_spans_py.test_some_failing_tests_quarantined", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.junit_processing.test_check_failing_spans_py.test_status_code_resp_not_200", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.ci.test_detector_py.test_get_head_sha_circle_ci", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_create_single_pull", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_on_destination_branch_raises_an_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_update_keep_title_and_body", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_update_no_rebase", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.tests.stack.test_push_py.test_stack_without_common_commit_raises_an_error"]. |
pasteorg_paste | EvalException | public | 0 | 0 | exception_handler | def exception_handler(self, exc_info, environ):simple_html_error = Falseif self.xmlhttp_key:get_vars = request.parse_querystring(environ)if dict(get_vars).get(self.xmlhttp_key):simple_html_error = Truereturn errormiddleware.handle_exception(exc_info, environ['wsgi.errors'],html=True,debug_mode=True,simple_html_error=simple_html_error) | 3 | 11 | 3 | 65 | 0 | 356 | 366 | 356 | self,exc_info,environ | [] | Returns | {"Assign": 3, "If": 2, "Return": 1} | 4 | 11 | 4 | ["request.parse_querystring", "get", "dict", "errormiddleware.handle_exception"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.runner_py.run_one_to_cvg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.common.middleware_py.custom_exception_handler"] | The function (exception_handler) defined within the public class called EvalException.The function start at line 356 and ends at 366. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [356.0], and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["request.parse_querystring", "get", "dict", "errormiddleware.handle_exception"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.runner_py.run_one_to_cvg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.common.middleware_py.custom_exception_handler"]. |
pasteorg_paste | EvalException | public | 0 | 0 | __init__ | def __init__(self, counter, exc_info, exc_data, base_path, environ, view_uri):self.counter = counterself.exc_data = exc_dataself.base_path = base_pathself.environ = environself.view_uri = view_uriself.created = time.time()self.exc_type, self.exc_value, self.tb = exc_info__exception_formatter__ = 1self.frames = []n = 0tb = self.tbwhile tb is not None and (limit is None or n < limit):if tb.tb_frame.f_locals.get('__exception_formatter__'):# Stop recursion. @@: should make a fake ExceptionFramebreakself.frames.append(tb)tb = tb.tb_nextn += 1 | 5 | 19 | 7 | 126 | 0 | 370 | 389 | 370 | self,application,global_conf,xmlhttp_key | [] | None | {"Assign": 5, "If": 2} | 1 | 10 | 1 | ["global_conf.get"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called EvalException.The function start at line 370 and ends at 389. It contains 19 lines of code and it has a cyclomatic complexity of 5. It takes 7 parameters, represented as [370.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["global_conf.get"], It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | DebugInfo | public | 0 | 0 | json | def json(self):"""Return the JSON-able representation of this object"""return {'uri': self.view_uri,'created': time.strftime('%c', time.gmtime(self.created)),'created_timestamp': self.created,'exception_type': str(self.exc_type),'exception': str(self.exc_value),} | 1 | 8 | 1 | 57 | 0 | 391 | 399 | 391 | self | [] | Returns | {"Expr": 1, "Return": 1} | 4 | 9 | 4 | ["time.strftime", "time.gmtime", "str", "str"] | 527 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.loader_py.load_all_mods", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.jsonschema.validators_py.RefResolver.resolve_remote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.core_py.Core.__launch__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.core_py.Core.cardInfo", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.core_py.players", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.pin_py.Pin.send", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3616274_yurilaaziz_neo_instabot.instabot.__main___py.get_last_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.compute_py.RestApiClient.list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.compute_py.RestApiClient.status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.datacenter_py.RestApiClient.list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.datacenter_py.RestApiClient.status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.monitor_py.RestApiClient.prometheus", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.data_py.listfiles", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.client.experiment_py.ExperimentClient.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643543_yogurtthehorse_roguebot.main_vk_py.checkMessages", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.market_controller_py._put_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.market_controller_py.match_makers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.tribler_controller_py.get_downloaded", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.tribler_controller_py.get_helped", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.tribler_controller_py.get_helped_by", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.tribler_controller_py.get_uploaded", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.wallet_controller_py.get_balance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.wallet_controller_py.get_balance_pending", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.wallet_controller_py.get_transactions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.wallet_controller_py.get_wallet_address"] | The function (json) defined within the public class called DebugInfo.The function start at line 391 and ends at 399. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["time.strftime", "time.gmtime", "str", "str"], It has 527.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.loader_py.load_all_mods", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.jsonschema.validators_py.RefResolver.resolve_remote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.core_py.Core.__launch__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.core_py.Core.cardInfo", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.core_py.players", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3605399_futapi_fut.fut.pin_py.Pin.send", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3616274_yurilaaziz_neo_instabot.instabot.__main___py.get_last_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.compute_py.RestApiClient.list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.compute_py.RestApiClient.status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.datacenter_py.RestApiClient.list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.datacenter_py.RestApiClient.status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.cli.rest.monitor_py.RestApiClient.prometheus", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.cli.data_py.listfiles", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640381_floydhub_floyd_cli.floyd.client.experiment_py.ExperimentClient.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643543_yogurtthehorse_roguebot.main_vk_py.checkMessages", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.market_controller_py._put_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.market_controller_py.match_makers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.tribler_controller_py.get_downloaded", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.tribler_controller_py.get_helped", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.tribler_controller_py.get_helped_by", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.tribler_controller_py.get_uploaded", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.wallet_controller_py.get_balance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.wallet_controller_py.get_balance_pending", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.wallet_controller_py.get_transactions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673576_tribler_dollynator.plebnet.controllers.wallet_controller_py.get_wallet_address"]. |
pasteorg_paste | DebugInfo | public | 0 | 0 | frame | def frame(self, tbid):for frame in self.frames:if id(frame) == tbid:return frameelse:raise ValueError("No frame by id %s found from %r" % (tbid, self.frames)) | 3 | 6 | 2 | 39 | 0 | 401 | 406 | 401 | self,tbid | [] | Returns | {"For": 1, "If": 1, "Return": 1} | 2 | 6 | 2 | ["id", "ValueError"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3551881_astrofrog_wcsaxes.wcsaxes.utils_py.get_coord_meta", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69332813_podrum_podrumlegacy.podrum.protocol.mcbe.mcbe_player_py.mcbe_player.send_packet"] | The function (frame) defined within the public class called DebugInfo.The function start at line 401 and ends at 406. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [401.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["id", "ValueError"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3551881_astrofrog_wcsaxes.wcsaxes.utils_py.get_coord_meta", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69332813_podrum_podrumlegacy.podrum.protocol.mcbe.mcbe_player_py.mcbe_player.send_packet"]. |
pasteorg_paste | DebugInfo | public | 0 | 0 | wsgi_application | def wsgi_application(self, environ, start_response):start_response('200 OK', [('content-type', 'text/html')])return self.content() | 1 | 3 | 3 | 27 | 0 | 408 | 410 | 408 | self,environ,start_response | [] | Returns | {"Expr": 1, "Return": 1} | 2 | 3 | 2 | ["start_response", "self.content"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.DataApp.get"] | The function (wsgi_application) defined within the public class called DebugInfo.The function start at line 408 and ends at 410. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [408.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["start_response", "self.content"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.DataApp.get"]. |
pasteorg_paste | DebugInfo | public | 0 | 0 | content | def content(self):html = format_eval_html(self.exc_data, self.base_path, self.counter)head_html = (formatter.error_css + formatter.hide_display_js)head_html += self.eval_javascript()repost_button = make_repost_button(self.environ)page = error_template % {'repost_button': repost_button or '','head_html': head_html,'body': html}page = page.encode('utf8')return [page] | 2 | 11 | 1 | 78 | 0 | 412 | 422 | 412 | self | [] | Returns | {"Assign": 5, "AugAssign": 1, "Return": 1} | 4 | 11 | 4 | ["format_eval_html", "self.eval_javascript", "make_repost_button", "page.encode"] | 89 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.reconstitute_py.reconstitute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.reconstitute_py.source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_add_non_existent_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_add_possible_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_add_same_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_announce_db_first_creation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_announce_db_no_update_time_from_illegal_use", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_announce_db_update_time_from_legal_use", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_cancel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_change_long_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_change_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_change_title", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_illegal_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_legal_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_message_after_send_before_30_days", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_message_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_message_to_no_dm_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_multiple_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_functions_no_active", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_other_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_remove_existing_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_remove_non_existent_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_remove_role_from_none", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_send_announce_roles", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_send_announce_roles_with_no_dm_user"] | The function (content) defined within the public class called DebugInfo.The function start at line 412 and ends at 422. It contains 11 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 4.0 functions, It has 4.0 functions called inside which are ["format_eval_html", "self.eval_javascript", "make_repost_button", "page.encode"], It has 89.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.reconstitute_py.reconstitute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.reconstitute_py.source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_add_non_existent_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_add_possible_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_add_same_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_announce_db_first_creation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_announce_db_no_update_time_from_illegal_use", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_announce_db_update_time_from_legal_use", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_cancel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_change_long_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_change_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_change_title", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_illegal_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_legal_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_message_after_send_before_30_days", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_message_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_message_to_no_dm_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_create_multiple_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_functions_no_active", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_other_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_remove_existing_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_remove_non_existent_role", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_remove_role_from_none", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_send_announce_roles", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70514714_koalabotuk_koalabot.tests.cogs.announce.test_cog_py.test_send_announce_roles_with_no_dm_user"]. |
pasteorg_paste | DebugInfo | public | 0 | 0 | eval_javascript | def eval_javascript(self):base_path = self.base_path + '/_debug'return ('<script type="text/javascript" src="%s/media/MochiKit.packed.js">''</script>\n''<script type="text/javascript" src="%s/media/debug.js">''</script>\n''<script type="text/javascript">\n''debug_base = %r;\n''debug_count = %r;\n''</script>\n'% (base_path, base_path, base_path, self.counter)) | 1 | 12 | 1 | 35 | 0 | 424 | 435 | 424 | self | [] | Returns | {"Assign": 1, "Return": 1} | 0 | 12 | 0 | [] | 0 | [] | The function (eval_javascript) defined within the public class called DebugInfo.The function start at line 424 and ends at 435. It contains 12 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 | EvalException | public | 0 | 0 | __init__ | def __init__(self, base_path, counter, **kw):super(EvalHTMLFormatter, self).__init__(**kw)self.base_path = base_pathself.counter = counter | 1 | 4 | 4 | 34 | 0 | 439 | 442 | 439 | self,application,global_conf,xmlhttp_key | [] | None | {"Assign": 5, "If": 2} | 1 | 10 | 1 | ["global_conf.get"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called EvalException.The function start at line 439 and ends at 442. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [439.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["global_conf.get"], It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | EvalHTMLFormatter | public | 0 | 1 | format_source_line | def format_source_line(self, filename, frame):line = formatter.HTMLFormatter.format_source_line(self, filename, frame)return (line +'<a href="#" class="switch_source" ''tbid="%s" onClick="return showFrame(this)"> ''<img src="%s/_debug/media/plus.jpg" border=0 width=9 ''height=9> </a>'% (frame.tbid, self.base_path)) | 1 | 9 | 3 | 42 | 0 | 444 | 452 | 444 | self,filename,frame | [] | Returns | {"Assign": 1, "Return": 1} | 1 | 9 | 1 | ["formatter.HTMLFormatter.format_source_line"] | 0 | [] | The function (format_source_line) defined within the public class called EvalHTMLFormatter, that inherit another class.The function start at line 444 and ends at 452. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [444.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["formatter.HTMLFormatter.format_source_line"]. |
pasteorg_paste | public | public | 0 | 0 | make_table | def make_table(items):if isinstance(items, dict):items = sorted(items.items())rows = []i = 0for name, value in items:i += 1out = StringIO()try:pprint.pprint(value, out)except Exception as e:print('Error: %s' % e, file=out)value = html_quote(out.getvalue())if len(value) > 100:# @@: This can actually break the HTML :(# should I truncate before quoting?orig_value = valuevalue = value[:100]value += '<a class="switch_source" style="background-color: #999" href="#" onclick="return expandLong(this)">...</a>'value += '<span style="display: none">%s</span>' % orig_value[100:]value = formatter.make_wrappable(value)if i % 2:attr = ' class="even"'else:attr = ' class="odd"'rows.append('<tr%s style="vertical-align: top;"><td>''<b>%s</b></td><td style="overflow: auto">%s<td></tr>'% (attr, html_quote(name), preserve_whitespace(value, quote=False)))return '<table>%s</table>' % ('\n'.join(rows)) | 6 | 29 | 1 | 167 | 7 | 454 | 484 | 454 | items | ['rows', 'out', 'orig_value', 'value', 'i', 'items', 'attr'] | Returns | {"Assign": 10, "AugAssign": 3, "Expr": 3, "For": 1, "If": 3, "Return": 1, "Try": 1} | 14 | 31 | 14 | ["isinstance", "sorted", "items.items", "StringIO", "pprint.pprint", "print", "html_quote", "out.getvalue", "len", "formatter.make_wrappable", "rows.append", "html_quote", "preserve_whitespace", "join"] | 15 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665133_dfm_python_fsps.scripts.fsps_filter_table_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.tests.test_db_py.test_create_in_v2_mode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.examples.misc.pokemon_stats_py._", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.auto_round.__main___py.tune", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.auto_round.eval.eval_cli_py.eval", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.auto_round.eval.eval_cli_py.eval_task_by_task", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.auto_round.eval.eval_cli_py.eval_with_vllm", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_2_3bits_py.TestAutoRound.test_2bits_autoround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_2_3bits_py.TestAutoRound.test_norm_bias_tuning", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_main_func_py.TestMainFunc.test_adam", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_main_func_py.TestMainFunc.test_autoround_asym", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_main_func_py.TestMainFunc.test_backend", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_main_func_py.TestMainFunc.test_fp_layers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_multiple_card_py.TestAutoRound.test_device_map_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.EvalException.show_frame"] | The function (make_table) defined within the public class called public.The function start at line 454 and ends at 484. It contains 29 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters, and this function return a value. It declares 14.0 functions, It has 14.0 functions called inside which are ["isinstance", "sorted", "items.items", "StringIO", "pprint.pprint", "print", "html_quote", "out.getvalue", "len", "formatter.make_wrappable", "rows.append", "html_quote", "preserve_whitespace", "join"], It has 15.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665133_dfm_python_fsps.scripts.fsps_filter_table_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.tests.test_db_py.test_create_in_v2_mode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.examples.misc.pokemon_stats_py._", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.auto_round.__main___py.tune", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.auto_round.eval.eval_cli_py.eval", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.auto_round.eval.eval_cli_py.eval_task_by_task", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.auto_round.eval.eval_cli_py.eval_with_vllm", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_2_3bits_py.TestAutoRound.test_2bits_autoround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_2_3bits_py.TestAutoRound.test_norm_bias_tuning", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_main_func_py.TestMainFunc.test_adam", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_main_func_py.TestMainFunc.test_autoround_asym", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_main_func_py.TestMainFunc.test_backend", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_main_func_py.TestMainFunc.test_fp_layers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94718775_intel_auto_round.test.test_cuda.test_multiple_card_py.TestAutoRound.test_device_map_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.EvalException.show_frame"]. |
pasteorg_paste | public | public | 0 | 0 | format_eval_html | def format_eval_html(exc_data, base_path, counter):short_formatter = EvalHTMLFormatter(base_path=base_path,counter=counter,include_reusable=False)short_er = short_formatter.format_collected_data(exc_data)long_formatter = EvalHTMLFormatter(base_path=base_path,counter=counter,show_hidden_frames=True,show_extra_data=False,include_reusable=False)long_er = long_formatter.format_collected_data(exc_data)text_er = formatter.format_text(exc_data, show_hidden_frames=True)if short_formatter.filter_frames(exc_data.frames) != \long_formatter.filter_frames(exc_data.frames):# Only display the full traceback when it differs from the# short versionfull_traceback_html = """<br><script type="text/javascript">show_button('full_traceback', 'full traceback')</script><div id="full_traceback" class="hidden-data">%s</div>""" % long_erelse:full_traceback_html = ''return """%s%s<br><script type="text/javascript">show_button('text_version', 'text version')</script><div id="text_version" class="hidden-data"><textarea style="width: 100%%" rows=10 cols=60>%s</textarea></div>""" % (short_er, full_traceback_html, html.escape(text_er)) | 2 | 38 | 3 | 122 | 6 | 486 | 526 | 486 | exc_data,base_path,counter | ['long_er', 'short_er', 'full_traceback_html', 'long_formatter', 'short_formatter', 'text_er'] | Returns | {"Assign": 7, "If": 1, "Return": 1} | 8 | 41 | 8 | ["EvalHTMLFormatter", "short_formatter.format_collected_data", "EvalHTMLFormatter", "long_formatter.format_collected_data", "formatter.format_text", "short_formatter.filter_frames", "long_formatter.filter_frames", "html.escape"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.DebugInfo.content"] | The function (format_eval_html) defined within the public class called public.The function start at line 486 and ends at 526. It contains 38 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [486.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["EvalHTMLFormatter", "short_formatter.format_collected_data", "EvalHTMLFormatter", "long_formatter.format_collected_data", "formatter.format_text", "short_formatter.filter_frames", "long_formatter.filter_frames", "html.escape"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.DebugInfo.content"]. |
pasteorg_paste | public | public | 0 | 0 | make_repost_button | def make_repost_button(environ):url = request.construct_url(environ)if environ['REQUEST_METHOD'] == 'GET':return ('<button onclick="window.location.href=%r">''Re-GET Page</button><br>' % url)else:# @@: I'd like to reconstruct this, but I can't because# the POST body is probably lost at this point, and# I can't get it back :(return None# @@: Use or lose the following code block"""fields = []for name, value in wsgilib.parse_formvars(environ, include_get_vars=False).items():if hasattr(value, 'filename'):# @@: Arg, we'll just submit the body, and leave out# the filename :(value = value.valuefields.append('<input type="hidden" name="%s" value="%s">'% (html_quote(name), html_quote(value)))return '''<form action="%s" method="POST">%s<input type="submit" value="Re-POST Page"></form>''' % (url, '\n'.join(fields))""" | 2 | 7 | 1 | 33 | 1 | 528 | 555 | 528 | environ | ['url'] | Returns | {"Assign": 1, "Expr": 1, "If": 1, "Return": 2} | 1 | 28 | 1 | ["request.construct_url"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.DebugInfo.content"] | The function (make_repost_button) defined within the public class called public.The function start at line 528 and ends at 555. 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 declare 1.0 function, It has 1.0 function called inside which is ["request.construct_url"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.DebugInfo.content"]. |
pasteorg_paste | public | public | 0 | 0 | input_form | def input_form(tbid, debug_info):return '''<form action="#" method="POST" onsubmit="return submitInput($(\'submit_%(tbid)s\'), %(tbid)s)"><div id="exec-output-%(tbid)s" style="width: 95%%; padding: 5px; margin: 5px; border: 2px solid #000; display: none"></div><input type="text" name="input" id="debug_input_%(tbid)s" style="width: 100%%" autocomplete="off" onkeypress="upArrow(this, event)"><br><input type="submit" value="Execute" name="submitbutton" onclick="return submitInput(this, %(tbid)s)" id="submit_%(tbid)s" input-from="debug_input_%(tbid)s" output-to="exec-output-%(tbid)s"><input type="submit" value="Expand" onclick="return expandInput(this)"></form> ''' % {'tbid': tbid} | 1 | 19 | 2 | 15 | 0 | 558 | 576 | 558 | tbid,debug_info | [] | Returns | {"Return": 1} | 0 | 19 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.EvalException.show_frame"] | The function (input_form) defined within the public class called public.The function start at line 558 and ends at 576. It contains 19 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [558.0], and this function return a value. It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.EvalException.show_frame"]. |
pasteorg_paste | public | public | 0 | 0 | make_eval_exception | def make_eval_exception(app, global_conf, xmlhttp_key=None):"""Wraps the application in an interactive debugger.This debugger is a major security hole, and should only beused during development.xmlhttp_key is a string that, if present in QUERY_STRING,indicates that the request is an XMLHttp request, and theJavascript/interactive debugger should not be returned.(If youtry to put the debugger somewhere with innerHTML, you will oftencrash the browser)"""if xmlhttp_key is None:xmlhttp_key = global_conf.get('xmlhttp_key', '_')return EvalException(app, xmlhttp_key=xmlhttp_key) | 2 | 4 | 3 | 36 | 1 | 599 | 614 | 599 | app,global_conf,xmlhttp_key | ['xmlhttp_key'] | Returns | {"Assign": 1, "Expr": 1, "If": 1, "Return": 1} | 2 | 16 | 2 | ["global_conf.get", "EvalException"] | 0 | [] | The function (make_eval_exception) defined within the public class called public.The function start at line 599 and ends at 614. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [599.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["global_conf.get", "EvalException"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | __init__ | def __init__(self, limit=None):self.limit = limit | 1 | 2 | 2 | 14 | 0 | 218 | 219 | 218 | self,limit | [] | None | {"Assign": 1} | 0 | 2 | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called ExceptionCollector.The function start at line 218 and ends at 219. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [218.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | getLimit | def getLimit(self):limit = self.limitif limit is None:limit = getattr(sys, 'tracebacklimit', None)return limit | 2 | 5 | 1 | 27 | 0 | 221 | 225 | 221 | self | [] | Returns | {"Assign": 2, "If": 1, "Return": 1} | 1 | 5 | 1 | ["getattr"] | 0 | [] | The function (getLimit) defined within the public class called ExceptionCollector.The function start at line 221 and ends at 225. 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, and It has 1.0 function called inside which is ["getattr"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | getRevision | def getRevision(self, globals):if not self.show_revisions:return Nonerevision = globals.get('__revision__', None)if revision is None:# Incorrect but commonly used spellingrevision = globals.get('__version__', None)if revision is not None:try:revision = str(revision).strip()except Exception:revision = '???'return revision | 5 | 12 | 2 | 66 | 0 | 227 | 240 | 227 | self,globals | [] | Returns | {"Assign": 4, "If": 3, "Return": 2, "Try": 1} | 4 | 14 | 4 | ["globals.get", "globals.get", "strip", "str"] | 0 | [] | The function (getRevision) defined within the public class called ExceptionCollector.The function start at line 227 and ends at 240. It contains 12 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [227.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["globals.get", "globals.get", "strip", "str"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | collectSupplement | def collectSupplement(self, supplement, tb):result = {}for name in ('object', 'source_url', 'line', 'column', 'expression', 'warnings'):result[name] = getattr(supplement, name, None)func = getattr(supplement, 'getInfo', None)if func:result['info'] = func()else:result['info'] = Nonefunc = getattr(supplement, 'extraData', None)if func:result['extra'] = func()else:result['extra'] = Nonereturn SupplementaryData(**result) | 4 | 16 | 3 | 107 | 0 | 242 | 259 | 242 | self,supplement,tb | [] | Returns | {"Assign": 8, "For": 1, "If": 2, "Return": 1} | 6 | 18 | 6 | ["getattr", "getattr", "func", "getattr", "func", "SupplementaryData"] | 0 | [] | The function (collectSupplement) defined within the public class called ExceptionCollector.The function start at line 242 and ends at 259. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [242.0], and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["getattr", "getattr", "func", "getattr", "func", "SupplementaryData"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | collectLine | def collectLine(self, tb, extra_data):f = tb.tb_framelineno = tb.tb_linenoco = f.f_codefilename = co.co_filenamename = co.co_nameglobals = f.f_globalslocals = f.f_localsif not hasattr(locals, 'keys'):# Something weird about this frame; it's not a real dictwarnings.warn("Frame %s has an invalid locals(): %r" % (globals.get('__name__', 'unknown'), locals))locals = {}data = {}data['modname'] = globals.get('__name__', None)data['filename'] = filenamedata['lineno'] = linenodata['revision'] = self.getRevision(globals)data['name'] = namedata['tbid'] = id(tb)# Output a traceback supplement, if any.if '__traceback_supplement__' in locals:# Use the supplement defined in the function.tbs = locals['__traceback_supplement__']elif '__traceback_supplement__' in globals:# Use the supplement defined in the module.# This is used by Scripts (Python).tbs = globals['__traceback_supplement__']else:tbs = Noneif tbs is not None:factory = tbs[0]args = tbs[1:]try:supp = factory(*args)data['supplement'] = self.collectSupplement(supp, tb)if data['supplement'].extra:for key, value in data['supplement'].extra.items():extra_data.setdefault(key, []).append(value)except Exception:if DEBUG_EXCEPTION_FORMATTER:out = StringIO()traceback.print_exc(file=out)text = out.getvalue()data['supplement_exception'] = text# else just swallow the exception.try:tbi = locals.get('__traceback_info__', None)if tbi is not None:data['traceback_info'] = str(tbi)except Exception:passmarker = []for name in ('__traceback_hide__', '__traceback_log__', '__traceback_decorator__'):try:tbh = locals.get(name, globals.get(name, marker))if tbh is not marker:data[name[2:-2]] = tbhexcept Exception:passreturn data | 14 | 57 | 3 | 358 | 0 | 261 | 327 | 261 | self,tb,extra_data | [] | Returns | {"Assign": 30, "Expr": 3, "For": 2, "If": 8, "Return": 1, "Try": 3} | 18 | 67 | 18 | ["hasattr", "warnings.warn", "globals.get", "globals.get", "self.getRevision", "id", "factory", "self.collectSupplement", "extra.items", "append", "extra_data.setdefault", "StringIO", "traceback.print_exc", "out.getvalue", "locals.get", "str", "locals.get", "globals.get"] | 0 | [] | The function (collectLine) defined within the public class called ExceptionCollector.The function start at line 261 and ends at 327. It contains 57 lines of code and it has a cyclomatic complexity of 14. It takes 3 parameters, represented as [261.0], and this function return a value. It declares 18.0 functions, and It has 18.0 functions called inside which are ["hasattr", "warnings.warn", "globals.get", "globals.get", "self.getRevision", "id", "factory", "self.collectSupplement", "extra.items", "append", "extra_data.setdefault", "StringIO", "traceback.print_exc", "out.getvalue", "locals.get", "str", "locals.get", "globals.get"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | collectExceptionOnly | def collectExceptionOnly(self, etype, value):return traceback.format_exception_only(etype, value) | 1 | 2 | 3 | 18 | 0 | 329 | 330 | 329 | self,etype,value | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["traceback.format_exception_only"] | 0 | [] | The function (collectExceptionOnly) defined within the public class called ExceptionCollector.The function start at line 329 and ends at 330. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [329.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["traceback.format_exception_only"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | collectException | def collectException(self, etype, value, tb, limit=None):# The next line provides a way to detect recursion.__exception_formatter__ = 1frames = []ident_data = []traceback_decorators = []if limit is None:limit = self.getLimit()n = 0extra_data = {}while tb is not None and (limit is None or n < limit):if tb.tb_frame.f_locals.get('__exception_formatter__'):# Stop recursion. @@: should make a fake ExceptionFrameframes.append('(Recursive formatException() stopped)\n')breakdata = self.collectLine(tb, extra_data)frame = ExceptionFrame(**data)frames.append(frame)if frame.traceback_decorator is not None:traceback_decorators.append(frame.traceback_decorator)ident_data.append(frame.modname or '?')ident_data.append(frame.name or '?')tb = tb.tb_nextn = n + 1ident_data.append(str(etype))ident = serial_number_generator.hash_identifier(' '.join(ident_data), length=5, upper=True,prefix=DEBUG_IDENT_PREFIX)result = CollectedException(frames=frames,exception_formatted=self.collectExceptionOnly(etype, value),exception_type=etype,exception_value=self.safeStr(value),identification_code=ident,date=time.localtime(),extra_data=extra_data)if etype is ImportError:extra_data[('important', 'sys.path')] = [sys.path]for decorator in traceback_decorators:try:new_result = decorator(result)if new_result is not None:result = new_resultexcept Exception:passreturn result | 13 | 44 | 5 | 282 | 0 | 332 | 378 | 332 | self,etype,value,tb,limit | [] | Returns | {"Assign": 16, "Expr": 6, "For": 1, "If": 5, "Return": 1, "Try": 1, "While": 1} | 18 | 47 | 18 | ["self.getLimit", "tb.tb_frame.f_locals.get", "frames.append", "self.collectLine", "ExceptionFrame", "frames.append", "traceback_decorators.append", "ident_data.append", "ident_data.append", "ident_data.append", "str", "serial_number_generator.hash_identifier", "join", "CollectedException", "self.collectExceptionOnly", "self.safeStr", "time.localtime", "decorator"] | 0 | [] | The function (collectException) defined within the public class called ExceptionCollector.The function start at line 332 and ends at 378. It contains 44 lines of code and it has a cyclomatic complexity of 13. It takes 5 parameters, represented as [332.0], and this function return a value. It declares 18.0 functions, and It has 18.0 functions called inside which are ["self.getLimit", "tb.tb_frame.f_locals.get", "frames.append", "self.collectLine", "ExceptionFrame", "frames.append", "traceback_decorators.append", "ident_data.append", "ident_data.append", "ident_data.append", "str", "serial_number_generator.hash_identifier", "join", "CollectedException", "self.collectExceptionOnly", "self.safeStr", "time.localtime", "decorator"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | safeStr | def safeStr(self, obj):try:return str(obj)except UnicodeEncodeError:try:return str(obj).encode(FALLBACK_ENCODING, 'replace')except UnicodeEncodeError:# This is when something is really messed up, but this can# happen when the __str__ of an object has to handle unicodereturn repr(obj) | 3 | 8 | 2 | 39 | 0 | 380 | 389 | 380 | self,obj | [] | Returns | {"Return": 3, "Try": 2} | 4 | 10 | 4 | ["str", "encode", "str", "repr"] | 0 | [] | The function (safeStr) defined within the public class called ExceptionCollector.The function start at line 380 and ends at 389. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [380.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["str", "encode", "str", "repr"]. |
pasteorg_paste | ExceptionCollector | public | 0 | 0 | __init__ | def __init__(self, **attrs):for name, value in attrs.items():setattr(self, name, value) | 2 | 3 | 2 | 27 | 0 | 399 | 401 | 399 | self,limit | [] | None | {"Assign": 1} | 0 | 2 | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called ExceptionCollector.The function start at line 399 and ends at 401. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [399.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | Bunch | public | 0 | 0 | __repr__ | def __repr__(self):name = '<%s ' % self.__class__.__name__name += ' '.join(['%s=%r' % (name, str(value)[:30])for name, value in self.__dict__.items()if not name.startswith('_')])return name + '>' | 3 | 6 | 1 | 61 | 0 | 403 | 408 | 403 | self | [] | Returns | {"Assign": 1, "AugAssign": 1, "Return": 1} | 4 | 6 | 4 | ["join", "str", "self.__dict__.items", "name.startswith"] | 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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"] | The function (__repr__) defined within the public class called Bunch.The function start at line 403 and ends at 408. It contains 6 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["join", "str", "self.__dict__.items", "name.startswith"], It has 29.0 functions calling this function which are ["_.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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"]. |
pasteorg_paste | ExceptionFrame | public | 0 | 1 | get_source_line | def get_source_line(self, context=0):"""Return the source of the current line of this frame.Youprobably want to .strip() it as well, as it is likely to haveleading whitespace.If context is given, then that many lines on either side willalso be returned.E.g., context=1 will give 3 lines."""if not self.filename or not self.lineno:return Nonelines = []for lineno in range(self.lineno-context, self.lineno+context+1):lines.append(linecache.getline(self.filename, lineno))return ''.join(lines) | 4 | 7 | 2 | 69 | 0 | 491 | 505 | 491 | self,context | [] | Returns | {"Assign": 1, "Expr": 2, "For": 1, "If": 1, "Return": 2} | 4 | 15 | 4 | ["range", "lines.append", "linecache.getline", "join"] | 0 | [] | The function (get_source_line) defined within the public class called ExceptionFrame, that inherit another class.The function start at line 491 and ends at 505. It contains 7 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [491.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["range", "lines.append", "linecache.getline", "join"]. |
pasteorg_paste | public | public | 0 | 0 | collect_exception | def collect_exception(t, v, tb, limit=None):"""Collection an exception from ``sys.exc_info()``.Use like::try:blah blahexcept Exception:exc_data = collect_exception(*sys.exc_info())"""return col.collectException(t, v, tb, limit=limit) | 1 | 2 | 4 | 29 | 0 | 512 | 523 | 512 | t,v,tb,limit | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 12 | 1 | ["col.collectException"] | 0 | [] | The function (collect_exception) defined within the public class called public.The function start at line 512 and ends at 523. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [512.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["col.collectException"]. |
pasteorg_paste | _NoDefault | protected | 0 | 0 | __repr__ | def __repr__(self):return '<NoDefault>' | 1 | 2 | 1 | 7 | 0 | 18 | 19 | 18 | 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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"] | The function (__repr__) defined within the protected class called _NoDefault.The function start at line 18 and ends at 19. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 29.0 functions calling this function which are ["_.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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"]. |
pasteorg_paste | ErrorMiddleware | public | 0 | 0 | __init__ | def __init__(self, application, global_conf=None, debug=NoDefault, error_email=None, error_log=None, show_exceptions_in_wsgi_errors=NoDefault, from_address=None, smtp_server=None, smtp_username=None, smtp_password=None, smtp_use_tls=False, error_subject_prefix=None, error_message=None, xmlhttp_key=None):from paste.util import convertersself.application = application# @@: global_conf should be handled elsewhere in a separate# function for the entry pointif global_conf is None:global_conf = {}if debug is NoDefault:debug = converters.asbool(global_conf.get('debug'))if show_exceptions_in_wsgi_errors is NoDefault:show_exceptions_in_wsgi_errors = converters.asbool(global_conf.get('show_exceptions_in_wsgi_errors'))self.debug_mode = converters.asbool(debug)if error_email is None:error_email = (global_conf.get('error_email') or global_conf.get('admin_email') or global_conf.get('webmaster_email') or global_conf.get('sysadmin_email'))self.error_email = converters.aslist(error_email)self.error_log = error_logself.show_exceptions_in_wsgi_errors = show_exceptions_in_wsgi_errorsif from_address is None:from_address = global_conf.get('error_from_address', 'errors@localhost')self.from_address = from_addressif smtp_server is None:smtp_server = global_conf.get('smtp_server', 'localhost')self.smtp_server = smtp_serverself.smtp_username = smtp_username or global_conf.get('smtp_username')self.smtp_password = smtp_password or global_conf.get('smtp_password')self.smtp_use_tls = smtp_use_tls or converters.asbool(global_conf.get('smtp_use_tls'))self.error_subject_prefix = error_subject_prefix or ''if error_message is None:error_message = global_conf.get('error_message')self.error_message = error_messageif xmlhttp_key is None:xmlhttp_key = global_conf.get('xmlhttp_key', '_')self.xmlhttp_key = xmlhttp_key | 16 | 46 | 15 | 307 | 0 | 78 | 125 | 78 | self,application,global_conf,debug,error_email,error_log,show_exceptions_in_wsgi_errors,from_address,smtp_server,smtp_username,smtp_password,smtp_use_tls,error_subject_prefix,error_message,xmlhttp_key | [] | None | {"Assign": 21, "If": 8} | 18 | 48 | 18 | ["converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.aslist", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called ErrorMiddleware.The function start at line 78 and ends at 125. It contains 46 lines of code and it has a cyclomatic complexity of 16. It takes 15 parameters, represented as [78.0] and does not return any value. It declares 18.0 functions, It has 18.0 functions called inside which are ["converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.aslist", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get"], It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | ErrorMiddleware | public | 0 | 0 | __call__ | def __call__(self, environ, start_response):"""The WSGI application interface."""# We want to be careful about not sending headers twice,# and the content type that the app has committed to (if there# is an exception in the iterator body of the response)if environ.get('paste.throw_errors'):return self.application(environ, start_response)environ['paste.throw_errors'] = Truetry:__traceback_supplement__ = Supplement, self, environsr_checker = ResponseStartChecker(start_response)app_iter = self.application(environ, sr_checker)return self.make_catching_iter(app_iter, environ, sr_checker)except Exception:exc_info = sys.exc_info()try:for expect in environ.get('paste.expected_exceptions', []):if isinstance(exc_info[1], expect):raisestart_response('500 Internal Server Error', [('content-type', 'text/html')], exc_info)# @@: it would be nice to deal with bad content types hereresponse = self.exception_handler(exc_info, environ)response = response.encode('utf8')return [response]finally:# clean up locals...exc_info = None | 6 | 23 | 3 | 147 | 0 | 127 | 158 | 127 | self,environ,start_response | [] | Returns | {"Assign": 8, "Expr": 2, "For": 1, "If": 2, "Return": 3, "Try": 2} | 11 | 32 | 11 | ["environ.get", "self.application", "ResponseStartChecker", "self.application", "self.make_catching_iter", "sys.exc_info", "environ.get", "isinstance", "start_response", "self.exception_handler", "response.encode"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"] | The function (__call__) defined within the public class called ErrorMiddleware.The function start at line 127 and ends at 158. It contains 23 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [127.0], and this function return a value. It declares 11.0 functions, It has 11.0 functions called inside which are ["environ.get", "self.application", "ResponseStartChecker", "self.application", "self.make_catching_iter", "sys.exc_info", "environ.get", "isinstance", "start_response", "self.exception_handler", "response.encode"], It has 43.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]. |
pasteorg_paste | ErrorMiddleware | public | 0 | 0 | make_catching_iter | def make_catching_iter(self, app_iter, environ, sr_checker):if isinstance(app_iter, (list, tuple)):# These don't raisereturn app_iterreturn CatchingIter(app_iter, environ, sr_checker, self) | 2 | 4 | 4 | 36 | 0 | 160 | 164 | 160 | self,app_iter,environ,sr_checker | [] | Returns | {"If": 1, "Return": 2} | 2 | 5 | 2 | ["isinstance", "CatchingIter"] | 0 | [] | The function (make_catching_iter) defined within the public class called ErrorMiddleware.The function start at line 160 and ends at 164. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [160.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["isinstance", "CatchingIter"]. |
pasteorg_paste | ErrorMiddleware | public | 0 | 0 | exception_handler | def exception_handler(self, exc_info, environ):simple_html_error = Falseif self.xmlhttp_key:get_vars = request.parse_querystring(environ)if dict(get_vars).get(self.xmlhttp_key):simple_html_error = Truereturn handle_exception(exc_info, environ['wsgi.errors'],html=True,debug_mode=self.debug_mode,error_email=self.error_email,error_log=self.error_log,show_exceptions_in_wsgi_errors=self.show_exceptions_in_wsgi_errors,error_email_from=self.from_address,smtp_server=self.smtp_server,smtp_username=self.smtp_username,smtp_password=self.smtp_password,smtp_use_tls=self.smtp_use_tls,error_subject_prefix=self.error_subject_prefix,error_message=self.error_message,simple_html_error=simple_html_error) | 3 | 21 | 3 | 125 | 0 | 166 | 186 | 166 | self,exc_info,environ | [] | Returns | {"Assign": 3, "If": 2, "Return": 1} | 4 | 21 | 4 | ["request.parse_querystring", "get", "dict", "handle_exception"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.runner_py.run_one_to_cvg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.common.middleware_py.custom_exception_handler"] | The function (exception_handler) defined within the public class called ErrorMiddleware.The function start at line 166 and ends at 186. It contains 21 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [166.0], and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["request.parse_querystring", "get", "dict", "handle_exception"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.runner_py.run_one_to_cvg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.common.middleware_py.custom_exception_handler"]. |
pasteorg_paste | ErrorMiddleware | public | 0 | 0 | __init__ | def __init__(self, start_response):self.start_response = start_responseself.response_started = False | 1 | 3 | 2 | 17 | 0 | 189 | 191 | 189 | self,application,global_conf,debug,error_email,error_log,show_exceptions_in_wsgi_errors,from_address,smtp_server,smtp_username,smtp_password,smtp_use_tls,error_subject_prefix,error_message,xmlhttp_key | [] | None | {"Assign": 21, "If": 8} | 18 | 48 | 18 | ["converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.aslist", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called ErrorMiddleware.The function start at line 189 and ends at 191. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [189.0] and does not return any value. It declares 18.0 functions, It has 18.0 functions called inside which are ["converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.aslist", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get"], It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | ErrorMiddleware | public | 0 | 0 | __call__ | def __call__(self, *args):self.response_started = Trueself.start_response(*args) | 1 | 3 | 2 | 20 | 0 | 193 | 195 | 193 | self,environ,start_response | [] | Returns | {"Assign": 8, "Expr": 2, "For": 1, "If": 2, "Return": 3, "Try": 2} | 11 | 32 | 11 | ["environ.get", "self.application", "ResponseStartChecker", "self.application", "self.make_catching_iter", "sys.exc_info", "environ.get", "isinstance", "start_response", "self.exception_handler", "response.encode"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"] | The function (__call__) defined within the public class called ErrorMiddleware.The function start at line 193 and ends at 195. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [193.0], and this function return a value. It declares 11.0 functions, It has 11.0 functions called inside which are ["environ.get", "self.application", "ResponseStartChecker", "self.application", "self.make_catching_iter", "sys.exc_info", "environ.get", "isinstance", "start_response", "self.exception_handler", "response.encode"], It has 43.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]. |
pasteorg_paste | ErrorMiddleware | public | 0 | 0 | __init__ | def __init__(self, app_iter, environ, start_checker, error_middleware):self.app_iterable = app_iterself.app_iterator = iter(app_iter)self.environ = environself.start_checker = start_checkerself.error_middleware = error_middlewareself.closed = False | 1 | 7 | 5 | 46 | 0 | 205 | 211 | 205 | self,application,global_conf,debug,error_email,error_log,show_exceptions_in_wsgi_errors,from_address,smtp_server,smtp_username,smtp_password,smtp_use_tls,error_subject_prefix,error_message,xmlhttp_key | [] | None | {"Assign": 21, "If": 8} | 18 | 48 | 18 | ["converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.aslist", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called ErrorMiddleware.The function start at line 205 and ends at 211. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [205.0] and does not return any value. It declares 18.0 functions, It has 18.0 functions called inside which are ["converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.aslist", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get"], It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | CatchingIter | public | 0 | 0 | __iter__ | def __iter__(self):return self | 1 | 2 | 1 | 7 | 0 | 213 | 214 | 213 | 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.BaseForeignList._to_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918115_deschler_django_modeltranslation.modeltranslation.manager_py.FallbackFlatValuesListIterable.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918115_deschler_django_modeltranslation.modeltranslation.manager_py.FallbackNamedValuesListIterable.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918115_deschler_django_modeltranslation.modeltranslation.manager_py.FallbackValuesIterable.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918115_deschler_django_modeltranslation.modeltranslation.manager_py.FallbackValuesListIterable.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928894_linbit_linstor_api_py.linstor.kv_py.KV.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961526_tkrajina_gpxpy.gpxpy.gpx_py.GPXBounds.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.53698295_animekaizoku_enterprisealrobot.tg_bot.modules.sql.__init___py.CachingQuery.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Segment.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.collections_py.Channels.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.collections_py.Matches.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.collections_py.Players.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69693687_agnostiqhq_covalent.tests.covalent_tests.workflow.postprocessing_test_py.test_add_reconstruct_postprocess_node", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.tools.managers_py.SubclassingQuerySet.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.ip4_py.IP4Range.iteraddresses"] | The function (__iter__) defined within the public class called CatchingIter.The function start at line 213 and ends at 214. 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 ["_.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.BaseForeignList._to_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918115_deschler_django_modeltranslation.modeltranslation.manager_py.FallbackFlatValuesListIterable.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918115_deschler_django_modeltranslation.modeltranslation.manager_py.FallbackNamedValuesListIterable.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918115_deschler_django_modeltranslation.modeltranslation.manager_py.FallbackValuesIterable.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918115_deschler_django_modeltranslation.modeltranslation.manager_py.FallbackValuesListIterable.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928894_linbit_linstor_api_py.linstor.kv_py.KV.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961526_tkrajina_gpxpy.gpxpy.gpx_py.GPXBounds.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.53698295_animekaizoku_enterprisealrobot.tg_bot.modules.sql.__init___py.CachingQuery.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Segment.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.collections_py.Channels.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.collections_py.Matches.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.collections_py.Players.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69693687_agnostiqhq_covalent.tests.covalent_tests.workflow.postprocessing_test_py.test_add_reconstruct_postprocess_node", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.tools.managers_py.SubclassingQuerySet.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.ip4_py.IP4Range.iteraddresses"]. |
pasteorg_paste | CatchingIter | public | 0 | 0 | next | def next(self):__traceback_supplement__ = (Supplement, self.error_middleware, self.environ)if self.closed:raise StopIterationtry:return next(self.app_iterator)except StopIteration:self.closed = Trueclose_response = self._close()if close_response is not None:return close_responseelse:raise StopIterationexcept Exception:self.closed = Trueclose_response = self._close()exc_info = sys.exc_info()response = self.error_middleware.exception_handler(exc_info, self.environ)if close_response is not None:response += ('<hr noshade>Error in .close():<br>%s'% close_response)if not self.start_checker.response_started:self.start_checker('500 Internal Server Error', [('content-type', 'text/html')], exc_info)response = response.encode('utf8')return response | 7 | 30 | 1 | 144 | 0 | 216 | 247 | 216 | self | [] | Returns | {"Assign": 8, "AugAssign": 1, "Expr": 1, "If": 4, "Return": 3, "Try": 1} | 7 | 32 | 7 | ["next", "self._close", "self._close", "sys.exc_info", "self.error_middleware.exception_handler", "self.start_checker", "response.encode"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record.full_details", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.RecordSet.__len__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.RecordSet.__next__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.emojify_py.emojify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.rainbow_py.rainbow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.protocol.slack_py.SlackClient.send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py.MultiDict.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py.MultiDict.extend", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py.MultiDict.merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py.MultiDict.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py._Iter.__next__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.test_guard_py.test_guard_items", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.test_guard_py.test_guard_keys", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.test_guard_py.test_guard_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.test_multidict_py.chained_callable", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_empty_after_remove_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_empty_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_inexistent_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535523_dbcli_vcli.vcli.packages.ordereddict_py.OrderedDict.popitem", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.jsonschema.validators_py.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3551881_astrofrog_wcsaxes.ez_setup_py.get_best_downloader", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3552518_napalm_automation_napalm_nxos.napalm_nxos_ssh.nxos_ssh_py.NXOSSSHDriver.get_interfaces", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.io.server.__init___py.secret"] | The function (next) defined within the public class called CatchingIter.The function start at line 216 and ends at 247. It contains 30 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters, and this function return a value. It declares 7.0 functions, It has 7.0 functions called inside which are ["next", "self._close", "self._close", "sys.exc_info", "self.error_middleware.exception_handler", "self.start_checker", "response.encode"], It has 984.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record.full_details", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.RecordSet.__len__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.RecordSet.__next__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.emojify_py.emojify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.rainbow_py.rainbow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.protocol.slack_py.SlackClient.send_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py.MultiDict.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py.MultiDict.extend", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py.MultiDict.merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py.MultiDict.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.multidict._multidict_py_py._Iter.__next__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.test_guard_py.test_guard_items", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.test_guard_py.test_guard_keys", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.test_guard_py.test_guard_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.test_multidict_py.chained_callable", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_empty_after_remove_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_empty_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.depends.docker_registry_core.docker_registry.testing.driver_py.Driver.test_inexistent_list_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535523_dbcli_vcli.vcli.packages.ordereddict_py.OrderedDict.popitem", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.jsonschema.validators_py.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3551881_astrofrog_wcsaxes.ez_setup_py.get_best_downloader", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3552518_napalm_automation_napalm_nxos.napalm_nxos_ssh.nxos_ssh_py.NXOSSSHDriver.get_interfaces", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.io.server.__init___py.secret"]. |
pasteorg_paste | CatchingIter | public | 0 | 0 | close | def close(self):# This should at least print something to stderr if the# close method fails at this pointif not self.closed:self._close() | 2 | 3 | 1 | 16 | 0 | 250 | 254 | 250 | self | [] | None | {"Expr": 1, "If": 1} | 1 | 5 | 1 | ["self._close"] | 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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.core.fileutils_py.touch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.writers.aggregation_stats_writer_py.AggregationStatsWriter.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.writers.console_writer_py.ConsoleWriter.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.writers.s3_writer_py.S3Writer.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629091_aptivate_dye.dye.test.tasklib_django_test_py.TestLinkLocalSettings.create_empty_settings_py", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629091_aptivate_dye.dye.test.tasklib_django_test_py.TestLinkLocalSettings.test_link_local_settings_removes_local_settings_pyc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629091_aptivate_dye.dye.test.tasklib_django_test_py.TestLinkLocalSettings.test_link_local_settings_replaces_old_local_settings", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3632343_ionelmc_python_manhole.src.manhole.__init___py.handle_connection_repl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.pypiper.manager_py.PipelineManager._touch_checkpoint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.tests.pipeline.test_pipeline_checkpoint_py.test_pipeline_reruns_downstream_stages_according_to_parameterization", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.tests.pipeline.test_pipeline_py.MostBasicPipelineTests.test_all_checkpoints_after_first_executed_are_overwritten", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.tests.pipeline.test_pipeline_py.MostBasicPipelineTests.test_skip_completed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.tests.pipeline.test_pipeline_py.test_stage_completion_determination", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3641147_gamechanger_dusty.dusty.systems.known_hosts.__init___py.ensure_known_hosts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.pipe_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.capture_subprocess_py.read_all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.api.database_py.dbDisconnect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.urllib3_patch_py.SigOptHTTPConnection.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3668393_python_trio_trio_asyncio.tests.test_aio_subprocess_py.run_subprocess_shell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3668393_python_trio_trio_asyncio.trio_asyncio._base_py.BaseTrioEventLoop.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675065_rouxrc_gazouilleur.gazouilleur.lib.filelogger_py.FileLogger.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.objectstore.__init___py.DiskObjectStore.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.objectstore.azure_blob_py.AzureBlobObjectStore.create"] | The function (close) defined within the public class called CatchingIter.The function start at line 250 and ends at 254. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["self._close"], It has 158.0 functions calling this function which are ["_.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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.core.fileutils_py.touch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.writers.aggregation_stats_writer_py.AggregationStatsWriter.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.writers.console_writer_py.ConsoleWriter.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625475_scrapinghub_exporters.exporters.writers.s3_writer_py.S3Writer.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629091_aptivate_dye.dye.test.tasklib_django_test_py.TestLinkLocalSettings.create_empty_settings_py", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629091_aptivate_dye.dye.test.tasklib_django_test_py.TestLinkLocalSettings.test_link_local_settings_removes_local_settings_pyc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629091_aptivate_dye.dye.test.tasklib_django_test_py.TestLinkLocalSettings.test_link_local_settings_replaces_old_local_settings", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3632343_ionelmc_python_manhole.src.manhole.__init___py.handle_connection_repl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.pypiper.manager_py.PipelineManager._touch_checkpoint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.tests.pipeline.test_pipeline_checkpoint_py.test_pipeline_reruns_downstream_stages_according_to_parameterization", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.tests.pipeline.test_pipeline_py.MostBasicPipelineTests.test_all_checkpoints_after_first_executed_are_overwritten", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.tests.pipeline.test_pipeline_py.MostBasicPipelineTests.test_skip_completed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636841_databio_pypiper.tests.pipeline.test_pipeline_py.test_stage_completion_determination", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3641147_gamechanger_dusty.dusty.systems.known_hosts.__init___py.ensure_known_hosts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.pipe_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.capture_subprocess_py.read_all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.api.database_py.dbDisconnect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.urllib3_patch_py.SigOptHTTPConnection.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3668393_python_trio_trio_asyncio.tests.test_aio_subprocess_py.run_subprocess_shell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3668393_python_trio_trio_asyncio.trio_asyncio._base_py.BaseTrioEventLoop.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675065_rouxrc_gazouilleur.gazouilleur.lib.filelogger_py.FileLogger.close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.objectstore.__init___py.DiskObjectStore.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.objectstore.azure_blob_py.AzureBlobObjectStore.create"]. |
pasteorg_paste | CatchingIter | public | 0 | 0 | _close | def _close(self):"""Close and return any error message"""if not hasattr(self.app_iterable, 'close'):return Nonetry:self.app_iterable.close()return Noneexcept Exception:close_response = self.error_middleware.exception_handler(sys.exc_info(), self.environ)return close_response | 3 | 10 | 1 | 53 | 0 | 256 | 266 | 256 | self | [] | Returns | {"Assign": 1, "Expr": 2, "If": 1, "Return": 3, "Try": 1} | 4 | 11 | 4 | ["hasattr", "self.app_iterable.close", "self.error_middleware.exception_handler", "sys.exc_info"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3668393_python_trio_trio_asyncio.trio_asyncio._async_py.TrioEventLoop._close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3668393_python_trio_trio_asyncio.trio_asyncio._sync_py.SyncTrioEventLoop._close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._server.api.endpoints.ws_py.WebsocketHandler._on_disconnect"] | The function (_close) defined within the public class called CatchingIter.The function start at line 256 and ends at 266. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["hasattr", "self.app_iterable.close", "self.error_middleware.exception_handler", "sys.exc_info"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3668393_python_trio_trio_asyncio.trio_asyncio._async_py.TrioEventLoop._close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3668393_python_trio_trio_asyncio.trio_asyncio._sync_py.SyncTrioEventLoop._close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._server.api.endpoints.ws_py.WebsocketHandler._on_disconnect"]. |
pasteorg_paste | ErrorMiddleware | public | 0 | 0 | __init__ | def __init__(self, middleware, environ):self.middleware = middlewareself.environ = environself.source_url = request.construct_url(environ) | 1 | 4 | 3 | 29 | 0 | 276 | 279 | 276 | self,application,global_conf,debug,error_email,error_log,show_exceptions_in_wsgi_errors,from_address,smtp_server,smtp_username,smtp_password,smtp_use_tls,error_subject_prefix,error_message,xmlhttp_key | [] | None | {"Assign": 21, "If": 8} | 18 | 48 | 18 | ["converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.aslist", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get"] | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called ErrorMiddleware.The function start at line 276 and ends at 279. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [276.0] and does not return any value. It declares 18.0 functions, It has 18.0 functions called inside which are ["converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.aslist", "global_conf.get", "global_conf.get", "global_conf.get", "global_conf.get", "converters.asbool", "global_conf.get", "global_conf.get", "global_conf.get"], It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | Supplement | public | 0 | 0 | extraData | def extraData(self):data = {}cgi_vars = data[('extra', 'CGI Variables')] = {}wsgi_vars = data[('extra', 'WSGI Variables')] = {}hide_vars = ['paste.config', 'wsgi.errors', 'wsgi.input', 'wsgi.multithread', 'wsgi.multiprocess', 'wsgi.run_once', 'wsgi.version', 'wsgi.url_scheme']for name, value in self.environ.items():if name.upper() == name:if value:cgi_vars[name] = valueelif name not in hide_vars:wsgi_vars[name] = valueif self.environ['wsgi.version'] != (1, 0):wsgi_vars['wsgi.version'] = self.environ['wsgi.version']proc_desc = tuple([int(bool(self.environ[key])) for key in ('wsgi.multiprocess', 'wsgi.multithread', 'wsgi.run_once')])wsgi_vars['wsgi process'] = self.process_combos[proc_desc]wsgi_vars['application'] = self.middleware.applicationif 'paste.config' in self.environ:data[('extra', 'Configuration')] = dict(self.environ['paste.config'])return data | 8 | 25 | 1 | 199 | 0 | 281 | 305 | 281 | self | [] | Returns | {"Assign": 11, "For": 1, "If": 5, "Return": 1} | 6 | 25 | 6 | ["self.environ.items", "name.upper", "tuple", "int", "bool", "dict"] | 0 | [] | The function (extraData) defined within the public class called Supplement.The function start at line 281 and ends at 305. It contains 25 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters, and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["self.environ.items", "name.upper", "tuple", "int", "bool", "dict"]. |
pasteorg_paste | public | public | 0 | 0 | handle_exception | def handle_exception(exc_info, error_stream, html=True, debug_mode=False, error_email=None, error_log=None, show_exceptions_in_wsgi_errors=False, error_email_from='errors@localhost', smtp_server='localhost', smtp_username=None, smtp_password=None, smtp_use_tls=False, error_subject_prefix='', error_message=None, simple_html_error=False, ):"""For exception handling outside of a web contextUse like::import sysfrom paste.exceptions.errormiddleware import handle_exceptiontry:do stuffexcept Exception:handle_exception(sys.exc_info(), sys.stderr, html=False, ...other config...)If you want to report, but not fully catch the exception, call``raise`` after ``handle_exception``, which (when given no argument)will reraise the exception."""reported = Falseexc_data = collector.collect_exception(*exc_info)extra_data = ''if error_email:rep = reporter.EmailReporter(to_addresses=error_email,from_address=error_email_from,smtp_server=smtp_server,smtp_username=smtp_username,smtp_password=smtp_password,smtp_use_tls=smtp_use_tls,subject_prefix=error_subject_prefix)rep_err = send_report(rep, exc_data, html=html)if rep_err:extra_data += rep_errelse:reported = Trueif error_log:rep = reporter.LogReporter(filename=error_log)rep_err = send_report(rep, exc_data, html=html)if rep_err:extra_data += rep_errelse:reported = Trueif show_exceptions_in_wsgi_errors:rep = reporter.FileReporter(file=error_stream)rep_err = send_report(rep, exc_data, html=html)if rep_err:extra_data += rep_errelse:reported = Trueelse:line = ('Error - %s: %s\n'% (exc_data.exception_type, exc_data.exception_value))error_stream.write(line)if html:if debug_mode and simple_html_error:return_error = formatter.format_html(exc_data, include_hidden_frames=False,include_reusable=False, show_extra_data=False)reported = Trueelif debug_mode and not simple_html_error:error_html = formatter.format_html(exc_data,include_hidden_frames=True,include_reusable=False)head_html = formatter.error_css + formatter.hide_display_jsreturn_error = error_template(head_html, error_html, extra_data)extra_data = ''reported = Trueelse:msg = error_message or '''An error occurred.See the error logs for more information.(Turn debug on to display exception reports here)'''return_error = error_template('', msg, '')else:return_error = Noneif not reported and error_stream:err_report = formatter.format_text(exc_data, show_hidden_frames=True)err_report += '\n' + '-'*60 + '\n'error_stream.write(err_report)if extra_data:error_stream.write(extra_data)return return_error | 16 | 78 | 15 | 375 | 11 | 319 | 417 | 319 | exc_info,error_stream,html,debug_mode,error_email,error_log,show_exceptions_in_wsgi_errors,error_email_from,smtp_server,smtp_username,smtp_password,smtp_use_tls,error_subject_prefix,error_message,simple_html_error | ['line', 'error_html', 'head_html', 'extra_data', 'rep', 'msg', 'err_report', 'exc_data', 'rep_err', 'return_error', 'reported'] | Returns | {"Assign": 24, "AugAssign": 4, "Expr": 4, "If": 11, "Return": 1} | 15 | 99 | 15 | ["collector.collect_exception", "reporter.EmailReporter", "send_report", "reporter.LogReporter", "send_report", "reporter.FileReporter", "send_report", "error_stream.write", "formatter.format_html", "formatter.format_html", "error_template", "error_template", "formatter.format_text", "error_stream.write", "error_stream.write"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.errormiddleware_py.ErrorMiddleware.exception_handler"] | The function (handle_exception) defined within the public class called public.The function start at line 319 and ends at 417. It contains 78 lines of code and it has a cyclomatic complexity of 16. It takes 15 parameters, represented as [319.0], and this function return a value. It declares 15.0 functions, It has 15.0 functions called inside which are ["collector.collect_exception", "reporter.EmailReporter", "send_report", "reporter.LogReporter", "send_report", "reporter.FileReporter", "send_report", "error_stream.write", "formatter.format_html", "formatter.format_html", "error_template", "error_template", "formatter.format_text", "error_stream.write", "error_stream.write"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.errormiddleware_py.ErrorMiddleware.exception_handler"]. |
pasteorg_paste | public | public | 0 | 0 | send_report | def send_report(rep, exc_data, html=True):try:rep.report(exc_data)except Exception:output = StringIO()traceback.print_exc(file=output)if html:return """<p>Additionally an error occurred while sending the %s report:<pre>%s</pre></p>""" % (html.escape(str(rep)), output.getvalue())else:return ("Additionally an error occurred while sending the ""%s report:\n%s" % (str(rep), output.getvalue()))else:return '' | 3 | 19 | 3 | 82 | 1 | 419 | 437 | 419 | rep,exc_data,html | ['output'] | Returns | {"Assign": 1, "Expr": 2, "If": 1, "Return": 3, "Try": 1} | 8 | 19 | 8 | ["rep.report", "StringIO", "traceback.print_exc", "html.escape", "str", "output.getvalue", "str", "output.getvalue"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.errormiddleware_py.handle_exception"] | The function (send_report) defined within the public class called public.The function start at line 419 and ends at 437. It contains 19 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [419.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["rep.report", "StringIO", "traceback.print_exc", "html.escape", "str", "output.getvalue", "str", "output.getvalue"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.errormiddleware_py.handle_exception"]. |
pasteorg_paste | public | public | 0 | 0 | error_template | def error_template(head_html, exception, extra):return '''<html><head><title>Server Error</title>%s</head><body><h1>Server Error</h1>%s%s</body></html>''' % (head_html, exception, extra) | 1 | 13 | 3 | 19 | 0 | 439 | 451 | 439 | head_html,exception,extra | [] | Returns | {"Return": 1} | 0 | 13 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.errormiddleware_py.handle_exception"] | The function (error_template) defined within the public class called public.The function start at line 439 and ends at 451. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [439.0], and this function return a value. It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.errormiddleware_py.handle_exception"]. |
pasteorg_paste | public | public | 0 | 0 | make_error_middleware | def make_error_middleware(app, global_conf, **kw):return ErrorMiddleware(app, global_conf=global_conf, **kw) | 1 | 2 | 3 | 22 | 0 | 453 | 454 | 453 | app,global_conf,**kw | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["ErrorMiddleware"] | 0 | [] | The function (make_error_middleware) defined within the public class called public.The function start at line 453 and ends at 454. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [453.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["ErrorMiddleware"]. |
pasteorg_paste | public | public | 0 | 0 | html_quote | def html_quote(s):return html.escape(str(s), True) | 1 | 2 | 1 | 17 | 0 | 14 | 15 | 14 | s | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["html.escape", "str"] | 11 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.get_debug_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.make_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.preserve_whitespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py._str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.html__get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.attr"] | The function (html_quote) defined within the public class called public.The function start at line 14 and ends at 15. 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 inside which are ["html.escape", "str"], It has 11.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.get_debug_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.make_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.preserve_whitespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py._str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.html__get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.attr"]. |
pasteorg_paste | AbstractFormatter | public | 0 | 0 | __init__ | def __init__(self, show_hidden_frames=False, include_reusable=True, show_extra_data=True, trim_source_paths=()):self.show_hidden_frames = show_hidden_framesself.trim_source_paths = trim_source_pathsself.include_reusable = include_reusableself.show_extra_data = show_extra_data | 1 | 8 | 5 | 42 | 0 | 21 | 28 | 21 | self,show_hidden_frames,include_reusable,show_extra_data,trim_source_paths | [] | None | {"Assign": 4} | 0 | 8 | 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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"] | The function (__init__) defined within the public class called AbstractFormatter.The function start at line 21 and ends at 28. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [21.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]. |
pasteorg_paste | AbstractFormatter | public | 0 | 0 | format_collected_data | def format_collected_data(self, exc_data):general_data = {}if self.show_extra_data:for name, value_list in exc_data.extra_data.items():if isinstance(name, tuple):importance, title = nameelse:importance, title = 'normal', namefor value in value_list:general_data[(importance, name)] = self.format_extra_data(importance, title, value)lines = []frames = self.filter_frames(exc_data.frames)for frame in frames:sup = frame.supplementif sup:if sup.object:general_data[('important', 'object')] = self.format_sup_object(sup.object)if sup.source_url:general_data[('important', 'source_url')] = self.format_sup_url(sup.source_url)if sup.line:lines.append(self.format_sup_line_pos(sup.line, sup.column))if sup.expression:lines.append(self.format_sup_expression(sup.expression))if sup.warnings:for warning in sup.warnings:lines.append(self.format_sup_warning(warning))if sup.info:lines.extend(self.format_sup_info(sup.info))if frame.supplement_exception:lines.append('Exception in supplement:')lines.append(self.quote_long(frame.supplement_exception))if frame.traceback_info:lines.append(self.format_traceback_info(frame.traceback_info))filename = frame.filenameif filename and self.trim_source_paths:for path, repl in self.trim_source_paths:if filename.startswith(path):filename = repl + filename[len(path):]breaklines.append(self.format_source_line(filename or '?', frame))source = frame.get_source_line()long_source = frame.get_source_line(2)if source:lines.append(self.format_long_source(source, long_source))etype = exc_data.exception_typeif not isinstance(etype, str):etype = etype.__name__exc_info = self.format_exception_info(etype,exc_data.exception_value)data_by_importance = {'important': [], 'normal': [],'supplemental': [], 'extra': []}for (importance, name), value in general_data.items():data_by_importance[importance].append((name, value))for value in data_by_importance.values():value.sort()return self.format_combine(data_by_importance, lines, exc_info) | 25 | 62 | 2 | 464 | 0 | 30 | 91 | 30 | self,exc_data | [] | Returns | {"Assign": 17, "Expr": 11, "For": 7, "If": 15, "Return": 1} | 34 | 62 | 34 | ["exc_data.extra_data.items", "isinstance", "self.format_extra_data", "self.filter_frames", "self.format_sup_object", "self.format_sup_url", "lines.append", "self.format_sup_line_pos", "lines.append", "self.format_sup_expression", "lines.append", "self.format_sup_warning", "lines.extend", "self.format_sup_info", "lines.append", "lines.append", "self.quote_long", "lines.append", "self.format_traceback_info", "filename.startswith", "len", "lines.append", "self.format_source_line", "frame.get_source_line", "frame.get_source_line", "lines.append", "self.format_long_source", "isinstance", "self.format_exception_info", "general_data.items", "append", "data_by_importance.values", "value.sort", "self.format_combine"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_text"] | The function (format_collected_data) defined within the public class called AbstractFormatter.The function start at line 30 and ends at 91. It contains 62 lines of code and it has a cyclomatic complexity of 25. It takes 2 parameters, represented as [30.0], and this function return a value. It declares 34.0 functions, It has 34.0 functions called inside which are ["exc_data.extra_data.items", "isinstance", "self.format_extra_data", "self.filter_frames", "self.format_sup_object", "self.format_sup_url", "lines.append", "self.format_sup_line_pos", "lines.append", "self.format_sup_expression", "lines.append", "self.format_sup_warning", "lines.extend", "self.format_sup_info", "lines.append", "lines.append", "self.quote_long", "lines.append", "self.format_traceback_info", "filename.startswith", "len", "lines.append", "self.format_source_line", "frame.get_source_line", "frame.get_source_line", "lines.append", "self.format_long_source", "isinstance", "self.format_exception_info", "general_data.items", "append", "data_by_importance.values", "value.sort", "self.format_combine"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_text"]. |
pasteorg_paste | AbstractFormatter | public | 0 | 0 | filter_frames | def filter_frames(self, frames):"""Removes any frames that should be hidden, according to thevalues of traceback_hide, self.show_hidden_frames, and thehidden status of the final frame."""if self.show_hidden_frames:return framesnew_frames = []hidden = Falsefor frame in frames:hide = frame.traceback_hide# @@: It would be nice to signal a warning if an unknown# hide string was used, but I'm not sure where to put# that warning.if hide == 'before':new_frames = []hidden = Falseelif hide == 'before_and_this':new_frames = []hidden = Falsecontinueelif hide == 'reset':hidden = Falseelif hide == 'reset_and_this':hidden = Falsecontinueelif hide == 'after':hidden = Trueelif hide == 'after_and_this':hidden = Truecontinueelif hide:continueelif hidden:continuenew_frames.append(frame)if frames[-1] not in new_frames:# We must include the last frame; that we don't indicates# that the error happened where something was "hidden",# so we just have to show everythingreturn framesreturn new_frames | 12 | 32 | 2 | 119 | 0 | 93 | 135 | 93 | self,frames | [] | Returns | {"Assign": 11, "Expr": 2, "For": 1, "If": 10, "Return": 3} | 1 | 43 | 1 | ["new_frames.append"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.core.backtrace_py.capture_backtrace"] | The function (filter_frames) defined within the public class called AbstractFormatter.The function start at line 93 and ends at 135. It contains 32 lines of code and it has a cyclomatic complexity of 12. It takes 2 parameters, represented as [93.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["new_frames.append"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.core.backtrace_py.capture_backtrace"]. |
pasteorg_paste | AbstractFormatter | public | 0 | 0 | pretty_string_repr | def pretty_string_repr(self, s):"""Formats the string as a triple-quoted string when it containsnewlines."""if '\n' in s:s = repr(s)s = s[0]*3 + s[1:-1] + s[-1]*3s = s.replace('\\n', '\n')return selse:return repr(s) | 2 | 8 | 2 | 62 | 0 | 137 | 148 | 137 | self,s | [] | Returns | {"Assign": 3, "Expr": 1, "If": 1, "Return": 2} | 3 | 12 | 3 | ["repr", "s.replace", "repr"] | 0 | [] | The function (pretty_string_repr) defined within the public class called AbstractFormatter.The function start at line 137 and ends at 148. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [137.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["repr", "s.replace", "repr"]. |
pasteorg_paste | AbstractFormatter | public | 0 | 0 | long_item_list | def long_item_list(self, lst):"""Returns true if the list contains items that are long, and shouldbe more nicely formatted."""how_many = 0for item in lst:if len(repr(item)) > 40:how_many += 1if how_many >= 3:return Truereturn False | 4 | 8 | 2 | 39 | 0 | 150 | 161 | 150 | self,lst | [] | Returns | {"Assign": 1, "AugAssign": 1, "Expr": 1, "For": 1, "If": 2, "Return": 2} | 2 | 12 | 2 | ["len", "repr"] | 0 | [] | The function (long_item_list) defined within the public class called AbstractFormatter.The function start at line 150 and ends at 161. It contains 8 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [150.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["len", "repr"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | quote | def quote(self, s):return s | 1 | 2 | 2 | 9 | 0 | 165 | 166 | 165 | self,s | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 146 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell.xslt_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py._QueryArgument.url_encode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py._URLContext.get_encoded_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.ec2.client_py.Signature.encode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.s3.tests.test_client_py.S3URLContextTestCase.test_unicode_bucket", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.s3.tests.test_client_py.S3URLContextTestCase.test_unicode_object_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3634340_zalando_stups_lizzy.tests.test_app_py.test_list_stacks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI._create_archive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.onboard_nsd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.onboard_vnfd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.register_emulated_api", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.testing.subprocess_py.assert_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.testing.subprocess_py.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.make_sdists_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.venv_update_py.shellescape", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticmaps_py.test_staticmap_auto_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticmaps_py.test_staticmap_lonlatz_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticstyle_py.test_staticmap_auto_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticstyle_py.test_staticmap_lonlatz_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_cwl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_descriptor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3684511_ckan_ckanext_dcat.ckanext.dcat.profiles.base_py.CleanedURIRef._careful_quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.param_py.marshal_param"] | The function (quote) defined within the public class called TextFormatter, that inherit another class.The function start at line 165 and ends at 166. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [165.0], and this function return a value. It has 146.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell.xslt_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py._QueryArgument.url_encode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py._URLContext.get_encoded_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.ec2.client_py.Signature.encode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.s3.tests.test_client_py.S3URLContextTestCase.test_unicode_bucket", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.s3.tests.test_client_py.S3URLContextTestCase.test_unicode_object_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3634340_zalando_stups_lizzy.tests.test_app_py.test_list_stacks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI._create_archive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.onboard_nsd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.onboard_vnfd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.register_emulated_api", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.testing.subprocess_py.assert_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.testing.subprocess_py.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.make_sdists_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.venv_update_py.shellescape", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticmaps_py.test_staticmap_auto_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticmaps_py.test_staticmap_lonlatz_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticstyle_py.test_staticmap_auto_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticstyle_py.test_staticmap_lonlatz_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_cwl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_descriptor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3684511_ckan_ckanext_dcat.ckanext.dcat.profiles.base_py.CleanedURIRef._careful_quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.param_py.marshal_param"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | quote_long | def quote_long(self, s):return s | 1 | 2 | 2 | 9 | 0 | 167 | 168 | 167 | self,s | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (quote_long) defined within the public class called TextFormatter, that inherit another class.The function start at line 167 and ends at 168. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [167.0], and this function return a value.. |
pasteorg_paste | TextFormatter | public | 0 | 1 | emphasize | def emphasize(self, s):return s | 1 | 2 | 2 | 9 | 0 | 169 | 170 | 169 | self,s | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (emphasize) defined within the public class called TextFormatter, that inherit another class.The function start at line 169 and ends at 170. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [169.0], and this function return a value.. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_sup_object | def format_sup_object(self, obj):return 'In object: %s' % self.emphasize(self.quote(repr(obj))) | 1 | 2 | 2 | 24 | 0 | 171 | 172 | 171 | self,obj | [] | Returns | {"Return": 1} | 3 | 2 | 3 | ["self.emphasize", "self.quote", "repr"] | 0 | [] | The function (format_sup_object) defined within the public class called TextFormatter, that inherit another class.The function start at line 171 and ends at 172. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [171.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.emphasize", "self.quote", "repr"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_sup_url | def format_sup_url(self, url):return 'URL: %s' % self.quote(url) | 1 | 2 | 2 | 16 | 0 | 173 | 174 | 173 | self,url | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.quote"] | 0 | [] | The function (format_sup_url) defined within the public class called TextFormatter, that inherit another class.The function start at line 173 and ends at 174. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [173.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.quote"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_sup_line_pos | def format_sup_line_pos(self, line, column):if column:return self.emphasize('Line %i, Column %i' % (line, column))else:return self.emphasize('Line %i' % line) | 2 | 5 | 3 | 36 | 0 | 175 | 179 | 175 | self,line,column | [] | Returns | {"If": 1, "Return": 2} | 2 | 5 | 2 | ["self.emphasize", "self.emphasize"] | 0 | [] | The function (format_sup_line_pos) defined within the public class called TextFormatter, that inherit another class.The function start at line 175 and ends at 179. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [175.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.emphasize", "self.emphasize"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_sup_expression | def format_sup_expression(self, expr):return self.emphasize('In expression: %s' % self.quote(expr)) | 1 | 2 | 2 | 21 | 0 | 180 | 181 | 180 | self,expr | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["self.emphasize", "self.quote"] | 0 | [] | The function (format_sup_expression) defined within the public class called TextFormatter, that inherit another class.The function start at line 180 and ends at 181. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [180.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.emphasize", "self.quote"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_sup_warning | def format_sup_warning(self, warning):return 'Warning: %s' % self.quote(warning) | 1 | 2 | 2 | 16 | 0 | 182 | 183 | 182 | self,warning | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.quote"] | 0 | [] | The function (format_sup_warning) defined within the public class called TextFormatter, that inherit another class.The function start at line 182 and ends at 183. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [182.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.quote"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_sup_info | def format_sup_info(self, info):return [self.quote_long(info)] | 1 | 2 | 2 | 16 | 0 | 184 | 185 | 184 | self,info | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.quote_long"] | 0 | [] | The function (format_sup_info) defined within the public class called TextFormatter, that inherit another class.The function start at line 184 and ends at 185. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [184.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.quote_long"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_source_line | def format_source_line(self, filename, frame):return 'File %r, line %s in %s' % (filename, frame.lineno or '?', frame.name or '?') | 3 | 3 | 3 | 27 | 0 | 186 | 188 | 186 | self,filename,frame | [] | Returns | {"Return": 1} | 0 | 3 | 0 | [] | 0 | [] | The function (format_source_line) defined within the public class called TextFormatter, that inherit another class.The function start at line 186 and ends at 188. It contains 3 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [186.0], and this function return a value.. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_long_source | def format_long_source(self, source, long_source):return self.format_source(source) | 1 | 2 | 3 | 16 | 0 | 189 | 190 | 189 | self,source,long_source | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.format_source"] | 0 | [] | The function (format_long_source) defined within the public class called TextFormatter, that inherit another class.The function start at line 189 and ends at 190. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [189.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.format_source"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_source | def format_source(self, source_line):return '' + self.quote(source_line.strip()) | 1 | 2 | 2 | 20 | 0 | 191 | 192 | 191 | self,source_line | [] | Returns | {"Return": 1} | 2 | 2 | 2 | ["self.quote", "source_line.strip"] | 0 | [] | The function (format_source) defined within the public class called TextFormatter, that inherit another class.The function start at line 191 and ends at 192. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [191.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.quote", "source_line.strip"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_exception_info | def format_exception_info(self, etype, evalue):return self.emphasize('%s: %s' % (self.quote(etype), self.quote(evalue))) | 1 | 3 | 3 | 32 | 0 | 193 | 195 | 193 | self,etype,evalue | [] | Returns | {"Return": 1} | 3 | 3 | 3 | ["self.emphasize", "self.quote", "self.quote"] | 0 | [] | The function (format_exception_info) defined within the public class called TextFormatter, that inherit another class.The function start at line 193 and ends at 195. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [193.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.emphasize", "self.quote", "self.quote"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_traceback_info | def format_traceback_info(self, info):return info | 1 | 2 | 2 | 9 | 0 | 196 | 197 | 196 | self,info | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (format_traceback_info) defined within the public class called TextFormatter, that inherit another class.The function start at line 196 and ends at 197. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [196.0], and this function return a value.. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_combine | def format_combine(self, data_by_importance, lines, exc_info):lines[:0] = [value for n, value in data_by_importance['important']]lines.append(exc_info)for name in 'normal', 'supplemental', 'extra':lines.extend([value for n, value in data_by_importance[name]])return self.format_combine_lines(lines) | 4 | 6 | 4 | 68 | 0 | 199 | 204 | 199 | self,data_by_importance,lines,exc_info | [] | Returns | {"Assign": 1, "Expr": 2, "For": 1, "Return": 1} | 3 | 6 | 3 | ["lines.append", "lines.extend", "self.format_combine_lines"] | 0 | [] | The function (format_combine) defined within the public class called TextFormatter, that inherit another class.The function start at line 199 and ends at 204. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [199.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["lines.append", "lines.extend", "self.format_combine_lines"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_combine_lines | def format_combine_lines(self, lines):return '\n'.join(lines) | 1 | 2 | 2 | 14 | 0 | 206 | 207 | 206 | self,lines | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["join"] | 0 | [] | The function (format_combine_lines) defined within the public class called TextFormatter, that inherit another class.The function start at line 206 and ends at 207. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [206.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["join"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_extra_data | def format_extra_data(self, importance, title, value):if isinstance(value, str):s = self.pretty_string_repr(value)if '\n' in s:return '%s:\n%s' % (title, s)else:return '%s: %s' % (title, s)elif isinstance(value, dict):lines = ['\n', title, '-'*len(title)]items = value.items()items = sorted(items)for n, v in items:try:v = repr(v)except Exception as e:v = 'Cannot display: %s' % ev = truncate(v)lines.append('%s: %s' % (n, v))return '\n'.join(lines)elif (isinstance(value, (list, tuple))and self.long_item_list(value)):parts = [truncate(repr(v)) for v in value]return '%s: [\n%s]' % (title, ',\n'.join(parts))else:return '%s: %s' % (title, truncate(repr(value))) | 9 | 26 | 4 | 200 | 0 | 209 | 234 | 209 | self,importance,title,value | [] | Returns | {"Assign": 8, "Expr": 1, "For": 1, "If": 4, "Return": 5, "Try": 1} | 17 | 26 | 17 | ["isinstance", "self.pretty_string_repr", "isinstance", "len", "value.items", "sorted", "repr", "truncate", "lines.append", "join", "isinstance", "self.long_item_list", "truncate", "repr", "join", "truncate", "repr"] | 0 | [] | The function (format_extra_data) defined within the public class called TextFormatter, that inherit another class.The function start at line 209 and ends at 234. It contains 26 lines of code and it has a cyclomatic complexity of 9. It takes 4 parameters, represented as [209.0], and this function return a value. It declares 17.0 functions, and It has 17.0 functions called inside which are ["isinstance", "self.pretty_string_repr", "isinstance", "len", "value.items", "sorted", "repr", "truncate", "lines.append", "join", "isinstance", "self.long_item_list", "truncate", "repr", "join", "truncate", "repr"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | quote | def quote(self, s):return html_quote(s) | 1 | 2 | 2 | 12 | 0 | 238 | 239 | 238 | self,s | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 146 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell.xslt_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py._QueryArgument.url_encode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py._URLContext.get_encoded_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.ec2.client_py.Signature.encode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.s3.tests.test_client_py.S3URLContextTestCase.test_unicode_bucket", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.s3.tests.test_client_py.S3URLContextTestCase.test_unicode_object_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3634340_zalando_stups_lizzy.tests.test_app_py.test_list_stacks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI._create_archive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.onboard_nsd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.onboard_vnfd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.register_emulated_api", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.testing.subprocess_py.assert_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.testing.subprocess_py.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.make_sdists_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.venv_update_py.shellescape", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticmaps_py.test_staticmap_auto_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticmaps_py.test_staticmap_lonlatz_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticstyle_py.test_staticmap_auto_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticstyle_py.test_staticmap_lonlatz_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_cwl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_descriptor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3684511_ckan_ckanext_dcat.ckanext.dcat.profiles.base_py.CleanedURIRef._careful_quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.param_py.marshal_param"] | The function (quote) defined within the public class called TextFormatter, that inherit another class.The function start at line 238 and ends at 239. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [238.0], and this function return a value. It has 146.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell.xslt_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py._QueryArgument.url_encode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py._URLContext.get_encoded_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.ec2.client_py.Signature.encode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.s3.tests.test_client_py.S3URLContextTestCase.test_unicode_bucket", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.s3.tests.test_client_py.S3URLContextTestCase.test_unicode_object_name", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3634340_zalando_stups_lizzy.tests.test_app_py.test_list_stacks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI._create_archive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.onboard_nsd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.onboard_vnfd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3636863_sonata_nfv_son_emu.src.emuvim.api.osm.nbi_py.NBI.register_emulated_api", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.testing.subprocess_py.assert_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.testing.subprocess_py.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.make_sdists_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.venv_update_py.shellescape", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticmaps_py.test_staticmap_auto_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticmaps_py.test_staticmap_lonlatz_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticstyle_py.test_staticmap_auto_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.tests.test_staticstyle_py.test_staticmap_lonlatz_features", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_cwl", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_descriptor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.locations.dockstore_py._Ga4ghToolClient.get_tool_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3684511_ckan_ckanext_dcat.ckanext.dcat.profiles.base_py.CleanedURIRef._careful_quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.param_py.marshal_param"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | quote_long | def quote_long(self, s):return '<pre>%s</pre>' % self.quote(s) | 1 | 2 | 2 | 16 | 0 | 240 | 241 | 240 | self,s | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (quote_long) defined within the public class called TextFormatter, that inherit another class.The function start at line 240 and ends at 241. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [240.0], and this function return a value.. |
pasteorg_paste | TextFormatter | public | 0 | 1 | emphasize | def emphasize(self, s):return '<b>%s</b>' % s | 1 | 2 | 2 | 11 | 0 | 242 | 243 | 242 | self,s | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (emphasize) defined within the public class called TextFormatter, that inherit another class.The function start at line 242 and ends at 243. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [242.0], and this function return a value.. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_sup_url | def format_sup_url(self, url):return 'URL: <a href="%s">%s</a>' % (url, url) | 1 | 2 | 2 | 15 | 0 | 244 | 245 | 244 | self,url | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self.quote"] | 0 | [] | The function (format_sup_url) defined within the public class called TextFormatter, that inherit another class.The function start at line 244 and ends at 245. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [244.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.quote"]. |
pasteorg_paste | TextFormatter | public | 0 | 1 | format_combine_lines | def format_combine_lines(self, lines):return '\n'.join(lines) | 1 | 2 | 2 | 14 | 0 | 246 | 247 | 206 | self,lines | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["join"] | 0 | [] | The function (format_combine_lines) defined within the public class called TextFormatter, that inherit another class.The function start at line 246 and ends at 247. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [206.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["join"]. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.