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
Template
public
0
0
_interpret_codes
def _interpret_codes(self, codes, ns, out):__traceback_hide__ = Truefor item in codes:if isinstance(item, str):out.append(item)else:self._interpret_code(item, ns, out)
3
7
4
45
0
134
140
134
self,codes,ns,out
[]
None
{"Assign": 1, "Expr": 2, "For": 1, "If": 1}
3
7
3
["isinstance", "out.append", "self._interpret_code"]
0
[]
The function (_interpret_codes) defined within the public class called Template.The function start at line 134 and ends at 140. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [134.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["isinstance", "out.append", "self._interpret_code"].
pasteorg_paste
Template
public
0
0
_interpret_code
def _interpret_code(self, code, ns, out):__traceback_hide__ = Truename, pos = code[0], code[1]if name == 'py':self._exec(code[2], ns, pos)elif name == 'continue':raise _TemplateContinue()elif name == 'break':raise _TemplateBreak()elif name == 'for':vars, expr, content = code[2], code[3], code[4]expr = self._eval(expr, ns, pos)self._interpret_for(vars, expr, content, ns, out)elif name == 'cond':parts = code[2:]self._interpret_if(parts, ns, out)elif name == 'expr':parts = code[2].split('|')base = self._eval(parts[0], ns, pos)for part in parts[1:]:func = self._eval(part, ns, pos)base = func(base)out.append(self._repr(base, pos))elif name == 'default':var, expr = code[2], code[3]if var not in ns:result = self._eval(expr, ns, pos)ns[var] = resultelif name == 'comment':returnelse:assert 0, "Unknown code: %r" % name
11
32
4
263
0
142
173
142
self,code,ns,out
[]
None
{"Assign": 12, "Expr": 4, "For": 1, "If": 9, "Return": 1}
13
32
13
["self._exec", "_TemplateContinue", "_TemplateBreak", "self._eval", "self._interpret_for", "self._interpret_if", "split", "self._eval", "self._eval", "func", "out.append", "self._repr", "self._eval"]
0
[]
The function (_interpret_code) defined within the public class called Template.The function start at line 142 and ends at 173. It contains 32 lines of code and it has a cyclomatic complexity of 11. It takes 4 parameters, represented as [142.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functions called inside which are ["self._exec", "_TemplateContinue", "_TemplateBreak", "self._eval", "self._interpret_for", "self._interpret_if", "split", "self._eval", "self._eval", "func", "out.append", "self._repr", "self._eval"].
pasteorg_paste
Template
public
0
0
_interpret_for
def _interpret_for(self, vars, expr, content, ns, out):__traceback_hide__ = Truefor item in expr:if len(vars) == 1:ns[vars[0]] = itemelse:if len(vars) != len(item):raise ValueError('Need %i items to unpack (got %i items)'% (len(vars), len(item)))for name, value in zip(vars, item):ns[name] = valuetry:self._interpret_codes(content, ns, out)except _TemplateContinue:continueexcept _TemplateBreak:break
7
18
6
108
0
175
192
175
self,vars,expr,content,ns,out
[]
None
{"Assign": 3, "Expr": 1, "For": 2, "If": 2, "Try": 1}
8
18
8
["len", "len", "len", "ValueError", "len", "len", "zip", "self._interpret_codes"]
0
[]
The function (_interpret_for) defined within the public class called Template.The function start at line 175 and ends at 192. It contains 18 lines of code and it has a cyclomatic complexity of 7. It takes 6 parameters, represented as [175.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["len", "len", "len", "ValueError", "len", "len", "zip", "self._interpret_codes"].
pasteorg_paste
Template
public
0
0
_interpret_if
def _interpret_if(self, parts, ns, out):__traceback_hide__ = True# @@: if/else/else gets throughfor part in parts:assert not isinstance(part, str)name, pos = part[0], part[1]if name == 'else':result = Trueelse:result = self._eval(part[2], ns, pos)if result:self._interpret_codes(part[3], ns, out)break
4
12
4
82
0
194
206
194
self,parts,ns,out
[]
None
{"Assign": 4, "Expr": 1, "For": 1, "If": 2}
3
13
3
["isinstance", "self._eval", "self._interpret_codes"]
0
[]
The function (_interpret_if) defined within the public class called Template.The function start at line 194 and ends at 206. It contains 12 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [194.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["isinstance", "self._eval", "self._interpret_codes"].
pasteorg_paste
Template
public
0
0
_eval
def _eval(self, code, ns, pos):__traceback_hide__ = Truetry:value = eval(code, ns)return valueexcept Exception:exc_info = sys.exc_info()e = exc_info[1]if getattr(e, 'args'):arg0 = e.args[0]else:arg0 = str(e)e.args = (self._add_line_info(arg0, pos),)reraise(exc_info[0], e, exc_info[2])
3
14
4
95
0
208
221
208
self,code,ns,pos
[]
Returns
{"Assign": 7, "Expr": 1, "If": 1, "Return": 1, "Try": 1}
6
14
6
["eval", "sys.exc_info", "getattr", "str", "self._add_line_info", "reraise"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_configuration_py.TestTypes.test_evaluation"]
The function (_eval) defined within the public class called Template.The function start at line 208 and ends at 221. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 4 parameters, represented as [208.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions called inside which are ["eval", "sys.exc_info", "getattr", "str", "self._add_line_info", "reraise"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_configuration_py.TestTypes.test_evaluation"].
pasteorg_paste
Template
public
0
0
_exec
def _exec(self, code, ns, pos):__traceback_hide__ = Truetry:exec(code, ns)except Exception:exc_info = sys.exc_info()e = exc_info[1]e.args = (self._add_line_info(e.args[0], pos),)reraise(exc_info[0], e, exc_info[2])
2
9
4
72
0
223
231
223
self,code,ns,pos
[]
None
{"Assign": 4, "Expr": 2, "Try": 1}
4
9
4
["exec", "sys.exc_info", "self._add_line_info", "reraise"]
0
[]
The function (_exec) defined within the public class called Template.The function start at line 223 and ends at 231. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [223.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["exec", "sys.exc_info", "self._add_line_info", "reraise"].
pasteorg_paste
Template
public
0
0
_repr
def _repr(self, value, pos):__traceback_hide__ = Truetry:if value is None:return ''value = str(value)except Exception:exc_info = sys.exc_info()e = exc_info[1]e.args = (self._add_line_info(e.args[0], pos),)reraise(exc_info[0], e, exc_info[2])else:if self._unicode and isinstance(value, bytes):if not self.decode_encoding:raise UnicodeDecodeError('Cannot decode str value %r into unicode ''(no default_encoding provided)' % value)value = value.decode(self.default_encoding)elif not self._unicode and isinstance(value, str):if not self.decode_encoding:raise UnicodeEncodeError('Cannot encode unicode value %r into str ''(no default_encoding provided)' % value)value = value.encode(self.default_encoding)return value
9
25
3
154
0
233
257
233
self,value,pos
[]
Returns
{"Assign": 7, "Expr": 1, "If": 5, "Return": 2, "Try": 1}
10
25
10
["str", "sys.exc_info", "self._add_line_info", "reraise", "isinstance", "UnicodeDecodeError", "value.decode", "isinstance", "UnicodeEncodeError", "value.encode"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr"]
The function (_repr) defined within the public class called Template.The function start at line 233 and ends at 257. It contains 25 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [233.0], and this function return a value. It declares 10.0 functions, It has 10.0 functions called inside which are ["str", "sys.exc_info", "self._add_line_info", "reraise", "isinstance", "UnicodeDecodeError", "value.decode", "isinstance", "UnicodeEncodeError", "value.encode"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr"].
pasteorg_paste
Template
public
0
0
_add_line_info
def _add_line_info(self, msg, pos):msg = "%s at line %s column %s" % (msg, pos[0], pos[1])if self.name:msg += " in file %s" % self.namereturn msg
2
6
3
40
0
260
265
260
self,msg,pos
[]
Returns
{"Assign": 1, "AugAssign": 1, "If": 1, "Return": 1}
0
6
0
[]
0
[]
The function (_add_line_info) defined within the public class called Template.The function start at line 260 and ends at 265. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [260.0], and this function return a value..
pasteorg_paste
public
public
0
0
sub
def sub(content, **kw):name = kw.get('__name')tmpl = Template(content, name=name)return tmpl.substitute(kw)
1
4
2
33
2
267
270
267
content,**kw
['name', 'tmpl']
Returns
{"Assign": 2, "Return": 1}
3
4
3
["kw.get", "Template", "tmpl.substitute"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.humanity_py.humanity", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.s3.s3_path_py.S3Path.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.s3.s3_path_py.S3Path.append", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.sanitizer_py.HTMLSanitizerMixin.sanitize_css", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.__init___py.uncolor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config._make_py._snake_case", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69484938_astronomer_astronomer_providers.dev.integration_test_scripts.replace_dependencies_py.update_setup_cfg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_data_py.test_broadcast_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_random_py.test_set_cuda_rng_state", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94699006_quic_interop_quic_interop_runner.interop_py.LogFileFormatter.format", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94714917_reagento_dishka.tests.integrations.faststream.test_faststream_py.dishka_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94714917_reagento_dishka.tests.integrations.faststream.test_faststream_py.test_autoinject_after_subscriber", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94714917_reagento_dishka.tests.integrations.faststream.test_faststream_py.test_autoinject_before_subscriber", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94714917_reagento_dishka.tests.integrations.faststream.test_faststream_py.test_faststream_with_broker"]
The function (sub) defined within the public class called public.The function start at line 267 and ends at 270. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [267.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["kw.get", "Template", "tmpl.substitute"], It has 14.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.modules.humanity_py.humanity", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.s3.s3_path_py.S3Path.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.s3.s3_path_py.S3Path.append", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.sanitizer_py.HTMLSanitizerMixin.sanitize_css", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.__init___py.uncolor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config._make_py._snake_case", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69484938_astronomer_astronomer_providers.dev.integration_test_scripts.replace_dependencies_py.update_setup_cfg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_data_py.test_broadcast_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_random_py.test_set_cuda_rng_state", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94699006_quic_interop_quic_interop_runner.interop_py.LogFileFormatter.format", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94714917_reagento_dishka.tests.integrations.faststream.test_faststream_py.dishka_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94714917_reagento_dishka.tests.integrations.faststream.test_faststream_py.test_autoinject_after_subscriber", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94714917_reagento_dishka.tests.integrations.faststream.test_faststream_py.test_autoinject_before_subscriber", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94714917_reagento_dishka.tests.integrations.faststream.test_faststream_py.test_faststream_with_broker"].
pasteorg_paste
public
public
0
0
paste_script_template_renderer
def paste_script_template_renderer(content, vars, filename=None):tmpl = Template(content, name=filename)return tmpl.substitute(vars)
1
3
3
28
1
272
274
272
content,vars,filename
['tmpl']
Returns
{"Assign": 1, "Return": 1}
2
3
2
["Template", "tmpl.substitute"]
0
[]
The function (paste_script_template_renderer) defined within the public class called public.The function start at line 272 and ends at 274. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [272.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["Template", "tmpl.substitute"].
pasteorg_paste
TemplateError
public
0
1
__init__
def __init__(self, **kw):for name, value in kw.items():setattr(self, name, value)
2
3
2
27
0
278
280
278
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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called TemplateError, that inherit another class.The function start at line 278 and ends at 280. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [278.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
bunch
public
0
1
__setattr__
def __setattr__(self, name, value):self[name] = value
1
2
3
15
0
282
283
282
self,name,value
[]
None
{"Assign": 1}
0
2
0
[]
28
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.config_py.Config.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.storedobject_py.StoredObject.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670790_opencivicdata_pupa.pupa.scrape.base_py.BaseModel.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.base_py.Object.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.odm.icollection_py.InstrumentedObj.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.core.context_py.SimplifiedAsgirefLocal.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.repo_py.FrozenFancyRepo.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.utils_py.partial_match.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.built_ins_py.DeprecationWarningProxy.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.built_ins_py.DeprecationWarningProxy.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.built_ins_py.DynamicAccessProxy.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.built_ins_py.DynamicAccessProxy.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967106_jxmorris12_language_tool_python.language_tool_python.match_py.Match.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969351_jazzband_django_constance.constance.base_py.Config.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.PythonHocObject.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.59336354_pymanopt_pymanopt.src.pymanopt.core.problem_py.Problem.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69333630_mindsdb_mindsdb_sql.sly.yacc_py.YaccProduction.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936674_tellor_io_telliot_feeds.src.telliot_feeds.utils.async_web3_shim_py.AsyncWeb3Shim.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70474000_doronz88_rpc_project.src.rpcclient.rpcclient.clients.darwin.objective_c.objective_c_symbol_py.ObjectiveCSymbol.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.OntologyIndividual.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.operations.operations_py.OperationsNamespace.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77580612_openfreeenergy_gufe.gufe.settings.models_py.SettingsBaseModel.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.ui._core.ui_element_py.UIElement.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.ui._impl.from_anywidget_py.anywidget.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.ui._impl.from_panel_py.panel.__setattr__"]
The function (__setattr__) defined within the public class called bunch, that inherit another class.The function start at line 282 and ends at 283. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [282.0] and does not return any value. It has 28.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.config_py.Config.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.storedobject_py.StoredObject.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670790_opencivicdata_pupa.pupa.scrape.base_py.BaseModel.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.base_py.Object.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.odm.icollection_py.InstrumentedObj.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.core.context_py.SimplifiedAsgirefLocal.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.repo_py.FrozenFancyRepo.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.utils_py.partial_match.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.built_ins_py.DeprecationWarningProxy.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.built_ins_py.DeprecationWarningProxy.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.built_ins_py.DynamicAccessProxy.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.built_ins_py.DynamicAccessProxy.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967106_jxmorris12_language_tool_python.language_tool_python.match_py.Match.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969351_jazzband_django_constance.constance.base_py.Config.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.PythonHocObject.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.59336354_pymanopt_pymanopt.src.pymanopt.core.problem_py.Problem.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69333630_mindsdb_mindsdb_sql.sly.yacc_py.YaccProduction.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69936674_tellor_io_telliot_feeds.src.telliot_feeds.utils.async_web3_shim_py.AsyncWeb3Shim.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70474000_doronz88_rpc_project.src.rpcclient.rpcclient.clients.darwin.objective_c.objective_c_symbol_py.ObjectiveCSymbol.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.OntologyIndividual.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.operations.operations_py.OperationsNamespace.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77580612_openfreeenergy_gufe.gufe.settings.models_py.SettingsBaseModel.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.ui._core.ui_element_py.UIElement.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.ui._impl.from_anywidget_py.anywidget.__setattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.ui._impl.from_panel_py.panel.__setattr__"].
pasteorg_paste
bunch
public
0
1
__getattr__
def __getattr__(self, name):try:return self[name]except KeyError:raise AttributeError(name)
2
5
2
22
0
285
289
285
self,name
[]
Returns
{"Return": 1, "Try": 1}
1
5
1
["AttributeError"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69693687_agnostiqhq_covalent.covalent._workflow.electron_py.Electron.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._utils.async_path_py.AsyncPosixPath.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._utils.async_path_py.AsyncWindowsPath.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.util.lazy_py.proxy.__getattribute__"]
The function (__getattr__) defined within the public class called bunch, that inherit another class.The function start at line 285 and ends at 289. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [285.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["AttributeError"], It has 5.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69693687_agnostiqhq_covalent.covalent._workflow.electron_py.Electron.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._utils.async_path_py.AsyncPosixPath.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._utils.async_path_py.AsyncWindowsPath.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.util.lazy_py.proxy.__getattribute__"].
pasteorg_paste
bunch
public
0
1
__getitem__
def __getitem__(self, key):if 'default' in self:try:return dict.__getitem__(self, key)except KeyError:return dict.__getitem__(self, 'default')else:return dict.__getitem__(self, key)
3
8
2
46
0
291
298
291
self,key
[]
Returns
{"If": 1, "Return": 3, "Try": 1}
3
8
3
["dict.__getitem__", "dict.__getitem__", "dict.__getitem__"]
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.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3627162_cinpla_exdir.exdir.core.exdir_file_py.File.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.utils_py.ScopeDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.data.imagenet_py._TinyImagenet200Val.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.util_py.AliasKeyDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717445_kiminewt_pyshark.src.pyshark.capture.file_capture_py.FileCapture.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923947_luispedro_jug.jug.subcommands.__init___py.SubCommandDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928894_linbit_linstor_api_py.linstor.kv_py.KV.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.case_insensitive_dict_py.CIDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967932_kayak_pypika.pypika.queries_py.QueryBuilder.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969403_atlassian_api_atlassian_python_api.atlassian.jira_py.Jira.get_project_issuekey_last", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.domains_py.BintType.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.domains_py.RealsType.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.arborize.arborize.definitions_py.mechdict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.voxels_py.VoxelData.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronPopulation.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69333630_mindsdb_mindsdb_sql.sly.lex_py.LexerMetaDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69333630_mindsdb_mindsdb_sql.sly.yacc_py.ParserMetaDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69847433_requests_cache_requests_cache.requests_cache.backends.base_py.DictStorage.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.lrudict_py.lrudict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70474000_doronz88_rpc_project.src.rpcclient.rpcclient.clients.darwin.objective_c.objective_c_symbol_py.ObjectiveCSymbol.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.force_calibration.calibration_item_py.ForceCalibrationItem.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.tools.managers_py.SubclassingQuerySet.__getitem__"]
The function (__getitem__) defined within the public class called bunch, that inherit another class.The function start at line 291 and ends at 298. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [291.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["dict.__getitem__", "dict.__getitem__", "dict.__getitem__"], It has 28.0 functions calling this function which are ["_.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.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3627162_cinpla_exdir.exdir.core.exdir_file_py.File.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.utils_py.ScopeDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.data.imagenet_py._TinyImagenet200Val.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692721_yelp_bravado_core.bravado_core.util_py.AliasKeyDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717445_kiminewt_pyshark.src.pyshark.capture.file_capture_py.FileCapture.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923947_luispedro_jug.jug.subcommands.__init___py.SubCommandDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928894_linbit_linstor_api_py.linstor.kv_py.KV.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.case_insensitive_dict_py.CIDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967932_kayak_pypika.pypika.queries_py.QueryBuilder.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969403_atlassian_api_atlassian_python_api.atlassian.jira_py.Jira.get_project_issuekey_last", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.domains_py.BintType.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.domains_py.RealsType.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.arborize.arborize.definitions_py.mechdict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.voxels_py.VoxelData.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronPopulation.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69333630_mindsdb_mindsdb_sql.sly.lex_py.LexerMetaDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69333630_mindsdb_mindsdb_sql.sly.yacc_py.ParserMetaDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69847433_requests_cache_requests_cache.requests_cache.backends.base_py.DictStorage.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.lrudict_py.lrudict.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70474000_doronz88_rpc_project.src.rpcclient.rpcclient.clients.darwin.objective_c.objective_c_symbol_py.ObjectiveCSymbol.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.force_calibration.calibration_item_py.ForceCalibrationItem.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.tools.managers_py.SubclassingQuerySet.__getitem__"].
pasteorg_paste
Template
public
0
0
__repr__
def __repr__(self):items = [(k, v) for k, v in self.items()]items.sort()return '<%s %s>' % (self.__class__.__name__,' '.join(['%s=%r' % (k, v) for k, v in items]))
3
7
1
60
0
300
306
300
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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"]
The function (__repr__) defined within the public class called Template.The function start at line 300 and ends at 306. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["hex", "id"], It has 29.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"].
pasteorg_paste
TemplateError
public
0
1
__init__
def __init__(self, value):self.value = value
1
2
2
12
0
313
314
313
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.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called TemplateError, that inherit another class.The function start at line 313 and ends at 314. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [313.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
TemplateError
public
0
1
__str__
def __str__(self):return self.value
1
2
1
9
0
315
316
315
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.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698222_fgnt_pb_bss.pb_bss.evaluation.wrapper_py.VerboseKeyError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.ir_py.Heat.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitChemicalType", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitLiteral", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitTemperatureIdentifier", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitTimeIdentifier", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitVariable", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitFormalParameter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitFunctionDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitManifestDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitModuleDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitStationaryDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitDetect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitDispense", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitFunctionDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitManifestDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitMethodCall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitMix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitModuleDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitSplit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitStationaryDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.method_visitor_py.MethodVisitor.visitFormalParameter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.method_visitor_py.MethodVisitor.visitFunctionDeclaration"]
The function (__str__) defined within the public class called TemplateError, that inherit another class.The function start at line 315 and ends at 316. 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 64.0 functions calling this function which are ["_.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.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3698222_fgnt_pb_bss.pb_bss.evaluation.wrapper_py.VerboseKeyError.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.ir_py.Heat.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitChemicalType", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitLiteral", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitTemperatureIdentifier", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitTimeIdentifier", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.bs_base_visitor_py.BSBaseVisitor.visitVariable", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitFormalParameter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitFunctionDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitManifestDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitModuleDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.header_visitor_py.HeaderVisitor.visitStationaryDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitDetect", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitDispense", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitFunctionDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitManifestDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitMethodCall", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitMix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitModuleDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitSplit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.ir_visitor_py.IRVisitor.visitStationaryDeclaration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.method_visitor_py.MethodVisitor.visitFormalParameter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.semantics.method_visitor_py.MethodVisitor.visitFunctionDeclaration"].
pasteorg_paste
Template
public
0
0
__repr__
def __repr__(self):return '<%s %r>' % (self.__class__.__name__, self.value)
1
3
1
19
0
317
319
317
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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"]
The function (__repr__) defined within the public class called Template.The function start at line 317 and ends at 319. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["hex", "id"], It has 29.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"].
pasteorg_paste
public
public
0
0
html_quote
def html_quote(value):if value is None:return ''if not isinstance(value, str):value = str(value)value = escape(value, 1)return value
3
7
1
37
1
321
327
321
value
['value']
Returns
{"Assign": 2, "If": 2, "Return": 2}
3
7
3
["isinstance", "str", "escape"]
11
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.get_debug_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.make_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.preserve_whitespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py._str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.html__get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.attr"]
The function (html_quote) defined within the public class called public.The function start at line 321 and ends at 327. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["isinstance", "str", "escape"], It has 11.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.get_debug_info", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.make_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.preserve_whitespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py._str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.str2html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.url_py.URLResource.html__get", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.attr"].
pasteorg_paste
public
public
0
0
url
def url(v):if not isinstance(v, str):v = str(v)return quote(v)
2
4
1
25
1
329
332
329
v
['v']
Returns
{"Assign": 1, "If": 1, "Return": 1}
3
4
3
["isinstance", "str", "quote"]
8
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.tests.test_tags_py.TestTags.test_tag_name_validation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.organisations.views_py.OrganisationMemberAdd.get_urls", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.tests.integration.django_app_py.urlpatterns", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719314_idlesign_django_sitetree.src.sitetree.sitetreeapp_py.SiteTree.get_sitetree", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719314_idlesign_django_sitetree.src.sitetree.templatetags.sitetree_py.sitetree_urlNode.get_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918097_mherrmann_fbs.fbs.builtin_commands.__init___py.upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69908404_abstra_app_hackerforms_lib.hackerforms.abstra.widgets.library.IframeOutput_py.IframeOutput.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69908404_abstra_app_hackerforms_lib.hackerforms.widgets.library.IframeOutput_py.IframeOutput.__init__"]
The function (url) defined within the public class called public.The function start at line 329 and ends at 332. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["isinstance", "str", "quote"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.tests.test_tags_py.TestTags.test_tag_name_validation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694126_pythonindia_wye.wye.organisations.views_py.OrganisationMemberAdd.get_urls", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.tests.integration.django_app_py.urlpatterns", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719314_idlesign_django_sitetree.src.sitetree.sitetreeapp_py.SiteTree.get_sitetree", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719314_idlesign_django_sitetree.src.sitetree.templatetags.sitetree_py.sitetree_urlNode.get_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918097_mherrmann_fbs.fbs.builtin_commands.__init___py.upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69908404_abstra_app_hackerforms_lib.hackerforms.abstra.widgets.library.IframeOutput_py.IframeOutput.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69908404_abstra_app_hackerforms_lib.hackerforms.widgets.library.IframeOutput_py.IframeOutput.__init__"].
pasteorg_paste
public
public
0
0
attr
def attr(**kw):kw = sorted(kw.items())parts = []for name, value in kw:if value is None:continueif name.endswith('_'):name = name[:-1]parts.append('%s="%s"' % (html_quote(name), html_quote(value)))return html(' '.join(parts))
4
10
1
77
3
334
343
334
**kw
['kw', 'parts', 'name']
Returns
{"Assign": 3, "Expr": 1, "For": 1, "If": 2, "Return": 1}
8
10
8
["sorted", "kw.items", "name.endswith", "parts.append", "html_quote", "html_quote", "html", "join"]
123
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_parser_py.TootParser.handle_endtag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.about", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.boost", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.fav", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.favthread", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.format_toot_nameline", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.help", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.note", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.printToot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.rep", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.toot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unboost", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unfav", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694991_frostyx_tracer.tracer.resources.processes_py.ProcessWrapper._attr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.pyquery.pyquery_py.PyQuery.make_links_absolute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.pyquery.pyquery_py.PyQuery.val", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestMakeLinks.test_make_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestTraversal.test_closest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestTraversal.test_map", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestXMLNamespace.test_namespace_traversal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_absolute_number_ambiguity_py.test_ambiguity_fix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_anime_filenames_py.test_group", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_anime_filenames_py.test_group_no_epname", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_configfunctional_py.test_abs_epnmber", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_configfunctional_py.test_batchconfig"]
The function (attr) defined within the public class called public.The function start at line 334 and ends at 343. It contains 10 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["sorted", "kw.items", "name.endswith", "parts.append", "html_quote", "html_quote", "html", "join"], It has 123.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_parser_py.TootParser.handle_endtag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.about", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.boost", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.fav", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.favthread", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.format_toot_nameline", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.help", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.note", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.printToot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.rep", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.toot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unboost", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_py.unfav", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3694991_frostyx_tracer.tracer.resources.processes_py.ProcessWrapper._attr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.pyquery.pyquery_py.PyQuery.make_links_absolute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.pyquery.pyquery_py.PyQuery.val", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestMakeLinks.test_make_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestTraversal.test_closest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestTraversal.test_map", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestXMLNamespace.test_namespace_traversal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_absolute_number_ambiguity_py.test_ambiguity_fix", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_anime_filenames_py.test_group", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_anime_filenames_py.test_group_no_epname", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_configfunctional_py.test_abs_epnmber", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3912752_dbr_tvnamer.tests.test_configfunctional_py.test_batchconfig"].
pasteorg_paste
Template
public
0
0
_repr
def _repr(self, value, pos):plain = Template._repr(self, value, pos)if isinstance(value, html):return plainelse:return html_quote(plain)
2
6
3
38
0
354
359
354
self,value,pos
[]
Returns
{"Assign": 7, "Expr": 1, "If": 5, "Return": 2, "Try": 1}
10
25
10
["str", "sys.exc_info", "self._add_line_info", "reraise", "isinstance", "UnicodeDecodeError", "value.decode", "isinstance", "UnicodeEncodeError", "value.encode"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr"]
The function (_repr) defined within the public class called Template.The function start at line 354 and ends at 359. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [354.0], and this function return a value. It declares 10.0 functions, It has 10.0 functions called inside which are ["str", "sys.exc_info", "self._add_line_info", "reraise", "isinstance", "UnicodeDecodeError", "value.decode", "isinstance", "UnicodeEncodeError", "value.encode"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.HTMLTemplate._repr"].
pasteorg_paste
public
public
0
0
sub_html
def sub_html(content, **kw):name = kw.get('__name')tmpl = HTMLTemplate(content, name=name)return tmpl.substitute(kw)
1
4
2
33
2
361
364
361
content,**kw
['name', 'tmpl']
Returns
{"Assign": 2, "Return": 1}
3
4
3
["kw.get", "HTMLTemplate", "tmpl.substitute"]
0
[]
The function (sub_html) defined within the public class called public.The function start at line 361 and ends at 364. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [361.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["kw.get", "HTMLTemplate", "tmpl.substitute"].
pasteorg_paste
public
public
0
0
lex
def lex(s, name=None, trim_whitespace=True):"""Lex a string into chunks:>>> lex('hey')['hey']>>> lex('hey {{you}}')['hey ', ('you', (1, 7))]>>> lex('hey {{')Traceback (most recent call last):...TemplateError: No }} to finish last expression at line 1 column 7>>> lex('hey }}')Traceback (most recent call last):...TemplateError: }} outside expression at line 1 column 7>>> lex('hey {{ {{')Traceback (most recent call last):...TemplateError: {{ inside expression at line 1 column 10"""in_expr = Falsechunks = []last = 0last_pos = (1, 1)for match in token_re.finditer(s):expr = match.group(0)pos = find_position(s, match.end())if expr == '{{' and in_expr:raise TemplateError('{{ inside expression', position=pos,name=name)elif expr == '}}' and not in_expr:raise TemplateError('}} outside expression', position=pos,name=name)if expr == '{{':part = s[last:match.start()]if part:chunks.append(part)in_expr = Trueelse:chunks.append((s[last:match.start()], last_pos))in_expr = Falselast = match.end()last_pos = posif in_expr:raise TemplateError('No }} to finish last expression',name=name, position=last_pos)part = s[last:]if part:chunks.append(part)if trim_whitespace:chunks = trim_lex(chunks)return chunks
11
33
3
208
7
371
424
371
s,name,trim_whitespace
['last', 'pos', 'in_expr', 'chunks', 'part', 'last_pos', 'expr']
Returns
{"Assign": 13, "Expr": 4, "For": 1, "If": 7, "Return": 1}
14
54
14
["token_re.finditer", "match.group", "find_position", "match.end", "TemplateError", "TemplateError", "match.start", "chunks.append", "chunks.append", "match.start", "match.end", "TemplateError", "chunks.append", "trim_lex"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.ply.test.testcpp_py.preprocessing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse"]
The function (lex) defined within the public class called public.The function start at line 371 and ends at 424. It contains 33 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [371.0], and this function return a value. It declares 14.0 functions, It has 14.0 functions called inside which are ["token_re.finditer", "match.group", "find_position", "match.end", "TemplateError", "TemplateError", "match.start", "chunks.append", "chunks.append", "match.start", "match.end", "TemplateError", "chunks.append", "trim_lex"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.ply.test.testcpp_py.preprocessing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse"].
pasteorg_paste
public
public
0
0
trim_lex
def trim_lex(tokens):r"""Takes a lexed set of tokens, and removes whitespace when there isa directive on a line by itself: >>> tokens = lex('{{if x}}\nx\n{{endif}}\ny', trim_whitespace=False) >>> tokens [('if x', (1, 3)), '\nx\n', ('endif', (3, 3)), '\ny'] >>> trim_lex(tokens) [('if x', (1, 3)), 'x\n', ('endif', (3, 3)), 'y']"""for i in range(len(tokens)):current = tokens[i]if isinstance(tokens[i], str):# we don't trim thiscontinueitem = current[0]if not statement_re.search(item) and item not in single_statements:continueif not i:prev = ''else:prev = tokens[i-1]if i+1 >= len(tokens):next = ''else:next = tokens[i+1]if (not isinstance(next, str)or not isinstance(prev, str)):continueif ((not prev or trail_whitespace_re.search(prev))and (not next or lead_whitespace_re.search(next))):if prev:m = trail_whitespace_re.search(prev)# +1 to leave the leading \n on:prev = prev[:m.start()+1]tokens[i-1] = previf next:m = lead_whitespace_re.search(next)next = next[m.end():]tokens[i+1] = nextreturn tokens
15
30
1
208
5
431
472
431
tokens
['current', 'next', 'm', 'item', 'prev']
Returns
{"Assign": 12, "Expr": 1, "For": 1, "If": 8, "Return": 1}
13
42
13
["range", "len", "isinstance", "statement_re.search", "len", "isinstance", "isinstance", "trail_whitespace_re.search", "lead_whitespace_re.search", "trail_whitespace_re.search", "m.start", "lead_whitespace_re.search", "m.end"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.lex"]
The function (trim_lex) defined within the public class called public.The function start at line 431 and ends at 472. It contains 30 lines of code and it has a cyclomatic complexity of 15. The function does not take any parameters, and this function return a value. It declares 13.0 functions, It has 13.0 functions called inside which are ["range", "len", "isinstance", "statement_re.search", "len", "isinstance", "isinstance", "trail_whitespace_re.search", "lead_whitespace_re.search", "trail_whitespace_re.search", "m.start", "lead_whitespace_re.search", "m.end"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.lex"].
pasteorg_paste
public
public
0
0
find_position
def find_position(string, index):"""Given a string and index, return (line, column)"""leading = string[:index].splitlines()return (len(leading), len(leading[-1])+1)
1
3
2
37
1
475
478
475
string,index
['leading']
Returns
{"Assign": 1, "Expr": 1, "Return": 1}
3
4
3
["splitlines", "len", "len"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.lex"]
The function (find_position) defined within the public class called public.The function start at line 475 and ends at 478. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [475.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["splitlines", "len", "len"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.lex"].
pasteorg_paste
public
public
0
0
parse
def parse(s, name=None):r"""Parses a string into a kind of AST>>> parse('{{x}}')[('expr', (1, 3), 'x')]>>> parse('foo')['foo']>>> parse('{{if x}}test{{endif}}')[('cond', (1, 3), ('if', (1, 3), 'x', ['test']))]>>> parse('series->{{for x in y}}x={{x}}{{endfor}}')['series->', ('for', (1, 11), ('x',), 'y', ['x=', ('expr', (1, 27), 'x')])]>>> parse('{{for x, y in z:}}{{continue}}{{endfor}}')[('for', (1, 3), ('x', 'y'), 'z', [('continue', (1, 21))])]>>> parse('{{py:x=1}}')[('py', (1, 3), 'x=1')]>>> parse('{{if x}}a{{elif y}}b{{else}}c{{endif}}')[('cond', (1, 3), ('if', (1, 3), 'x', ['a']), ('elif', (1, 12), 'y', ['b']), ('else', (1, 23), None, ['c']))]Some exceptions::>>> parse('{{continue}}')Traceback (most recent call last):...TemplateError: continue outside of for loop at line 1 column 3>>> parse('{{if x}}foo')Traceback (most recent call last):...TemplateError: No {{endif}} at line 1 column 3>>> parse('{{else}}')Traceback (most recent call last):...TemplateError: else outside of an if block at line 1 column 3>>> parse('{{if x}}{{for x in y}}{{endif}}{{endfor}}')Traceback (most recent call last):...TemplateError: Unexpected endif at line 1 column 25>>> parse('{{if}}{{endif}}')Traceback (most recent call last):...TemplateError: if with no expression at line 1 column 3>>> parse('{{for x y}}{{endfor}}')Traceback (most recent call last):...TemplateError: Bad for (no "in") in 'x y' at line 1 column 3>>> parse('{{py:x=1\ny=2}}')Traceback (most recent call last):...TemplateError: Multi-line py blocks must start with a newline at line 1 column 3"""tokens = lex(s, name=name)result = []while tokens:next, tokens = parse_expr(tokens, name)result.append(next)return result
2
7
2
46
2
480
535
480
s,name
['result', 'tokens']
Returns
{"Assign": 3, "Expr": 2, "Return": 1, "While": 1}
3
56
3
["lex", "parse_expr", "result.append"]
177
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.post_py.process_postlist", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.pipeline.schedule_py.Schedule.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py.BaseQuery.get_page", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.server.tests.test_resource_py.AlternativeWireFormatQueryAPI.get_call_arguments", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.service_py.AWSServiceEndpoint._parse_uri", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.daemontools_py.svstat_parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.mapbox.services.maps_py.Maps._validate_timestamp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.properties_py.Properties.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.spec.v1_2.parser_py.ResourceListContext.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.deps.conda_compat_py.raw_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.deps.mulled.mulled_search_py.QuaySearch.search_repository", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.cancel_all_funding_offers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.cancel_funding_offer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.cancel_order", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.cancel_order_multi", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.claim_position", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.get_deposit_address", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.increase_position", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.submit_funding_close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.submit_funding_offer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.submit_order", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.submit_wallet_withdrawal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.toggle_auto_renew", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.toggle_keep_funding", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.transfer_between_wallets"]
The function (parse) defined within the public class called public.The function start at line 480 and ends at 535. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [480.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["lex", "parse_expr", "result.append"], It has 177.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.post_py.process_postlist", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.pipeline.schedule_py.Schedule.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client.base_py.BaseQuery.get_page", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.server.tests.test_resource_py.AlternativeWireFormatQueryAPI.get_call_arguments", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.service_py.AWSServiceEndpoint._parse_uri", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.pgctl.daemontools_py.svstat_parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3646986_mapbox_mapbox_sdk_py.mapbox.services.maps_py.Maps._validate_timestamp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.properties_py.Properties.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.spec.v1_2.parser_py.ResourceListContext.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.deps.conda_compat_py.raw_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.deps.mulled.mulled_search_py.QuaySearch.search_repository", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.cancel_all_funding_offers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.cancel_funding_offer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.cancel_order", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.cancel_order_multi", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.claim_position", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.get_deposit_address", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.increase_position", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.submit_funding_close", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.submit_funding_offer", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.submit_order", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.submit_wallet_withdrawal", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.toggle_auto_renew", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.toggle_keep_funding", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692001_bitfinexcom_bitfinex_api_py.bfxapi.rest._interfaces.rest_auth_endpoints_py.RestAuthEndpoints.transfer_between_wallets"].
pasteorg_paste
public
public
0
0
parse_expr
def parse_expr(tokens, name, context=()):if isinstance(tokens[0], str):return tokens[0], tokens[1:]expr, pos = tokens[0]expr = expr.strip()if expr.startswith('py:'):expr = expr[3:].lstrip(' \t')if expr.startswith('\n'):expr = expr[1:]else:if '\n' in expr:raise TemplateError('Multi-line py blocks must start with a newline',position=pos, name=name)return ('py', pos, expr), tokens[1:]elif expr in ('continue', 'break'):if 'for' not in context:raise TemplateError('continue outside of for loop',position=pos, name=name)return (expr, pos), tokens[1:]elif expr.startswith('if '):return parse_cond(tokens, name, context)elif (expr.startswith('elif ')or expr == 'else'):raise TemplateError('%s outside of an if block' % expr.split()[0],position=pos, name=name)elif expr in ('if', 'elif', 'for'):raise TemplateError('%s with no expression' % expr,position=pos, name=name)elif expr in ('endif', 'endfor'):raise TemplateError('Unexpected %s' % expr,position=pos, name=name)elif expr.startswith('for '):return parse_for(tokens, name, context)elif expr.startswith('default '):return parse_default(tokens, name, context)elif expr.startswith('#'):return ('comment', pos, tokens[0][0]), tokens[1:]return ('expr', pos, tokens[0][0]), tokens[1:]
15
43
3
343
1
537
579
537
tokens,name,context
['expr']
Returns
{"Assign": 4, "If": 13, "Return": 8}
19
43
19
["isinstance", "expr.strip", "expr.startswith", "lstrip", "expr.startswith", "TemplateError", "TemplateError", "expr.startswith", "parse_cond", "expr.startswith", "TemplateError", "expr.split", "TemplateError", "TemplateError", "expr.startswith", "parse_for", "expr.startswith", "parse_default", "expr.startswith"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_for", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_one_cond"]
The function (parse_expr) defined within the public class called public.The function start at line 537 and ends at 579. It contains 43 lines of code and it has a cyclomatic complexity of 15. It takes 3 parameters, represented as [537.0], and this function return a value. It declares 19.0 functions, It has 19.0 functions called inside which are ["isinstance", "expr.strip", "expr.startswith", "lstrip", "expr.startswith", "TemplateError", "TemplateError", "expr.startswith", "parse_cond", "expr.startswith", "TemplateError", "expr.split", "TemplateError", "TemplateError", "expr.startswith", "parse_for", "expr.startswith", "parse_default", "expr.startswith"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_for", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_one_cond"].
pasteorg_paste
public
public
0
0
parse_cond
def parse_cond(tokens, name, context):start = tokens[0][1]pieces = []context = context + ('if',)while 1:if not tokens:raise TemplateError('Missing {{endif}}',position=start, name=name)if (isinstance(tokens[0], tuple)and tokens[0][0] == 'endif'):return ('cond', start) + tuple(pieces), tokens[1:]next, tokens = parse_one_cond(tokens, name, context)pieces.append(next)
5
14
3
108
3
581
594
581
tokens,name,context
['context', 'start', 'pieces']
Returns
{"Assign": 4, "Expr": 1, "If": 2, "Return": 1, "While": 1}
5
14
5
["TemplateError", "isinstance", "tuple", "parse_one_cond", "pieces.append"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_expr"]
The function (parse_cond) defined within the public class called public.The function start at line 581 and ends at 594. It contains 14 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [581.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["TemplateError", "isinstance", "tuple", "parse_one_cond", "pieces.append"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_expr"].
pasteorg_paste
public
public
0
0
parse_one_cond
def parse_one_cond(tokens, name, context):(first, pos), tokens = tokens[0], tokens[1:]content = []if first.endswith(':'):first = first[:-1]if first.startswith('if '):part = ('if', pos, first[3:].lstrip(), content)elif first.startswith('elif '):part = ('elif', pos, first[5:].lstrip(), content)elif first == 'else':part = ('else', pos, None, content)else:assert 0, "Unexpected token %r at %s" % (first, pos)while 1:if not tokens:raise TemplateError('No {{endif}}',position=pos, name=name)if (isinstance(tokens[0], tuple)and (tokens[0][0] == 'endif' or tokens[0][0].startswith('elif ') or tokens[0][0] == 'else')):return part, tokensnext, tokens = parse_expr(tokens, name, context)content.append(next)
11
25
3
219
3
596
620
596
tokens,name,context
['content', 'first', 'part']
Returns
{"Assign": 7, "Expr": 1, "If": 6, "Return": 1, "While": 1}
10
25
10
["first.endswith", "first.startswith", "lstrip", "first.startswith", "lstrip", "TemplateError", "isinstance", "startswith", "parse_expr", "content.append"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_cond"]
The function (parse_one_cond) defined within the public class called public.The function start at line 596 and ends at 620. It contains 25 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [596.0], and this function return a value. It declares 10.0 functions, It has 10.0 functions called inside which are ["first.endswith", "first.startswith", "lstrip", "first.startswith", "lstrip", "TemplateError", "isinstance", "startswith", "parse_expr", "content.append"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_cond"].
pasteorg_paste
public
public
0
0
parse_for
def parse_for(tokens, name, context):first, pos = tokens[0]tokens = tokens[1:]context = ('for',) + contextcontent = []assert first.startswith('for ')if first.endswith(':'):first = first[:-1]first = first[3:].strip()match = in_re.search(first)if not match:raise TemplateError('Bad for (no "in") in %r' % first,position=pos, name=name)vars = first[:match.start()]if '(' in vars:raise TemplateError('You cannot have () in the variable section of a for loop (%r)'% vars, position=pos, name=name)vars = tuple([v.strip() for v in first[:match.start()].split(',')if v.strip()])expr = first[match.end():]while 1:if not tokens:raise TemplateError('No {{endfor}}',position=pos, name=name)if (isinstance(tokens[0], tuple)and tokens[0][0] == 'endfor'):return ('for', pos, vars, expr, content), tokens[1:]next, tokens = parse_expr(tokens, name, context)content.append(next)
10
33
3
253
7
622
654
622
tokens,name,context
['tokens', 'content', 'first', 'context', 'vars', 'match', 'expr']
Returns
{"Assign": 11, "Expr": 1, "If": 5, "Return": 1, "While": 1}
17
33
17
["first.startswith", "first.endswith", "strip", "in_re.search", "TemplateError", "match.start", "TemplateError", "tuple", "v.strip", "split", "match.start", "v.strip", "match.end", "TemplateError", "isinstance", "parse_expr", "content.append"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_expr"]
The function (parse_for) defined within the public class called public.The function start at line 622 and ends at 654. It contains 33 lines of code and it has a cyclomatic complexity of 10. It takes 3 parameters, represented as [622.0], and this function return a value. It declares 17.0 functions, It has 17.0 functions called inside which are ["first.startswith", "first.endswith", "strip", "in_re.search", "TemplateError", "match.start", "TemplateError", "tuple", "v.strip", "split", "match.start", "v.strip", "match.end", "TemplateError", "isinstance", "parse_expr", "content.append"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_expr"].
pasteorg_paste
public
public
0
0
parse_default
def parse_default(tokens, name, context):first, pos = tokens[0]assert first.startswith('default ')first = first.split(None, 1)[1]parts = first.split('=', 1)if len(parts) == 1:raise TemplateError("Expression must be {{default var=value}}; no = found in %r" % first,position=pos, name=name)var = parts[0].strip()if ',' in var:raise TemplateError("{{default x, y = ...}} is not supported",position=pos, name=name)if not var_re.search(var):raise TemplateError("Not a valid variable name for {{default}}: %r"% var, position=pos, name=name)expr = parts[1].strip()return ('default', pos, var, expr), tokens[1:]
4
20
3
148
4
656
675
656
tokens,name,context
['var', 'parts', 'first', 'expr']
Returns
{"Assign": 5, "If": 3, "Return": 1}
10
20
10
["first.startswith", "first.split", "first.split", "len", "TemplateError", "strip", "TemplateError", "var_re.search", "TemplateError", "strip"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_expr"]
The function (parse_default) defined within the public class called public.The function start at line 656 and ends at 675. It contains 20 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [656.0], and this function return a value. It declares 10.0 functions, It has 10.0 functions called inside which are ["first.startswith", "first.split", "first.split", "len", "TemplateError", "strip", "TemplateError", "var_re.search", "TemplateError", "strip"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.parse_expr"].
pasteorg_paste
public
public
0
0
fill_command
def fill_command(args=None):import sys, optparse, pkg_resources, osif args is None:args = sys.argv[1:]dist = pkg_resources.get_distribution('Paste')parser = optparse.OptionParser(version=str(dist),usage=_fill_command_usage)parser.add_option('-o', '--output',dest='output',metavar="FILENAME",help="File to write output to (default stdout)")parser.add_option('--html',dest='use_html',action='store_true',help="Use HTML style filling (including automatic HTML quoting)")parser.add_option('--env',dest='use_env',action='store_true',help="Put the environment in as top-level variables")options, args = parser.parse_args(args)if len(args) < 1:print('You must give a template filename')print(dir(parser))assert 0template_name = args[0]args = args[1:]vars = {}if options.use_env:vars.update(os.environ)for value in args:if '=' not in value:print('Bad argument: %r' % value)sys.exit(2)name, value = value.split('=', 1)if name.startswith('py:'):name = name[:3]value = eval(value)vars[name] = valueif template_name == '-':template_content = sys.stdin.read()template_name = '<stdin>'else:f = open(template_name, 'rb')template_content = f.read()f.close()if options.use_html:TemplateClass = HTMLTemplateelse:TemplateClass = Templatetemplate = TemplateClass(template_content, name=template_name)result = template.substitute(vars)if options.output:f = open(options.output, 'wb')f.write(result)f.close()else:sys.stdout.write(result)
10
61
1
339
12
684
744
684
args
['dist', 'args', 'parser', 'template_name', 'TemplateClass', 'value', 'template_content', 'f', 'name', 'vars', 'template', 'result']
None
{"Assign": 20, "Expr": 12, "For": 1, "If": 8}
27
61
27
["pkg_resources.get_distribution", "optparse.OptionParser", "str", "parser.add_option", "parser.add_option", "parser.add_option", "parser.parse_args", "len", "print", "print", "dir", "vars.update", "print", "sys.exit", "value.split", "name.startswith", "eval", "sys.stdin.read", "open", "f.read", "f.close", "TemplateClass", "template.substitute", "open", "f.write", "f.close", "sys.stdout.write"]
0
[]
The function (fill_command) defined within the public class called public.The function start at line 684 and ends at 744. It contains 61 lines of code and it has a cyclomatic complexity of 10. The function does not take any parameters and does not return any value. It declares 27.0 functions, and It has 27.0 functions called inside which are ["pkg_resources.get_distribution", "optparse.OptionParser", "str", "parser.add_option", "parser.add_option", "parser.add_option", "parser.parse_args", "len", "print", "print", "dir", "vars.update", "print", "sys.exit", "value.split", "name.startswith", "eval", "sys.stdin.read", "open", "f.read", "f.close", "TemplateClass", "template.substitute", "open", "f.write", "f.close", "sys.stdout.write"].
pasteorg_paste
PrintCatcher
public
0
1
__init__
def __init__(self, default=None, factory=None, paramwriter=None, leave_stdout=False):assert len(filter(lambda x: x is not None,[default, factory, paramwriter])) <= 1, ("You can only provide one of default, factory, or paramwriter")if leave_stdout:assert not default, ("You cannot pass in both default (%r) and ""leave_stdout=True" % default)default = sys.stdoutif default:self._defaultfunc = self._writedefaultelif factory:self._defaultfunc = self._writefactoryelif paramwriter:self._defaultfunc = self._writeparamelse:self._defaultfunc = self._writeerrorself._default = defaultself._factory = factoryself._paramwriter = paramwriterself._catchers = {}
5
22
5
127
0
69
90
69
self,default,factory,paramwriter,leave_stdout
[]
None
{"Assign": 9, "If": 4}
2
22
2
["len", "filter"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called PrintCatcher, that inherit another class.The function start at line 69 and ends at 90. It contains 22 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [69.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["len", "filter"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
PrintCatcher
public
0
1
write
def write(self, v, currentThread=threading.current_thread):name = currentThread().namecatchers = self._catchersif not catchers.has_key(name):self._defaultfunc(name, v)else:catcher = catchers[name]catcher.write(v)
2
8
3
56
0
92
99
92
self,v,currentThread
[]
None
{"Assign": 3, "Expr": 2, "If": 1}
4
8
4
["currentThread", "catchers.has_key", "self._defaultfunc", "catcher.write"]
501
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.gen_pickles_py.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.examples.crawler_py.write_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsCommand.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsReparse.run", "_.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.3605399_futapi_fut.fut.log_py.logger", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.spec.config_py.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.unit.config_py.DescribeFromApp.it_merges_parent_Configs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.test_override_requirements_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.test_timestamps_multiple", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.__init___py.requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.io_py.Request._prepare_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670790_opencivicdata_pupa.pupa.tests.importers.test_base_importer_py.test_import_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.integrated_panel_py.ManagesIntegratedToolPanelMixin._write_integrated_tool_panel_config_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682952_cisagov_trustymail.src.trustymail.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.tests.test_commands_py.TestConfigCommand.test_auto_remote_is_backwards_compatible", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.tests.test_commands_py.TestConfigCommand.test_auto_remote_project", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717445_kiminewt_pyshark.src.pyshark.ek_field_mapping_py._EkFieldMapping.load_mapping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914659_opengisch_qfieldsync.qfieldsync.gui.synchronize_dialog_py.SynchronizeDialog.start_synchronization", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.pngsuite_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.test_png_py.Test.test_from_array_L2", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.test_png_py.Test.test_from_array_LA", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923090_astropy_sphinx_automodapi.sphinx_automodapi.tests.__init___py.cython_testpackage", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923947_luispedro_jug.jug.backends.encode_py.encode_to", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952372_thebjorn_pydeps.tests.filemaker_py.Filemaker.make_file"]
The function (write) defined within the public class called PrintCatcher, that inherit another class.The function start at line 92 and ends at 99. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [92.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["currentThread", "catchers.has_key", "self._defaultfunc", "catcher.write"], It has 501.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3495544_aio_libs_multidict.tests.gen_pickles_py.generate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3510604_dieseldev_diesel.examples.crawler_py.write_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsCommand.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsReparse.run", "_.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.3605399_futapi_fut.fut.log_py.logger", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.spec.config_py.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3643700_yelp_pgctl.tests.unit.config_py.DescribeFromApp.it_merges_parent_Configs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.test_override_requirements_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.functional.simple_test_py.test_timestamps_multiple", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3645277_yelp_venv_update.tests.testing.__init___py.requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.io_py.Request._prepare_files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3670790_opencivicdata_pupa.pupa.tests.importers.test_base_importer_py.test_import_directory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.integrated_panel_py.ManagesIntegratedToolPanelMixin._write_integrated_tool_panel_config_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3682952_cisagov_trustymail.src.trustymail.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.tests.test_commands_py.TestConfigCommand.test_auto_remote_is_backwards_compatible", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3715078_transifex_transifex_client.tests.test_commands_py.TestConfigCommand.test_auto_remote_project", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3717445_kiminewt_pyshark.src.pyshark.ek_field_mapping_py._EkFieldMapping.load_mapping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914659_opengisch_qfieldsync.qfieldsync.gui.synchronize_dialog_py.SynchronizeDialog.start_synchronization", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.pngsuite_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.test_png_py.Test.test_from_array_L2", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.test_png_py.Test.test_from_array_LA", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923090_astropy_sphinx_automodapi.sphinx_automodapi.tests.__init___py.cython_testpackage", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923947_luispedro_jug.jug.backends.encode_py.encode_to", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3952372_thebjorn_pydeps.tests.filemaker_py.Filemaker.make_file"].
pasteorg_paste
PrintCatcher
public
0
1
seek
def seek(self, *args):# Weird, but Google App Engine is seeking on stdoutname = threading.current_thread().namecatchers = self._catchersif not name in catchers:self._default.seek(*args)else:catchers[name].seek(*args)
2
7
2
49
0
101
108
101
self,*args
[]
None
{"Assign": 2, "Expr": 2, "If": 1}
3
8
3
["threading.current_thread", "self._default.seek", "seek"]
8
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client._producers_py.FileBodyProducer._determineLength", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707933_aiortc_aioquic.tests.test_tls_py.reset_buffers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87138903_intel_bmap_tools.bmaptools.TransRead_py.TransRead.seek", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.amazon_bedrock.tests.test_document_embedder_py.TestAmazonBedrockDocumentEmbedder.test_embed_cohere_batching", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.amazon_bedrock.tests.test_document_embedder_py.TestAmazonBedrockDocumentEmbedder.test_embed_titan", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.amazon_bedrock.tests.test_document_image_embedder_py.TestAmazonBedrockDocumentImageEmbedder.test_embed_titan", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.cascade_py.Cascade.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.threadedprint_py.PrintCatcher.seek"]
The function (seek) defined within the public class called PrintCatcher, that inherit another class.The function start at line 101 and ends at 108. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [101.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["threading.current_thread", "self._default.seek", "seek"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3595150_twisted_txaws.txaws.client._producers_py.FileBodyProducer._determineLength", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707933_aiortc_aioquic.tests.test_tls_py.reset_buffers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87138903_intel_bmap_tools.bmaptools.TransRead_py.TransRead.seek", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.amazon_bedrock.tests.test_document_embedder_py.TestAmazonBedrockDocumentEmbedder.test_embed_cohere_batching", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.amazon_bedrock.tests.test_document_embedder_py.TestAmazonBedrockDocumentEmbedder.test_embed_titan", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.amazon_bedrock.tests.test_document_image_embedder_py.TestAmazonBedrockDocumentImageEmbedder.test_embed_titan", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.cascade_py.Cascade.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.threadedprint_py.PrintCatcher.seek"].
pasteorg_paste
PrintCatcher
public
0
1
read
def read(self, *args):name = threading.current_thread().namecatchers = self._catchersif not name in catchers:self._default.read(*args)else:catchers[name].read(*args)
2
7
2
49
0
110
116
110
self,*args
[]
None
{"Assign": 2, "Expr": 2, "If": 1}
3
7
3
["threading.current_thread", "self._default.read", "read"]
423
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.dbus_unit_test_py.dbus_cleanup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3474748_nzjrs_gnome_tweak_tool.gtweak.utils_py.AutostartFile.is_start_at_login_enabled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.docker_registry.drivers.s3_py.Cloudfront.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.tests.test_config_py.TestConfig.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_gettext_py.test_charsets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_between_iso88591_and_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_between_iso88591_and_unicode_only", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_in_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_utils_py.test_fuzzy_matching", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.jsonschema.validators_py.RefResolver.resolve_remote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.commands_py.find_confdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.__init___py.Blueprint.commit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.backend.files_py.files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.backend.sources_py._source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.services_py.services", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.util_py.parse_service", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_empty", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_invalid_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_invalid_sha", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.config.config_py.load_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.apply_fancy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter_mememe"]
The function (read) defined within the public class called PrintCatcher, that inherit another class.The function start at line 110 and ends at 116. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [110.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["threading.current_thread", "self._default.read", "read"], It has 423.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.dbus_unit_test_py.dbus_cleanup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3474748_nzjrs_gnome_tweak_tool.gtweak.utils_py.AutostartFile.is_start_at_login_enabled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.docker_registry.drivers.s3_py.Cloudfront.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.tests.test_config_py.TestConfig.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_gettext_py.test_charsets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_between_iso88591_and_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_between_iso88591_and_unicode_only", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_in_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_utils_py.test_fuzzy_matching", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.jsonschema.validators_py.RefResolver.resolve_remote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.commands_py.find_confdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.__init___py.Blueprint.commit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.backend.files_py.files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.backend.sources_py._source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.services_py.services", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.util_py.parse_service", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_empty", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_invalid_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_invalid_sha", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.config.config_py.load_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.apply_fancy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter_mememe"].
pasteorg_paste
PrintCatcher
public
0
1
_writedefault
def _writedefault(self, name, v):self._default.write(v)
1
2
3
17
0
119
120
119
self,name,v
[]
None
{"Expr": 1}
1
2
1
["self._default.write"]
0
[]
The function (_writedefault) defined within the public class called PrintCatcher, that inherit another class.The function start at line 119 and ends at 120. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [119.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self._default.write"].
pasteorg_paste
PrintCatcher
public
0
1
_writefactory
def _writefactory(self, name, v):self._factory(name).write(v)
1
2
3
20
0
122
123
122
self,name,v
[]
None
{"Expr": 1}
2
2
2
["write", "self._factory"]
0
[]
The function (_writefactory) defined within the public class called PrintCatcher, that inherit another class.The function start at line 122 and ends at 123. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [122.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["write", "self._factory"].
pasteorg_paste
PrintCatcher
public
0
1
_writeparam
def _writeparam(self, name, v):self._paramwriter(name, v)
1
2
3
17
0
125
126
125
self,name,v
[]
None
{"Expr": 1}
1
2
1
["self._paramwriter"]
0
[]
The function (_writeparam) defined within the public class called PrintCatcher, that inherit another class.The function start at line 125 and ends at 126. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [125.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self._paramwriter"].
pasteorg_paste
PrintCatcher
public
0
1
_writeerror
def _writeerror(self, name, v):assert False, ("There is no PrintCatcher output stream for the thread %r"% name)
1
4
3
17
0
128
131
128
self,name,v
[]
None
{}
0
4
0
[]
0
[]
The function (_writeerror) defined within the public class called PrintCatcher, that inherit another class.The function start at line 128 and ends at 131. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [128.0] and does not return any value..
pasteorg_paste
PrintCatcher
public
0
1
register
def register(self, catcher, name=None, currentThread=threading.current_thread):if name is None:name = currentThread().nameself._catchers[name] = catcher
2
5
4
37
0
133
137
133
self,catcher,name,currentThread
[]
None
{"Assign": 2, "If": 1}
1
5
1
["currentThread"]
168
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.test_progress_py.test_status_fd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.irc_py.IRC.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.telegramrelay_py.TelegramRelay.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.signal_py.SignalHolder.compare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.books_py.addBook", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.books_py.allBooks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.addQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.allQuotes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.echoQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.searchQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.yesTheyDid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.tell_py.addTell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.tell_py.checkTell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.clang.cindex_py.register_functions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3699070_jceb_vim_orgmode.ftplugin.orgmode._vim_py.OrgMode.register_plugin", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3927795_moses_palmer_pynput.lib.pynput.keyboard._xorg_py.Controller._resolve_borrowing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.clang.cindex_py.register_functions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_options_py.TestScriptOption.test_script_register", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.core_py.Prof", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.feedback_py.feedback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.apk", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.img_sampler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.make_qr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.parseqr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.heroku_py._"]
The function (register) defined within the public class called PrintCatcher, that inherit another class.The function start at line 133 and ends at 137. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [133.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["currentThread"], It has 168.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.test_progress_py.test_status_fd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.irc_py.IRC.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.telegramrelay_py.TelegramRelay.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.signal_py.SignalHolder.compare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.books_py.addBook", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.books_py.allBooks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.addQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.allQuotes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.echoQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.searchQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.yesTheyDid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.tell_py.addTell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.tell_py.checkTell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.clang.cindex_py.register_functions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3699070_jceb_vim_orgmode.ftplugin.orgmode._vim_py.OrgMode.register_plugin", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3927795_moses_palmer_pynput.lib.pynput.keyboard._xorg_py.Controller._resolve_borrowing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.clang.cindex_py.register_functions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_options_py.TestScriptOption.test_script_register", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.core_py.Prof", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.feedback_py.feedback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.apk", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.img_sampler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.make_qr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.parseqr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.heroku_py._"].
pasteorg_paste
PrintCatcher
public
0
1
deregister
def deregister(self, name=None, currentThread=threading.current_thread):if name is None:name = currentThread().nameassert self._catchers.has_key(name), ("There is no PrintCatcher catcher for the thread %r" % name)del self._catchers[name]
2
7
3
49
0
139
145
139
self,name,currentThread
[]
None
{"Assign": 1, "If": 1}
2
7
2
["currentThread", "self._catchers.has_key"]
0
[]
The function (deregister) defined within the public class called PrintCatcher, that inherit another class.The function start at line 139 and ends at 145. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [139.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["currentThread", "self._catchers.has_key"].
pasteorg_paste
public
public
0
0
install
def install(**kw):global _printcatcher, _oldstdout, register, deregisterif (not _printcatcher or sys.stdout is not _printcatcher):_oldstdout = sys.stdout_printcatcher = sys.stdout = PrintCatcher(**kw)register = _printcatcher.registerderegister = _printcatcher.deregister
3
7
1
53
4
150
156
150
**kw
['_oldstdout', 'register', '_printcatcher', 'deregister']
None
{"Assign": 4, "If": 1}
1
7
1
["PrintCatcher"]
25
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.falcon_py.ScoutMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.tests.unit.test_core_py.test_install_fail_monitor_false", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.tests.unit.test_core_py.test_install_fail_windows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.tests.unit.test_core_py.test_install_success", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanMultiPackager.run_builds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.runner_py.CreateRunner.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_benchopt_install_in_env", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_benchopt_install_in_env_with_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_download_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_error_with_missing_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_existing_empty_env", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_invalid_benchmark", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_invalid_dataset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_invalid_solver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_minimal_installation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_no_error_minimal_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_valid_call", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.helpers.tests.test_language_helpers_py.test_julia_solver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.helpers.tests.test_language_helpers_py.test_r_solver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.tests.test_install_py.test_gpu_flag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.tests.test_install_py.test_invalid_install_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_namespaces", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_packages", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_uninstall"]
The function (install) defined within the public class called public.The function start at line 150 and ends at 156. It contains 7 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["PrintCatcher"], It has 25.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.falcon_py.ScoutMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.tests.unit.test_core_py.test_install_fail_monitor_false", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.tests.unit.test_core_py.test_install_fail_windows", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.tests.unit.test_core_py.test_install_success", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanMultiPackager.run_builds", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.runner_py.CreateRunner.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_benchopt_install_in_env", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_benchopt_install_in_env_with_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_download_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_error_with_missing_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_existing_empty_env", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_invalid_benchmark", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_invalid_dataset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_invalid_solver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_minimal_installation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_no_error_minimal_requirements", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.cli.tests.test_cli_py.TestInstallCmd.test_valid_call", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.helpers.tests.test_language_helpers_py.test_julia_solver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.helpers.tests.test_language_helpers_py.test_r_solver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.tests.test_install_py.test_gpu_flag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957766_benchopt_benchopt.benchopt.tests.test_install_py.test_invalid_install_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_install", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_namespaces", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_packages", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_uninstall"].
pasteorg_paste
public
public
0
0
uninstall
def uninstall():global _printcatcher, _oldstdout, register, deregisterif _printcatcher:sys.stdout = _oldstdout_printcatcher = _oldstdout = Noneregister = not_installed_errorderegister = not_installed_error
2
7
0
31
4
158
164
158
['_oldstdout', 'register', '_printcatcher', 'deregister']
None
{"Assign": 4, "If": 1}
0
7
0
[]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.deps.views_py.DependencyResolversView.uninstall_dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_packages", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_uninstall"]
The function (uninstall) defined within the public class called public.The function start at line 158 and ends at 164. It contains 7 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 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.deps.views_py.DependencyResolversView.uninstall_dependencies", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_packages", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.tests.test_api_py.TestToolsPico.test_uninstall"].
pasteorg_paste
public
public
0
0
not_installed_error
def not_installed_error(*args, **kw):assert False, ("threadedprint has not yet been installed (call ""threadedprint.install())")
1
4
2
16
0
166
169
166
*args,**kw
[]
None
{}
0
4
0
[]
0
[]
The function (not_installed_error) defined within the public class called public.The function start at line 166 and ends at 169. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [166.0] and does not return any value..
pasteorg_paste
PrintCatcher
public
0
1
__init__
def __init__(self, default=None, factory=None, paramwriter=None):assert len(filter(lambda x: x is not None,[default, factory, paramwriter])) <= 1, ("You can only provide one of default, factory, or paramwriter")if default:self._defaultfunc = self._readdefaultelif factory:self._defaultfunc = self._readfactoryelif paramwriter:self._defaultfunc = self._readparamelse:self._defaultfunc = self._readerrorself._default = defaultself._factory = factoryself._paramwriter = paramwriterself._catchers = {}
4
16
4
105
0
175
190
175
self,default,factory,paramwriter,leave_stdout
[]
None
{"Assign": 9, "If": 4}
2
22
2
["len", "filter"]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called PrintCatcher, that inherit another class.The function start at line 175 and ends at 190. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 4 parameters, represented as [175.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["len", "filter"], It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
PrintCatcher
public
0
1
read
def read(self, size=None, currentThread=threading.current_thread):name = currentThread().namecatchers = self._catchersif not catchers.has_key(name):return self._defaultfunc(name, size)else:catcher = catchers[name]return catcher.read(size)
2
8
3
60
0
192
199
192
self,*args
[]
None
{"Assign": 2, "Expr": 2, "If": 1}
3
7
3
["threading.current_thread", "self._default.read", "read"]
423
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.dbus_unit_test_py.dbus_cleanup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3474748_nzjrs_gnome_tweak_tool.gtweak.utils_py.AutostartFile.is_start_at_login_enabled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.docker_registry.drivers.s3_py.Cloudfront.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.tests.test_config_py.TestConfig.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_gettext_py.test_charsets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_between_iso88591_and_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_between_iso88591_and_unicode_only", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_in_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_utils_py.test_fuzzy_matching", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.jsonschema.validators_py.RefResolver.resolve_remote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.commands_py.find_confdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.__init___py.Blueprint.commit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.backend.files_py.files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.backend.sources_py._source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.services_py.services", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.util_py.parse_service", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_empty", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_invalid_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_invalid_sha", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.config.config_py.load_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.apply_fancy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter_mememe"]
The function (read) defined within the public class called PrintCatcher, that inherit another class.The function start at line 192 and ends at 199. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [192.0] and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["threading.current_thread", "self._default.read", "read"], It has 423.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.dbus_unit_test_py.dbus_cleanup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3474748_nzjrs_gnome_tweak_tool.gtweak.utils_py.AutostartFile.is_start_at_login_enabled", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.docker_registry.drivers.s3_py.Cloudfront.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3513788_docker_archive_docker_registry.tests.test_config_py.TestConfig.setUp", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_gettext_py.test_charsets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_between_iso88591_and_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_between_iso88591_and_unicode_only", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_text_py.test_difference_in_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.comparators.test_utils_py.test_fuzzy_matching", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.deps.jsonschema.validators_py.RefResolver.resolve_remote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.commands_py.find_confdir", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.__init___py.Blueprint.commit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.backend.files_py.files", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.backend.sources_py._source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.services_py.services", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.blueprint.util_py.parse_service", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_empty", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_invalid_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3564431_devstructure_blueprint.tests_py.test_PUT_tarball_invalid_sha", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567358_coursera_dataduct.dataduct.config.config_py.load_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.apply_fancy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter_html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.tests.test_apply_py.ApplyTest.test_apply_filter_mememe"].
pasteorg_paste
StdinCatcher
public
0
1
_readdefault
def _readdefault(self, name, size):self._default.read(size)
1
2
3
17
0
201
202
201
self,name,size
[]
None
{"Expr": 1}
1
2
1
["self._default.read"]
0
[]
The function (_readdefault) defined within the public class called StdinCatcher, that inherit another class.The function start at line 201 and ends at 202. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [201.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self._default.read"].
pasteorg_paste
StdinCatcher
public
0
1
_readfactory
def _readfactory(self, name, size):self._factory(name).read(size)
1
2
3
20
0
204
205
204
self,name,size
[]
None
{"Expr": 1}
2
2
2
["read", "self._factory"]
0
[]
The function (_readfactory) defined within the public class called StdinCatcher, that inherit another class.The function start at line 204 and ends at 205. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [204.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["read", "self._factory"].
pasteorg_paste
StdinCatcher
public
0
1
_readparam
def _readparam(self, name, size):self._paramreader(name, size)
1
2
3
17
0
207
208
207
self,name,size
[]
None
{"Expr": 1}
1
2
1
["self._paramreader"]
0
[]
The function (_readparam) defined within the public class called StdinCatcher, that inherit another class.The function start at line 207 and ends at 208. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [207.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self._paramreader"].
pasteorg_paste
StdinCatcher
public
0
1
_readerror
def _readerror(self, name, size):assert False, ("There is no StdinCatcher output stream for the thread %r"% name)
1
4
3
17
0
210
213
210
self,name,size
[]
None
{}
0
4
0
[]
0
[]
The function (_readerror) defined within the public class called StdinCatcher, that inherit another class.The function start at line 210 and ends at 213. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [210.0] and does not return any value..
pasteorg_paste
PrintCatcher
public
0
1
register
def register(self, catcher, name=None, currentThread=threading.current_thread):if name is None:name = currentThread().nameself._catchers[name] = catcher
2
5
4
37
0
215
219
133
self,catcher,name,currentThread
[]
None
{"Assign": 2, "If": 1}
1
5
1
["currentThread"]
168
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.test_progress_py.test_status_fd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.irc_py.IRC.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.telegramrelay_py.TelegramRelay.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.signal_py.SignalHolder.compare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.books_py.addBook", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.books_py.allBooks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.addQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.allQuotes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.echoQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.searchQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.yesTheyDid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.tell_py.addTell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.tell_py.checkTell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.clang.cindex_py.register_functions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3699070_jceb_vim_orgmode.ftplugin.orgmode._vim_py.OrgMode.register_plugin", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3927795_moses_palmer_pynput.lib.pynput.keyboard._xorg_py.Controller._resolve_borrowing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.clang.cindex_py.register_functions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_options_py.TestScriptOption.test_script_register", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.core_py.Prof", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.feedback_py.feedback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.apk", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.img_sampler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.make_qr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.parseqr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.heroku_py._"]
The function (register) defined within the public class called PrintCatcher, that inherit another class.The function start at line 215 and ends at 219. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [133.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["currentThread"], It has 168.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.test_progress_py.test_status_fd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.irc_py.IRC.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.telegramrelay_py.TelegramRelay.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.signal_py.SignalHolder.compare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.books_py.addBook", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.books_py.allBooks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.addQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.allQuotes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.echoQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.searchQuote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.quotes_py.yesTheyDid", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.tell_py.addTell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659932_gentoomen_bhottu.modules.tell_py.checkTell", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.clang.cindex_py.register_functions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3699070_jceb_vim_orgmode.ftplugin.orgmode._vim_py.OrgMode.register_plugin", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3927795_moses_palmer_pynput.lib.pynput.keyboard._xorg_py.Controller._resolve_borrowing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957748_hotdoc_hotdoc.hotdoc.extensions.c.clang.cindex_py.register_functions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.tests.test_options_py.TestScriptOption.test_script_register", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.core_py.Prof", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.feedback_py.feedback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.apk", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.img_sampler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.make_qr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.google_py.parseqr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69334692_aryazakaria01_natsunagi_nagisa.Natsunagi.modules.heroku_py._"].
pasteorg_paste
PrintCatcher
public
0
1
deregister
def deregister(self, catcher, name=None, currentThread=threading.current_thread):if name is None:name = currentThread().nameassert self._catchers.has_key(name), ("There is no StdinCatcher catcher for the thread %r" % name)del self._catchers[name]
2
7
4
51
0
221
227
221
self,name,currentThread
[]
None
{"Assign": 1, "If": 1}
2
7
2
["currentThread", "self._catchers.has_key"]
0
[]
The function (deregister) defined within the public class called PrintCatcher, that inherit another class.The function start at line 221 and ends at 227. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [221.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["currentThread", "self._catchers.has_key"].
pasteorg_paste
public
public
0
0
install_stdin
def install_stdin(**kw):global _stdincatcher, _oldstdin, register_stdin, deregister_stdinif not _stdincatcher:_oldstdin = sys.stdin_stdincatcher = sys.stdin = StdinCatcher(**kw)register_stdin = _stdincatcher.registerderegister_stdin = _stdincatcher.deregister
2
7
1
44
4
232
238
232
**kw
['_stdincatcher', '_oldstdin', 'deregister_stdin', 'register_stdin']
None
{"Assign": 4, "If": 1}
1
7
1
["StdinCatcher"]
0
[]
The function (install_stdin) defined within the public class called public.The function start at line 232 and ends at 238. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["StdinCatcher"].
pasteorg_paste
public
public
0
0
uninstall_stdin
def uninstall_stdin():global _stdincatcher, _oldstdin, register_stdin, deregister_stdinif _stdincatcher:sys.stdin = _oldstdin_stdincatcher = _oldstdin = Noneregister_stdin = deregister_stdin = not_installed_error_stdin
2
6
0
30
4
240
245
240
['_stdincatcher', '_oldstdin', 'deregister_stdin', 'register_stdin']
None
{"Assign": 3, "If": 1}
0
6
0
[]
0
[]
The function (uninstall_stdin) defined within the public class called public.The function start at line 240 and ends at 245. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value..
pasteorg_paste
public
public
0
0
not_installed_error_stdin
def not_installed_error_stdin(*args, **kw):assert False, ("threadedprint has not yet been installed for stdin (call ""threadedprint.install_stdin())")
1
4
2
16
0
247
250
247
*args,**kw
[]
None
{}
0
4
0
[]
0
[]
The function (not_installed_error_stdin) defined within the public class called public.The function start at line 247 and ends at 250. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [247.0] and does not return any value..
pasteorg_paste
public
public
0
0
__init__
def __init__(self):self.__dict__['__objs'] = {}
1
2
1
14
0
22
23
22
null
[]
None
null
0
0
0
null
0
null
The function (__init__) defined within the public class called public.The function start at line 22 and ends at 23. 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
__getattr__
def __getattr__(self, attr, g=thread.get_ident):try:return self.__dict__['__objs'][g()][attr]except KeyError:raise AttributeError("No variable %s defined for the thread %s"% (attr, g()))
2
7
3
46
0
25
31
25
null
[]
None
null
0
0
0
null
0
null
The function (__getattr__) defined within the public class called public.The function start at line 25 and ends at 31. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [25.0] and does not return any value..
pasteorg_paste
public
public
0
0
__setattr__
def __setattr__(self, attr, value, g=thread.get_ident):self.__dict__['__objs'].setdefault(g(), {})[attr] = value
1
2
4
36
0
33
34
33
null
[]
None
null
0
0
0
null
0
null
The function (__setattr__) defined within the public class called public.The function start at line 33 and ends at 34. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 4 parameters, represented as [33.0] and does not return any value..
pasteorg_paste
public
public
0
0
__delattr__
def __delattr__(self, attr, g=thread.get_ident):try:del self.__dict__['__objs'][g()][attr]except KeyError:raise AttributeError("No variable %s defined for thread %s"% (attr, g()))
2
7
3
46
0
36
42
36
null
[]
None
null
0
0
0
null
0
null
The function (__delattr__) defined within the public class called public.The function start at line 36 and ends at 42. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [36.0] and does not return any value..
pasteorg_paste
public
public
0
0
setup_module
def setup_module():global oldpath, pyexelinkoldpath = os.environ.get('PATH', None)os.environ['PATH'] = data_dir + os.path.pathsep + oldpathpyexelink = os.path.join(data_dir, "python")try:os.unlink(pyexelink)except OSError:passos.symlink(sys.executable, pyexelink)
2
10
0
70
2
18
27
18
['pyexelink', 'oldpath']
None
{"Assign": 3, "Expr": 2, "Try": 1}
4
10
4
["os.environ.get", "os.path.join", "os.unlink", "os.symlink"]
0
[]
The function (setup_module) defined within the public class called public.The function start at line 18 and ends at 27. It contains 10 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["os.environ.get", "os.path.join", "os.unlink", "os.symlink"].
pasteorg_paste
public
public
0
0
teardown_module
def teardown_module():global oldpath, pyexelinkos.unlink(pyexelink)if oldpath is not None:os.environ['PATH'] = oldpathelse:del os.environ['PATH']
2
7
0
37
0
30
36
30
[]
None
{"Assign": 1, "Expr": 1, "If": 1}
1
7
1
["os.unlink"]
0
[]
The function (teardown_module) defined within the public class called public.The function start at line 30 and ends at 36. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["os.unlink"].
pasteorg_paste
public
public
0
0
test_ok
def test_ok():app = TestApp(CGIApplication({}, script='ok.cgi', path=[data_dir]))res = app.get('')assert res.header('content-type') == 'text/html; charset=UTF-8'assert res.full_status == '200 Okay'assert 'This is the body' in res
1
6
0
51
2
38
43
38
['res', 'app']
None
{"Assign": 2}
4
6
4
["TestApp", "CGIApplication", "app.get", "res.header"]
0
[]
The function (test_ok) defined within the public class called public.The function start at line 38 and ends at 43. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["TestApp", "CGIApplication", "app.get", "res.header"].
pasteorg_paste
public
public
0
0
test_form
def test_form():app = TestApp(CGIApplication({}, script='form.cgi', path=[data_dir]))res = app.post('', params={'name': b'joe'}, upload_files=[('up', 'file.txt', b'x'*10000)])assert 'file.txt' in resassert 'joe' in resassert 'x'*10000 in res
1
7
0
70
2
45
51
45
['res', 'app']
None
{"Assign": 2}
3
7
3
["TestApp", "CGIApplication", "app.post"]
0
[]
The function (test_form) defined within the public class called public.The function start at line 45 and ends at 51. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["TestApp", "CGIApplication", "app.post"].
pasteorg_paste
public
public
0
0
test_error
def test_error():app = TestApp(CGIApplication({}, script='error.cgi', path=[data_dir]))pytest.raises(CGIError, app.get, '', status=500)
1
3
0
40
1
53
55
53
['app']
None
{"Assign": 1, "Expr": 1}
3
3
3
["TestApp", "CGIApplication", "pytest.raises"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70408386_unionai_oss_pandera.tests.polars.test_polars_typing_py.TestDataFrame.test_to_format_write_buffer_method"]
The function (test_error) defined within the public class called public.The function start at line 53 and ends at 55. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["TestApp", "CGIApplication", "pytest.raises"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70408386_unionai_oss_pandera.tests.polars.test_polars_typing_py.TestDataFrame.test_to_format_write_buffer_method"].
pasteorg_paste
public
public
0
0
test_stderr
def test_stderr():app = TestApp(CGIApplication({}, script='stderr.cgi', path=[data_dir]))res = app.get('', expect_errors=True)assert res.status == 500assert 'error' in resassert 'some data' in res.errors
1
6
0
52
2
57
62
57
['res', 'app']
None
{"Assign": 2}
3
6
3
["TestApp", "CGIApplication", "app.get"]
0
[]
The function (test_stderr) defined within the public class called public.The function start at line 57 and ends at 62. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["TestApp", "CGIApplication", "app.get"].
pasteorg_paste
public
public
0
0
do_request
def do_request(app, expect_status=500):app = lint.middleware(app)app = CgitbMiddleware(app, {}, display=True)app = clear_middleware(app)testapp = TestApp(app)res = testapp.get('', status=expect_status,expect_errors=True)return res
1
8
2
60
3
6
13
6
app,expect_status
['testapp', 'res', 'app']
Returns
{"Assign": 5, "Return": 1}
5
8
5
["lint.middleware", "CgitbMiddleware", "clear_middleware", "TestApp", "testapp.get"]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.80560341_prozorroukr_openprocurement_api.docs.tests.base.test_py.DumpsWebTestApp.do_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.test_after_start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.test_iter_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.test_makes_exception", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.test_start_res", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_after_start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_iter_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_makes_exception", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_start_res", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_unicode_exception"]
The function (do_request) defined within the public class called public.The function start at line 6 and ends at 13. It contains 8 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [6.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["lint.middleware", "CgitbMiddleware", "clear_middleware", "TestApp", "testapp.get"], It has 10.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.80560341_prozorroukr_openprocurement_api.docs.tests.base.test_py.DumpsWebTestApp.do_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.test_after_start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.test_iter_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.test_makes_exception", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.test_start_res", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_after_start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_iter_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_makes_exception", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_start_res", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.test_unicode_exception"].
pasteorg_paste
public
public
0
0
bad_app
def bad_app():"No argument list!"return None
1
3
0
7
0
20
22
20
[]
Returns
{"Expr": 1, "Return": 1}
0
3
0
[]
0
[]
The function (bad_app) defined within the public class called public.The function start at line 20 and ends at 22. 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..
pasteorg_paste
public
public
0
0
start_response_app
def start_response_app(environ, start_response):"raise error before start_response"raise ValueError("hi")
1
3
2
13
0
24
26
24
environ,start_response
[]
None
{"Expr": 1}
1
3
1
["ValueError"]
0
[]
The function (start_response_app) defined within the public class called public.The function start at line 24 and ends at 26. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [24.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["ValueError"].
pasteorg_paste
public
public
0
0
after_start_response_app
def after_start_response_app(environ, start_response):start_response("200 OK", [('Content-type', 'text/plain')])raise ValueError('error2')
1
3
2
24
0
28
30
28
environ,start_response
[]
None
{"Expr": 1}
2
3
2
["start_response", "ValueError"]
0
[]
The function (after_start_response_app) defined within the public class called public.The function start at line 28 and ends at 30. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [28.0] and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["start_response", "ValueError"].
pasteorg_paste
public
public
0
0
iter_app
def iter_app(environ, start_response):start_response("200 OK", [('Content-type', 'text/plain')])return yielder([b'this', b' is ', b' a', None])
1
3
2
35
0
32
34
32
environ,start_response
[]
Returns
{"Expr": 1, "Return": 1}
2
3
2
["start_response", "yielder"]
0
[]
The function (iter_app) defined within the public class called public.The function start at line 32 and ends at 34. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [32.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["start_response", "yielder"].
pasteorg_paste
public
public
0
0
yielder
def yielder(args):for arg in args:if arg is None:raise ValueError("None raises error")yield arg
3
5
1
22
0
36
40
36
args
[]
None
{"Expr": 1, "For": 1, "If": 1}
1
5
1
["ValueError"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.iter_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.iter_app"]
The function (yielder) defined within the public class called public.The function start at line 36 and ends at 40. It contains 5 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["ValueError"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_cgitb_catcher_py.iter_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_exceptions.test_error_middleware_py.iter_app"].
pasteorg_paste
public
public
0
0
test_makes_exception
def test_makes_exception():res = do_request(bad_app)print(res)assert 'bad_app() takes 0 positional arguments but 2 were given' in resassert 'iterator = application(environ, start_response_wrapper)' in resassert 'lint.py' in resassert 'cgitb_catcher.py' in res
1
7
0
30
1
46
52
46
['res']
None
{"Assign": 1, "Expr": 1}
2
7
2
["do_request", "print"]
0
[]
The function (test_makes_exception) defined within the public class called public.The function start at line 46 and ends at 52. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["do_request", "print"].
pasteorg_paste
public
public
0
0
test_start_res
def test_start_res():res = do_request(start_response_app)print(res)assert 'ValueError: hi' in resassert 'test_cgitb_catcher.py' in resassert 'line 26, in start_response_app' in res
1
6
0
26
1
54
59
54
['res']
None
{"Assign": 1, "Expr": 1}
2
6
2
["do_request", "print"]
0
[]
The function (test_start_res) defined within the public class called public.The function start at line 54 and ends at 59. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["do_request", "print"].
pasteorg_paste
public
public
0
0
test_after_start
def test_after_start():res = do_request(after_start_response_app, 200)print(res)assert 'ValueError: error2' in resassert 'line 30' in res
1
5
0
24
1
61
65
61
['res']
None
{"Assign": 1, "Expr": 1}
2
5
2
["do_request", "print"]
0
[]
The function (test_after_start) defined within the public class called public.The function start at line 61 and ends at 65. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["do_request", "print"].
pasteorg_paste
public
public
0
0
test_iter_app
def test_iter_app():res = do_request(iter_app, 200)print(res)assert 'None raises error' in resassert 'yielder' in res
1
5
0
24
1
67
71
67
['res']
None
{"Assign": 1, "Expr": 1}
2
5
2
["do_request", "print"]
0
[]
The function (test_iter_app) defined within the public class called public.The function start at line 67 and ends at 71. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["do_request", "print"].
pasteorg_paste
public
public
0
0
reset_config
def reset_config():while True:try:CONFIG._pop_object()except IndexError:break
3
6
0
18
0
11
16
11
[]
None
{"Expr": 1, "Try": 1, "While": 1}
1
6
1
["CONFIG._pop_object"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_config_py.test_process_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_config_py.test_request_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_config_py.test_request_config_multi"]
The function (reset_config) defined within the public class called public.The function start at line 11 and ends at 16. It contains 6 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["CONFIG._pop_object"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_config_py.test_process_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_config_py.test_request_config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_config_py.test_request_config_multi"].
pasteorg_paste
public
public
0
0
app_with_config
def app_with_config(environ, start_response):start_response('200 OK', [('Content-type','text/plain')])lines = ['Variable is: %s\n' % CONFIG[test_key],'Variable is (in environ): %s' % environ['paste.config'][test_key]]lines = [line.encode('utf8') for line in lines]return lines
2
6
2
55
1
18
23
18
environ,start_response
['lines']
Returns
{"Assign": 2, "Expr": 1, "Return": 1}
2
6
2
["start_response", "line.encode"]
0
[]
The function (app_with_config) defined within the public class called public.The function start at line 18 and ends at 23. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [18.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["start_response", "line.encode"].
pasteorg_paste
NestingAppWithConfig
public
0
0
__init__
def __init__(self, app):self.app = app
1
2
2
12
0
26
27
26
self,app
[]
None
{"Assign": 1}
0
2
0
[]
6,814
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"]
The function (__init__) defined within the public class called NestingAppWithConfig.The function start at line 26 and ends at 27. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [26.0] and does not return any value. It has 6814.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Autotools.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.CMake.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.11907713_pydrocsid_morpheushelper.bot.cogs.custom.bot_info.cog_py.CustomBotInfoCog.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.abc_py.Reply.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Announcement.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.AnnouncementChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEvent.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.CalendarEventRSVP.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ChatChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DMChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Doc.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.DocsChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ForumTopic.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItem.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.ListItemNote.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Media.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.MediaChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.SchedulingChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.StreamChannel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.Thread.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.channel_py.VoiceChannel.__init__"].
pasteorg_paste
NestingAppWithConfig
public
0
0
__call__
def __call__(self, environ, start_response):response = self.app(environ, start_response)assert isinstance(response, list)supplement = ['Nesting variable is: %s' % CONFIG[test_key],'Nesting variable is (in environ): %s' % \environ['paste.config'][test_key]]supplement = [line.encode('utf8') for line in supplement]response.extend(supplement)return response
2
9
3
69
0
29
37
29
self,environ,start_response
[]
Returns
{"Assign": 3, "Expr": 1, "Return": 1}
4
9
4
["self.app", "isinstance", "line.encode", "response.extend"]
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"]
The function (__call__) defined within the public class called NestingAppWithConfig.The function start at line 29 and ends at 37. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [29.0], and this function return a value. It declares 4.0 functions, It has 4.0 functions called inside which are ["self.app", "isinstance", "line.encode", "response.extend"], It has 43.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3609375_dyninc_dyn_python.dyn.core_py._Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3621460_cos_archives_modular_odm.modularodm.validators.__init___py.URLValidator.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657361_openstack_archive_syntribos.syntribos.utils.file_utils_py.ContentType.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3664992_sigopt_sigopt_python.sigopt.objects_py.DeprecatedField.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3703461_scoutapp_scout_apm_python.src.scout_apm.async_.api_py.AsyncDecoratorMixin.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3707931_jonashaag_klaus.klaus.utils_py.ProxyFix.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3915596_conan_io_conan_package_tools.cpt.packager_py.ConanOutputRunner.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3954392_modorganizer2_modorganizer_umbrella.unibuild.utility.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3960094_jhao104_proxy_pool.util.singleton_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.auth_py.AuthMiddleware.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966276_appimagecrafters_appimage_builder.appimagebuilder.recipe.roamer_py.Roamer.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.constant_py.ConstantMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.delta_py.DeltaMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.distribution_py.DistributionMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984945_c4urself_bump2version.bumpversion.utils_py.DiscardDefaultIfSpecifiedAppendAction.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.libs.nrn_patch.patch.objects_py.Section.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.class_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.config.types_py.function_.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.cell_py.ArborizeModelTypeHandler.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69649459_evil0ctal_douyin_tiktok_download_api.crawlers.utils.logger_py.Singleton.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69862126_timmccool_scratchattach.scratchattach.editor.commons_py.SingletonMeta.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70617371_bluebrain_neurom.neurom.core.types_py._ArgsIntsOrTuples.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.common_py.SingletonMetaclass.__call__"].
pasteorg_paste
public
public
0
0
test_request_config
def test_request_config():try:config = {test_key: 'test value'}app = ConfigMiddleware(app_with_config, config)res = TestApp(app).get('/')assert 'Variable is: test value' in resassert 'Variable is (in environ): test value' in resfinally:reset_config()
2
9
0
45
3
39
47
39
['config', 'res', 'app']
None
{"Assign": 3, "Expr": 1, "Try": 1}
4
9
4
["ConfigMiddleware", "get", "TestApp", "reset_config"]
0
[]
The function (test_request_config) defined within the public class called public.The function start at line 39 and ends at 47. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["ConfigMiddleware", "get", "TestApp", "reset_config"].
pasteorg_paste
public
public
0
0
test_request_config_multi
def test_request_config_multi():try:config = {test_key: 'test value'}app = ConfigMiddleware(app_with_config, config)config = {test_key: 'nesting value'}app = ConfigMiddleware(NestingAppWithConfig(app), config)res = TestApp(app).get('/')assert 'Variable is: test value' in resassert 'Variable is (in environ): test value' in resassert 'Nesting variable is: nesting value' in resprint(res)assert 'Nesting variable is (in environ): nesting value' in resfinally:reset_config()
2
14
0
75
3
49
62
49
['config', 'res', 'app']
None
{"Assign": 5, "Expr": 2, "Try": 1}
7
14
7
["ConfigMiddleware", "ConfigMiddleware", "NestingAppWithConfig", "get", "TestApp", "print", "reset_config"]
0
[]
The function (test_request_config_multi) defined within the public class called public.The function start at line 49 and ends at 62. It contains 14 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["ConfigMiddleware", "ConfigMiddleware", "NestingAppWithConfig", "get", "TestApp", "print", "reset_config"].
pasteorg_paste
public
public
0
0
test_process_config
def test_process_config(request_app=test_request_config):try:process_config = {test_key: 'bar', 'process_var': 'foo'}CONFIG.push_process_config(process_config)assert CONFIG[test_key] == 'bar'assert CONFIG['process_var'] == 'foo'request_app()assert CONFIG[test_key] == 'bar'assert CONFIG['process_var'] == 'foo'CONFIG.pop_process_config()pytest.raises(AttributeError, lambda: 'process_var' not in CONFIG)pytest.raises(IndexError, CONFIG.pop_process_config)finally:reset_config()
2
14
1
90
1
64
81
64
request_app
['process_config']
None
{"Assign": 1, "Expr": 6, "Try": 1}
6
18
6
["CONFIG.push_process_config", "request_app", "CONFIG.pop_process_config", "pytest.raises", "pytest.raises", "reset_config"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_config_py.test_process_config_multi"]
The function (test_process_config) defined within the public class called public.The function start at line 64 and ends at 81. It contains 14 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["CONFIG.push_process_config", "request_app", "CONFIG.pop_process_config", "pytest.raises", "pytest.raises", "reset_config"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_config_py.test_process_config_multi"].
pasteorg_paste
public
public
0
0
test_process_config_multi
def test_process_config_multi():test_process_config(test_request_config_multi)
1
2
0
8
0
83
84
83
[]
None
{"Expr": 1}
1
2
1
["test_process_config"]
0
[]
The function (test_process_config_multi) defined within the public class called public.The function start at line 83 and ends at 84. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["test_process_config"].
pasteorg_paste
public
public
0
0
test_doctests
def test_doctests(filename):filename = os.path.join(os.path.dirname(os.path.dirname(__file__)),filename)failure, total = doctest.testfile(filename, module_relative=False,optionflags=options)assert not failure, "Failure in %r" % filename
1
8
1
56
1
36
43
36
filename
['filename']
None
{"Assign": 2}
5
8
5
["os.path.join", "os.path.dirname", "os.path.dirname", "doctest.testfile", "pytest.mark.parametrize"]
0
[]
The function (test_doctests) defined within the public class called public.The function start at line 36 and ends at 43. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["os.path.join", "os.path.dirname", "os.path.dirname", "doctest.testfile", "pytest.mark.parametrize"].
pasteorg_paste
public
public
0
0
test_doctest_mods
def test_doctest_mods(module):module = simple_import(module)failure, total = doctest.testmod(module, optionflags=options)assert not failure, "Failure in %r" % module
1
5
1
32
1
47
51
47
module
['module']
None
{"Assign": 2}
3
5
3
["simple_import", "doctest.testmod", "pytest.mark.parametrize"]
0
[]
The function (test_doctest_mods) defined within the public class called public.The function start at line 47 and ends at 51. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["simple_import", "doctest.testmod", "pytest.mark.parametrize"].
pasteorg_paste
public
public
0
0
simple_app
def simple_app(environ, start_response):start_response("200 OK", [('Content-type', 'text/plain')])return [b'requested page returned']
1
3
2
24
0
5
7
5
environ,start_response
[]
Returns
{"Expr": 1, "Return": 1}
1
3
1
["start_response"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_errordocument_py.auth_docs_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_errordocument_py.error_docs_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_recursive_py.error_docs_app"]
The function (simple_app) defined within the public class called public.The function start at line 5 and ends at 7. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [5.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["start_response"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_errordocument_py.auth_docs_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_errordocument_py.error_docs_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_recursive_py.error_docs_app"].
pasteorg_paste
public
public
0
0
not_found_app
def not_found_app(environ, start_response):start_response("404 Not found", [('Content-type', 'text/plain')])return [b'requested page returned']
1
3
2
24
0
9
11
9
environ,start_response
[]
Returns
{"Expr": 1, "Return": 1}
1
3
1
["start_response"]
0
[]
The function (not_found_app) defined within the public class called public.The function start at line 9 and ends at 11. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [9.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["start_response"].
pasteorg_paste
public
public
0
0
test_ok
def test_ok():app = TestApp(simple_app)res = app.get('')assert res.header('content-type') == 'text/plain'assert res.full_status == '200 OK'assert 'requested page returned' in res
1
6
0
37
2
13
18
13
['res', 'app']
None
{"Assign": 2}
3
6
3
["TestApp", "app.get", "res.header"]
0
[]
The function (test_ok) defined within the public class called public.The function start at line 13 and ends at 18. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["TestApp", "app.get", "res.header"].
pasteorg_paste
public
public
0
0
error_docs_app
def error_docs_app(environ, start_response):if environ['PATH_INFO'] == '/not_found':start_response("404 Not found", [('Content-type', 'text/plain')])return [b'Not found']elif environ['PATH_INFO'] == '/error':start_response("200 OK", [('Content-type', 'text/plain')])return [b'Page not found']else:return simple_app(environ, start_response)
3
9
2
66
0
20
28
20
environ,start_response
[]
Returns
{"Expr": 2, "If": 2, "Return": 3}
3
9
3
["start_response", "start_response", "simple_app"]
0
[]
The function (error_docs_app) defined within the public class called public.The function start at line 20 and ends at 28. It contains 9 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [20.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["start_response", "start_response", "simple_app"].
pasteorg_paste
public
public
0
0
test_error_docs_app
def test_error_docs_app():app = TestApp(error_docs_app)res = app.get('')assert res.header('content-type') == 'text/plain'assert res.full_status == '200 OK'assert 'requested page returned' in resres = app.get('/error')assert res.header('content-type') == 'text/plain'assert res.full_status == '200 OK'assert 'Page not found' in resres = app.get('/not_found', status=404)assert res.header('content-type') == 'text/plain'assert res.full_status == '404 Not found'assert 'Not found' in res
1
14
0
95
2
30
43
30
['res', 'app']
None
{"Assign": 4}
7
14
7
["TestApp", "app.get", "res.header", "app.get", "res.header", "app.get", "res.header"]
0
[]
The function (test_error_docs_app) defined within the public class called public.The function start at line 30 and ends at 43. It contains 14 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["TestApp", "app.get", "res.header", "app.get", "res.header", "app.get", "res.header"].
pasteorg_paste
public
public
0
0
test_forward
def test_forward():app = forward(error_docs_app, codes={404:'/error'})app = TestApp(RecursiveMiddleware(app))res = app.get('')assert res.header('content-type') == 'text/plain'assert res.full_status == '200 OK'assert 'requested page returned' in resres = app.get('/error')assert res.header('content-type') == 'text/plain'assert res.full_status == '200 OK'assert 'Page not found' in resres = app.get('/not_found', status=404)assert res.header('content-type') == 'text/plain'assert res.full_status == '404 Not found'# Note changed responseassert 'Page not found' in res
1
15
0
112
2
45
60
45
['res', 'app']
None
{"Assign": 5}
9
16
9
["forward", "TestApp", "RecursiveMiddleware", "app.get", "res.header", "app.get", "res.header", "app.get", "res.header"]
0
[]
The function (test_forward) defined within the public class called public.The function start at line 45 and ends at 60. It contains 15 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 9.0 functions, and It has 9.0 functions called inside which are ["forward", "TestApp", "RecursiveMiddleware", "app.get", "res.header", "app.get", "res.header", "app.get", "res.header"].
pasteorg_paste
public
public
0
0
auth_required_app
def auth_required_app(environ, start_response):start_response('401 Unauthorized', [('content-type', 'text/plain'), ('www-authenticate', 'Basic realm="Foo"')])return ['Sign in!']
1
3
2
29
0
62
64
62
environ,start_response
[]
Returns
{"Expr": 1, "Return": 1}
1
3
1
["start_response"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_errordocument_py.auth_docs_app"]
The function (auth_required_app) defined within the public class called public.The function start at line 62 and ends at 64. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [62.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["start_response"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_errordocument_py.auth_docs_app"].
pasteorg_paste
public
public
0
0
auth_docs_app
def auth_docs_app(environ, start_response):if environ['PATH_INFO'] == '/auth':return auth_required_app(environ, start_response)elif environ['PATH_INFO'] == '/auth_doc':start_response("200 OK", [('Content-type', 'text/html')])return [b'<html>Login!</html>']else:return simple_app(environ, start_response)
3
8
2
56
0
66
73
66
environ,start_response
[]
Returns
{"Expr": 1, "If": 2, "Return": 3}
3
8
3
["auth_required_app", "start_response", "simple_app"]
0
[]
The function (auth_docs_app) defined within the public class called public.The function start at line 66 and ends at 73. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [66.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["auth_required_app", "start_response", "simple_app"].
pasteorg_paste
public
public
0
0
test_auth_docs_app
def test_auth_docs_app():wsgi_app = forward(auth_docs_app, codes={401: '/auth_doc'})app = TestApp(wsgi_app)res = app.get('/auth_doc')assert res.header('content-type') == 'text/html'res = app.get('/auth', status=401)assert res.header('content-type') == 'text/html'assert res.header('www-authenticate') == 'Basic realm="Foo"'assert res.body == b'<html>Login!</html>'
1
9
0
78
3
75
83
75
['wsgi_app', 'res', 'app']
None
{"Assign": 4}
7
9
7
["forward", "TestApp", "app.get", "res.header", "app.get", "res.header", "res.header"]
0
[]
The function (test_auth_docs_app) defined within the public class called public.The function start at line 75 and ends at 83. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["forward", "TestApp", "app.get", "res.header", "app.get", "res.header", "res.header"].
pasteorg_paste
public
public
0
0
test_bad_error.app
def app(environ, start_response):start_response('404 Not Found', [('content-type', 'text/plain')])return ['not found']
1
3
2
23
0
86
88
86
null
[]
None
null
0
0
0
null
0
null
The function (test_bad_error.app) defined within the public class called public.The function start at line 86 and ends at 88. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [86.0] and does not return any value..
pasteorg_paste
public
public
0
0
test_bad_error
def test_bad_error():def app(environ, start_response):start_response('404 Not Found', [('content-type', 'text/plain')])return ['not found']app = forward(app, {404: '/404.html'})app = TestApp(app)resp = app.get('/test', expect_errors=True)print(resp)
1
6
0
40
2
85
92
85
['resp', 'app']
Returns
{"Assign": 3, "Expr": 2, "Return": 1}
5
8
5
["start_response", "forward", "TestApp", "app.get", "print"]
0
[]
The function (test_bad_error) defined within the public class called public.The function start at line 85 and ends at 92. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["start_response", "forward", "TestApp", "app.get", "print"].
pasteorg_paste
public
public
0
0
test_data
def test_data():harness = TestApp(DataApp(b'mycontent'))res = harness.get("/")assert 'application/octet-stream' == res.header('content-type')assert '9' == res.header('content-length')assert "<Response 200 OK 'mycontent'>" == repr(res)harness.app.set_content(b"bingles")assert "<Response 200 OK 'bingles'>" == repr(harness.get("/"))
1
8
0
68
2
18
25
18
['harness', 'res']
None
{"Assign": 2, "Expr": 1}
9
8
9
["TestApp", "DataApp", "harness.get", "res.header", "res.header", "repr", "harness.app.set_content", "repr", "harness.get"]
0
[]
The function (test_data) defined within the public class called public.The function start at line 18 and ends at 25. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["TestApp", "DataApp", "harness.get", "res.header", "res.header", "repr", "harness.app.set_content", "repr", "harness.get"].
pasteorg_paste
public
public
0
0
test_cache.build
def build(*args,**kwargs):app = DataApp(b"SomeContent")app.cache_control(*args,**kwargs)return TestApp(app).get("/")
1
4
2
36
0
28
31
28
null
[]
None
null
0
0
0
null
0
null
The function (test_cache.build) defined within the public class called public.The function start at line 28 and ends at 31. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [28.0] and does not return any value..