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 | public | public | 0 | 0 | async_raise | def async_raise(tid, exctype):"""raises the exception, performs cleanup if needed.tid is the value given by thread.get_ident() (an integer).Raise SystemExit to kill a thread."""if not isinstance(exctype, type):raise TypeError("Only types can be raised (not instances)")if not isinstance(tid, int):raise TypeError("tid mu... | 5 | 11 | 2 | 93 | 1 | 13 | 29 | 13 | tid,exctype | ['res'] | None | {"Assign": 1, "Expr": 2, "If": 4} | 11 | 17 | 11 | ["isinstance", "TypeError", "isinstance", "TypeError", "ctypes.pythonapi.PyThreadState_SetAsyncExc", "ctypes.c_long", "ctypes.py_object", "ValueError", "ctypes.pythonapi.PyThreadState_SetAsyncExc", "ctypes.c_long", "SystemError"] | 0 | [] | The function (async_raise) defined within the public class called public.The function start at line 13 and ends at 29. It contains 11 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [13.0] and does not return any value. It declares 11.0 functions, and It has 11.0 functions ... |
pasteorg_paste | looper | public | 0 | 0 | __init__ | def __init__(self, seq):self.seq = seq | 1 | 2 | 2 | 12 | 0 | 35 | 36 | 35 | self,seq | [] | 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.... | The function (__init__) defined within the public class called looper.The function start at line 35 and ends at 36. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [35.0] and does not return any value. It has 6814.0 functions calling this function which are ["_... |
pasteorg_paste | looper | public | 0 | 0 | __iter__ | def __iter__(self):return looper_iter(self.seq) | 1 | 2 | 1 | 12 | 0 | 38 | 39 | 38 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["looper_iter"] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.soup_py.AttrList.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForei... | The function (__iter__) defined within the public class called looper.The function start at line 38 and ends at 39. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside... |
pasteorg_paste | looper | public | 0 | 0 | __repr__ | def __repr__(self):return '<%s for %r>' % (self.__class__.__name__, self.seq) | 1 | 3 | 1 | 19 | 0 | 41 | 43 | 41 | self | [] | Returns | {"Return": 1} | 0 | 3 | 0 | [] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called looper.The function start at line 41 and ends at 43. 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 has 29.0 functions calling this function which are ["_.... |
pasteorg_paste | looper | public | 0 | 0 | __init__ | def __init__(self, seq):self.seq = list(seq)self.pos = 0 | 1 | 3 | 2 | 20 | 0 | 47 | 49 | 47 | self,seq | [] | 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.... | The function (__init__) defined within the public class called looper.The function start at line 47 and ends at 49. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [47.0] and does not return any value. It has 6814.0 functions calling this function which are ["_... |
pasteorg_paste | looper | public | 0 | 0 | __iter__ | def __iter__(self):return self | 1 | 2 | 1 | 7 | 0 | 51 | 52 | 51 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["looper_iter"] | 17 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.soup_py.AttrList.__iter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForei... | The function (__iter__) defined within the public class called looper.The function start at line 51 and ends at 52. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside... |
pasteorg_paste | looper_iter | public | 0 | 0 | next | def next(self):if self.pos >= len(self.seq):raise StopIterationresult = loop_pos(self.seq, self.pos), self.seq[self.pos]self.pos += 1return result | 2 | 6 | 1 | 47 | 0 | 54 | 59 | 54 | self | [] | Returns | {"Assign": 1, "AugAssign": 1, "If": 1, "Return": 1} | 2 | 6 | 2 | ["len", "loop_pos"] | 984 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Package.build_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.get", "_.content... | The function (next) defined within the public class called looper_iter.The function start at line 54 and ends at 59. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called in... |
pasteorg_paste | looper | public | 0 | 0 | __init__ | def __init__(self, seq, pos):self.seq = seqself.pos = pos | 1 | 3 | 3 | 19 | 0 | 64 | 66 | 64 | self,seq | [] | 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.... | The function (__init__) defined within the public class called looper.The function start at line 64 and ends at 66. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [64.0] and does not return any value. It has 6814.0 functions calling this function which are ["_... |
pasteorg_paste | looper | public | 0 | 0 | __repr__ | def __repr__(self):return '<loop pos=%r at %r>' % (self.seq[self.pos], self.pos) | 1 | 3 | 1 | 22 | 0 | 68 | 70 | 68 | self | [] | Returns | {"Return": 1} | 0 | 3 | 0 | [] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called looper.The function start at line 68 and ends at 70. 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 has 29.0 functions calling this function which are ["_.... |
pasteorg_paste | loop_pos | public | 0 | 0 | index | def index(self):return self.pos | 1 | 2 | 1 | 9 | 0 | 72 | 73 | 72 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 63 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3474748_nzjrs_gnome_tweak_tool.gtweak.tweaks.tweak_group_shell_py.StaticWorkspaceTweak.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3474748_nzjrs_gnome_tweak_tool.gtweak.tweakview_py.Window._on_list_chan... | The function (index) defined within the public class called loop_pos.The function start at line 72 and ends at 73. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 63.0 functions calling this function which are ["_.c... |
pasteorg_paste | loop_pos | public | 0 | 0 | number | def number(self):return self.pos + 1 | 1 | 2 | 1 | 11 | 0 | 76 | 77 | 76 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87053930_hamsik2rang_krafton_jungle_whiteboard_algorithm.________.old.1351_______________py.number", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.ui._impl.input_py.number... | The function (number) defined within the public class called loop_pos.The function start at line 76 and ends at 77. 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 2.0 functions calling this function which are ["_.c... |
pasteorg_paste | loop_pos | public | 0 | 0 | item | def item(self):return self.seq[self.pos] | 1 | 2 | 1 | 14 | 0 | 80 | 81 | 80 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 135 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.analysis_py.IgnoredSamples._update_batch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.analysis_py.Superclass._... | The function (item) defined within the public class called loop_pos.The function start at line 80 and ends at 81. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 135.0 functions calling this function which are ["_.c... |
pasteorg_paste | looper_iter | public | 0 | 0 | next | def next(self):try:return self.seq[self.pos+1]except IndexError:return None | 2 | 5 | 1 | 23 | 0 | 84 | 88 | 84 | self | [] | Returns | {"Assign": 1, "AugAssign": 1, "If": 1, "Return": 1} | 2 | 6 | 2 | ["len", "loop_pos"] | 984 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Package.build_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.get", "_.content... | The function (next) defined within the public class called looper_iter.The function start at line 84 and ends at 88. 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 declares 2.0 functions, It has 2.0 functions called in... |
pasteorg_paste | loop_pos | public | 0 | 0 | previous | def previous(self):if self.pos == 0:return Nonereturn self.seq[self.pos-1] | 2 | 4 | 1 | 25 | 0 | 91 | 94 | 91 | self | [] | Returns | {"If": 1, "Return": 2} | 0 | 4 | 0 | [] | 0 | [] | The function (previous) defined within the public class called loop_pos.The function start at line 91 and ends at 94. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value.. |
pasteorg_paste | loop_pos | public | 0 | 0 | odd | def odd(self):return not self.pos % 2 | 1 | 2 | 1 | 12 | 0 | 97 | 98 | 97 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (odd) defined within the public class called loop_pos.The function start at line 97 and ends at 98. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value.. |
pasteorg_paste | loop_pos | public | 0 | 0 | even | def even(self):return self.pos % 2 | 1 | 2 | 1 | 11 | 0 | 101 | 102 | 101 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 0 | [] | The function (even) defined within the public class called loop_pos.The function start at line 101 and ends at 102. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value.. |
pasteorg_paste | loop_pos | public | 0 | 0 | first | def first(self):return self.pos == 0 | 1 | 2 | 1 | 11 | 0 | 105 | 106 | 105 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 338 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.diesel.protocols.DNS_py.DNSClient._actually_resolve", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.diesel.protocols.http.core_py.HttpClient.request", "_.content.gdr... | The function (first) defined within the public class called loop_pos.The function start at line 105 and ends at 106. 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 338.0 functions calling this function which are ["... |
pasteorg_paste | loop_pos | public | 0 | 0 | last | def last(self):return self.pos == len(self.seq)-1 | 1 | 2 | 1 | 18 | 0 | 109 | 110 | 109 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["len"] | 10 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_browser.calaccess_campaign_browser.models.filers_py.Committee.years_active", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.fri... | The function (last) defined within the public class called loop_pos.The function start at line 109 and ends at 110. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside... |
pasteorg_paste | loop_pos | public | 0 | 0 | length | def length(self):return len(self.seq) | 1 | 2 | 1 | 12 | 0 | 113 | 114 | 113 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["len"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961526_tkrajina_gpxpy.gpxpy.geo_py.length_2d", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961526_tkrajina_gpxpy.gpxpy.geo_py.length_3d", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_... | The function (length) defined within the public class called loop_pos.The function start at line 113 and ends at 114. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called insi... |
pasteorg_paste | loop_pos | public | 0 | 0 | first_group | def first_group(self, getter=None):"""Returns true if this item is the start of a new group,where groups mean that some attribute has changed.The gettercan be None (the item itself changes), an attribute name like``'.attr'``, a function, or a dict key or list index."""if self.first:return Truereturn self._compare_group... | 2 | 4 | 2 | 32 | 0 | 117 | 126 | 117 | self,getter | [] | Returns | {"Expr": 1, "If": 1, "Return": 2} | 1 | 10 | 1 | ["self._compare_group"] | 0 | [] | The function (first_group) defined within the public class called loop_pos.The function start at line 117 and ends at 126. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [117.0], and this function return a value. It declare 1.0 function, and It has 1.0 functi... |
pasteorg_paste | loop_pos | public | 0 | 0 | last_group | def last_group(self, getter=None):"""Returns true if this item is the end of a new group,where groups mean that some attribute has changed.The gettercan be None (the item itself changes), an attribute name like``'.attr'``, a function, or a dict key or list index."""if self.last:return Truereturn self._compare_group(sel... | 2 | 4 | 2 | 32 | 0 | 128 | 137 | 128 | self,getter | [] | Returns | {"Expr": 1, "If": 1, "Return": 2} | 1 | 10 | 1 | ["self._compare_group"] | 0 | [] | The function (last_group) defined within the public class called loop_pos.The function start at line 128 and ends at 137. It contains 4 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [128.0], and this function return a value. It declare 1.0 function, and It has 1.0 functio... |
pasteorg_paste | loop_pos | public | 0 | 0 | _compare_group | def _compare_group(self, item, other, getter):if getter is None:return item != otherelif (isinstance(getter, (bytes, str))and getter.startswith('.')):getter = getter[1:]if getter.endswith('()'):getter = getter[:-2]return getattr(item, getter)() != getattr(other, getter)()else:return getattr(item, getter) != getattr(oth... | 6 | 15 | 4 | 126 | 0 | 139 | 153 | 139 | self,item,other,getter | [] | Returns | {"Assign": 2, "If": 4, "Return": 5} | 10 | 15 | 10 | ["isinstance", "getter.startswith", "getter.endswith", "getattr", "getattr", "getattr", "getattr", "callable", "getter", "getter"] | 0 | [] | The function (_compare_group) defined within the public class called loop_pos.The function start at line 139 and ends at 153. It contains 15 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [139.0], and this function return a value. It declares 10.0 functions, and It has 10.... |
pasteorg_paste | public | public | 0 | 0 | parse_mime_type | def parse_mime_type(mime_type):"""Carves up a mime-type and returns a tuple of the (type, subtype, params) where 'params' is a dictionary of all the parameters for the media range. For example, the media range 'application/xhtml;q=0.5' would get parsed into: ('application', 'xhtml', {'q', '0.5'}) """type = mime_type.sp... | 9 | 18 | 1 | 143 | 4 | 24 | 49 | 24 | mime_type | ['params', 'subtype', 'type', 'param'] | Returns | {"Assign": 10, "Expr": 1, "For": 1, "If": 2, "Return": 1, "Try": 1} | 9 | 26 | 9 | ["mime_type.split", "type.split", "type.strip", "type.strip", "subtype.strip", "param.split", "len", "strip", "strip"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.mimeparse_py.parse_media_range"] | The function (parse_mime_type) defined within the public class called public.The function start at line 24 and ends at 49. It contains 18 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters, and this function return a value. It declares 9.0 functions, It has 9.0 functions ca... |
pasteorg_paste | public | public | 0 | 0 | parse_media_range | def parse_media_range(range):"""Carves up a media range and returns a tuple of the (type, subtype, params) where 'params' is a dictionary of all the parameters for the media range. For example, the media range 'application/*;q=0.5' would get parsed into: ('application', '*', {'q', '0.5'}) In addition this function also... | 3 | 8 | 1 | 53 | 0 | 51 | 70 | 51 | range | [] | Returns | {"Assign": 2, "Expr": 1, "If": 1, "Return": 1, "Try": 1} | 2 | 20 | 2 | ["parse_mime_type", "float"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.mimeparse_py.fitness_and_quality_parsed"] | The function (parse_media_range) defined within the public class called public.The function start at line 51 and ends at 70. It contains 8 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions c... |
pasteorg_paste | public | public | 0 | 0 | fitness_and_quality_parsed | def fitness_and_quality_parsed(mime_type, parsed_ranges):"""Find the best match for a given mime-type against a list of media_ranges that have already been parsed by parse_media_range(). Returns a tuple of the fitness value and the value of the 'q' quality parameter of the best match, or (-1, 0) if no match was found. ... | 15 | 21 | 2 | 132 | 3 | 72 | 99 | 72 | mime_type,parsed_ranges | ['fitness', 'best_fit_q', 'best_fitness'] | Returns | {"Assign": 5, "AugAssign": 3, "Expr": 1, "For": 2, "If": 6, "Return": 1} | 2 | 28 | 2 | ["parse_media_range", "float"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.mimeparse_py.best_match", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.mimeparse_py.quality_parsed"] | The function (fitness_and_quality_parsed) defined within the public class called public.The function start at line 72 and ends at 99. It contains 21 lines of code and it has a cyclomatic complexity of 15. It takes 2 parameters, represented as [72.0], and this function return a value. It declares 2.0 functions, It has 2... |
pasteorg_paste | public | public | 0 | 0 | quality_parsed | def quality_parsed(mime_type, parsed_ranges):"""Find the best match for a given mime-type againsta list of media_ranges that have already beenparsed by parse_media_range(). Returns the'q' quality parameter of the best match, 0 if nomatch was found. This function behaves the same as quality()except that 'parsed_ranges' ... | 1 | 2 | 2 | 18 | 0 | 101 | 109 | 101 | mime_type,parsed_ranges | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 9 | 1 | ["fitness_and_quality_parsed"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.mimeparse_py.desired_matches", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.mimeparse_py.quality"] | The function (quality_parsed) defined within the public class called public.The function start at line 101 and ends at 109. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [101.0], and this function return a value. It declare 1.0 function, It has 1.0 function c... |
pasteorg_paste | public | public | 0 | 0 | quality | def quality(mime_type, ranges):"""Returns the quality 'q' of a mime-type when comparedagainst the media-ranges in ranges. For example:>>> quality('text/html','text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5')0.7"""parsed_ranges = map(parse_media_range, ranges.split(','))return quali... | 1 | 3 | 2 | 28 | 1 | 111 | 120 | 111 | mime_type,ranges | ['parsed_ranges'] | Returns | {"Assign": 1, "Expr": 1, "Return": 1} | 3 | 10 | 3 | ["map", "ranges.split", "quality_parsed"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_mimeparse_py.test_quality"] | The function (quality) defined within the public class called public.The function start at line 111 and ends at 120. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [111.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions calle... |
pasteorg_paste | public | public | 0 | 0 | best_match | def best_match(supported, header):"""Takes a list of supported mime-types and finds the bestmatch for all the media-ranges listed in header. In case ofambiguity, whatever comes first in the list will be chosen.The value of header must be a string that conforms to the formatof the HTTP Accept: header. The value of 'supp... | 5 | 8 | 2 | 76 | 2 | 122 | 139 | 122 | supported,header | ['parsed_header', 'best_type'] | Returns | {"Assign": 2, "Expr": 1, "If": 1, "Return": 2} | 6 | 18 | 6 | ["list", "map", "header.split", "max", "fitness_and_quality_parsed", "enumerate"] | 0 | [] | The function (best_match) defined within the public class called public.The function start at line 122 and ends at 139. It contains 8 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [122.0], and this function return a value. It declares 6.0 functions, and It has 6.0 functio... |
pasteorg_paste | public | public | 0 | 0 | desired_matches | def desired_matches(desired, header):"""Takes a list of desired mime-types in the order the server prefers tosend them regardless of the browsers preference.Browsers (such as Firefox) technically want XML over HTML depending on howone reads the specification. This function is provided for a server todeclare a set of de... | 3 | 4 | 2 | 39 | 1 | 141 | 159 | 141 | desired,header | ['parsed_ranges'] | Returns | {"Assign": 1, "Expr": 1, "Return": 1} | 4 | 19 | 4 | ["list", "map", "header.split", "quality_parsed"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgiwrappers_py.WSGIRequest.match_accept"] | The function (desired_matches) defined within the public class called public.The function start at line 141 and ends at 159. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [141.0], and this function return a value. It declares 4.0 functions, It has 4.0 functio... |
pasteorg_paste | MultiDict | public | 0 | 1 | __init__ | def __init__(self, *args, **kw):if len(args) > 1:raise TypeError("MultiDict can only be called with one positional argument")if args:if hasattr(args[0], 'iteritems'):items = args[0].iteritems()elif hasattr(args[0], 'items'):items = args[0].items()else:items = args[0]self._items = list(items)else:self._items = []self._i... | 5 | 15 | 3 | 105 | 0 | 18 | 32 | 18 | self,*args,**kw | [] | None | {"Assign": 5, "Expr": 1, "If": 4} | 9 | 15 | 9 | ["len", "TypeError", "hasattr", "iteritems", "hasattr", "items", "list", "self._items.extend", "kw.items"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called MultiDict, that inherit another class.The function start at line 18 and ends at 32. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [18.0] and does not return any value. It declares 9.0 functions, ... |
pasteorg_paste | MultiDict | public | 0 | 1 | __getitem__ | def __getitem__(self, key):for k, v in self._items:if k == key:return vraise KeyError(repr(key)) | 3 | 5 | 2 | 31 | 0 | 34 | 38 | 34 | self,key | [] | Returns | {"For": 1, "If": 1, "Return": 1} | 2 | 5 | 2 | ["KeyError", "repr"] | 28 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.AbstractForeignList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.ForeignList.__g... | The function (__getitem__) defined within the public class called MultiDict, that inherit another class.The function start at line 34 and ends at 38. It contains 5 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [34.0], and this function return a value. It declares 2.0 funct... |
pasteorg_paste | MultiDict | public | 0 | 1 | __setitem__ | def __setitem__(self, key, value):try:del self[key]except KeyError:passself._items.append((key, value)) | 2 | 6 | 3 | 32 | 0 | 40 | 45 | 40 | self,key,value | [] | None | {"Expr": 1, "Try": 1} | 1 | 6 | 1 | ["self._items.append"] | 33 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.mm.utils_py.APIDict.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList.__setitem__", "_.content.gdri... | The function (__setitem__) defined within the public class called MultiDict, that inherit another class.The function start at line 40 and ends at 45. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [40.0] and does not return any value. It declare 1.0 function, ... |
pasteorg_paste | MultiDict | public | 0 | 1 | add | def add(self, key, value):"""Add the key and value, not overwriting any previous value."""self._items.append((key, value)) | 1 | 2 | 3 | 22 | 0 | 47 | 51 | 47 | self,key,value | [] | None | {"Expr": 2} | 1 | 5 | 1 | ["self._items.append"] | 358 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.tests.test_client_py.SSHClientTest.test_1_client", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.tests.test_client_py.SSHClientTest.test_2_client_dsa", "_.content.gdrive... | The function (add) defined within the public class called MultiDict, that inherit another class.The function start at line 47 and ends at 51. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [47.0] and does not return any value. It declare 1.0 function, It has 1... |
pasteorg_paste | MultiDict | public | 0 | 1 | getall | def getall(self, key):"""Return a list of all values matching the key (may be an empty list)"""result = []for k, v in self._items:if type(key) == type(k) and key == k:result.append(v)return result | 4 | 6 | 2 | 44 | 0 | 53 | 61 | 53 | self,key | [] | Returns | {"Assign": 1, "Expr": 2, "For": 1, "If": 1, "Return": 1} | 3 | 9 | 3 | ["type", "type", "result.append"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77599168_scrapy_plugins_scrapy_zyte_api.tests.test_api_requests_py.test_response_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77599168_scrapy_plugins_scrapy_zyte_api.tests.test_responses_py.test__process_res... | The function (getall) defined within the public class called MultiDict, that inherit another class.The function start at line 53 and ends at 61. It contains 6 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [53.0], and this function return a value. It declares 3.0 functions,... |
pasteorg_paste | MultiDict | public | 0 | 1 | getone | def getone(self, key):"""Get one value matching the key, raising a KeyError if multiplevalues were found."""v = self.getall(key)if not v:raise KeyError('Key not found: %r' % key)if len(v) > 1:raise KeyError('Multiple values match %r: %r' % (key, v))return v[0] | 3 | 7 | 2 | 51 | 0 | 63 | 73 | 63 | self,key | [] | Returns | {"Assign": 1, "Expr": 1, "If": 2, "Return": 1} | 4 | 11 | 4 | ["self.getall", "KeyError", "len", "KeyError"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.examples.hlapi.v1arch.asyncio.manager.cmdgen.multiple_sequential_queries_py.getall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.examples.hlapi.v3arch.asyncio.manager.... | The function (getone) defined within the public class called MultiDict, that inherit another class.The function start at line 63 and ends at 73. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [63.0], and this function return a value. It declares 4.0 functions,... |
pasteorg_paste | MultiDict | public | 0 | 1 | mixed | def mixed(self):"""Returns a dictionary where the values are either singlevalues, or a list of values when a key/value appears more thanonce in this dictionary.This is similar to the kind ofdictionary often used to represent the variables in a webrequest."""result = {}multi = {}for key, value in self._items:if key in r... | 4 | 13 | 1 | 73 | 0 | 75 | 96 | 75 | self | [] | Returns | {"Assign": 5, "Expr": 2, "For": 1, "If": 2, "Return": 1} | 1 | 22 | 1 | ["append"] | 0 | [] | The function (mixed) defined within the public class called MultiDict, that inherit another class.The function start at line 75 and ends at 96. It contains 13 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It declare 1.0 function, and ... |
pasteorg_paste | MultiDict | public | 0 | 1 | dict_of_lists | def dict_of_lists(self):"""Returns a dictionary where each key is associated with alist of values."""result = {}for key, value in self._items:if key in result:result[key].append(value)else:result[key] = [value]return result | 3 | 8 | 1 | 45 | 0 | 98 | 109 | 98 | self | [] | Returns | {"Assign": 2, "Expr": 2, "For": 1, "If": 1, "Return": 1} | 1 | 12 | 1 | ["append"] | 0 | [] | The function (dict_of_lists) defined within the public class called MultiDict, that inherit another class.The function start at line 98 and ends at 109. It contains 8 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declare 1.0 functi... |
pasteorg_paste | MultiDict | public | 0 | 1 | __delitem__ | def __delitem__(self, key):items = self._itemsfound = Falsefor i in range(len(items)-1, -1, -1):if type(items[i][0]) == type(key) and items[i][0] == key:del items[i]found = Trueif not found:raise KeyError(repr(key)) | 5 | 9 | 2 | 81 | 0 | 111 | 119 | 111 | self,key | [] | None | {"Assign": 3, "For": 1, "If": 2} | 6 | 9 | 6 | ["range", "len", "type", "type", "KeyError", "repr"] | 14 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.mm.utils_py.APIDict.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.utils_py.APIList.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Data... | The function (__delitem__) defined within the public class called MultiDict, that inherit another class.The function start at line 111 and ends at 119. It contains 9 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [111.0] and does not return any value. It declares 6.0 functi... |
pasteorg_paste | MultiDict | public | 0 | 1 | __contains__ | def __contains__(self, key):for k, v in self._items:if type(k) == type(key) and k == key:return Truereturn False | 4 | 5 | 2 | 35 | 0 | 121 | 125 | 121 | self,key | [] | Returns | {"For": 1, "If": 1, "Return": 2} | 2 | 5 | 2 | ["type", "type"] | 10 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3627162_cinpla_exdir.exdir.core.exdir_file_py.File.__contains__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.util_py.AliasKeyDict.__contains__", "_.content.gdrive.MyDrive.Ph... | The function (__contains__) defined within the public class called MultiDict, that inherit another class.The function start at line 121 and ends at 125. It contains 5 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [121.0], and this function return a value. It declares 2.0 f... |
pasteorg_paste | MultiDict | public | 0 | 1 | clear | def clear(self):self._items = [] | 1 | 2 | 1 | 11 | 0 | 129 | 130 | 129 | self | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 54 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsWrapLines.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.test_runner_py.ViewTestCase.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis... | The function (clear) defined within the public class called MultiDict, that inherit another class.The function start at line 129 and ends at 130. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 54.0 functions calling th... |
pasteorg_paste | MultiDict | public | 0 | 1 | copy | def copy(self):return MultiDict(self) | 1 | 2 | 1 | 10 | 0 | 132 | 133 | 132 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["MultiDict"] | 365 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.DefinitionViewsTest.test_definition_update_must_be_valid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535523_dbcli_vcli.vcli.packages.ordereddict_py.Order... | The function (copy) defined within the public class called MultiDict, that inherit another class.The function start at line 132 and ends at 133. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It h... |
pasteorg_paste | MultiDict | public | 0 | 1 | setdefault | def setdefault(self, key, default=None):for k, v in self._items:if key == k:return vself._items.append((key, default))return default | 3 | 6 | 3 | 41 | 0 | 135 | 140 | 135 | self,key,default | [] | Returns | {"Expr": 1, "For": 1, "If": 1, "Return": 2} | 1 | 6 | 1 | ["self._items.append"] | 53 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.argparse_py._SubParsersAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.__init___py.Blueprint.add_service", "_.content.... | The function (setdefault) defined within the public class called MultiDict, that inherit another class.The function start at line 135 and ends at 140. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [135.0], and this function return a value. It declare 1.0 func... |
pasteorg_paste | MultiDict | public | 0 | 1 | pop | def pop(self, key, *args):if len(args) > 1:raise TypeError("pop expected at most 2 arguments, got "+ repr(1 + len(args)))for i in range(len(self._items)):if type(self._items[i][0]) == type(key) and self._items[i][0] == key:v = self._items[i][1]del self._items[i]return vif args:return args[0]else:raise KeyError(repr(key... | 6 | 13 | 3 | 115 | 0 | 142 | 154 | 142 | self,key,*args | [] | Returns | {"Assign": 1, "For": 1, "If": 3, "Return": 2} | 10 | 13 | 10 | ["len", "TypeError", "repr", "len", "range", "len", "type", "type", "KeyError", "repr"] | 221 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_list_py.ListFieldTest.test_can_be_defined_with_a_field_type", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_sch... | The function (pop) defined within the public class called MultiDict, that inherit another class.The function start at line 142 and ends at 154. It contains 13 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [142.0], and this function return a value. It declares 10.0 function... |
pasteorg_paste | MultiDict | public | 0 | 1 | popitem | def popitem(self):return self._items.pop() | 1 | 2 | 1 | 13 | 0 | 156 | 157 | 156 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self._items.pop"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.odm.icollection_py.InstrumentedObj.popitem", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.collectors.available.software.long_lived.elasticsearch_py._collect_... | The function (popitem) defined within the public class called MultiDict, that inherit another class.The function start at line 156 and ends at 157. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, I... |
pasteorg_paste | MultiDict | public | 0 | 1 | update | def update(self, other=None, **kwargs):if other is None:passelif hasattr(other, 'items'):self._items.extend(other.items())elif hasattr(other, 'keys'):for k in other.keys():self._items.append((k, other[k]))else:for k, v in other:self._items.append((k, v))if kwargs:self.update(kwargs) | 7 | 13 | 3 | 100 | 0 | 159 | 171 | 159 | self,other,**kwargs | [] | None | {"Expr": 4, "For": 2, "If": 4} | 8 | 13 | 8 | ["hasattr", "self._items.extend", "other.items", "hasattr", "other.keys", "self._items.append", "self._items.append", "self.update"] | 403 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.duckhunt_py.ducks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.backends.memory.__init___py.MemoryBackend.put_record", "_.content.gdrive... | The function (update) defined within the public class called MultiDict, that inherit another class.The function start at line 159 and ends at 171. It contains 13 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [159.0] and does not return any value. It declares 8.0 functions,... |
pasteorg_paste | MultiDict | public | 0 | 1 | __repr__ | def __repr__(self):items = ', '.join(['(%r, %r)' % v for v in self._items])return '%s([%s])' % (self.__class__.__name__, items) | 2 | 3 | 1 | 35 | 0 | 173 | 175 | 173 | self | [] | Returns | {"Assign": 1, "Return": 1} | 1 | 3 | 1 | ["join"] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called MultiDict, that inherit another class.The function start at line 173 and ends at 175. It contains 3 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, ... |
pasteorg_paste | MultiDict | public | 0 | 1 | __len__ | def __len__(self):return len(self._items) | 1 | 2 | 1 | 12 | 0 | 177 | 178 | 177 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["len"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.data.imagenet_py._TinyImagenet200Val.__len__"] | The function (__len__) defined within the public class called MultiDict, that inherit another class.The function start at line 177 and ends at 178. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, I... |
pasteorg_paste | MultiDict | public | 0 | 1 | keys | def keys(self):return [k for k, v in self._items] | 2 | 2 | 1 | 17 | 0 | 184 | 185 | 184 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 420 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.filters_py.contains_filter", "_.conte... | The function (keys) defined within the public class called MultiDict, 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 2. The function does not take any parameters, and this function return a value. It has 420.0 functions callin... |
pasteorg_paste | MultiDict | public | 0 | 1 | iterkeys | def iterkeys(self):for k, v in self._items:yield k | 2 | 3 | 1 | 16 | 0 | 187 | 189 | 187 | self | [] | None | {"Expr": 1, "For": 1} | 0 | 3 | 0 | [] | 16 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.walk_py.walk_services", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3591075_smarkets_smk_python_sdk.smarkets.itertools_py.listkeys", "_.content.gdrive.MyDrive.Phd_Thesis.Da... | The function (iterkeys) defined within the public class called MultiDict, that inherit another class.The function start at line 187 and ends at 189. 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 has 16.0 functions calling... |
pasteorg_paste | MultiDict | public | 0 | 1 | items | def items(self):return self._items[:] | 1 | 2 | 1 | 12 | 0 | 193 | 194 | 193 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 850 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record._diff", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.filters_py.filters_handler", "_.content.gdrive... | The function (items) defined within the public class called MultiDict, that inherit another class.The function start at line 193 and ends at 194. 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 850.0 functions calli... |
pasteorg_paste | MultiDict | public | 0 | 1 | iteritems | def iteritems(self):return iter(self._items) | 1 | 2 | 1 | 12 | 0 | 196 | 197 | 196 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["iter"] | 84 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.permissions_py.DaybedAuthorizationPolicy.permits", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.permissions_py.dict_list2set", "_.content.gd... | The function (iteritems) defined within the public class called MultiDict, 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. The function does not take any parameters, and this function return a value. It declare 1.0 function,... |
pasteorg_paste | MultiDict | public | 0 | 1 | values | def values(self):return [v for k, v in self._items] | 2 | 2 | 1 | 17 | 0 | 199 | 200 | 199 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 338 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.backends.memory.__init___py.MemoryBackend.__get_raw_records", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_brow... | The function (values) defined within the public class called MultiDict, that inherit another class.The function start at line 199 and ends at 200. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It has 338.0 functions call... |
pasteorg_paste | MultiDict | public | 0 | 1 | itervalues | def itervalues(self):for k, v in self._items:yield v | 2 | 3 | 1 | 16 | 0 | 202 | 204 | 202 | self | [] | None | {"Expr": 1, "For": 1} | 0 | 3 | 0 | [] | 12 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.io.server.__init___py.put_blueprint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3591075_smarkets_smk_python_sdk.smarkets.itertools_py.listvalues", "_.content.gdrive.MyDri... | The function (itervalues) defined within the public class called MultiDict, that inherit another class.The function start at line 202 and ends at 204. 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 has 12.0 functions calli... |
pasteorg_paste | MultiDict | public | 0 | 1 | __init__ | def __init__(self, multi=None, encoding=None, errors='strict', decode_keys=False):self.multi = multiif encoding is None:encoding = sys.getdefaultencoding()self.encoding = encodingself.errors = errorsself.decode_keys = decode_keysif self.decode_keys:items = self.multi._itemsfor index, item in enumerate(items):key, value... | 4 | 14 | 5 | 98 | 0 | 223 | 236 | 223 | self,*args,**kw | [] | None | {"Assign": 5, "Expr": 1, "If": 4} | 9 | 15 | 9 | ["len", "TypeError", "hasattr", "iteritems", "hasattr", "items", "list", "self._items.extend", "kw.items"] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called MultiDict, that inherit another class.The function start at line 223 and ends at 236. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 5 parameters, represented as [223.0] and does not return any value. It declares 9.0 function... |
pasteorg_paste | UnicodeMultiDict | public | 0 | 1 | _encode_key | def _encode_key(self, key):if self.decode_keys:try:key = key.encode(self.encoding, self.errors)except AttributeError:passreturn key | 3 | 7 | 2 | 34 | 0 | 238 | 244 | 238 | self,key | [] | Returns | {"Assign": 1, "If": 1, "Return": 1, "Try": 1} | 1 | 7 | 1 | ["key.encode"] | 0 | [] | The function (_encode_key) defined within the public class called UnicodeMultiDict, that inherit another class.The function start at line 238 and ends at 244. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [238.0], and this function return a value. It declare ... |
pasteorg_paste | UnicodeMultiDict | public | 0 | 1 | _decode_key | def _decode_key(self, key):if self.decode_keys:try:key = key.decode(self.encoding, self.errors)except AttributeError:passreturn key | 3 | 7 | 2 | 34 | 0 | 246 | 252 | 246 | self,key | [] | Returns | {"Assign": 1, "If": 1, "Return": 1, "Try": 1} | 1 | 7 | 1 | ["key.decode"] | 0 | [] | The function (_decode_key) defined within the public class called UnicodeMultiDict, that inherit another class.The function start at line 246 and ends at 252. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [246.0], and this function return a value. It declare ... |
pasteorg_paste | UnicodeMultiDict | public | 0 | 1 | _decode_value | def _decode_value(self, value):"""Decode the specified value to unicode. Assumes value is a ``str`` or`FieldStorage`` object.``FieldStorage`` objects are specially handled."""if isinstance(value, FieldStorage):# decode FieldStorage's field name and filenamedecode_name = self.decode_keys and isinstance(value.name, bytes... | 6 | 13 | 2 | 86 | 0 | 254 | 273 | 254 | self,value | [] | Returns | {"Assign": 4, "Expr": 1, "If": 3, "Return": 1, "Try": 1} | 5 | 20 | 5 | ["isinstance", "isinstance", "copy.copy", "value.name.decode", "value.decode"] | 0 | [] | The function (_decode_value) defined within the public class called UnicodeMultiDict, that inherit another class.The function start at line 254 and ends at 273. It contains 13 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [254.0], and this function return a value. It decla... |
pasteorg_paste | MultiDict | public | 0 | 1 | __getitem__ | def __getitem__(self, key):key = self._encode_key(key)return self._decode_value(self.multi.__getitem__(key)) | 1 | 3 | 2 | 29 | 0 | 275 | 277 | 275 | self,key | [] | Returns | {"For": 1, "If": 1, "Return": 1} | 2 | 5 | 2 | ["KeyError", "repr"] | 28 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.AbstractForeignList.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.ForeignList.__g... | The function (__getitem__) defined within the public class called MultiDict, that inherit another class.The function start at line 275 and ends at 277. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [275.0], and this function return a value. It declares 2.0 fu... |
pasteorg_paste | MultiDict | public | 0 | 1 | __setitem__ | def __setitem__(self, key, value):key = self._encode_key(key)self.multi.__setitem__(key, value) | 1 | 3 | 3 | 27 | 0 | 279 | 281 | 279 | self,key,value | [] | None | {"Expr": 1, "Try": 1} | 1 | 6 | 1 | ["self._items.append"] | 33 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.mm.utils_py.APIDict.__setitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.fields.lists_py.BaseForeignList.__setitem__", "_.content.gdri... | The function (__setitem__) defined within the public class called MultiDict, that inherit another class.The function start at line 279 and ends at 281. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [279.0] and does not return any value. It declare 1.0 functio... |
pasteorg_paste | MultiDict | public | 0 | 1 | add | def add(self, key, value):"""Add the key and value, not overwriting any previous value."""key = self._encode_key(key)self.multi.add(key, value) | 1 | 3 | 3 | 28 | 0 | 283 | 288 | 283 | self,key,value | [] | None | {"Expr": 2} | 1 | 5 | 1 | ["self._items.append"] | 358 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.tests.test_client_py.SSHClientTest.test_1_client", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3470342_bitprophet_ssh.tests.test_client_py.SSHClientTest.test_2_client_dsa", "_.content.gdrive... | The function (add) defined within the public class called MultiDict, that inherit another class.The function start at line 283 and ends at 288. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [283.0] and does not return any value. It declare 1.0 function, It ha... |
pasteorg_paste | MultiDict | public | 0 | 1 | getall | def getall(self, key):"""Return a list of all values matching the key (may be an empty list)"""key = self._encode_key(key)return [self._decode_value(v) for v in self.multi.getall(key)] | 2 | 3 | 2 | 36 | 0 | 290 | 295 | 290 | self,key | [] | Returns | {"Assign": 1, "Expr": 2, "For": 1, "If": 1, "Return": 1} | 3 | 9 | 3 | ["type", "type", "result.append"] | 5 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77599168_scrapy_plugins_scrapy_zyte_api.tests.test_api_requests_py.test_response_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77599168_scrapy_plugins_scrapy_zyte_api.tests.test_responses_py.test__process_res... | The function (getall) defined within the public class called MultiDict, that inherit another class.The function start at line 290 and ends at 295. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [290.0], and this function return a value. It declares 3.0 functio... |
pasteorg_paste | MultiDict | public | 0 | 1 | getone | def getone(self, key):"""Get one value matching the key, raising a KeyError if multiplevalues were found."""key = self._encode_key(key)return self._decode_value(self.multi.getone(key)) | 1 | 3 | 2 | 30 | 0 | 297 | 303 | 297 | self,key | [] | Returns | {"Assign": 1, "Expr": 1, "If": 2, "Return": 1} | 4 | 11 | 4 | ["self.getall", "KeyError", "len", "KeyError"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.examples.hlapi.v1arch.asyncio.manager.cmdgen.multiple_sequential_queries_py.getall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3689643_etingof_pysnmp.examples.hlapi.v3arch.asyncio.manager.... | The function (getone) defined within the public class called MultiDict, that inherit another class.The function start at line 297 and ends at 303. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [297.0], and this function return a value. It declares 4.0 functio... |
pasteorg_paste | MultiDict | public | 0 | 1 | mixed | def mixed(self):"""Returns a dictionary where the values are either singlevalues, or a list of values when a key/value appears more thanonce in this dictionary.This is similar to the kind ofdictionary often used to represent the variables in a webrequest."""unicode_mixed = {}for key, value in self.multi.mixed().items()... | 4 | 9 | 1 | 72 | 0 | 305 | 320 | 305 | self | [] | Returns | {"Assign": 5, "Expr": 2, "For": 1, "If": 2, "Return": 1} | 1 | 22 | 1 | ["append"] | 0 | [] | The function (mixed) defined within the public class called MultiDict, that inherit another class.The function start at line 305 and ends at 320. It contains 9 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It declare 1.0 function, and... |
pasteorg_paste | MultiDict | public | 0 | 1 | dict_of_lists | def dict_of_lists(self):"""Returns a dictionary where each key is associated with alist of values."""unicode_dict = {}for key, value in self.multi.dict_of_lists().items():value = [self._decode_value(value) for value in value]unicode_dict[self._decode_key(key)] = valuereturn unicode_dict | 3 | 6 | 1 | 54 | 0 | 322 | 331 | 322 | self | [] | Returns | {"Assign": 2, "Expr": 2, "For": 1, "If": 1, "Return": 1} | 1 | 12 | 1 | ["append"] | 0 | [] | The function (dict_of_lists) defined within the public class called MultiDict, that inherit another class.The function start at line 322 and ends at 331. 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 declare 1.0 funct... |
pasteorg_paste | MultiDict | public | 0 | 1 | __delitem__ | def __delitem__(self, key):key = self._encode_key(key)self.multi.__delitem__(key) | 1 | 3 | 2 | 23 | 0 | 333 | 335 | 333 | self,key | [] | None | {"Assign": 3, "For": 1, "If": 2} | 6 | 9 | 6 | ["range", "len", "type", "type", "KeyError", "repr"] | 14 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.mm.utils_py.APIDict.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.utils_py.APIList.__delitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Data... | The function (__delitem__) defined within the public class called MultiDict, that inherit another class.The function start at line 333 and ends at 335. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [333.0] and does not return any value. It declares 6.0 functi... |
pasteorg_paste | MultiDict | public | 0 | 1 | __contains__ | def __contains__(self, key):key = self._encode_key(key)return self.multi.__contains__(key) | 1 | 3 | 2 | 24 | 0 | 337 | 339 | 337 | self,key | [] | Returns | {"For": 1, "If": 1, "Return": 2} | 2 | 5 | 2 | ["type", "type"] | 10 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3627162_cinpla_exdir.exdir.core.exdir_file_py.File.__contains__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.util_py.AliasKeyDict.__contains__", "_.content.gdrive.MyDrive.Ph... | The function (__contains__) defined within the public class called MultiDict, that inherit another class.The function start at line 337 and ends at 339. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [337.0], and this function return a value. It declares 2.0 f... |
pasteorg_paste | MultiDict | public | 0 | 1 | clear | def clear(self):self.multi.clear() | 1 | 2 | 1 | 12 | 0 | 343 | 344 | 343 | self | [] | None | {"Assign": 1} | 0 | 2 | 0 | [] | 54 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsWrapLines.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.test_runner_py.ViewTestCase.tearDown", "_.content.gdrive.MyDrive.Phd_Thesis... | The function (clear) defined within the public class called MultiDict, that inherit another class.The function start at line 343 and ends at 344. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 54.0 functions calling th... |
pasteorg_paste | MultiDict | public | 0 | 1 | copy | def copy(self):return UnicodeMultiDict(self.multi.copy(), self.encoding, self.errors,decode_keys=self.decode_keys) | 1 | 3 | 1 | 30 | 0 | 346 | 348 | 346 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["MultiDict"] | 365 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_views_py.DefinitionViewsTest.test_definition_update_must_be_valid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535523_dbcli_vcli.vcli.packages.ordereddict_py.Order... | The function (copy) defined within the public class called MultiDict, that inherit another class.The function start at line 346 and ends at 348. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It h... |
pasteorg_paste | MultiDict | public | 0 | 1 | setdefault | def setdefault(self, key, default=None):key = self._encode_key(key)return self._decode_value(self.multi.setdefault(key, default)) | 1 | 3 | 3 | 35 | 0 | 350 | 352 | 350 | self,key,default | [] | Returns | {"Expr": 1, "For": 1, "If": 1, "Return": 2} | 1 | 6 | 1 | ["self._items.append"] | 53 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.argparse_py._SubParsersAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.__init___py.Blueprint.add_service", "_.content.... | The function (setdefault) defined within the public class called MultiDict, that inherit another class.The function start at line 350 and ends at 352. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [350.0], and this function return a value. It declare 1.0 func... |
pasteorg_paste | MultiDict | public | 0 | 1 | pop | def pop(self, key, *args):key = self._encode_key(key)return self._decode_value(self.multi.pop(key, *args)) | 1 | 3 | 3 | 35 | 0 | 354 | 356 | 354 | self,key,*args | [] | Returns | {"Assign": 1, "For": 1, "If": 3, "Return": 2} | 10 | 13 | 10 | ["len", "TypeError", "repr", "len", "range", "len", "type", "type", "KeyError", "repr"] | 221 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_schemas_list_py.ListFieldTest.test_can_be_defined_with_a_field_type", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.tests.test_sch... | The function (pop) defined within the public class called MultiDict, that inherit another class.The function start at line 354 and ends at 356. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [354.0], and this function return a value. It declares 10.0 functions... |
pasteorg_paste | MultiDict | public | 0 | 1 | popitem | def popitem(self):k, v = self.multi.popitem()return (self._decode_key(k), self._decode_value(v)) | 1 | 3 | 1 | 32 | 0 | 358 | 360 | 358 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["self._items.pop"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.odm.icollection_py.InstrumentedObj.popitem", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3704533_opentsdb_tcollector.collectors.available.software.long_lived.elasticsearch_py._collect_... | The function (popitem) defined within the public class called MultiDict, that inherit another class.The function start at line 358 and ends at 360. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, I... |
pasteorg_paste | MultiDict | public | 0 | 1 | __repr__ | def __repr__(self):items = ', '.join(['(%r, %r)' % v for v in self.items()])return '%s([%s])' % (self.__class__.__name__, items) | 2 | 3 | 1 | 37 | 0 | 362 | 364 | 362 | self | [] | Returns | {"Assign": 1, "Return": 1} | 1 | 3 | 1 | ["join"] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called MultiDict, that inherit another class.The function start at line 362 and ends at 364. It contains 3 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, ... |
pasteorg_paste | MultiDict | public | 0 | 1 | __len__ | def __len__(self):return self.multi.__len__() | 1 | 2 | 1 | 13 | 0 | 366 | 367 | 366 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["len"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.data.imagenet_py._TinyImagenet200Val.__len__"] | The function (__len__) defined within the public class called MultiDict, that inherit another class.The function start at line 366 and ends at 367. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, I... |
pasteorg_paste | MultiDict | public | 0 | 1 | keys | def keys(self):return [self._decode_key(k) for k in self.multi.iterkeys()] | 2 | 2 | 1 | 24 | 0 | 373 | 374 | 373 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 420 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.filters_py.contains_filter", "_.conte... | The function (keys) defined within the public class called MultiDict, that inherit another class.The function start at line 373 and ends at 374. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It has 420.0 functions callin... |
pasteorg_paste | MultiDict | public | 0 | 1 | iterkeys | def iterkeys(self):for k in self.multi.iterkeys():yield self._decode_key(k) | 2 | 3 | 1 | 23 | 0 | 376 | 378 | 376 | self | [] | None | {"Expr": 1, "For": 1} | 0 | 3 | 0 | [] | 16 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.walk_py.walk_services", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3591075_smarkets_smk_python_sdk.smarkets.itertools_py.listkeys", "_.content.gdrive.MyDrive.Phd_Thesis.Da... | The function (iterkeys) defined within the public class called MultiDict, that inherit another class.The function start at line 376 and ends at 378. 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 has 16.0 functions calling... |
pasteorg_paste | MultiDict | public | 0 | 1 | items | def items(self):return [(self._decode_key(k), self._decode_value(v)) for \k, v in self.multi.items()] | 2 | 3 | 1 | 36 | 0 | 382 | 384 | 382 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 850 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record._diff", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.filters_py.filters_handler", "_.content.gdrive... | The function (items) defined within the public class called MultiDict, that inherit another class.The function start at line 382 and ends at 384. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It has 850.0 functions calli... |
pasteorg_paste | MultiDict | public | 0 | 1 | iteritems | def iteritems(self):for k, v in self.multi.items():yield (self._decode_key(k), self._decode_value(v)) | 2 | 3 | 1 | 34 | 0 | 386 | 388 | 386 | self | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["iter"] | 84 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.permissions_py.DaybedAuthorizationPolicy.permits", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.permissions_py.dict_list2set", "_.content.gd... | The function (iteritems) defined within the public class called MultiDict, that inherit another class.The function start at line 386 and ends at 388. It contains 3 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,... |
pasteorg_paste | MultiDict | public | 0 | 1 | values | def values(self):return [self._decode_value(v) for v in self.multi.itervalues()] | 2 | 2 | 1 | 24 | 0 | 390 | 391 | 390 | self | [] | Returns | {"Return": 1} | 0 | 2 | 0 | [] | 338 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.backends.memory.__init___py.MemoryBackend.__get_raw_records", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3519472_california_civic_data_coalition_django_calaccess_campaign_brow... | The function (values) defined within the public class called MultiDict, that inherit another class.The function start at line 390 and ends at 391. It contains 2 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It has 338.0 functions call... |
pasteorg_paste | MultiDict | public | 0 | 1 | itervalues | def itervalues(self):for v in self.multi.itervalues():yield self._decode_value(v) | 2 | 3 | 1 | 23 | 0 | 393 | 395 | 393 | self | [] | None | {"Expr": 1, "For": 1} | 0 | 3 | 0 | [] | 12 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.io.server.__init___py.put_blueprint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3591075_smarkets_smk_python_sdk.smarkets.itertools_py.listvalues", "_.content.gdrive.MyDri... | The function (itervalues) defined within the public class called MultiDict, that inherit another class.The function start at line 393 and ends at 395. 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 has 12.0 functions calli... |
pasteorg_paste | public | public | 0 | 0 | html_quote | def html_quote(v, encoding=None):r"""Quote the value (turned to a string) as HTML.This quotes <, >,and quotes:"""encoding = encoding or default_encodingif v is None:return ''elif isinstance(v, bytes):return html.escape(v.decode(encoding), 1).encode(encoding)elif isinstance(v, str):return html.escape(v, 1)else:return ht... | 5 | 10 | 2 | 81 | 1 | 14 | 27 | 14 | v,encoding | ['encoding'] | Returns | {"Assign": 1, "Expr": 1, "If": 3, "Return": 4} | 8 | 14 | 8 | ["isinstance", "encode", "html.escape", "v.decode", "isinstance", "html.escape", "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.MyDri... | The function (html_quote) defined within the public class called public.The function start at line 14 and ends at 27. It contains 10 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [14.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions call... |
pasteorg_paste | public | public | 0 | 0 | _entity_subber | def _entity_subber(match, name2c=html.entities.name2codepoint):code = name2c.get(match.group(1))if code:return chr(code)else:return match.group(0) | 2 | 6 | 2 | 43 | 1 | 30 | 35 | 30 | match,name2c | ['code'] | Returns | {"Assign": 1, "If": 1, "Return": 2} | 4 | 6 | 4 | ["name2c.get", "match.group", "chr", "match.group"] | 0 | [] | The function (_entity_subber) defined within the public class called public.The function start at line 30 and ends at 35. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [30.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functi... |
pasteorg_paste | public | public | 0 | 0 | html_unquote | def html_unquote(s, encoding=None):r"""Decode the value."""if isinstance(s, bytes):s = s.decode(encoding or default_encoding)return _unquote_re.sub(_entity_subber, s) | 3 | 4 | 2 | 38 | 1 | 37 | 44 | 37 | s,encoding | ['s'] | Returns | {"Assign": 1, "Expr": 1, "If": 1, "Return": 1} | 3 | 8 | 3 | ["isinstance", "s.decode", "_unquote_re.sub"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fixture_py.Form._parse_fields", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fixture_py._parse_attrs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creati... | The function (html_unquote) defined within the public class called public.The function start at line 37 and ends at 44. It contains 4 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [37.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions cal... |
pasteorg_paste | public | public | 0 | 0 | strip_html | def strip_html(s):# should this use html_unquote?s = re.sub('<.*?>', '', s)s = html_unquote(s)return s | 1 | 4 | 1 | 25 | 1 | 46 | 50 | 46 | s | ['s'] | Returns | {"Assign": 2, "Return": 1} | 2 | 5 | 2 | ["re.sub", "html_unquote"] | 10 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.brave_py.brave", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.ddg_py.ddg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Outpu... | The function (strip_html) defined within the public class called public.The function start at line 46 and ends at 50. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called i... |
pasteorg_paste | public | public | 0 | 0 | no_quote | def no_quote(s):"""Quoting that doesn't do anything"""return s | 1 | 2 | 1 | 8 | 0 | 52 | 56 | 52 | s | [] | Returns | {"Expr": 1, "Return": 1} | 0 | 5 | 0 | [] | 0 | [] | The function (no_quote) defined within the public class called public.The function start at line 52 and ends at 56. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value.. |
pasteorg_paste | public | public | 0 | 0 | comment_quote | def comment_quote(s):"""Quote that makes sure text can't escape a comment"""comment = str(s)#comment = _bad_chars_re.sub('', comment)#print('in ', repr(str(s)))#print('out', repr(comment))comment = _comment_quote_re.sub('->', comment)return comment | 1 | 4 | 1 | 24 | 1 | 61 | 70 | 61 | s | ['comment'] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 2 | 10 | 2 | ["str", "_comment_quote_re.sub"] | 0 | [] | The function (comment_quote) defined within the public class called public.The function start at line 61 and ends at 70. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 functions ... |
pasteorg_paste | public | public | 0 | 0 | debug | def debug(msg):timestamp = time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(time.time()))sys.stderr.write("[%s] %s\n" % (timestamp, msg)) | 1 | 4 | 1 | 38 | 1 | 32 | 35 | 32 | msg | ['timestamp'] | None | {"Assign": 1, "Expr": 1} | 4 | 4 | 4 | ["time.strftime", "time.localtime", "time.time", "sys.stderr.write"] | 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... | The function (debug) defined within the public class called public.The function start at line 32 and ends at 35. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside whi... |
pasteorg_paste | SWAP | public | 0 | 1 | __init__ | def __init__(self, *args, **kwargs):assert self.app_obj, "must set app_obj"assert self.prefix is not None, "must set prefix"args = (self,) + argsscgi_server.SCGIHandler.__init__(*args, **kwargs) | 1 | 5 | 3 | 46 | 0 | 45 | 49 | 45 | self,*args,**kwargs | [] | None | {"Assign": 1, "Expr": 1} | 1 | 5 | 1 | ["scgi_server.SCGIHandler.__init__"] | 6,815 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called SWAP, that inherit another class.The function start at line 45 and ends at 49. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [45.0] and does not return any value. It declare 1.0 function, It has 1... |
pasteorg_paste | public | public | 0 | 0 | handle_connection.write | def write(data):chunks.append(data) | 1 | 2 | 1 | 11 | 0 | 85 | 86 | 85 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (handle_connection.write) defined within the public class called public.The function start at line 85 and ends at 86. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | handle_connection.start_response | def start_response(status, response_headers, exc_info=None):if exc_info:try:if headers_sent:# Re-raise original exception if headers sentraise exc_infofinally:exc_info = None # avoid dangling circular refelif headers_set:raise AssertionError("Headers already set!")headers_set[:] = [status, response_headers]return write | 5 | 11 | 3 | 46 | 0 | 88 | 100 | 88 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (handle_connection.start_response) defined within the public class called public.The function start at line 88 and ends at 100. It contains 11 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [88.0] and does not return any value.. |
pasteorg_paste | SWAP | public | 0 | 1 | handle_connection | def handle_connection(self, conn):"""Handle an individual connection."""input = conn.makefile("r")output = conn.makefile("w")environ = self.read_env(input)environ['wsgi.input']= inputenviron['wsgi.errors'] = sys.stderrenviron['wsgi.version']= (1, 0)environ['wsgi.multithread']= Falseenviron['wsgi.multiprocess'] = Trueen... | 9 | 48 | 2 | 297 | 0 | 51 | 135 | 51 | self,conn | [] | Returns | {"Assign": 25, "Expr": 12, "For": 3, "If": 6, "Return": 1, "Try": 3} | 20 | 85 | 20 | ["conn.makefile", "conn.makefile", "self.read_env", "environ.get", "split", "len", "chunks.append", "AssertionError", "self.app_obj", "chunks.append", "output.write", "output.write", "output.write", "output.write", "hasattr", "result.close", "input.close", "output.close", "conn.close", "debug"] | 0 | [] | The function (handle_connection) defined within the public class called SWAP, that inherit another class.The function start at line 51 and ends at 135. It contains 48 lines of code and it has a cyclomatic complexity of 9. It takes 2 parameters, represented as [51.0], and this function return a value. It declares 20.0 f... |
pasteorg_paste | public | public | 0 | 0 | serve_application.__init__ | def __init__ (self, *args, **kwargs):self.prefix = prefixself.app_obj = applicationSWAP.__init__(self, *args, **kwargs) | 1 | 4 | 3 | 33 | 0 | 161 | 164 | 161 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (serve_application.__init__) defined within the public class called public.The function start at line 161 and ends at 164. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [161.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | serve_application | def serve_application(application, prefix, port=None, host=None, max_children=None):"""Serve the specified WSGI application via SCGI proxy.``application``The WSGI application to serve.``prefix``The prefix for what is served by the SCGI Web-server-side process.``port``Optional port to bind the SCGI proxy to. Defaults to... | 3 | 8 | 5 | 80 | 1 | 138 | 171 | 138 | application,prefix,port,host,max_children | ['kwargs'] | None | {"Assign": 4, "Expr": 3, "For": 1, "If": 1} | 6 | 34 | 6 | ["SWAP.__init__", "dict", "locals", "locals", "serve", "scgi_server.SCGIServer"] | 0 | [] | The function (serve_application) defined within the public class called public.The function start at line 138 and ends at 171. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 5 parameters, represented as [138.0] and does not return any value. It declares 6.0 functions, and It has 6.0 func... |
pasteorg_paste | public | public | 0 | 0 | reraise | def reraise(tp, value, tb=None):try:if value is None:value = tp()if value.__traceback__ is not tb:raise value.with_traceback(tb)raise valuefinally:value = Nonetb = None | 4 | 10 | 3 | 48 | 2 | 46 | 55 | 46 | tp,value,tb | ['value', 'tb'] | None | {"Assign": 3, "If": 2, "Try": 1} | 2 | 10 | 2 | ["tp", "value.with_traceback"] | 21 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3591075_smarkets_smk_python_sdk.smarkets.streaming_api.session_py.SessionSocket.connect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3591075_smarkets_smk_python_sdk.smarkets.streaming_api.session_py.SessionSocket... | The function (reraise) defined within the public class called public.The function start at line 46 and ends at 55. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [46.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called insi... |
pasteorg_paste | TemplateError | public | 0 | 1 | __init__ | def __init__(self, message, position, name=None):self.message = messageself.position = positionself.name = name | 1 | 4 | 4 | 28 | 0 | 61 | 64 | 61 | self,message,position,name | [] | None | {"Assign": 3} | 0 | 4 | 0 | [] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called TemplateError, that inherit another class.The function start at line 61 and ends at 64. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [61.0] and does not return any value. It has 6814.0 functions ... |
pasteorg_paste | TemplateError | public | 0 | 1 | __str__ | def __str__(self):msg = '%s at line %s column %s' % (self.message, self.position[0], self.position[1])if self.name:msg += ' in %s' % self.namereturn msg | 2 | 6 | 1 | 42 | 0 | 66 | 71 | 66 | self | [] | Returns | {"Assign": 1, "AugAssign": 1, "If": 1, "Return": 1} | 0 | 6 | 0 | [] | 64 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.models.ipam_py.Vlans.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.tm.session_py.DynectSession.__str__", "_.content.gdrive.MyDrive.... | The function (__str__) defined within the public class called TemplateError, that inherit another class.The function start at line 66 and ends at 71. 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 has 64.0 functions ca... |
pasteorg_paste | TemplateError | public | 0 | 1 | __init__ | def __init__(self, content, name=None, namespace=None):self.content = contentself._unicode = isinstance(content, str)self.name = nameself._parsed = parse(content, name=name)if namespace is None:namespace = {}self.namespace = namespace | 2 | 8 | 4 | 61 | 0 | 89 | 96 | 89 | self,message,position,name | [] | None | {"Assign": 3} | 0 | 4 | 0 | [] | 6,814 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.... | The function (__init__) defined within the public class called TemplateError, that inherit another class.The function start at line 89 and ends at 96. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [89.0] and does not return any value. It has 6814.0 functions ... |
pasteorg_paste | Template | public | 0 | 0 | from_filename | def from_filename(cls, filename, namespace=None, encoding=None):f = open(filename, 'rb')c = f.read()f.close()if encoding:c = c.decode(encoding)return cls(content=c, name=filename, namespace=namespace) | 2 | 7 | 4 | 61 | 0 | 98 | 104 | 98 | cls,filename,namespace,encoding | [] | Returns | {"Assign": 3, "Expr": 1, "If": 1, "Return": 1} | 5 | 7 | 5 | ["open", "f.read", "f.close", "c.decode", "cls"] | 0 | [] | The function (from_filename) defined within the public class called Template.The function start at line 98 and ends at 104. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [98.0], and this function return a value. It declares 5.0 functions, and It has 5.0 func... |
pasteorg_paste | Template | public | 0 | 0 | __repr__ | def __repr__(self):return '<%s %s name=%r>' % (self.__class__.__name__,hex(id(self))[2:], self.name) | 1 | 4 | 1 | 31 | 0 | 108 | 111 | 108 | self | [] | Returns | {"Return": 1} | 2 | 4 | 2 | ["hex", "id"] | 29 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd... | The function (__repr__) defined within the public class called Template.The function start at line 108 and ends at 111. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called... |
pasteorg_paste | Template | public | 0 | 0 | substitute | def substitute(self, *args, **kw):if args:if kw:raise TypeError("You can only give positional *or* keyword arguments")if len(args) > 1:raise TypeError("You can only give on positional argument")kw = args[0]ns = self.default_namespace.copy()ns.update(self.namespace)ns.update(kw)result = self._interpret(ns)return result | 4 | 14 | 3 | 74 | 0 | 113 | 126 | 113 | self,*args,**kw | [] | Returns | {"Assign": 3, "Expr": 2, "If": 3, "Return": 1} | 7 | 14 | 7 | ["TypeError", "len", "TypeError", "self.default_namespace.copy", "ns.update", "ns.update", "self._interpret"] | 13 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3700218_mesosphere_dcos_jenkins_service.testing.jenkins_remote_access_py.add_slave_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3700218_mesosphere_dcos_jenkins_service.testing.jenkins_remote_access_py.change... | The function (substitute) defined within the public class called Template.The function start at line 113 and ends at 126. It contains 14 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [113.0], and this function return a value. It declares 7.0 functions, It has 7.0 functions... |
pasteorg_paste | Template | public | 0 | 0 | _interpret | def _interpret(self, ns):__traceback_hide__ = Trueparts = []self._interpret_codes(self._parsed, ns, out=parts)return ''.join(parts) | 1 | 5 | 2 | 35 | 0 | 128 | 132 | 128 | self,ns | [] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 2 | 5 | 2 | ["self._interpret_codes", "join"] | 0 | [] | The function (_interpret) defined within the public class called Template.The function start at line 128 and ends at 132. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [128.0], and this function return a value. It declares 2.0 functions, and It has 2.0 funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.