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
TextFormatter
public
0
1
format_source_line
def format_source_line(self, filename, frame):name = self.quote(frame.name or '?')return 'Module <span class="module" title="%s">%s</span>:<b>%s</b> in <code>%s</code>' % (filename, frame.modname or '?', frame.lineno or '?',name)return 'File %r, line %s in <tt>%s</tt>' % (filename, frame.lineno, name)
4
7
3
53
0
248
254
248
self,filename,frame
[]
Returns
{"Return": 1}
0
3
0
[]
0
[]
The function (format_source_line) defined within the public class called TextFormatter, that inherit another class.The function start at line 248 and ends at 254. It contains 7 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [248.0], and this function return a value..
pasteorg_paste
TextFormatter
public
0
1
format_long_source
def format_long_source(self, source, long_source):q_long_source = str2html(long_source, False, 4, True)q_source = str2html(source, True, 0, False)return ('<code style="display: none" class="source" source-type="long"><a class="switch_source" onclick="return switch_source(this, \'long\')" href="#">&lt;&lt;&nbsp; </a>%s</code>''<code class="source" source-type="short"><a onclick="return switch_source(this, \'short\')" class="switch_source" href="#">&gt;&gt;&nbsp; </a>%s</code>'% (q_long_source, q_source))
1
7
3
44
0
255
261
255
self,source,long_source
[]
Returns
{"Return": 1}
1
2
1
["self.format_source"]
0
[]
The function (format_long_source) defined within the public class called TextFormatter, that inherit another class.The function start at line 255 and ends at 261. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [255.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.format_source"].
pasteorg_paste
TextFormatter
public
0
1
format_source
def format_source(self, source_line):return '' + self.quote(source_line.strip())
1
2
2
20
0
262
263
191
self,source_line
[]
Returns
{"Return": 1}
2
2
2
["self.quote", "source_line.strip"]
0
[]
The function (format_source) defined within the public class called TextFormatter, that inherit another class.The function start at line 262 and ends at 263. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [191.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["self.quote", "source_line.strip"].
pasteorg_paste
TextFormatter
public
0
1
format_traceback_info
def format_traceback_info(self, info):return '<pre>%s</pre>' % self.quote(info)
1
2
2
16
0
264
265
264
self,info
[]
Returns
{"Return": 1}
0
2
0
[]
0
[]
The function (format_traceback_info) defined within the public class called TextFormatter, that inherit another class.The function start at line 264 and ends at 265. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [264.0], and this function return a value..
pasteorg_paste
TextFormatter
public
0
1
format_extra_data
def format_extra_data(self, importance, title, value):if isinstance(value, str):s = self.pretty_string_repr(value)if '\n' in s:return '%s:<br><pre>%s</pre>' % (title, self.quote(s))else:return '%s: <tt>%s</tt>' % (title, self.quote(s))elif isinstance(value, dict):return self.zebra_table(title, value)elif (isinstance(value, (list, tuple))and self.long_item_list(value)):return '%s: <tt>[<br>\n&nbsp; &nbsp; %s]</tt>' % (title, ',<br>&nbsp; &nbsp; '.join(map(self.quote, map(repr, value))))else:return '%s: <tt>%s</tt>' % (title, self.quote(repr(value)))
6
15
4
141
0
267
281
267
self,importance,title,value
[]
Returns
{"Assign": 8, "Expr": 1, "For": 1, "If": 4, "Return": 5, "Try": 1}
17
26
17
["isinstance", "self.pretty_string_repr", "isinstance", "len", "value.items", "sorted", "repr", "truncate", "lines.append", "join", "isinstance", "self.long_item_list", "truncate", "repr", "join", "truncate", "repr"]
0
[]
The function (format_extra_data) defined within the public class called TextFormatter, that inherit another class.The function start at line 267 and ends at 281. It contains 15 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [267.0], and this function return a value. It declares 17.0 functions, and It has 17.0 functions called inside which are ["isinstance", "self.pretty_string_repr", "isinstance", "len", "value.items", "sorted", "repr", "truncate", "lines.append", "join", "isinstance", "self.long_item_list", "truncate", "repr", "join", "truncate", "repr"].
pasteorg_paste
TextFormatter
public
0
1
format_combine
def format_combine(self, data_by_importance, lines, exc_info):lines[:0] = [value for n, value in data_by_importance['important']]lines.append(exc_info)for name in 'normal', 'supplemental':lines.extend([value for n, value in data_by_importance[name]])if data_by_importance['extra']:lines.append('<script type="text/javascript">\nshow_button(\'extra_data\', \'extra data\');\n</script>\n' +'<div id="extra_data" class="hidden-data">\n')lines.extend([value for n, value in data_by_importance['extra']])lines.append('</div>')text = self.format_combine_lines(lines)if self.include_reusable:return error_css + hide_display_js + textelse:# Usually because another error is already on this page,# and so the js & CSS are unneededreturn text
7
16
4
119
0
283
300
283
self,data_by_importance,lines,exc_info
[]
Returns
{"Assign": 1, "Expr": 2, "For": 1, "Return": 1}
3
6
3
["lines.append", "lines.extend", "self.format_combine_lines"]
0
[]
The function (format_combine) defined within the public class called TextFormatter, that inherit another class.The function start at line 283 and ends at 300. It contains 16 lines of code and it has a cyclomatic complexity of 7. It takes 4 parameters, represented as [283.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["lines.append", "lines.extend", "self.format_combine_lines"].
pasteorg_paste
HTMLFormatter
public
0
1
zebra_table
def zebra_table(self, title, rows, table_class="variables"):if isinstance(rows, dict):rows = rows.items()rows = sorted(rows)table = ['<table class="%s">' % table_class, '<tr class="header"><th colspan="2">%s</th></tr>' % self.quote(title)]odd = Falsefor name, value in rows:try:value = repr(value)except Exception as e:value = 'Cannot print: %s' % eodd = not oddtable.append('<tr class="%s"><td>%s</td>'% (odd and 'odd' or 'even', self.quote(name)))table.append('<td><tt>%s</tt></td></tr>'% make_wrappable(self.quote(truncate(value))))table.append('</table>')return '\n'.join(table)
6
22
4
135
0
302
323
302
self,title,rows,table_class
[]
Returns
{"Assign": 7, "Expr": 3, "For": 1, "If": 1, "Return": 1, "Try": 1}
13
22
13
["isinstance", "rows.items", "sorted", "self.quote", "repr", "table.append", "self.quote", "table.append", "make_wrappable", "self.quote", "truncate", "table.append", "join"]
0
[]
The function (zebra_table) defined within the public class called HTMLFormatter, that inherit another class.The function start at line 302 and ends at 323. It contains 22 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [302.0], and this function return a value. It declares 13.0 functions, and It has 13.0 functions called inside which are ["isinstance", "rows.items", "sorted", "self.quote", "repr", "table.append", "self.quote", "table.append", "make_wrappable", "self.quote", "truncate", "table.append", "join"].
pasteorg_paste
public
public
0
0
format_html
def format_html(exc_data, include_hidden_frames=False, **ops):if not include_hidden_frames:return HTMLFormatter(**ops).format_collected_data(exc_data)short_er = format_html(exc_data, show_hidden_frames=False, **ops)# @@: This should have a way of seeing if the previous traceback# was actually trimmed at allops['include_reusable'] = Falseops['show_extra_data'] = Falselong_er = format_html(exc_data, show_hidden_frames=True, **ops)text_er = format_text(exc_data, show_hidden_frames=True, **ops)return """%s<br><script type="text/javascript">show_button('full_traceback', 'full traceback')</script><div id="full_traceback" class="hidden-data">%s</div><br><script type="text/javascript">show_button('text_version', 'text version')</script><div id="text_version" class="hidden-data"><textarea style="width: 100%%" rows=10 cols=60>%s</textarea></div>""" % (short_er, long_er, html.escape(text_er))
2
25
3
93
3
439
465
439
exc_data,include_hidden_frames,**ops
['long_er', 'short_er', 'text_er']
Returns
{"Assign": 5, "If": 1, "Return": 2}
6
27
6
["format_collected_data", "HTMLFormatter", "format_html", "format_html", "format_text", "html.escape"]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.admin_py.DraggableMPTTAdmin.indented_title", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.admin_py.DraggableMPTTAdmin.tree_actions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.templatetags.mptt_admin_py.mptt_items_for_result", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.files.admin_py.GMMDocumentAdmin.gmm_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94595557_SUSE_pcw.ocw.tables_py.OpenQALinkColumn.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.location_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.product_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.proof_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.proofs.admin_py.ProofAdmin.location_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html"]
The function (format_html) defined within the public class called public.The function start at line 439 and ends at 465. It contains 25 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [439.0], and this function return a value. It declares 6.0 functions, It has 6.0 functions called inside which are ["format_collected_data", "HTMLFormatter", "format_html", "format_html", "format_text", "html.escape"], It has 10.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.admin_py.DraggableMPTTAdmin.indented_title", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.admin_py.DraggableMPTTAdmin.tree_actions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.templatetags.mptt_admin_py.mptt_items_for_result", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.files.admin_py.GMMDocumentAdmin.gmm_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94595557_SUSE_pcw.ocw.tables_py.OpenQALinkColumn.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.location_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.product_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.proof_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.proofs.admin_py.ProofAdmin.location_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html"].
pasteorg_paste
public
public
0
0
format_text
def format_text(exc_data, **ops):return TextFormatter(**ops).format_collected_data(exc_data)
1
2
2
19
0
467
468
467
exc_data,**ops
[]
Returns
{"Return": 1}
2
2
2
["format_collected_data", "TextFormatter"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html"]
The function (format_text) defined within the public class called public.The function start at line 467 and ends at 468. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [467.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["format_collected_data", "TextFormatter"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html"].
pasteorg_paste
public
public
0
0
str2html
def str2html(src, strip=False, indent_subsequent=0, highlight_inner=False):"""Convert a string to HTML.Try to be really safe about it,returning a quoted version of the string if nothing else works."""try:return _str2html(src, strip=strip, indent_subsequent=indent_subsequent, highlight_inner=highlight_inner)except Exception:return html_quote(src)
2
8
4
45
0
474
485
474
src,strip,indent_subsequent,highlight_inner
[]
Returns
{"Expr": 1, "Return": 2, "Try": 1}
2
12
2
["_str2html", "html_quote"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.format_long_source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2markup"]
The function (str2html) defined within the public class called public.The function start at line 474 and ends at 485. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 4 parameters, represented as [474.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["_str2html", "html_quote"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.format_long_source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2markup"].
pasteorg_paste
public
public
0
0
_str2html
def _str2html(src, strip=False, indent_subsequent=0,highlight_inner=False):if strip:src = src.strip()orig_src = srctry:src = PySourceColor.str2html(src, form='snip')src = error_re.sub('', src)src = pre_re.sub('', src)src = re.sub(r'^[\n\r]{0,1}', '', src)src = re.sub(r'[\n\r]{0,1}$', '', src)except Exception:src = html_quote(orig_src)lines = src.splitlines()if len(lines) == 1:return lines[0]indent = ' '*indent_subsequentfor i in range(1, len(lines)):lines[i] = indent+lines[i]if highlight_inner and i == len(lines)/2:lines[i] = '<span class="source-highlight">%s</span>' % lines[i]src = '<br>\n'.join(lines)src = whitespace_re.sub(lambda m: '&nbsp;'*(len(m.group(0))-1) + ' ', src)return src
7
25
4
210
4
487
511
487
src,strip,indent_subsequent,highlight_inner
['indent', 'lines', 'src', 'orig_src']
Returns
{"Assign": 14, "For": 1, "If": 3, "Return": 2, "Try": 1}
16
25
16
["src.strip", "PySourceColor.str2html", "error_re.sub", "pre_re.sub", "re.sub", "re.sub", "html_quote", "src.splitlines", "len", "range", "len", "len", "join", "whitespace_re.sub", "len", "m.group"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.str2html"]
The function (_str2html) defined within the public class called public.The function start at line 487 and ends at 511. It contains 25 lines of code and it has a cyclomatic complexity of 7. It takes 4 parameters, represented as [487.0], and this function return a value. It declares 16.0 functions, It has 16.0 functions called inside which are ["src.strip", "PySourceColor.str2html", "error_re.sub", "pre_re.sub", "re.sub", "re.sub", "html_quote", "src.splitlines", "len", "range", "len", "len", "join", "whitespace_re.sub", "len", "m.group"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.str2html"].
pasteorg_paste
public
public
0
0
truncate
def truncate(string, limit=1000):"""Truncate the string to the limit number ofcharacters"""if len(string) > limit:return string[:limit-20]+'...'+string[-17:]else:return string
2
5
2
39
0
513
521
513
string,limit
[]
Returns
{"Expr": 1, "If": 1, "Return": 2}
1
9
1
["len"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.zebra_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.TextFormatter.format_extra_data"]
The function (truncate) defined within the public class called public.The function start at line 513 and ends at 521. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [513.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["len"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.zebra_table", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.TextFormatter.format_extra_data"].
pasteorg_paste
public
public
0
0
make_wrappable
def make_wrappable(html, wrap_limit=60, split_on=';?&@!$#-/\\"\''):# Currently using <wbr>, maybe should use &#8203;# http://www.cs.tut.fi/~jkorpela/html/nobr.htmlif len(html) <= wrap_limit:return htmlwords = html.split()new_words = []for word in words:wrapped_word = ''while len(word) > wrap_limit:for char in split_on:if char in word:first, rest = word.split(char, 1)wrapped_word += first+char+'<wbr>'word = restbreakelse:for i in range(0, len(word), wrap_limit):wrapped_word += word[i:i+wrap_limit]+'<wbr>'word = ''wrapped_word += wordnew_words.append(wrapped_word)return ' '.join(new_words)
7
22
3
131
4
523
546
523
html,wrap_limit,split_on
['new_words', 'words', 'word', 'wrapped_word']
Returns
{"Assign": 6, "AugAssign": 3, "Expr": 1, "For": 3, "If": 2, "Return": 2, "While": 1}
8
24
8
["len", "html.split", "len", "word.split", "range", "len", "new_words.append", "join"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.zebra_table"]
The function (make_wrappable) defined within the public class called public.The function start at line 523 and ends at 546. It contains 22 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [523.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["len", "html.split", "len", "word.split", "range", "len", "new_words.append", "join"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.zebra_table"].
pasteorg_paste
public
public
0
0
make_pre_wrappable
def make_pre_wrappable(html, wrap_limit=60, split_on=';?&@!$#-/\\"\''):"""Like ``make_wrappable()`` but intended for text that willgo in a ``<pre>`` block, so wrap on a line-by-line basis."""lines = html.splitlines()new_lines = []for line in lines:if len(line) > wrap_limit:for char in split_on:if char in line:parts = line.split(char)line = '<wbr>'.join(parts)breaknew_lines.append(line)return '\n'.join(lines)
5
13
3
78
4
548
564
548
html,wrap_limit,split_on
['line', 'parts', 'lines', 'new_lines']
Returns
{"Assign": 4, "Expr": 2, "For": 2, "If": 2, "Return": 1}
6
17
6
["html.splitlines", "len", "line.split", "join", "new_lines.append", "join"]
0
[]
The function (make_pre_wrappable) defined within the public class called public.The function start at line 548 and ends at 564. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [548.0], and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["html.splitlines", "len", "line.split", "join", "new_lines.append", "join"].
pasteorg_paste
Reporter
public
0
0
__init__
def __init__(self, **conf):for name, value in conf.items():if not hasattr(self, name):raise TypeError("The keyword argument %s was not expected"% name)setattr(self, name, value)self.check_params()
3
8
2
48
0
16
23
16
self,**conf
[]
None
{"Expr": 2, "For": 1, "If": 1}
5
8
5
["conf.items", "hasattr", "TypeError", "setattr", "self.check_params"]
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 Reporter.The function start at line 16 and ends at 23. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [16.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["conf.items", "hasattr", "TypeError", "setattr", "self.check_params"], 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
Reporter
public
0
0
check_params
def check_params(self):pass
1
2
1
6
0
25
26
25
self
[]
None
{}
0
2
0
[]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_datacenter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_disk_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_external_provider_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_group_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_instance_type_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_network_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_user_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vm_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vmpool_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vnic_profile_py.main"]
The function (check_params) defined within the public class called Reporter.The function start at line 25 and ends at 26. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It has 10.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_datacenter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_disk_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_external_provider_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_group_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_instance_type_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_network_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_user_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vm_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vmpool_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vnic_profile_py.main"].
pasteorg_paste
Reporter
public
0
0
format_date
def format_date(self, exc_data):return time.strftime('%c', exc_data.date)
1
2
2
18
0
28
29
28
self,exc_data
[]
Returns
{"Return": 1}
1
2
1
["time.strftime"]
8
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963811_modorganizer2_modorganizer_basic_games.basic_features.basic_save_game_info_py.get_filedate_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963811_modorganizer2_modorganizer_basic_games.games.game_blackandwhite2_py.getMetadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963811_modorganizer2_modorganizer_basic_games.games.game_bladeandsorcery_py.bas_parse_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963811_modorganizer2_modorganizer_basic_games.games.game_cyberpunk2077_py.parse_cyberpunk_save_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69414409_denvercoder1_jct_discord_bot.modules.calendar.event_py.Event.__relative_end_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69414409_denvercoder1_jct_discord_bot.modules.calendar.event_py.Event.__relative_start_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.inventory.views_py.export_csv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.inventory.views_py.export_dispensing_history"]
The function (format_date) defined within the public class called Reporter.The function start at line 28 and ends at 29. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [28.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["time.strftime"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963811_modorganizer2_modorganizer_basic_games.basic_features.basic_save_game_info_py.get_filedate_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963811_modorganizer2_modorganizer_basic_games.games.game_blackandwhite2_py.getMetadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963811_modorganizer2_modorganizer_basic_games.games.game_bladeandsorcery_py.bas_parse_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963811_modorganizer2_modorganizer_basic_games.games.game_cyberpunk2077_py.parse_cyberpunk_save_metadata", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69414409_denvercoder1_jct_discord_bot.modules.calendar.event_py.Event.__relative_end_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69414409_denvercoder1_jct_discord_bot.modules.calendar.event_py.Event.__relative_start_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.inventory.views_py.export_csv", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69779077_llemr_conspiracy_llemr.osler.inventory.views_py.export_dispensing_history"].
pasteorg_paste
Reporter
public
0
0
format_html
def format_html(self, exc_data, **kw):return formatter.format_html(exc_data, **kw)
1
2
3
20
0
31
32
31
self,exc_data,**kw
[]
Returns
{"Return": 1}
1
2
1
["formatter.format_html"]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.admin_py.DraggableMPTTAdmin.indented_title", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.admin_py.DraggableMPTTAdmin.tree_actions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.templatetags.mptt_admin_py.mptt_items_for_result", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.files.admin_py.GMMDocumentAdmin.gmm_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94595557_SUSE_pcw.ocw.tables_py.OpenQALinkColumn.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.location_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.product_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.proof_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.proofs.admin_py.ProofAdmin.location_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html"]
The function (format_html) defined within the public class called Reporter.The function start at line 31 and ends at 32. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [31.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["formatter.format_html"], It has 10.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.admin_py.DraggableMPTTAdmin.indented_title", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.admin_py.DraggableMPTTAdmin.tree_actions", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3711326_django_mptt_django_mptt.mptt.templatetags.mptt_admin_py.mptt_items_for_result", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.87033950_inter_actief_amelie.amelie.files.admin_py.GMMDocumentAdmin.gmm_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94595557_SUSE_pcw.ocw.tables_py.OpenQALinkColumn.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.location_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.product_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.prices.admin_py.PriceAdmin.proof_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94719596_openfoodfacts_open_prices.open_prices.proofs.admin_py.ProofAdmin.location_with_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html"].
pasteorg_paste
Reporter
public
0
0
format_text
def format_text(self, exc_data, **kw):return formatter.format_text(exc_data, **kw)
1
2
3
20
0
34
35
34
self,exc_data,**kw
[]
Returns
{"Return": 1}
1
2
1
["formatter.format_text"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html"]
The function (format_text) defined within the public class called Reporter.The function start at line 34 and ends at 35. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [34.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["formatter.format_text"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.format_html"].
pasteorg_paste
EmailReporter
public
0
1
report
def report(self, exc_data):msg = self.assemble_email(exc_data)server = smtplib.SMTP(self.smtp_server)if self.smtp_use_tls:server.ehlo()server.starttls()server.ehlo()if self.smtp_username and self.smtp_password:server.login(self.smtp_username, self.smtp_password)server.sendmail(self.from_address,self.to_addresses, msg.as_string())try:server.quit()except sslerror:# sslerror is raised in tls connections on closing sometimespass
5
15
2
95
0
47
62
47
self,exc_data
[]
None
{"Assign": 2, "Expr": 6, "If": 2, "Try": 1}
9
16
9
["self.assemble_email", "smtplib.SMTP", "server.ehlo", "server.starttls", "server.ehlo", "server.login", "server.sendmail", "msg.as_string", "server.quit"]
21
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.tests.runner.check_runner_py.CheckRunner.check_runner_report_junit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb._options_py.VersionFlag.action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands.__init___py.BaseCommand.execute_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._commands_py.BsbSimulate.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._projects_py.ProjectNewCommand.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.ReportListener.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._bootstrap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._redo_chain", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold.compile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.options_py.read_option", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.arrays_py.ParallelArrayPlacement.place", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.random_py._VoxelBasedFiller._extract_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.postprocessing_py.SpoofDetails.spoof_connections", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_hdf5.bsb_hdf5.__init___py.HDF5Engine.recognizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter._allocate_transmitters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.run"]
The function (report) defined within the public class called EmailReporter, that inherit another class.The function start at line 47 and ends at 62. It contains 15 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [47.0] and does not return any value. It declares 9.0 functions, It has 9.0 functions called inside which are ["self.assemble_email", "smtplib.SMTP", "server.ehlo", "server.starttls", "server.ehlo", "server.login", "server.sendmail", "msg.as_string", "server.quit"], It has 21.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.tests.runner.check_runner_py.CheckRunner.check_runner_report_junit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb._options_py.VersionFlag.action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands.__init___py.BaseCommand.execute_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._commands_py.BsbSimulate.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._projects_py.ProjectNewCommand.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.ReportListener.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._bootstrap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._redo_chain", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold.compile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.options_py.read_option", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.arrays_py.ParallelArrayPlacement.place", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.random_py._VoxelBasedFiller._extract_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.postprocessing_py.SpoofDetails.spoof_connections", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_hdf5.bsb_hdf5.__init___py.HDF5Engine.recognizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter._allocate_transmitters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.run"].
pasteorg_paste
Reporter
public
0
0
check_params
def check_params(self):if not self.to_addresses:raise ValueError("You must set to_addresses")if not self.from_address:raise ValueError("You must set from_address")if isinstance(self.to_addresses, str):self.to_addresses = [self.to_addresses]
4
7
1
46
0
64
70
64
self
[]
None
{}
0
2
0
[]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_datacenter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_disk_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_external_provider_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_group_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_instance_type_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_network_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_user_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vm_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vmpool_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vnic_profile_py.main"]
The function (check_params) defined within the public class called Reporter.The function start at line 64 and ends at 70. It contains 7 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It has 10.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_datacenter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_disk_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_external_provider_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_group_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_instance_type_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_network_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_user_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vm_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vmpool_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vnic_profile_py.main"].
pasteorg_paste
EmailReporter
public
0
1
assemble_email
def assemble_email(self, exc_data):short_html_version = self.format_html(exc_data, show_hidden_frames=False)long_html_version = self.format_html(exc_data, show_hidden_frames=True)text_version = self.format_text(exc_data, show_hidden_frames=False)msg = MIMEMultipart()msg.set_type('multipart/alternative')msg.preamble = msg.epilogue = ''text_msg = MIMEText(text_version)text_msg.set_type('text/plain')text_msg.set_param('charset', 'ASCII')msg.attach(text_msg)html_msg = MIMEText(short_html_version)html_msg.set_type('text/html')# @@: Correct character set?html_msg.set_param('charset', 'UTF-8')html_long = MIMEText(long_html_version)html_long.set_type('text/html')html_long.set_param('charset', 'UTF-8')msg.attach(html_msg)msg.attach(html_long)subject = '%s: %s' % (exc_data.exception_type,formatter.truncate(str(exc_data.exception_value)))msg['Subject'] = self.subject_prefix + subjectmsg['From'] = self.from_addressmsg['To'] = ', '.join(self.to_addresses)return msg
1
28
2
195
0
72
100
72
self,exc_data
[]
Returns
{"Assign": 12, "Expr": 10, "Return": 1}
20
29
20
["self.format_html", "self.format_html", "self.format_text", "MIMEMultipart", "msg.set_type", "MIMEText", "text_msg.set_type", "text_msg.set_param", "msg.attach", "MIMEText", "html_msg.set_type", "html_msg.set_param", "MIMEText", "html_long.set_type", "html_long.set_param", "msg.attach", "msg.attach", "formatter.truncate", "str", "join"]
0
[]
The function (assemble_email) defined within the public class called EmailReporter, that inherit another class.The function start at line 72 and ends at 100. It contains 28 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [72.0], and this function return a value. It declares 20.0 functions, and It has 20.0 functions called inside which are ["self.format_html", "self.format_html", "self.format_text", "MIMEMultipart", "msg.set_type", "MIMEText", "text_msg.set_type", "text_msg.set_param", "msg.attach", "MIMEText", "html_msg.set_type", "html_msg.set_param", "MIMEText", "html_long.set_type", "html_long.set_param", "msg.attach", "msg.attach", "formatter.truncate", "str", "join"].
pasteorg_paste
Reporter
public
0
0
check_params
def check_params(self):assert self.filename is not None, ("You must give a filename")
1
3
1
16
0
107
109
107
self
[]
None
{}
0
2
0
[]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_datacenter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_disk_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_external_provider_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_group_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_instance_type_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_network_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_user_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vm_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vmpool_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vnic_profile_py.main"]
The function (check_params) defined within the public class called Reporter.The function start at line 107 and ends at 109. 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 has 10.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_datacenter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_disk_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_external_provider_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_group_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_instance_type_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_network_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_user_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vm_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vmpool_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vnic_profile_py.main"].
pasteorg_paste
EmailReporter
public
0
1
report
def report(self, exc_data):text = self.format_text(exc_data, show_hidden_frames=self.show_hidden_frames)f = open(self.filename, 'a')try:f.write(text + '\n' + '-'*60 + '\n')finally:f.close()
2
8
2
54
0
111
118
111
self,exc_data
[]
None
{"Assign": 2, "Expr": 6, "If": 2, "Try": 1}
9
16
9
["self.assemble_email", "smtplib.SMTP", "server.ehlo", "server.starttls", "server.ehlo", "server.login", "server.sendmail", "msg.as_string", "server.quit"]
21
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.tests.runner.check_runner_py.CheckRunner.check_runner_report_junit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb._options_py.VersionFlag.action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands.__init___py.BaseCommand.execute_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._commands_py.BsbSimulate.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._projects_py.ProjectNewCommand.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.ReportListener.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._bootstrap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._redo_chain", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold.compile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.options_py.read_option", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.arrays_py.ParallelArrayPlacement.place", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.random_py._VoxelBasedFiller._extract_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.postprocessing_py.SpoofDetails.spoof_connections", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_hdf5.bsb_hdf5.__init___py.HDF5Engine.recognizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter._allocate_transmitters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.run"]
The function (report) defined within the public class called EmailReporter, that inherit another class.The function start at line 111 and ends at 118. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [111.0] and does not return any value. It declares 9.0 functions, It has 9.0 functions called inside which are ["self.assemble_email", "smtplib.SMTP", "server.ehlo", "server.starttls", "server.ehlo", "server.login", "server.sendmail", "msg.as_string", "server.quit"], It has 21.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.tests.runner.check_runner_py.CheckRunner.check_runner_report_junit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb._options_py.VersionFlag.action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands.__init___py.BaseCommand.execute_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._commands_py.BsbSimulate.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._projects_py.ProjectNewCommand.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.ReportListener.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._bootstrap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._redo_chain", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold.compile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.options_py.read_option", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.arrays_py.ParallelArrayPlacement.place", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.random_py._VoxelBasedFiller._extract_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.postprocessing_py.SpoofDetails.spoof_connections", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_hdf5.bsb_hdf5.__init___py.HDF5Engine.recognizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter._allocate_transmitters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.run"].
pasteorg_paste
Reporter
public
0
0
check_params
def check_params(self):assert self.filename is not None, ("You must give a filename")
1
3
1
16
0
125
127
107
self
[]
None
{}
0
2
0
[]
10
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_datacenter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_disk_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_external_provider_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_group_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_instance_type_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_network_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_user_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vm_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vmpool_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vnic_profile_py.main"]
The function (check_params) defined within the public class called Reporter.The function start at line 125 and ends at 127. 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 has 10.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_datacenter_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_disk_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_external_provider_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_group_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_instance_type_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_network_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_user_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vm_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vmpool_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957785_ovirt_ovirt_ansible_collection.plugins.modules.ovirt_vnic_profile_py.main"].
pasteorg_paste
EmailReporter
public
0
1
report
def report(self, exc_data):text = self.format_text(exc_data, show_hidden_frames=self.show_hidden_frames)self.file.write(text + '\n' + '-'*60 + '\n')
1
4
2
37
0
129
132
129
self,exc_data
[]
None
{"Assign": 2, "Expr": 6, "If": 2, "Try": 1}
9
16
9
["self.assemble_email", "smtplib.SMTP", "server.ehlo", "server.starttls", "server.ehlo", "server.login", "server.sendmail", "msg.as_string", "server.quit"]
21
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.tests.runner.check_runner_py.CheckRunner.check_runner_report_junit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb._options_py.VersionFlag.action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands.__init___py.BaseCommand.execute_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._commands_py.BsbSimulate.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._projects_py.ProjectNewCommand.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.ReportListener.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._bootstrap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._redo_chain", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold.compile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.options_py.read_option", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.arrays_py.ParallelArrayPlacement.place", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.random_py._VoxelBasedFiller._extract_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.postprocessing_py.SpoofDetails.spoof_connections", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_hdf5.bsb_hdf5.__init___py.HDF5Engine.recognizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter._allocate_transmitters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.run"]
The function (report) defined within the public class called EmailReporter, that inherit another class.The function start at line 129 and ends at 132. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [129.0] and does not return any value. It declares 9.0 functions, It has 9.0 functions called inside which are ["self.assemble_email", "smtplib.SMTP", "server.ehlo", "server.starttls", "server.ehlo", "server.login", "server.sendmail", "msg.as_string", "server.quit"], It has 21.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.tests.runner.check_runner_py.CheckRunner.check_runner_report_junit", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_arbor.bsb_arbor.adapter_py.ArborAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb._options_py.VersionFlag.action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands.__init___py.BaseCommand.execute_handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._commands_py.BsbSimulate.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.cli.commands._projects_py.ProjectNewCommand.handler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.ReportListener.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._bootstrap", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold._redo_chain", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.core_py.Scaffold.compile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.options_py.read_option", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.arrays_py.ParallelArrayPlacement.place", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.placement.random_py._VoxelBasedFiller._extract_system", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.postprocessing_py.SpoofDetails.spoof_connections", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_hdf5.bsb_hdf5.__init___py.HDF5Engine.recognizes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_nest.bsb_nest.adapter_py.NestAdapter.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter._allocate_transmitters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_neuron.bsb_neuron.adapter_py.NeuronAdapter.run"].
pasteorg_paste
Reporter
public
0
0
__init__
def __init__(self, exc_data):self.exc_data = exc_data
1
2
2
12
0
136
137
136
self,**conf
[]
None
{"Expr": 2, "For": 1, "If": 1}
5
8
5
["conf.items", "hasattr", "TypeError", "setattr", "self.check_params"]
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 Reporter.The function start at line 136 and ends at 137. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [136.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["conf.items", "hasattr", "TypeError", "setattr", "self.check_params"], 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
WSGIAppReporter
public
0
1
__call__
def __call__(self, environ, start_response):start_response('500 Server Error', [('Content-type', 'text/html')])return [formatter.format_html(self.exc_data)]
1
3
3
32
0
139
141
139
self,environ,start_response
[]
Returns
{"Expr": 1, "Return": 1}
2
3
2
["start_response", "formatter.format_html"]
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 WSGIAppReporter, that inherit another class.The function start at line 139 and ends at 141. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [139.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["start_response", "formatter.format_html"], 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
make_identifier
def make_identifier(number):"""Encodes a number as an identifier."""if not isinstance(number, int):raise ValueError("You can only make identifiers out of integers (not %r)"% number)if number < 0:raise ValueError("You cannot make identifiers out of negative numbers: %r"% number)result = []while number:next = number % baseresult.append(good_characters[next])# Note, this depends on integer rounding of results:number = number // basereturn ''.join(result)
4
15
1
66
3
23
41
23
number
['result', 'number', 'next']
Returns
{"Assign": 3, "Expr": 2, "If": 2, "Return": 1, "While": 1}
5
19
5
["isinstance", "ValueError", "ValueError", "result.append", "join"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.serial_number_generator_py.hash_identifier"]
The function (make_identifier) defined within the public class called public.The function start at line 23 and ends at 41. It contains 15 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["isinstance", "ValueError", "ValueError", "result.append", "join"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.serial_number_generator_py.hash_identifier"].
pasteorg_paste
public
public
0
0
hash_identifier
def hash_identifier(s, length, pad=True, hasher=md5, prefix='',group=None, upper=False):"""Hashes the string (with the given hashing module), then turns thathash into an identifier of the given length (using modulo toreduce the length of the identifier).If ``pad`` is False, thenthe minimum-length identifier will be used; otherwise theidentifier will be padded with 0's as necessary.``prefix`` will be added last, and does not count towards thetarget length.``group`` will group the characters with ``-`` inthe given lengths, and also does not count towards the targetlength.E.g., ``group=4`` will cause a identifier like``a5f3-hgk3-asdf``.Grouping occurs before the prefix."""if not callable(hasher):# Accept sha/md5 modules as well as callableshasher = hasher.newif length > 26 and hasher is md5:raise ValueError("md5 cannot create hashes longer than 26 characters in ""length (you gave %s)" % length)if isinstance(s, str):s = s.encode('utf-8')elif not isinstance(s, bytes):s = str(s)s = s.encode('utf-8')h = hasher(s)bin_hash = h.digest()modulo = base ** lengthnumber = 0for c in list(bin_hash):number = (number * 256 + byte2int([c])) % moduloident = make_identifier(number)if pad:ident = good_characters[0]*(length-len(ident)) + identif group:parts = []while ident:parts.insert(0, ident[-group:])ident = ident[:-group]ident = '-'.join(parts)if upper:ident = ident.upper()return prefix + ident
11
31
7
220
8
43
87
43
s,length,pad,hasher,prefix,group,upper
['bin_hash', 'hasher', 'modulo', 'ident', 's', 'h', 'parts', 'number']
Returns
{"Assign": 15, "Expr": 2, "For": 1, "If": 7, "Return": 1, "While": 1}
16
45
16
["callable", "ValueError", "isinstance", "s.encode", "isinstance", "str", "s.encode", "hasher", "h.digest", "list", "byte2int", "make_identifier", "len", "parts.insert", "join", "ident.upper"]
0
[]
The function (hash_identifier) defined within the public class called public.The function start at line 43 and ends at 87. It contains 31 lines of code and it has a cyclomatic complexity of 11. It takes 7 parameters, represented as [43.0], and this function return a value. It declares 16.0 functions, and It has 16.0 functions called inside which are ["callable", "ValueError", "isinstance", "s.encode", "isinstance", "str", "s.encode", "hasher", "h.digest", "list", "byte2int", "make_identifier", "len", "parts.insert", "join", "ident.upper"].
pasteorg_paste
public
public
0
0
Usage
def Usage():doc = """ -----------------------------------------------------------------------------PySourceColor.py ver: %s -----------------------------------------------------------------------------Module summary: This module is designed to colorize python source code. Input--->python source Output-->colorized (html, html4.01/css, xhtml1.0) Standalone: This module will work from the command line with options. This module will work with redirected stdio. Imported: This module can be imported and used directly in your code. -----------------------------------------------------------------------------Command line options: -h, --help Optional-> Display this help message. -t, --test Optional-> Will ignore all others flags but--profile test all schemes and markup combinations -p, --profile Optional-> Works only with --test or -t runs profile.py and makes the test work in quiet mode. -i, --in, --input Optional-> If you give input on stdin. Use any of these for the current dir (.,cwd) Input can be file or dir. Input from stdin use one of the following (-,stdin) If stdin is used as input stdout is output unless specified. -o, --out, --output Optional-> output dir for the colorized source. default: output dir is the input dir. To output html to stdout use one of the following (-,stdout) Stdout can be used without stdin if you give a file as input. -c, --color Optional-> null, mono, dark, dark2, lite, idle, pythonwin, viewcvs default: dark -s, --show Optional-> Show page after creation. default: no show -m, --markup Optional-> html, css, xhtml css, xhtml also support external stylesheets (-e,--external) default: HTML -e, --external Optional-> use with css, xhtml Writes an style sheet instead of embedding it in the page saves it as pystyle.css in the same directory. html markup will silently ignore this flag. -H, --header Optional-> add a page header to the top of the output -H Builtin header (name,date,hrule) --header You must specify a filename. The header file must be valid html and must handle its own font colors. ex. --header c:/tmp/header.txt -F, --footer Optional-> add a page footer to the bottom of the output -F Builtin footer (hrule,name,date) --footer You must specify a filename. The footer file must be valid html and must handle its own font colors. ex. --footer c:/tmp/footer.txt -l, --linenumbers Optional-> default is no linenumbers Adds line numbers to the start of each line in the code.--convertpage Given a webpage that has code embedded in tags it will convert embedded code to colorized html. (see pageconvert for details) -----------------------------------------------------------------------------Option usage: # Test and show pagespython PySourceColor.py -t -s # Test and only show profile resultspython PySourceColor.py -t -p # Colorize all .py,.pyw files in cwdir you can also use: (.,cwd)python PySourceColor.py -i . # Using long options w/ =python PySourceColor.py --in=c:/myDir/my.py --color=lite --show # Using short options w/out =python PySourceColor.py -i c:/myDir/-c idle -m css -e # Using any mixpython PySourceColor.py --in . -o=c:/myDir --show # Place a custom header on your filespython PySourceColor.py -i . -o c:/tmp -m xhtml --header c:/header.txt -----------------------------------------------------------------------------Stdio usage: # Stdio using no optionspython PySourceColor.py < c:/MyFile.py > c:/tmp/MyFile.html # Using stdin alone automatically uses stdout for output: (stdin,-)python PySourceColor.py -i- < c:/MyFile.py > c:/tmp/myfile.html # Stdout can also be written to directly from a file instead of stdinpython PySourceColor.py -i c:/MyFile.py -m css -o- > c:/tmp/myfile.html # Stdin can be used as input , but output can still be specifiedpython PySourceColor.py -i- -o c:/pydoc.py.html -s < c:/Python22/my.py _____________________________________________________________________________ """print(doc % (__version__,))sys.exit(1)
1
105
0
22
1
565
669
565
['doc']
None
{"Assign": 1, "Expr": 2}
2
105
2
["print", "sys.exit"]
6
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.anthropic.tests.test_chat_generator_py.TestAnthropicChatGenerator.test_convert_anthropic_completion_chunks_with_multiple_tool_calls_and_reasoning_to_streaming_chunks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.anthropic.tests.test_chat_generator_py.TestAnthropicChatGenerator.test_convert_chat_completion_to_chat_message_with_reasoning_and_tool_call", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.anthropic.tests.test_chat_generator_py.TestAnthropicChatGeneratorAsync.mock_anthropic_completion_async", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.anthropic.tests.test_chat_generator_py.TestAnthropicChatGeneratorAsync.mock_anthropic_completion_async_with_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py._test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"]
The function (Usage) defined within the public class called public.The function start at line 565 and ends at 669. It contains 105 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["print", "sys.exit"], It has 6.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.anthropic.tests.test_chat_generator_py.TestAnthropicChatGenerator.test_convert_anthropic_completion_chunks_with_multiple_tool_calls_and_reasoning_to_streaming_chunks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.anthropic.tests.test_chat_generator_py.TestAnthropicChatGenerator.test_convert_chat_completion_to_chat_message_with_reasoning_and_tool_call", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.anthropic.tests.test_chat_generator_py.TestAnthropicChatGeneratorAsync.mock_anthropic_completion_async", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94658335_deepset_ai_haystack_core_integrations.integrations.anthropic.tests.test_chat_generator_py.TestAnthropicChatGeneratorAsync.mock_anthropic_completion_async_with_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py._test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"].
pasteorg_paste
public
public
0
0
cli
def cli():"""Handle command line args and redirections"""try:# try to get command line argsopts, args = getopt.getopt(sys.argv[1:],"hseqtplHFi:o:c:m:h:f:",["help", "show", "quiet","test", "external", "linenumbers", "convertpage", "profile","input=", "output=", "color=", "markup=","header=", "footer="])except getopt.GetoptError:# on error print help information and exit:Usage()# init some namesinput = Noneoutput = Nonecolorscheme = Nonemarkup = 'html'header = Nonefooter = Nonelinenumbers = 0show = 0quiet = 0test = 0profile = 0convertpage = 0form = None# if we have args then process themfor o, a in opts:if o in ["-h", "--help"]:Usage()sys.exit()if o in ["-o", "--output", "--out"]:output = aif o in ["-i", "--input", "--in"]:input = aif input in [".", "cwd"]:input = os.getcwd()if o in ["-s", "--show"]:show = 1if o in ["-q", "--quiet"]:quiet = 1if o in ["-t", "--test"]:test = 1if o in ["--convertpage"]:convertpage = 1if o in ["-p", "--profile"]:profile = 1if o in ["-e", "--external"]:form = 'external'if o in ["-m", "--markup"]:markup = str(a)if o in ["-l", "--linenumbers"]:linenumbers = 1if o in ["--header"]:header = str(a)elif o == "-H":header = ''if o in ["--footer"]:footer = str(a)elif o == "-F":footer = ''if o in ["-c", "--color"]:try:colorscheme = globals().get(a.lower())except Exception:traceback.print_exc()Usage()if test:if profile:import profileprofile.run('_test(show=%s, quiet=%s)'%(show,quiet))else:# Parse this script in every possible colorscheme and markup_test(show,quiet)elif input in [None, "-", "stdin"] or output in ["-", "stdout"]:# determine if we are going to use stdioif input not in [None, "-", "stdin"]:if os.path.isfile(input) :path2stdout(input, colors=colorscheme, markup=markup,linenumbers=linenumbers, header=header,footer=footer, form=form)else:raise PathError('File does not exists!')else:try:if sys.stdin.isatty():raise InputError('Please check input!')else:if output in [None,"-","stdout"]:str2stdout(sys.stdin.read(), colors=colorscheme, markup=markup, header=header, footer=footer, linenumbers=linenumbers, form=form)else:str2file(sys.stdin.read(), outfile=output, show=show,markup=markup, header=header, footer=footer,linenumbers=linenumbers, form=form)except Exception:traceback.print_exc()Usage()else:if os.path.exists(input):if convertpage:# if there was at least an input given we can proceedpageconvert(input, out=output, colors=colorscheme,show=show, markup=markup,linenumbers=linenumbers)else:# if there was at least an input given we can proceedconvert(source=input, outdir=output, colors=colorscheme,show=show, markup=markup, quiet=quiet, header=header,footer=footer, linenumbers=linenumbers, form=form)else:raise PathError('File does not exists!')
32
103
0
655
13
673
784
673
['form', 'header', 'output', 'input', 'footer', 'test', 'quiet', 'linenumbers', 'profile', 'markup', 'colorscheme', 'convertpage', 'show']
None
{"Assign": 30, "Expr": 15, "For": 1, "If": 26, "Try": 3}
30
112
30
["getopt.getopt", "Usage", "Usage", "sys.exit", "os.getcwd", "str", "str", "str", "get", "globals", "a.lower", "traceback.print_exc", "Usage", "profile.run", "_test", "os.path.isfile", "path2stdout", "PathError", "sys.stdin.isatty", "InputError", "str2stdout", "sys.stdin.read", "str2file", "sys.stdin.read", "traceback.print_exc", "Usage", "os.path.exists", "pageconvert", "convert", "PathError"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92432027_humbertogontijo_python_roborock.roborock.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.cli_py.main"]
The function (cli) defined within the public class called public.The function start at line 673 and ends at 784. It contains 103 lines of code and it has a cyclomatic complexity of 32. The function does not take any parameters and does not return any value. It declares 30.0 functions, It has 30.0 functions called inside which are ["getopt.getopt", "Usage", "Usage", "sys.exit", "os.getcwd", "str", "str", "str", "get", "globals", "a.lower", "traceback.print_exc", "Usage", "profile.run", "_test", "os.path.isfile", "path2stdout", "PathError", "sys.stdin.isatty", "InputError", "str2stdout", "sys.stdin.read", "str2file", "sys.stdin.read", "traceback.print_exc", "Usage", "os.path.exists", "pageconvert", "convert", "PathError"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.92432027_humbertogontijo_python_roborock.roborock.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95230411_Mergifyio_mergify_cli.mergify_cli.cli_py.main"].
pasteorg_paste
public
public
0
0
_test
def _test(show=0, quiet=0):"""Test the parser and most of the functions. There are 19 test total(eight colorschemes in three diffrent markups, and a str2file test. Most functions are tested by this."""fi = sys.argv[0]if not fi.endswith('.exe'):# Do not test if frozen as an archive# this is a collection of test, most things are covered.path2file(fi, '/tmp/null.html', null, show=show, quiet=quiet)path2file(fi, '/tmp/null_css.html', null, show=show,markup='css', quiet=quiet)path2file(fi, '/tmp/mono.html', mono, show=show, quiet=quiet)path2file(fi, '/tmp/mono_css.html', mono, show=show,markup='css', quiet=quiet)path2file(fi, '/tmp/lite.html', lite, show=show, quiet=quiet)path2file(fi, '/tmp/lite_css.html', lite, show=show,markup='css', quiet=quiet, header='', footer='',linenumbers=1)path2file(fi, '/tmp/lite_xhtml.html', lite, show=show,markup='xhtml', quiet=quiet)path2file(fi, '/tmp/dark.html', dark, show=show, quiet=quiet)path2file(fi, '/tmp/dark_css.html', dark, show=show,markup='css', quiet=quiet, linenumbers=1)path2file(fi, '/tmp/dark2.html', dark2, show=show, quiet=quiet)path2file(fi, '/tmp/dark2_css.html', dark2, show=show,markup='css', quiet=quiet)path2file(fi, '/tmp/dark2_xhtml.html', dark2, show=show,markup='xhtml', quiet=quiet, header='', footer='',linenumbers=1, form='external')path2file(fi, '/tmp/idle.html', idle, show=show, quiet=quiet)path2file(fi, '/tmp/idle_css.html', idle, show=show,markup='css', quiet=quiet)path2file(fi, '/tmp/viewcvs.html', viewcvs, show=show,quiet=quiet, linenumbers=1)path2file(fi, '/tmp/viewcvs_css.html', viewcvs, show=show,markup='css', linenumbers=1, quiet=quiet)path2file(fi, '/tmp/pythonwin.html', pythonwin, show=show,quiet=quiet)path2file(fi, '/tmp/pythonwin_css.html', pythonwin, show=show,markup='css', quiet=quiet)teststr=r'''"""This is a test of decorators and other things"""# This should be line 421...@whatever(arg,arg2)@A @B(arghh) @Cdef LlamaSaysNi(arg='Ni!',arg2="RALPH"): """This docstring is deeply disturbed by all the llama references""" print('%s The Wonder Llama says %s'% (arg2,arg))# So I was like duh!, and he was like ya know?!,# and so we were both like huh...wtf!? RTFM!! LOL!!;)@staticmethod## Double comments are KewL.def LlamasRLumpy(): """This docstring is too sexy to be here. """ u"""=============================A Møøse once bit my sister...============================= """ ## Relax, this won't hurt a bit, just a simple, painless procedure, ## hold still while I get the anesthetizing hammer. m = {'three':'1','won':'2','too':'3'} o = r'fishy\fishy\fishy/fish\oh/where/is\my/little\..' python = uR""" No realli! She was Karving her initials øn the møøse with the sharpened end of an interspace tøøthbrush given her by Svenge - her brother-in-law -an Oslo dentist and star of many Norwegian møvies: "The Høt Hands of an Oslo Dentist", "Fillings of Passion", "The Huge Mølars of Horst Nordfink"...""" RU"""142 MEXICAN WHOOPING LLAMAS"""#<-Can you fit 142 llamas in a red box? n = u' HERMSGERVØRDENBRØTBØRDA ' + """ YUTTE """ t = """SAMALLNIATNUOMNAIRODAUCE"""+"DENIARTYLLAICEPS04" ## We apologise for the fault in the ## comments. Those responsible have been ## sacked. y = '14 NORTH CHILEAN GUANACOS \(CLOSELY RELATED TO THE LLAMA)' rules = [0,1,2,3,4,5] print y'''htmlPath = os.path.abspath('/tmp/strtest_lines.html')str2file(teststr, htmlPath, colors=dark, markup='xhtml', linenumbers=420, show=show)_printinfo("wrote %s" % htmlPath, quiet)htmlPath = os.path.abspath('/tmp/strtest_nolines.html')str2file(teststr, htmlPath, colors=dark, markup='xhtml', show=show)_printinfo("wrote %s" % htmlPath, quiet)else:Usage()return
2
46
2
483
3
788
876
788
show,quiet
['fi', 'teststr', 'htmlPath']
None
{"Assign": 4, "Expr": 24, "If": 1, "Return": 1}
26
89
26
["fi.endswith", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "os.path.abspath", "str2file", "_printinfo", "os.path.abspath", "str2file", "_printinfo", "Usage"]
12
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.tests.unitary.test_fuzzing_py.test_identity", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.tests.unitary.test_fuzzing_py.test_overloaded", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.tests.unitary.test_fuzzing_py.test_sometimes_raises", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_basic_agentic_chunking", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_batch_processing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_empty_content_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_error_handling_and_fallback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_proposition_extraction", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_topic_assignment_and_refinement", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_semantic_chunking_simple_py.TestSemanticChunkingSimple.test_async_batch_processing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_semantic_chunking_simple_py.TestSemanticChunkingSimple.test_async_chunking", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"]
The function (_test) defined within the public class called public.The function start at line 788 and ends at 876. It contains 46 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [788.0] and does not return any value. It declares 26.0 functions, It has 26.0 functions called inside which are ["fi.endswith", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "path2file", "os.path.abspath", "str2file", "_printinfo", "os.path.abspath", "str2file", "_printinfo", "Usage"], It has 12.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.tests.unitary.test_fuzzing_py.test_identity", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.tests.unitary.test_fuzzing_py.test_overloaded", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.tests.unitary.test_fuzzing_py.test_sometimes_raises", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_basic_agentic_chunking", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_batch_processing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_empty_content_handling", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_error_handling_and_fallback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_proposition_extraction", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_agentic_chunking_simple_py.TestAgenticChunkingSimple.test_topic_assignment_and_refinement", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_semantic_chunking_simple_py.TestSemanticChunkingSimple.test_async_batch_processing", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94708621_Upsonic_Upsonic.tests.rag.chunking.test_semantic_chunking_simple_py.TestSemanticChunkingSimple.test_async_chunking", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"].
pasteorg_paste
public
public
0
0
str2stdout
def str2stdout(sourcestring, colors=None, title='', markup='html', header=None, footer=None, linenumbers=0, form=None):"""Converts a code(string) to colorized HTML. Writes to stdout. form='code',or'snip' (for "<pre>yourcode</pre>" only) colors=null,mono,lite,dark,dark2,idle,or pythonwin"""Parser(sourcestring, colors=colors, title=title, markup=markup, header=header, footer=footer, linenumbers=linenumbers).format(form)
1
6
8
67
0
882
892
882
sourcestring,colors,title,markup,header,footer,linenumbers,form
[]
None
{"Expr": 2}
2
11
2
["format", "Parser"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"]
The function (str2stdout) defined within the public class called public.The function start at line 882 and ends at 892. It contains 6 lines of code and it has a cyclomatic complexity of 1. It takes 8 parameters, represented as [882.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["format", "Parser"], 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.PySourceColor_py.cli"].
pasteorg_paste
public
public
0
0
path2stdout
def path2stdout(sourcepath, colors=None, markup='html', header=None, footer=None, linenumbers=0, form=None):"""Converts code(file) to colorized HTML. Writes to stdout. form='code',or'snip' (for "<pre>yourcode</pre>" only) colors=null,mono,lite,dark,dark2,idle,or pythonwin"""sourcestring = open(sourcepath).read()Parser(sourcestring, colors=colors, title=sourcepath, markup=markup, header=header, footer=footer, linenumbers=linenumbers).format(form)
1
7
7
73
1
894
905
894
sourcepath,colors,markup,header,footer,linenumbers,form
['sourcestring']
None
{"Assign": 1, "Expr": 2}
4
12
4
["read", "open", "format", "Parser"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"]
The function (path2stdout) defined within the public class called public.The function start at line 894 and ends at 905. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [894.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["read", "open", "format", "Parser"], 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.PySourceColor_py.cli"].
pasteorg_paste
public
public
0
0
str2html
def str2html(sourcestring, colors=None, title='', markup='html', header=None, footer=None, linenumbers=0, form=None):"""Converts a code(string) to colorized HTML. Returns an HTML string. form='code',or'snip' (for "<pre>yourcode</pre>" only) colors=null,mono,lite,dark,dark2,idle,or pythonwin"""stringIO = io.StringIO()Parser(sourcestring, colors=colors, title=title, out=stringIO, markup=markup, header=header, footer=footer, linenumbers=linenumbers).format(form)stringIO.seek(0)return stringIO.read()
1
9
8
90
1
907
920
907
sourcestring,colors,title,markup,header,footer,linenumbers,form
['stringIO']
Returns
{"Assign": 1, "Expr": 3, "Return": 1}
5
14
5
["io.StringIO", "format", "Parser", "stringIO.seek", "stringIO.read"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.format_long_source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2markup"]
The function (str2html) defined within the public class called public.The function start at line 907 and ends at 920. It contains 9 lines of code and it has a cyclomatic complexity of 1. It takes 8 parameters, represented as [907.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["io.StringIO", "format", "Parser", "stringIO.seek", "stringIO.read"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.exceptions.formatter_py.HTMLFormatter.format_long_source", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2markup"].
pasteorg_paste
public
public
0
0
str2css
def str2css(sourcestring, colors=None, title='',markup='css', header=None, footer=None,linenumbers=0, form=None):"""Converts a code string to colorized CSS/HTML. Returns CSS/HTML string If form is not None then this will return (stylesheet_str, code_str) colors=null,mono,lite,dark,dark2,idle,or pythonwin"""if markup.lower() not in ['css' ,'xhtml']:markup = 'css'stringIO = io.StringIO()parse = Parser(sourcestring, colors=colors, title=title, out=stringIO, markup=markup, header=header, footer=footer, linenumbers=linenumbers)parse.format(form)stringIO.seek(0)if form is not None:return parse._sendCSSStyle(external=1), stringIO.read()else:return None, stringIO.read()
3
16
8
135
3
922
942
922
sourcestring,colors,title,markup,header,footer,linenumbers,form
['parse', 'stringIO', 'markup']
Returns
{"Assign": 3, "Expr": 3, "If": 2, "Return": 2}
8
21
8
["markup.lower", "io.StringIO", "Parser", "parse.format", "stringIO.seek", "parse._sendCSSStyle", "stringIO.read", "stringIO.read"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2markup"]
The function (str2css) defined within the public class called public.The function start at line 922 and ends at 942. It contains 16 lines of code and it has a cyclomatic complexity of 3. It takes 8 parameters, represented as [922.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["markup.lower", "io.StringIO", "Parser", "parse.format", "stringIO.seek", "parse._sendCSSStyle", "stringIO.read", "stringIO.read"], 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.PySourceColor_py.str2markup"].
pasteorg_paste
public
public
0
0
str2markup
def str2markup(sourcestring, colors=None, title = '', markup='xhtml', header=None, footer=None,linenumbers=0, form=None):""" Convert code strings into ([stylesheet or None], colorized string) """if markup.lower() == 'html':return None, str2html(sourcestring, colors=colors, title=title, header=header, footer=footer, markup=markup, linenumbers=linenumbers, form=form)else:return str2css(sourcestring, colors=colors, title=title, header=header, footer=footer, markup=markup, linenumbers=linenumbers, form=form)
2
11
8
113
0
944
955
944
sourcestring,colors,title,markup,header,footer,linenumbers,form
[]
Returns
{"Expr": 1, "If": 1, "Return": 2}
3
12
3
["markup.lower", "str2html", "str2css"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.tagreplace"]
The function (str2markup) defined within the public class called public.The function start at line 944 and ends at 955. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 8 parameters, represented as [944.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["markup.lower", "str2html", "str2css"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.tagreplace"].
pasteorg_paste
public
public
0
0
str2file
def str2file(sourcestring, outfile, colors=None, title='', markup='html', header=None, footer=None, linenumbers=0, show=0, dosheet=1, form=None):"""Converts a code string to a file. makes no attempt at correcting bad pathnames"""css , html = str2markup(sourcestring, colors=colors, title=title,markup=markup, header=header, footer=footer,linenumbers=linenumbers, form=form)# write htmlf = open(outfile,'wt')f.writelines(html)f.close()#write cssif css is not None and dosheet:dir = os.path.dirname(outfile)outcss = os.path.join(dir,'pystyle.css')f = open(outcss,'wt')f.writelines(css)f.close()if show:showpage(outfile)
4
17
11
155
3
957
979
957
sourcestring,outfile,colors,title,markup,header,footer,linenumbers,show,dosheet,form
['dir', 'f', 'outcss']
None
{"Assign": 5, "Expr": 6, "If": 2}
10
23
10
["str2markup", "open", "f.writelines", "f.close", "os.path.dirname", "os.path.join", "open", "f.writelines", "f.close", "showpage"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py._test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"]
The function (str2file) defined within the public class called public.The function start at line 957 and ends at 979. It contains 17 lines of code and it has a cyclomatic complexity of 4. It takes 11 parameters, represented as [957.0] and does not return any value. It declares 10.0 functions, It has 10.0 functions called inside which are ["str2markup", "open", "f.writelines", "f.close", "os.path.dirname", "os.path.join", "open", "f.writelines", "f.close", "showpage"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py._test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"].
pasteorg_paste
public
public
0
0
path2html
def path2html(sourcepath, colors=None, markup='html',header=None, footer=None,linenumbers=0, form=None):"""Converts code(file) to colorized HTML. Returns an HTML string. form='code',or'snip' (for "<pre>yourcode</pre>" only) colors=null,mono,lite,dark,dark2,idle,or pythonwin"""stringIO = io.StringIO()sourcestring = open(sourcepath).read()Parser(sourcestring, colors, title=sourcepath, out=stringIO, markup=markup, header=header, footer=footer, linenumbers=linenumbers).format(form)stringIO.seek(0)return stringIO.read()
1
10
7
94
2
981
995
981
sourcepath,colors,markup,header,footer,linenumbers,form
['stringIO', 'sourcestring']
Returns
{"Assign": 2, "Expr": 3, "Return": 1}
7
15
7
["io.StringIO", "read", "open", "format", "Parser", "stringIO.seek", "stringIO.read"]
0
[]
The function (path2html) defined within the public class called public.The function start at line 981 and ends at 995. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [981.0], and this function return a value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["io.StringIO", "read", "open", "format", "Parser", "stringIO.seek", "stringIO.read"].
pasteorg_paste
public
public
0
0
convert
def convert(source, outdir=None, colors=None,show=0, markup='html', quiet=0,header=None, footer=None, linenumbers=0, form=None):"""Takes a file or dir as input and places the html in the outdir. If outdir is none it defaults to the input dir"""count=0# If it is a filename then path2fileif not os.path.isdir(source):if os.path.isfile(source):count+=1path2file(source, outdir, colors, show, markup, quiet, form, header, footer, linenumbers, count)else:raise PathError('File does not exist!')# If we pass in a dir we need to walkdir for files.# Then we need to colorize them with path2fileelse:fileList = walkdir(source)if fileList is not None:# make sure outdir is a dirif outdir is not None:if os.path.splitext(outdir)[1] != '':outdir = os.path.split(outdir)[0]for item in fileList:count+=1path2file(item, outdir, colors, show, markup,quiet, form, header, footer, linenumbers, count)_printinfo('Completed colorizing %s files.'%str(count), quiet)else:_printinfo("No files to convert in dir.", quiet)
7
24
10
199
3
997
1,028
997
source,outdir,colors,show,markup,quiet,header,footer,linenumbers,form
['count', 'fileList', 'outdir']
None
{"Assign": 3, "AugAssign": 2, "Expr": 5, "For": 1, "If": 5}
11
32
11
["os.path.isdir", "os.path.isfile", "path2file", "PathError", "walkdir", "os.path.splitext", "os.path.split", "path2file", "_printinfo", "str", "_printinfo"]
77
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.presenters.html.html_py.output_line", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.examples.cores.fifo36.test_fifo36_py.test_fifo36_conversion", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.altera.quartus_py.Quartus.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.lattice.iceriver_py.IceRiver.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.xilinx.ise_py.ISE.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.xilinx.vivado_py.Vivado.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.yosys_py.Yosys.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.models.converters.adc128s022_model_py.adc128s022_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.test.test_cores.test_spi.test_spi_controller_py.test_convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.test.test_cores.test_video.test_lt24lcdsys_py.test_conversion", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.test.test_cores.test_video.test_vgasys_py.test_vgasys_conversion", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.data.pascal_context_py.PascalContext.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914578_biolink_biolink_api.biowikidata.uniprot_sparql_py.run_sparql_query", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914578_biolink_biolink_api.biowikidata.wd_sparql_py.run_sparql_query", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914578_biolink_biolink_api.causalmodels.lego_sparql_util_py.lego_query", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.png_py.Reader.asRGBA", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3950177_cyberdiscovery_cyberdisc_bot.cdbot.cogs.fun_py.FormerUser.convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951602_jlusiardi_homekit_python.homekit.crypto.chacha20poly1305_py.chacha20_block", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951602_jlusiardi_homekit_python.homekit.crypto.chacha20poly1305_py.chacha20_create_initial_state", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963841_sixpack_sixpack.sixpack.test.api_test_py.TestApi.test_convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963841_sixpack_sixpack.sixpack.test.api_test_py.TestApi.test_convert_with_kpi", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967064_executablebooks_myst_parser.docs.live_preview_py.do_convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984106_jupyter_nbformat.nbformat.__init___py.reads", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984106_jupyter_nbformat.nbformat.__init___py.writes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984106_jupyter_nbformat.nbformat.converter_py.convert"]
The function (convert) defined within the public class called public.The function start at line 997 and ends at 1028. It contains 24 lines of code and it has a cyclomatic complexity of 7. It takes 10 parameters, represented as [997.0] and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["os.path.isdir", "os.path.isfile", "path2file", "PathError", "walkdir", "os.path.splitext", "os.path.split", "path2file", "_printinfo", "str", "_printinfo"], It has 77.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.diffoscope.presenters.html.html_py.output_line", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.examples.cores.fifo36.test_fifo36_py.test_fifo36_conversion", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.altera.quartus_py.Quartus.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.lattice.iceriver_py.IceRiver.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.xilinx.ise_py.ISE.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.xilinx.vivado_py.Vivado.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.build.toolflow.yosys_py.Yosys.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.rhea.models.converters.adc128s022_model_py.adc128s022_model", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.test.test_cores.test_spi.test_spi_controller_py.test_convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.test.test_cores.test_video.test_lt24lcdsys_py.test_conversion", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3588611_cfelton_rhea.test.test_cores.test_video.test_vgasys_py.test_vgasys_conversion", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.data.pascal_context_py.PascalContext.__getitem__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914578_biolink_biolink_api.biowikidata.uniprot_sparql_py.run_sparql_query", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914578_biolink_biolink_api.biowikidata.wd_sparql_py.run_sparql_query", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3914578_biolink_biolink_api.causalmodels.lego_sparql_util_py.lego_query", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3921765_drj11_pypng.code.png_py.Reader.asRGBA", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3950177_cyberdiscovery_cyberdisc_bot.cdbot.cogs.fun_py.FormerUser.convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951602_jlusiardi_homekit_python.homekit.crypto.chacha20poly1305_py.chacha20_block", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951602_jlusiardi_homekit_python.homekit.crypto.chacha20poly1305_py.chacha20_create_initial_state", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963841_sixpack_sixpack.sixpack.test.api_test_py.TestApi.test_convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963841_sixpack_sixpack.sixpack.test.api_test_py.TestApi.test_convert_with_kpi", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967064_executablebooks_myst_parser.docs.live_preview_py.do_convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984106_jupyter_nbformat.nbformat.__init___py.reads", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984106_jupyter_nbformat.nbformat.__init___py.writes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3984106_jupyter_nbformat.nbformat.converter_py.convert"].
pasteorg_paste
public
public
0
0
path2file
def path2file(sourcePath, out=None, colors=None, show=0,markup='html', quiet=0, form=None,header=None, footer=None, linenumbers=0, count=1):""" Converts python source to html file"""# If no outdir is given we use the sourcePathif out is None:#this is a guesshtmlPath = sourcePath + '.html'else:# If we do give an out_dir, and it does# not exist , it will be created.if os.path.splitext(out)[1] == '':if not os.path.isdir(out):os.makedirs(out)sourceName = os.path.basename(sourcePath)htmlPath = os.path.join(out,sourceName)+'.html'# If we do give an out_name, and its dir does# not exist , it will be created.else:outdir = os.path.split(out)[0]if not os.path.isdir(outdir):os.makedirs(outdir)htmlPath = outhtmlPath = os.path.abspath(htmlPath)# Open the text and do the parsing.source = open(sourcePath).read()parse = Parser(source, colors, sourcePath, open(htmlPath, 'wt'), markup, header, footer, linenumbers)parse.format(form)_printinfo("wrote %s" % htmlPath, quiet)# html markup will ignore the external flag, but# we need to stop the blank file from being written.if form == 'external' and count == 1 and markup != 'html':cssSheet = parse._sendCSSStyle(external=1)cssPath = os.path.join(os.path.dirname(htmlPath),'pystyle.css')css = open(cssPath, 'wt')css.write(cssSheet)css.close()_printinfo("wrote %s" % cssPath, quiet)if show:# load HTML page into the default web browser.showpage(htmlPath)return htmlPath
9
32
11
286
8
1,030
1,071
1,030
sourcePath,out,colors,show,markup,quiet,form,header,footer,linenumbers,count
['cssSheet', 'cssPath', 'css', 'sourceName', 'parse', 'source', 'outdir', 'htmlPath']
Returns
{"Assign": 11, "Expr": 9, "If": 6, "Return": 1}
23
42
23
["os.path.splitext", "os.path.isdir", "os.makedirs", "os.path.basename", "os.path.join", "os.path.split", "os.path.isdir", "os.makedirs", "os.path.abspath", "read", "open", "Parser", "open", "parse.format", "_printinfo", "parse._sendCSSStyle", "os.path.join", "os.path.dirname", "open", "css.write", "css.close", "_printinfo", "showpage"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py._test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.convert"]
The function (path2file) defined within the public class called public.The function start at line 1030 and ends at 1071. It contains 32 lines of code and it has a cyclomatic complexity of 9. It takes 11 parameters, represented as [1030.0], and this function return a value. It declares 23.0 functions, It has 23.0 functions called inside which are ["os.path.splitext", "os.path.isdir", "os.makedirs", "os.path.basename", "os.path.join", "os.path.split", "os.path.isdir", "os.makedirs", "os.path.abspath", "read", "open", "Parser", "open", "parse.format", "_printinfo", "parse._sendCSSStyle", "os.path.join", "os.path.dirname", "open", "css.write", "css.close", "_printinfo", "showpage"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py._test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.convert"].
pasteorg_paste
public
public
0
0
tagreplace
def tagreplace(sourcestr, colors=lite, markup='xhtml', linenumbers=0, dosheet=1, tagstart='<PY>'.lower(), tagend='</PY>'.lower(), stylesheet='pystyle.css'):
1
3
6
41
0
1,073
1,075
1,073
sourcestr,colors,markup,linenumbers,dosheet,tagstart,tagend,stylesheet
[]
Returns
{"Assign": 14, "Expr": 1, "For": 1, "If": 5, "Return": 1}
16
30
16
["lower", "lower", "markup.lower", "sourcestr.find", "sourcestr.replace", "sourcestr.count", "sourcestr.count", "range", "sourcestr.find", "sourcestr.find", "len", "unescape", "str2markup", "len", "join", "InputError"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.pageconvert"]
The function (tagreplace) defined within the public class called public.The function start at line 1073 and ends at 1075. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 6 parameters, represented as [1073.0], and this function return a value. It declares 16.0 functions, It has 16.0 functions called inside which are ["lower", "lower", "markup.lower", "sourcestr.find", "sourcestr.replace", "sourcestr.count", "sourcestr.count", "range", "sourcestr.find", "sourcestr.find", "len", "unescape", "str2markup", "len", "join", "InputError"], 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.PySourceColor_py.pageconvert"].
pasteorg_paste
public
public
0
0
pageconvert
def pageconvert(path, out=None, colors=lite, markup='xhtml', linenumbers=0,dosheet=1, tagstart='<PY>'.lower(), tagend='</PY>'.lower(),stylesheet='pystyle', show=1, returnstr=0):
1
3
7
53
0
1,104
1,106
1,104
path,out,colors,markup,linenumbers,dosheet,tagstart,tagend,stylesheet,show,returnstr
[]
Returns
{"Assign": 7, "Expr": 8, "If": 5, "Return": 2, "Try": 2}
22
39
22
["lower", "lower", "os.path.dirname", "read", "open", "tagreplace", "os.path.abspath", "os.path.join", "os.path.basename", "os.path.exists", "os.makedirs", "os.path.dirname", "open", "y.write", "y.close", "os.path.abspath", "os.path.join", "open", "x.write", "x.close", "os.startfile", "traceback.print_exc"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.cli"]
The function (pageconvert) defined within the public class called public.The function start at line 1104 and ends at 1106. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 7 parameters, represented as [1104.0], and this function return a value. It declares 22.0 functions, It has 22.0 functions called inside which are ["lower", "lower", "os.path.dirname", "read", "open", "tagreplace", "os.path.abspath", "os.path.join", "os.path.basename", "os.path.exists", "os.makedirs", "os.path.dirname", "open", "y.write", "y.close", "os.path.abspath", "os.path.join", "open", "x.write", "x.close", "os.startfile", "traceback.print_exc"], 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.PySourceColor_py.cli"].
pasteorg_paste
public
public
0
0
walkdir
def walkdir(dir):"""Return a list of .py and .pyw files from a given directory."""# Get a list of files that match *.py*pathlist = glob.glob(os.path.join(dir, "*.[p][y]*"))# Now filter out all but py and pywreturn [x for x in pathlist if x.endswith(('.py', '.pyw'))] or None
4
3
1
44
1
1,146
1,151
1,146
dir
['pathlist']
Returns
{"Assign": 1, "Expr": 1, "Return": 1}
3
6
3
["glob.glob", "os.path.join", "x.endswith"]
1
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.convert"]
The function (walkdir) defined within the public class called public.The function start at line 1146 and ends at 1151. It contains 3 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 3.0 functions, It has 3.0 functions called inside which are ["glob.glob", "os.path.join", "x.endswith"], 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.PySourceColor_py.convert"].
pasteorg_paste
public
public
0
0
showpage
def showpage(path):"""Helper function to open webpages"""try:import webbrowserwebbrowser.open_new(os.path.abspath(path))except Exception:traceback.print_exc()
2
6
1
31
0
1,153
1,159
1,153
path
[]
None
{"Expr": 3, "Try": 1}
3
7
3
["webbrowser.open_new", "os.path.abspath", "traceback.print_exc"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.path2file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2file"]
The function (showpage) defined within the public class called public.The function start at line 1153 and ends at 1159. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, It has 3.0 functions called inside which are ["webbrowser.open_new", "os.path.abspath", "traceback.print_exc"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.path2file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.str2file"].
pasteorg_paste
public
public
0
0
_printinfo
def _printinfo(message, quiet):"""Helper to print messages"""if not quiet:print(message)
2
3
2
16
0
1,161
1,164
1,161
message,quiet
[]
None
{"Expr": 2, "If": 1}
1
4
1
["print"]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py._test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.path2file"]
The function (_printinfo) defined within the public class called public.The function start at line 1161 and ends at 1164. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1161.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["print"], 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.PySourceColor_py._test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.convert", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.path2file"].
pasteorg_paste
public
public
0
0
escape
def escape(text): """escape text for html. similar to cgi.escape""" text = text.replace("&", "&amp;") text = text.replace("<", "&lt;") text = text.replace(">", "&gt;") return text
1
5
1
38
1
1,166
1,171
1,166
text
['text']
Returns
{"Assign": 3, "Expr": 1, "Return": 1}
3
6
3
["text.replace", "text.replace", "text.replace"]
80
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.sessionkiller_py.check_new_login", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.sessionkiller_py.sessions_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsCommand.initialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsJava.formatFunction", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsParser.formatFunction", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsParser.formatVar", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsParser.getTypeInfo", "_.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.3593274_stevenproctor_planet_erlang.planet.reconstitute_py.content", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell._genshi_py.streamify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell.tmpl_py.tmpl_mapper", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.sanitizer_py.HTMLSanitizerMixin.sanitize_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.serializer.htmlserializer_py.HTMLSerializer.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.simpletree_py.CommentNode.hilite", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.simpletree_py.Element.hilite", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.simpletree_py.Element.toxml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.simpletree_py.TextNode.toxml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.inspecttree_py.inspect_cursor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.inspecttree_py.inspect_print_row", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.base_py.AbstractToolBox.package_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.base_py.AbstractToolBox.reload_tool_by_id", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.base_py.AbstractToolBox.remove_tool_by_id", "_.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.3683012_springload_draftjs_exporter.draftjs_exporter.engines.string_compat_py.DOMStringCompat.render_attrs"]
The function (escape) defined within the public class called public.The function start at line 1166 and ends at 1171. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["text.replace", "text.replace", "text.replace"], It has 80.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.sessionkiller_py.check_new_login", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.19906768_dragon_userbot_dragon_userbot.modules.sessionkiller_py.sessions_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsCommand.initialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsJava.formatFunction", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsParser.formatFunction", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsParser.formatVar", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3567333_spadgos_sublime_jsdocs.jsdocs_py.JsdocsParser.getTypeInfo", "_.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.3593274_stevenproctor_planet_erlang.planet.reconstitute_py.content", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell._genshi_py.streamify", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.shell.tmpl_py.tmpl_mapper", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.sanitizer_py.HTMLSanitizerMixin.sanitize_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.serializer.htmlserializer_py.HTMLSerializer.serialize", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.simpletree_py.CommentNode.hilite", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.simpletree_py.Element.hilite", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.simpletree_py.Element.toxml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.treebuilders.simpletree_py.TextNode.toxml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.inspecttree_py.inspect_cursor", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3663017_jessevdk_cldoc.cldoc.inspecttree_py.inspect_print_row", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.base_py.AbstractToolBox.package_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.base_py.AbstractToolBox.reload_tool_by_id", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3675202_galaxyproject_galaxy_lib.galaxy.tools.toolbox.base_py.AbstractToolBox.remove_tool_by_id", "_.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.3683012_springload_draftjs_exporter.draftjs_exporter.engines.string_compat_py.DOMStringCompat.render_attrs"].
pasteorg_paste
public
public
0
0
unescape
def unescape(text): """unsecape escaped text""" text = text.replace("&quot;", '"') text = text.replace("&gt;", ">") text = text.replace("&lt;", "<") text = text.replace("&amp;", "&") return text
1
6
1
48
1
1,173
1,179
1,173
text
['text']
Returns
{"Assign": 4, "Expr": 1, "Return": 1}
4
7
4
["text.replace", "text.replace", "text.replace", "text.replace"]
14
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.sanitizer_py.HTMLSanitizerMixin.sanitize_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.widget.select_py.Select.all_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.widget.select_py.Select.all_selected_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.xpath_py.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967064_executablebooks_myst_parser.myst_parser.mocking_py.MockState.parse_target", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.core.web_component_py.parse_initial_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94650670_rapidpro_ureport.ureport.jobs.models_py.JobSource.get_entries", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.tagreplace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.extractors.generalsimple_py.GeneralSimple.prepare_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.extractors.huya.live_py.HuyaLive.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.mediainfo_py.MediaInfo.add_comment", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.mediainfo_py.MediaInfo.album", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.mediainfo_py.MediaInfo.artist", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.mediainfo_py.MediaInfo.title"]
The function (unescape) defined within the public class called public.The function start at line 1173 and ends at 1179. 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 4.0 functions, It has 4.0 functions called inside which are ["text.replace", "text.replace", "text.replace", "text.replace"], It has 14.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3593274_stevenproctor_planet_erlang.planet.vendor.html5lib.sanitizer_py.HTMLSanitizerMixin.sanitize_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.widget.select_py.Select.all_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.widget.select_py.Select.all_selected_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3708743_redhatqe_widgetastic_core.src.widgetastic.xpath_py.quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967064_executablebooks_myst_parser.myst_parser.mocking_py.MockState.parse_target", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94567798_marimo_team_marimo.marimo._plugins.core.web_component_py.parse_initial_value", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94650670_rapidpro_ureport.ureport.jobs.models_py.JobSource.get_entries", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.PySourceColor_py.tagreplace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.extractors.generalsimple_py.GeneralSimple.prepare_list", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.extractors.huya.live_py.HuyaLive.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.mediainfo_py.MediaInfo.add_comment", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.mediainfo_py.MediaInfo.album", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.mediainfo_py.MediaInfo.artist", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95159979_LifeActor_ykdl.ykdl.mediainfo_py.MediaInfo.title"].
pasteorg_paste
PySourceColorError
public
0
1
__init__
def __init__(self, msg=''):self._msg = msgException.__init__(self, msg)
1
3
2
22
0
1,185
1,187
1,185
self,msg
[]
None
{"Assign": 1, "Expr": 1}
1
3
1
["Exception.__init__"]
6,816
["_.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 PySourceColorError, that inherit another class.The function start at line 1185 and ends at 1187. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1185.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["Exception.__init__"], It has 6816.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
PySourceColorError
public
0
1
__repr__
def __repr__(self):return self._msg
1
2
1
9
0
1,188
1,189
1,188
self
[]
Returns
{"Return": 1}
0
2
0
[]
29
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"]
The function (__repr__) defined within the public class called PySourceColorError, that inherit another class.The function start at line 1188 and ends at 1189. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 29.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"].
pasteorg_paste
PySourceColorError
public
0
1
__init__
def __init__(self, msg): PySourceColorError.__init__(self, 'Path error! : %s'% msg)
1
3
2
17
0
1,193
1,195
1,193
self,msg
[]
None
{"Assign": 1, "Expr": 1}
1
3
1
["Exception.__init__"]
6,816
["_.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 PySourceColorError, that inherit another class.The function start at line 1193 and ends at 1195. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1193.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["Exception.__init__"], It has 6816.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
PySourceColorError
public
0
1
__init__
def __init__(self, msg): PySourceColorError.__init__(self, 'Path error! : %s'% msg)
1
3
2
17
0
1,198
1,200
1,193
self,msg
[]
None
{"Assign": 1, "Expr": 1}
1
3
1
["Exception.__init__"]
6,816
["_.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 PySourceColorError, that inherit another class.The function start at line 1198 and ends at 1200. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1193.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["Exception.__init__"], It has 6816.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
PySourceColorError
public
0
1
__init__
def __init__(self, raw, colors=None, title='', out=sys.stdout, markup='html', header=None, footer=None, linenumbers=0):"""Store the source text & set some flags"""if colors is None:colors = defaultColorsself.raw = raw.expandtabs().rstrip()self.title = os.path.basename(title)self.out = outself.line = ''self.lasttext = ''self.argFlag = 0self.classFlag = 0self.defFlag = 0self.decoratorFlag = 0self.external = 0self.markup = markup.upper()self.colors = colorsself.header = headerself.footer = footerself.doArgs = 1 #overrides the new tokensself.doNames = 1 #overrides the new tokensself.doMathOps = 1 #overrides the new tokensself.doBrackets = 1 #overrides the new tokensself.doURL = 1 # override url conversionself.LINENUMHOLDER = "___line___".upper()self.LINESTART = "___start___".upper()self.skip = 0# add space left side of code for padding.Override in color dict.self.extraspace = self.colors.get(EXTRASPACE, '')# Linenumbers less then zero also have numberlinksself.dolinenums = self.linenum = abs(linenumbers)if linenumbers < 0:self.numberlinks = 1else:self.numberlinks = 0
3
32
9
226
0
1,208
1,242
1,208
self,msg
[]
None
{"Assign": 1, "Expr": 1}
1
3
1
["Exception.__init__"]
6,816
["_.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 PySourceColorError, that inherit another class.The function start at line 1208 and ends at 1242. It contains 32 lines of code and it has a cyclomatic complexity of 3. It takes 9 parameters, represented as [1208.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["Exception.__init__"], It has 6816.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
Parser
public
0
0
format
def format(self, form=None):"""Parse and send the colorized source"""if form in ('snip','code'):self.addEnds = 0elif form == 'embed':self.addEnds = 0self.external = 1else:if form == 'external':self.external = 1self.addEnds = 1# Store line offsets in self.linesself.lines = [0, 0]pos = 0# Add linenumbersif self.dolinenums:start=self.LINENUMHOLDER+' '+self.extraspaceelse:start=''+self.extraspacenewlines = []lines = self.raw.splitlines(0)for l in lines: # span and div escape for customizing and embedding raw text if l.startswith(('#$#', '#%#', '#@#')):newlines.append(l) else:# kludge for line spans in css,xhtmlif self.markup in ['XHTML','CSS']:newlines.append(self.LINESTART+' '+start+l)else:newlines.append(start+l)self.raw = "\n".join(newlines)+'\n'# plus an extra newline at the end# Gather lineswhile 1:pos = self.raw.find('\n', pos) + 1if not pos:breakself.lines.append(pos)self.lines.append(len(self.raw))# Wrap text in a filelike objectself.pos = 0text = io.StringIO(self.raw)# Markup startif self.addEnds:self._doPageStart()else:self._doSnippetStart()## Tokenize calls the __call__## function for each token till done.# Parse the source and write out the results.try:for token in tokenize.generate_tokens(text.readline):self(*token)except tokenize.TokenError as error:msg = error.args[0]line = error.args[1][0]self.out.write("<h3>ERROR: %s</h3>%s\n"%(msg, self.raw[self.lines[line]:]))# Markup endif self.addEnds:self._doPageEnd()else:self._doSnippetEnd()
14
51
2
343
0
1,244
1,313
1,244
self,form
[]
None
{"Assign": 17, "Expr": 12, "For": 2, "If": 9, "Try": 1, "While": 1}
18
70
18
["self.raw.splitlines", "l.startswith", "newlines.append", "newlines.append", "newlines.append", "join", "self.raw.find", "self.lines.append", "self.lines.append", "len", "io.StringIO", "self._doPageStart", "self._doSnippetStart", "tokenize.generate_tokens", "self", "self.out.write", "self._doPageEnd", "self._doSnippetEnd"]
10,310
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson._configure_option", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson._maybe_valgrind", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson._setup_exists", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.colour_py.Colour.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.api_py.Api.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.api_py.Api.create_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.app_py.App.config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.app_py.PluginsApp.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.app_py.PluginsApp.installed_plugins", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.DetailEndpoint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint._validate_openapi_parameters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.choices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.count", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request._make_call", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request.get_openapi", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request.get_status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request.normalize_url", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record._endpoint_from_url"]
The function (format) defined within the public class called Parser.The function start at line 1244 and ends at 1313. It contains 51 lines of code and it has a cyclomatic complexity of 14. It takes 2 parameters, represented as [1244.0] and does not return any value. It declares 18.0 functions, It has 18.0 functions called inside which are ["self.raw.splitlines", "l.startswith", "newlines.append", "newlines.append", "newlines.append", "join", "self.raw.find", "self.lines.append", "self.lines.append", "len", "io.StringIO", "self._doPageStart", "self._doSnippetStart", "tokenize.generate_tokens", "self", "self.out.write", "self._doPageEnd", "self._doSnippetEnd"], It has 10310.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.Meson._configure_option", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson._maybe_valgrind", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.10922465_openbmc_openbmc_build_scripts.scripts.unit_test_py.Meson._setup_exists", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15217004_shayypy_guilded_py.guilded.colour_py.Colour.__str__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.api_py.Api.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.api_py.Api.create_token", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.app_py.App.config", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.app_py.PluginsApp.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.app_py.PluginsApp.installed_plugins", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.DetailEndpoint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint._validate_openapi_parameters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.all", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.choices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.count", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.endpoint_py.Endpoint.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request._make_call", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request.get_openapi", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request.get_status", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.Request.normalize_url", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record.__getattr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record._endpoint_from_url"].
pasteorg_paste
Parser
public
0
0
__call__
def __call__(self, toktype, toktext, srow_col, erow_col, line):"""Token handler. Order is important do not rearrange."""self.line = linesrow, scol = srow_colerow, ecol = erow_col# Calculate new positionsoldpos = self.posnewpos = self.lines[srow] + scolself.pos = newpos + len(toktext)# Handle newlinesif toktype in (token.NEWLINE, tokenize.NL):self.decoratorFlag = self.argFlag = 0# kludge for line spans in css,xhtmlif self.markup in ['XHTML','CSS']:self.out.write('</span>')self.out.write('\n')return# Send the original whitespace, and tokenize backslashes if present.# Tokenizer.py just sends continued line backslashes with whitespace.# This is a hack to tokenize continued line slashes as operators.# Should continued line backslashes be treated as operators# or some other token?if newpos > oldpos:if self.raw[oldpos:newpos].isspace():# consume a single space after linestarts and linenumbers# had to have them so tokenizer could separate them.# multiline strings are handled by do_Text functionsif self.lasttext != self.LINESTART \and self.lasttext != self.LINENUMHOLDER:self.out.write(self.raw[oldpos:newpos])else:self.out.write(self.raw[oldpos+1:newpos])else:slash = self.raw[oldpos:newpos].find('\\')+oldposself.out.write(self.raw[oldpos:slash])getattr(self, '_send%sText'%(self.markup,))(OPERATOR, '\\')self.linenum+=1# kludge for line spans in css,xhtmlif self.markup in ['XHTML','CSS']:self.out.write('</span>')self.out.write(self.raw[slash+1:newpos])# Skip indenting tokensif toktype in (token.INDENT, token.DEDENT):self.pos = newposreturn# Look for operatorsif token.LPAR <= toktype <= token.OP:# Trap decorators py2.4 >if toktext == '@':toktype = DECORATOR# Set a flag if this was the decorator start so# the decorator name and arguments can be identifiedself.decoratorFlag = self.argFlag = 1else:if self.doArgs:# Find the start for argumentsif toktext == '(' and self.argFlag:self.argFlag = 2# Find the end for argumentselif toktext == ':':self.argFlag = 0## Separate the different operator types# Bracketsif self.doBrackets and toktext in ['[',']','(',')','{','}']:toktype = BRACKETS# Math operatorselif self.doMathOps and toktext in ['*=','**=','-=','+=','|=','%=','>>=','<<=','=','^=','/=', '+','-','**','*','/','%']:toktype = MATH_OPERATOR# Operatorelse:toktype = OPERATOR# example how flags should work.# def fun(arg=argvalue,arg2=argvalue2):# 0 12 A 1 N2 A1N 0if toktext == "=" and self.argFlag == 2: self.argFlag = 1elif toktext == "," and self.argFlag == 1:self.argFlag = 2# Look for keywordselif toktype == NAME and keyword.iskeyword(toktext):toktype = KEYWORD# Set a flag if this was the class / def start so# the class / def name and arguments can be identifiedif toktext in ['class', 'def']:if toktext =='class' and \ not line[:line.find('class')].endswith('.'):self.classFlag = self.argFlag = 1elif toktext == 'def' and \ not line[:line.find('def')].endswith('.'):self.defFlag = self.argFlag = 1else:# must have used a keyword as a name i.e. self.classtoktype = ERRORTOKEN# Look for class, def, decorator nameelif (self.classFlag or self.defFlag or self.decoratorFlag) \and self.doNames:if self.classFlag:self.classFlag = 0toktype = CLASS_NAMEelif self.defFlag:self.defFlag = 0toktype = DEF_NAMEelif self.decoratorFlag:self.decoratorFlag = 0toktype = DECORATOR_NAME# Look for strings# Order of evaluation is important do not change.elif toktype == token.STRING:text = toktext.lower()# TRIPLE DOUBLE QUOTE'sif text[:3] == '"""':toktype = TRIPLEDOUBLEQUOTEelif text[:4] == 'r"""':toktype = TRIPLEDOUBLEQUOTE_Relif ('u"""' == text[:4] ortext[:5] == 'ur"""'):toktype = TRIPLEDOUBLEQUOTE_U# DOUBLE QUOTE'selif text[:1] == '"':toktype = DOUBLEQUOTEelif text[:2] == 'r"':toktype = DOUBLEQUOTE_Relif (text[:2] == 'u"' ortext[:3] == 'ur"'):toktype = DOUBLEQUOTE_U# TRIPLE SINGLE QUOTE'selif text[:3] == "'''": toktype = TRIPLESINGLEQUOTEelif text[:4] == "r'''":toktype = TRIPLESINGLEQUOTE_Relif (text[:4] == "u'''" ortext[:5] == "ur'''"):toktype = TRIPLESINGLEQUOTE_U# SINGLE QUOTE'selif text[:1] == "'":toktype = SINGLEQUOTEelif text[:2] == "r'":toktype = SINGLEQUOTE_Relif (text[:2] == "u'" or text[:3] == "ur'"):toktype = SINGLEQUOTE_U# test for invalid string declarationif self.lasttext.lower() == 'ru':toktype = ERRORTOKEN# Look for commentselif toktype == COMMENT:if toktext[:2] == "##":toktype = DOUBLECOMMENTelif toktext[:3] == '#$#':toktype = TEXTself.textFlag = 'SPAN'toktext = toktext[3:]elif toktext[:3] == '#%#':toktype = TEXTself.textFlag = 'DIV'toktext = toktext[3:]elif toktext[:3] == '#@#':toktype = TEXTself.textFlag = 'RAW'toktext = toktext[3:]if self.doURL:# this is a 'fake helper function'# url(URI,Alias_name) or url(URI)url_pos = toktext.find('url(')if url_pos != -1:before = toktext[:url_pos]url = toktext[url_pos+4:]splitpoint = url.find(',')endpoint = url.find(')')after = url[endpoint+1:]url = url[:endpoint]if splitpoint != -1:urlparts = url.split(',',1)toktext = '%s<a href="%s">%s</a>%s'%( before,urlparts[0],urlparts[1].lstrip(),after)else:toktext = '%s<a href="%s">%s</a>%s'%(before,url,url,after)# Seperate errors from decoratorselif toktype == ERRORTOKEN:# Bug fix for < py2.4# space between decoratorsif self.argFlag and toktext.isspace():#toktype = NAMEself.out.write(toktext)return# Bug fix for py2.2 linenumbers with decoratorselif toktext.isspace():# What if we have a decorator after a >>> or ...#p = line.find('@')#if p >= 0 and not line[:p].isspace():#self.out.write(toktext)#returnif self.skip:self.skip=0returnelse:self.out.write(toktext)return# trap decorators < py2.4elif toktext == '@':toktype = DECORATOR# Set a flag if this was the decorator start so# the decorator name and arguments can be identifiedself.decoratorFlag = self.argFlag = 1# Seperate args from nameselif (self.argFlag == 2 andtoktype == NAME andtoktext != 'None' andself.doArgs):toktype = ARGS# Look for line numbers# The conversion code for them is in the send_text functions.if toktext in [self.LINENUMHOLDER,self.LINESTART]:toktype = LINENUMBER# if we don't have linenumbers set flag# to skip the trailing space from linestartif toktext == self.LINESTART and not self.dolinenums \or toktext == self.LINENUMHOLDER:self.skip=1# Skip blank token that made it thru## bugfix for the last empty tag.if toktext == '':return# Last token text historyself.lasttext = toktext# escape all but the urls in the commentsif toktype in (DOUBLECOMMENT, COMMENT):if toktext.find('<a href=') == -1:toktext = escape(toktext)else:passelif toktype == TEXT:passelse:toktext = escape(toktext)# Send text for any markupgetattr(self, '_send%sText'%(self.markup,))(toktype, toktext)return
81
175
6
1,237
0
1,315
1,570
1,315
self,toktype,toktext,srow_col,erow_col,line
[]
None
{"Assign": 71, "AugAssign": 1, "Expr": 12, "If": 58, "Return": 7}
31
256
31
["len", "self.out.write", "self.out.write", "isspace", "self.out.write", "self.out.write", "find", "self.out.write", "getattr", "self.out.write", "self.out.write", "keyword.iskeyword", "endswith", "line.find", "endswith", "line.find", "toktext.lower", "self.lasttext.lower", "toktext.find", "url.find", "url.find", "url.split", "lstrip", "toktext.isspace", "self.out.write", "toktext.isspace", "self.out.write", "toktext.find", "escape", "escape", "getattr"]
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 Parser.The function start at line 1315 and ends at 1570. It contains 175 lines of code and it has a cyclomatic complexity of 81. It takes 6 parameters, represented as [1315.0] and does not return any value. It declares 31.0 functions, It has 31.0 functions called inside which are ["len", "self.out.write", "self.out.write", "isspace", "self.out.write", "self.out.write", "find", "self.out.write", "getattr", "self.out.write", "self.out.write", "keyword.iskeyword", "endswith", "line.find", "endswith", "line.find", "toktext.lower", "self.lasttext.lower", "toktext.find", "url.find", "url.find", "url.split", "lstrip", "toktext.isspace", "self.out.write", "toktext.isspace", "self.out.write", "toktext.find", "escape", "escape", "getattr"], 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
Parser
public
0
0
_doSnippetStart
def _doSnippetStart(self):if self.markup == 'HTML':# Start of html snippetself.out.write('<pre>\n')else:# Start of css/xhtml snippetself.out.write(self.colors.get(CODESTART,'<pre class="py">\n'))
2
5
1
39
0
1,574
1,580
1,574
self
[]
None
{"Expr": 2, "If": 1}
3
7
3
["self.out.write", "self.out.write", "self.colors.get"]
0
[]
The function (_doSnippetStart) defined within the public class called Parser.The function start at line 1574 and ends at 1580. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.out.write", "self.out.write", "self.colors.get"].
pasteorg_paste
Parser
public
0
0
_doSnippetEnd
def _doSnippetEnd(self):# End of html snippetself.out.write(self.colors.get(CODEEND,'</pre>\n'))
1
2
1
22
0
1,582
1,584
1,582
self
[]
None
{"Expr": 1}
2
3
2
["self.out.write", "self.colors.get"]
0
[]
The function (_doSnippetEnd) defined within the public class called Parser.The function start at line 1582 and ends at 1584. 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 declares 2.0 functions, and It has 2.0 functions called inside which are ["self.out.write", "self.colors.get"].
pasteorg_paste
Parser
public
0
0
_getFile
def _getFile(self, filepath):try:_file = open(filepath,'r')content = _file.read()_file.close()except Exception:traceback.print_exc()content = ''return content
2
9
2
42
0
1,588
1,596
1,588
self,filepath
[]
Returns
{"Assign": 3, "Expr": 2, "Return": 1, "Try": 1}
4
9
4
["open", "_file.read", "_file.close", "traceback.print_exc"]
0
[]
The function (_getFile) defined within the public class called Parser.The function start at line 1588 and ends at 1596. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1588.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["open", "_file.read", "_file.close", "traceback.print_exc"].
pasteorg_paste
Parser
public
0
0
_doPageStart
def _doPageStart(self):getattr(self, '_do%sStart'%(self.markup))()
1
2
1
19
0
1,598
1,599
1,598
self
[]
None
{"Expr": 1}
1
2
1
["getattr"]
0
[]
The function (_doPageStart) defined within the public class called Parser.The function start at line 1598 and ends at 1599. 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 ["getattr"].
pasteorg_paste
Parser
public
0
0
_doPageHeader
def _doPageHeader(self):if self.header is not None:if ('#$#' in self.header or '#@#' in self.headeror '#%' in self.header):self.out.write(self.header[3:])else:if self.header != '':self.header = self._getFile(self.header)getattr(self, '_do%sHeader'%(self.markup,))()
6
9
1
84
0
1,601
1,609
1,601
self
[]
None
{"Assign": 1, "Expr": 2, "If": 3}
3
9
3
["self.out.write", "self._getFile", "getattr"]
0
[]
The function (_doPageHeader) defined within the public class called Parser.The function start at line 1601 and ends at 1609. It contains 9 lines of code and it has a cyclomatic complexity of 6. 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 ["self.out.write", "self._getFile", "getattr"].
pasteorg_paste
Parser
public
0
0
_doPageFooter
def _doPageFooter(self):if self.footer is not None:if self.footer.find('#$#') != -1 or \self.footer.find('#@#') != -1 or \self.footer.find('#%#') != -1:self.out.write(self.footer[3:])else:if self.footer != '':self.footer = self._getFile(self.footer)getattr(self, '_do%sFooter'%(self.markup,))()
6
10
1
102
0
1,611
1,620
1,611
self
[]
None
{"Assign": 1, "Expr": 2, "If": 3}
6
10
6
["self.footer.find", "self.footer.find", "self.footer.find", "self.out.write", "self._getFile", "getattr"]
0
[]
The function (_doPageFooter) defined within the public class called Parser.The function start at line 1611 and ends at 1620. It contains 10 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["self.footer.find", "self.footer.find", "self.footer.find", "self.out.write", "self._getFile", "getattr"].
pasteorg_paste
Parser
public
0
0
_doPageEnd
def _doPageEnd(self):getattr(self, '_do%sEnd'%(self.markup))()
1
2
1
19
0
1,622
1,623
1,622
self
[]
None
{"Expr": 1}
1
2
1
["getattr"]
0
[]
The function (_doPageEnd) defined within the public class called Parser.The function start at line 1622 and ends at 1623. 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 ["getattr"].
pasteorg_paste
Parser
public
0
0
_getLineNumber
def _getLineNumber(self):num = self.linenumself.linenum+=1returnstr(num).rjust(5)+" "
1
4
1
27
0
1,628
1,631
1,628
self
[]
Returns
{"Assign": 1, "AugAssign": 1, "Return": 1}
2
4
2
["rjust", "str"]
0
[]
The function (_getLineNumber) defined within the public class called Parser.The function start at line 1628 and ends at 1631. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["rjust", "str"].
pasteorg_paste
Parser
public
0
0
_getTags
def _getTags(self, key):# style tagsreturn self.colors.get(key, self.colors[NAME])[0]
1
2
2
26
0
1,633
1,635
1,633
self,key
[]
Returns
{"Return": 1}
1
3
1
["self.colors.get"]
0
[]
The function (_getTags) defined within the public class called Parser.The function start at line 1633 and ends at 1635. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1633.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.colors.get"].
pasteorg_paste
Parser
public
0
0
_getForeColor
def _getForeColor(self, key):# get text foreground color, if not set to blackcolor = self.colors.get(key, self.colors[NAME])[1]if color[:1] != '#':color = '#000000'return color
2
5
2
41
0
1,637
1,642
1,637
self,key
[]
Returns
{"Assign": 2, "If": 1, "Return": 1}
1
6
1
["self.colors.get"]
0
[]
The function (_getForeColor) defined within the public class called Parser.The function start at line 1637 and ends at 1642. It contains 5 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1637.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.colors.get"].
pasteorg_paste
Parser
public
0
0
_getBackColor
def _getBackColor(self, key):# get text background colorreturn self.colors.get(key, self.colors[NAME])[2]
1
2
2
26
0
1,644
1,646
1,644
self,key
[]
Returns
{"Return": 1}
1
3
1
["self.colors.get"]
0
[]
The function (_getBackColor) defined within the public class called Parser.The function start at line 1644 and ends at 1646. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1644.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.colors.get"].
pasteorg_paste
Parser
public
0
0
_getPageColor
def _getPageColor(self):# get page background colorreturn self.colors.get(PAGEBACKGROUND, '#FFFFFF')
1
2
1
16
0
1,648
1,650
1,648
self
[]
Returns
{"Return": 1}
1
3
1
["self.colors.get"]
0
[]
The function (_getPageColor) defined within the public class called Parser.The function start at line 1648 and ends at 1650. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.colors.get"].
pasteorg_paste
Parser
public
0
0
_getStyle
def _getStyle(self, key):# get the token style from the color dictionaryreturn self.colors.get(key, self.colors[NAME])
1
2
2
23
0
1,652
1,654
1,652
self,key
[]
Returns
{"Return": 1}
1
3
1
["self.colors.get"]
0
[]
The function (_getStyle) defined within the public class called Parser.The function start at line 1652 and ends at 1654. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1652.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["self.colors.get"].
pasteorg_paste
Parser
public
0
0
_getMarkupClass
def _getMarkupClass(self, key):# get the markup class name from the markup dictionaryreturn MARKUPDICT.get(key, MARKUPDICT[NAME])
1
2
2
19
0
1,656
1,658
1,656
self,key
[]
Returns
{"Return": 1}
1
3
1
["MARKUPDICT.get"]
0
[]
The function (_getMarkupClass) defined within the public class called Parser.The function start at line 1656 and ends at 1658. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1656.0], and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["MARKUPDICT.get"].
pasteorg_paste
Parser
public
0
0
_getDocumentCreatedBy
def _getDocumentCreatedBy(self):return '<!--This document created by %s ver.%s on: %s-->\n'%(__title__,__version__,time.ctime())
1
3
1
19
0
1,660
1,662
1,660
self
[]
Returns
{"Return": 1}
1
3
1
["time.ctime"]
0
[]
The function (_getDocumentCreatedBy) defined within the public class called Parser.The function start at line 1660 and ends at 1662. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["time.ctime"].
pasteorg_paste
Parser
public
0
0
_doHTMLStart
def _doHTMLStart(self):# Start of html pageself.out.write('<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01//EN">\n')self.out.write('<html><head><title>%s</title>\n'%(self.title,))self.out.write(self._getDocumentCreatedBy())self.out.write('<meta http-equiv="Content-Type" \content="text/html;charset=iso-8859-1">\n')# Get backgroundself.out.write('</head><body bgcolor="%s">\n'%self._getPageColor())self._doPageHeader()self.out.write('<pre>')
1
10
1
75
0
1,666
1,677
1,666
self
[]
None
{"Expr": 7}
9
12
9
["self.out.write", "self.out.write", "self.out.write", "self._getDocumentCreatedBy", "self.out.write", "self.out.write", "self._getPageColor", "self._doPageHeader", "self.out.write"]
0
[]
The function (_doHTMLStart) defined within the public class called Parser.The function start at line 1666 and ends at 1677. It contains 10 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 ["self.out.write", "self.out.write", "self.out.write", "self._getDocumentCreatedBy", "self.out.write", "self.out.write", "self._getPageColor", "self._doPageHeader", "self.out.write"].
pasteorg_paste
Parser
public
0
0
_getHTMLStyles
def _getHTMLStyles(self, toktype, toktext):# Get stylestags, color = self.colors.get(toktype, self.colors[NAME])[:2]#tagstart=[]tagend=[]# check for styles and set them if needed.if 'b' in tags:#Boldtagstart.append('<b>')tagend.append('</b>')if 'i' in tags:#Italicstagstart.append('<i>')tagend.append('</i>')if 'u' in tags:#Underlinetagstart.append('<u>')tagend.append('</u>')# HTML tags should be paired like so : <b><i><u>Doh!</u></i></b>tagend.reverse()starttags="".join(tagstart)endtags="".join(tagend)return starttags,endtags,color
4
17
3
118
0
1,679
1,698
1,679
self,toktype,toktext
[]
Returns
{"Assign": 5, "Expr": 7, "If": 3, "Return": 1}
10
20
10
["self.colors.get", "tagstart.append", "tagend.append", "tagstart.append", "tagend.append", "tagstart.append", "tagend.append", "tagend.reverse", "join", "join"]
0
[]
The function (_getHTMLStyles) defined within the public class called Parser.The function start at line 1679 and ends at 1698. It contains 17 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [1679.0], and this function return a value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["self.colors.get", "tagstart.append", "tagend.append", "tagstart.append", "tagend.append", "tagstart.append", "tagend.append", "tagend.reverse", "join", "join"].
pasteorg_paste
Parser
public
0
0
_sendHTMLText
def _sendHTMLText(self, toktype, toktext):numberlinks = self.numberlinks# If it is an error, set a red box around the bad tokens# older browsers should ignore itif toktype == ERRORTOKEN:style = ' style="border: solid 1.5pt #FF0000;"'else:style = ''# Get stylesstarttag, endtag, color = self._getHTMLStyles(toktype, toktext)# This is a hack to 'fix' multi-linestrings.# Multi-line strings are treated as only one token# even though they can be several physical lines.# That makes it hard to spot the start of a line,# because at this level all we know about are tokens.if toktext.count(self.LINENUMHOLDER):# rip apart the string and separate it by line.# count lines and change all linenum token to line numbers.# embedded all the new font tags inside the current one.# Do this by ending the tag first then writing our new tags,# then starting another font tag exactly like the first one.if toktype == LINENUMBER:splittext = toktext.split(self.LINENUMHOLDER)else:splittext = toktext.split(self.LINENUMHOLDER+' ')store = [splittext.pop(0)]lstarttag, lendtag, lcolor = self._getHTMLStyles(LINENUMBER, toktext)count = len(splittext)for item in splittext:num =self._getLineNumber()if numberlinks:numstrip = num.strip()content = '<a name="%s" href="#%s">%s</a>' \%(numstrip,numstrip,num)else:content = numif count <= 1:endtag,starttag = '',''linenumber = ''.join([endtag,'<font color=', lcolor, '>',lstarttag, content, lendtag, '</font>' ,starttag])store.append(linenumber+item)toktext = ''.join(store)# send text## Output optimization# skip font tag if black text, but styles will still be sent. (b,u,i)if color !='#000000':startfont = '<font color="%s"%s>'%(color, style)endfont = '</font>'else:startfont, endfont = ('','')if toktype != LINENUMBER:self.out.write(''.join([startfont,starttag, toktext,endtag,endfont]))else:self.out.write(toktext)return
9
40
3
270
0
1,700
1,757
1,700
self,toktype,toktext
[]
None
{"Assign": 19, "Expr": 3, "For": 1, "If": 7, "Return": 1}
15
58
15
["self._getHTMLStyles", "toktext.count", "toktext.split", "toktext.split", "splittext.pop", "self._getHTMLStyles", "len", "self._getLineNumber", "num.strip", "join", "store.append", "join", "self.out.write", "join", "self.out.write"]
0
[]
The function (_sendHTMLText) defined within the public class called Parser.The function start at line 1700 and ends at 1757. It contains 40 lines of code and it has a cyclomatic complexity of 9. It takes 3 parameters, represented as [1700.0] and does not return any value. It declares 15.0 functions, and It has 15.0 functions called inside which are ["self._getHTMLStyles", "toktext.count", "toktext.split", "toktext.split", "splittext.pop", "self._getHTMLStyles", "len", "self._getLineNumber", "num.strip", "join", "store.append", "join", "self.out.write", "join", "self.out.write"].
pasteorg_paste
Parser
public
0
0
_doHTMLHeader
def _doHTMLHeader(self):# Optionalif self.header != '':self.out.write('%s\n'%self.header)else:color = self._getForeColor(NAME)self.out.write('<b><font color="%s"># %s \<br># %s</font></b><hr>\n'% (color, self.title, time.ctime()))
2
8
1
56
0
1,759
1,767
1,759
self
[]
None
{"Assign": 1, "Expr": 2, "If": 1}
4
9
4
["self.out.write", "self._getForeColor", "self.out.write", "time.ctime"]
0
[]
The function (_doHTMLHeader) defined within the public class called Parser.The function start at line 1759 and ends at 1767. It contains 8 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 ["self.out.write", "self._getForeColor", "self.out.write", "time.ctime"].
pasteorg_paste
Parser
public
0
0
_doHTMLFooter
def _doHTMLFooter(self):# Optionalif self.footer != '':self.out.write('%s\n'%self.footer)else:color = self._getForeColor(NAME)self.out.write('<b><font color="%s"> \<hr># %s<br># %s</font></b>\n'% (color, self.title, time.ctime()))
2
8
1
56
0
1,769
1,777
1,769
self
[]
None
{"Assign": 1, "Expr": 2, "If": 1}
4
9
4
["self.out.write", "self._getForeColor", "self.out.write", "time.ctime"]
0
[]
The function (_doHTMLFooter) defined within the public class called Parser.The function start at line 1769 and ends at 1777. It contains 8 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 ["self.out.write", "self._getForeColor", "self.out.write", "time.ctime"].
pasteorg_paste
Parser
public
0
0
_doHTMLEnd
def _doHTMLEnd(self):# End of html pageself.out.write('</pre>\n')# Write a little info at the bottomself._doPageFooter()self.out.write('</body></html>\n')
1
4
1
26
0
1,779
1,784
1,779
self
[]
None
{"Expr": 3}
3
6
3
["self.out.write", "self._doPageFooter", "self.out.write"]
0
[]
The function (_doHTMLEnd) defined within the public class called Parser.The function start at line 1779 and ends at 1784. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["self.out.write", "self._doPageFooter", "self.out.write"].
pasteorg_paste
Parser
public
0
0
_getCSSStyle
def _getCSSStyle(self, key):# Get the tags and colors from the dictionarytags, forecolor, backcolor = self._getStyle(key)style=[]border = Nonebordercolor = Nonetags = tags.lower()if tags:# get the border color if specified# the border color will be appended to# the list after we define a borderif '#' in tags:# border colorstart = tags.find('#')end = start + 7bordercolor = tags[start:end]tags.replace(bordercolor,'',1)# text stylesif 'b' in tags:# Boldstyle.append('font-weight:bold;')else:style.append('font-weight:normal;')if 'i' in tags:# Italicstyle.append('font-style:italic;')if 'u' in tags:# Underlinestyle.append('text-decoration:underline;')# border sizeif 'l' in tags:# thick bordersize='thick'elif 'm' in tags:# medium bordersize='medium'elif 't' in tags:# thin bordersize='thin'else:# defaultsize='medium'# border stylesif 'n' in tags:# inset borderborder='inset'elif 'o' in tags:# outset borderborder='outset'elif 'r' in tags:# ridge borderborder='ridge'elif 'g' in tags:# groove borderborder='groove'elif '=' in tags:# double borderborder='double'elif '.' in tags:# dotted borderborder='dotted'elif '-' in tags:# dashed borderborder='dashed'elif 's' in tags:# solid borderborder='solid'# border type checkseperate_sides=0for side in ['<','>','^','v']:if side in tags:seperate_sides+=1# border box or seperate sidesif seperate_sides==0 and border:style.append('border: %s %s;'%(border,size))else:if border is None: border = 'solid'if 'v' in tags:# bottom borderstyle.append('border-bottom:%s %s;'%(border,size))if '<' in tags:# left borderstyle.append('border-left:%s %s;'%(border,size))if '>' in tags:# right borderstyle.append('border-right:%s %s;'%(border,size))if '^' in tags:# top borderstyle.append('border-top:%s %s;'%(border,size))else:style.append('font-weight:normal;')# css inherited style fix# we have to define our borders before we set colorsif bordercolor:style.append('border-color:%s;'%bordercolor)# text forecolorstyle.append('color:%s;'% forecolor)# text backcolorif backcolor:style.append('background-color:%s;'%backcolor)return self._getMarkupClass(key), ' '.join(style)
28
69
2
382
0
1,788
1,868
1,788
self,key
[]
Returns
{"Assign": 22, "AugAssign": 1, "Expr": 14, "For": 1, "If": 25, "Return": 1}
19
81
19
["self._getStyle", "tags.lower", "tags.find", "tags.replace", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "self._getMarkupClass", "join"]
0
[]
The function (_getCSSStyle) defined within the public class called Parser.The function start at line 1788 and ends at 1868. It contains 69 lines of code and it has a cyclomatic complexity of 28. It takes 2 parameters, represented as [1788.0], and this function return a value. It declares 19.0 functions, and It has 19.0 functions called inside which are ["self._getStyle", "tags.lower", "tags.find", "tags.replace", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "style.append", "self._getMarkupClass", "join"].
pasteorg_paste
Parser
public
0
0
_sendCSSStyle
def _sendCSSStyle(self, external=0):""" create external and internal style sheets"""styles = []external += self.externalif not external:styles.append('<style type="text/css">\n<!--\n')# Get page background color and write styles ignore any we don't knowstyles.append('body { background:%s; }\n'%self._getPageColor())# write out the various css stylesfor key in MARKUPDICT:styles.append('.%s { %s }\n'%self._getCSSStyle(key))# If you want to style the pre tag you must modify the color dict.#Example:#lite[PY] = .py {border: solid thin #000000;background:#555555}\n'''styles.append(self.colors.get(PY, '.py { }\n'))# Extra css can be added here# add CSSHOOK to the color dict if you need it.# Example:#lite[CSSHOOK] = """.mytag { border: solid thin #000000; } \n# .myothertag { font-weight:bold; )\n"""styles.append(self.colors.get(CSSHOOK,''))if not self.external: styles.append('--></style>\n')return ''.join(styles)
4
13
2
108
0
1,870
1,893
1,870
self,external
[]
Returns
{"Assign": 1, "AugAssign": 1, "Expr": 7, "For": 1, "If": 2, "Return": 1}
11
24
11
["styles.append", "styles.append", "self._getPageColor", "styles.append", "self._getCSSStyle", "styles.append", "self.colors.get", "styles.append", "self.colors.get", "styles.append", "join"]
0
[]
The function (_sendCSSStyle) defined within the public class called Parser.The function start at line 1870 and ends at 1893. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [1870.0], and this function return a value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["styles.append", "styles.append", "self._getPageColor", "styles.append", "self._getCSSStyle", "styles.append", "self.colors.get", "styles.append", "self.colors.get", "styles.append", "join"].
pasteorg_paste
Parser
public
0
0
_doCSSStart
def _doCSSStart(self):# Start of css/html 4.01 pageself.out.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">\n')self.out.write('<html><head><title>%s</title>\n'%(self.title,))self.out.write(self._getDocumentCreatedBy())self.out.write('<meta http-equiv="Content-Type" \content="text/html;charset=iso-8859-1">\n')self._doCSSStyleSheet()self.out.write('</head>\n<body>\n')# Write a little info at the top.self._doPageHeader()self.out.write(self.colors.get(CODESTART,'<pre class="py">\n'))return
1
11
1
84
0
1,895
1,907
1,895
self
[]
None
{"Expr": 8, "Return": 1}
10
13
10
["self.out.write", "self.out.write", "self.out.write", "self._getDocumentCreatedBy", "self.out.write", "self._doCSSStyleSheet", "self.out.write", "self._doPageHeader", "self.out.write", "self.colors.get"]
0
[]
The function (_doCSSStart) defined within the public class called Parser.The function start at line 1895 and ends at 1907. It contains 11 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 10.0 functions, and It has 10.0 functions called inside which are ["self.out.write", "self.out.write", "self.out.write", "self._getDocumentCreatedBy", "self.out.write", "self._doCSSStyleSheet", "self.out.write", "self._doPageHeader", "self.out.write", "self.colors.get"].
pasteorg_paste
Parser
public
0
0
_doCSSStyleSheet
def _doCSSStyleSheet(self):if not self.external:# write an embedded style sheetself.out.write(self._sendCSSStyle())else:# write a link to an external style sheetself.out.write('<link rel="stylesheet" \href="pystyle.css" type="text/css">')return
2
7
1
34
0
1,909
1,917
1,909
self
[]
None
{"Expr": 2, "If": 1, "Return": 1}
3
9
3
["self.out.write", "self._sendCSSStyle", "self.out.write"]
0
[]
The function (_doCSSStyleSheet) defined within the public class called Parser.The function start at line 1909 and ends at 1917. 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 declares 3.0 functions, and It has 3.0 functions called inside which are ["self.out.write", "self._sendCSSStyle", "self.out.write"].
pasteorg_paste
Parser
public
0
0
_sendCSSText
def _sendCSSText(self, toktype, toktext):# This is a hack to 'fix' multi-line strings.# Multi-line strings are treated as only one token# even though they can be several physical lines.# That makes it hard to spot the start of a line,# because at this level all we know about are tokens.markupclass = MARKUPDICT.get(toktype, MARKUPDICT[NAME])# if it is a LINENUMBER type then we can skip the restif toktext == self.LINESTART and toktype == LINENUMBER:self.out.write('<span class="py_line">')returnif toktext.count(self.LINENUMHOLDER):# rip apart the string and separate it by line# count lines and change all linenum token to line numbers# also convert linestart and lineend tokens# <linestart> <lnumstart> lnum <lnumend> text <lineend>#################################################newmarkup = MARKUPDICT.get(LINENUMBER, MARKUPDICT[NAME])lstartspan = '<span class="%s">'%(newmarkup,)if toktype == LINENUMBER:splittext = toktext.split(self.LINENUMHOLDER)else:splittext = toktext.split(self.LINENUMHOLDER+' ')store = []# we have already seen the first linenumber token# so we can skip the first onestore.append(splittext.pop(0))for item in splittext:num = self._getLineNumber()if self.numberlinks:numstrip = num.strip()content= '<a name="%s" href="#%s">%s</a>' \%(numstrip,numstrip,num)else:content = numlinenumber= ''.join([lstartspan,content,'</span>'])store.append(linenumber+item)toktext = ''.join(store)if toktext.count(self.LINESTART):# wraps the textline in a line span# this adds a lot of kludges, is it really worth it?store = []parts = toktext.split(self.LINESTART+' ')# handle the first part differently# the whole token gets wraqpped in a span later onfirst = parts.pop(0)# place spans before the newlinepos = first.rfind('\n')if pos != -1:first=first[:pos]+'</span></span>'+first[pos:]store.append(first)#process the rest of the stringfor item in parts:#handle line numbers if presentif self.dolinenums:item = item.replace('</span>', '</span><span class="%s">'%(markupclass,))else:item = '<span class="%s">%s'%(markupclass,item)# add endings for line and string tokenspos = item.rfind('\n')if pos != -1:item=item[:pos]+'</span></span>\n'store.append(item)# add start tags for linestoktext = '<span class="py_line">'.join(store)# Send textif toktype != LINENUMBER:if toktype == TEXT and self.textFlag == 'DIV':startspan = '<div class="%s">'%(markupclass,)endspan = '</div>'elif toktype == TEXT and self.textFlag == 'RAW':startspan,endspan = ('','')else:startspan = '<span class="%s">'%(markupclass,)endspan = '</span>'self.out.write(''.join([startspan, toktext, endspan]))else:self.out.write(toktext)return
17
57
3
420
0
1,919
1,998
1,919
self,toktype,toktext
[]
None
{"Assign": 27, "Expr": 7, "For": 2, "If": 11, "Return": 2}
25
80
25
["MARKUPDICT.get", "self.out.write", "toktext.count", "MARKUPDICT.get", "toktext.split", "toktext.split", "store.append", "splittext.pop", "self._getLineNumber", "num.strip", "join", "store.append", "join", "toktext.count", "toktext.split", "parts.pop", "first.rfind", "store.append", "item.replace", "item.rfind", "store.append", "join", "self.out.write", "join", "self.out.write"]
0
[]
The function (_sendCSSText) defined within the public class called Parser.The function start at line 1919 and ends at 1998. It contains 57 lines of code and it has a cyclomatic complexity of 17. It takes 3 parameters, represented as [1919.0] and does not return any value. It declares 25.0 functions, and It has 25.0 functions called inside which are ["MARKUPDICT.get", "self.out.write", "toktext.count", "MARKUPDICT.get", "toktext.split", "toktext.split", "store.append", "splittext.pop", "self._getLineNumber", "num.strip", "join", "store.append", "join", "toktext.count", "toktext.split", "parts.pop", "first.rfind", "store.append", "item.replace", "item.rfind", "store.append", "join", "self.out.write", "join", "self.out.write"].
pasteorg_paste
Parser
public
0
0
_doCSSHeader
def _doCSSHeader(self):if self.header != '':self.out.write('%s\n'%self.header)else:name = MARKUPDICT.get(NAME)self.out.write('<div class="%s"># %s <br> \# %s</div><hr>\n'%(name, self.title, time.ctime()))
2
7
1
56
0
2,000
2,006
2,000
self
[]
None
{"Assign": 1, "Expr": 2, "If": 1}
4
7
4
["self.out.write", "MARKUPDICT.get", "self.out.write", "time.ctime"]
0
[]
The function (_doCSSHeader) defined within the public class called Parser.The function start at line 2000 and ends at 2006. 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 declares 4.0 functions, and It has 4.0 functions called inside which are ["self.out.write", "MARKUPDICT.get", "self.out.write", "time.ctime"].
pasteorg_paste
Parser
public
0
0
_doCSSFooter
def _doCSSFooter(self):# Optionalif self.footer != '':self.out.write('%s\n'%self.footer)else:self.out.write('<hr><div class="%s"># %s <br> \# %s</div>\n'%(MARKUPDICT.get(NAME),self.title, time.ctime()))
2
6
1
53
0
2,008
2,014
2,008
self
[]
None
{"Expr": 2, "If": 1}
4
7
4
["self.out.write", "self.out.write", "MARKUPDICT.get", "time.ctime"]
0
[]
The function (_doCSSFooter) defined within the public class called Parser.The function start at line 2008 and ends at 2014. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.out.write", "self.out.write", "MARKUPDICT.get", "time.ctime"].
pasteorg_paste
Parser
public
0
0
_doCSSEnd
def _doCSSEnd(self):# End of css/html pageself.out.write(self.colors.get(CODEEND,'</pre>\n'))# Write a little info at the bottomself._doPageFooter()self.out.write('</body></html>\n')return
1
5
1
36
0
2,016
2,022
2,016
self
[]
None
{"Expr": 3, "Return": 1}
4
7
4
["self.out.write", "self.colors.get", "self._doPageFooter", "self.out.write"]
0
[]
The function (_doCSSEnd) defined within the public class called Parser.The function start at line 2016 and ends at 2022. 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 4.0 functions, and It has 4.0 functions called inside which are ["self.out.write", "self.colors.get", "self._doPageFooter", "self.out.write"].
pasteorg_paste
Parser
public
0
0
_doXHTMLStart
def _doXHTMLStart(self):# XHTML is really just XML + HTML 4.01.# We only need to change the page headers,# and a few tags to get valid XHTML.# Start of xhtml pageself.out.write('<?xml version="1.0"?>\n \<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n \<html xmlns="http://www.w3.org/1999/xhtml">\n')self.out.write('<head><title>%s</title>\n'%(self.title,))self.out.write(self._getDocumentCreatedBy())self.out.write('<meta http-equiv="Content-Type" \content="text/html;charset=iso-8859-1"/>\n')self._doXHTMLStyleSheet()self.out.write('</head>\n<body>\n')# Write a little info at the top.self._doPageHeader()self.out.write(self.colors.get(CODESTART,'<pre class="py">\n'))return
1
14
1
84
0
2,026
2,044
2,026
self
[]
None
{"Expr": 8, "Return": 1}
10
19
10
["self.out.write", "self.out.write", "self.out.write", "self._getDocumentCreatedBy", "self.out.write", "self._doXHTMLStyleSheet", "self.out.write", "self._doPageHeader", "self.out.write", "self.colors.get"]
0
[]
The function (_doXHTMLStart) defined within the public class called Parser.The function start at line 2026 and ends at 2044. 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 10.0 functions, and It has 10.0 functions called inside which are ["self.out.write", "self.out.write", "self.out.write", "self._getDocumentCreatedBy", "self.out.write", "self._doXHTMLStyleSheet", "self.out.write", "self._doPageHeader", "self.out.write", "self.colors.get"].
pasteorg_paste
Parser
public
0
0
_doXHTMLStyleSheet
def _doXHTMLStyleSheet(self):if not self.external:# write an embedded style sheetself.out.write(self._sendCSSStyle())else:# write a link to an external style sheetself.out.write('<link rel="stylesheet" \href="pystyle.css" type="text/css"/>\n')return
2
7
1
34
0
2,046
2,054
2,046
self
[]
None
{"Expr": 2, "If": 1, "Return": 1}
3
9
3
["self.out.write", "self._sendCSSStyle", "self.out.write"]
0
[]
The function (_doXHTMLStyleSheet) defined within the public class called Parser.The function start at line 2046 and ends at 2054. 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 declares 3.0 functions, and It has 3.0 functions called inside which are ["self.out.write", "self._sendCSSStyle", "self.out.write"].
pasteorg_paste
Parser
public
0
0
_sendXHTMLText
def _sendXHTMLText(self, toktype, toktext):self._sendCSSText(toktype, toktext)
1
2
3
17
0
2,056
2,057
2,056
self,toktype,toktext
[]
None
{"Expr": 1}
1
2
1
["self._sendCSSText"]
0
[]
The function (_sendXHTMLText) defined within the public class called Parser.The function start at line 2056 and ends at 2057. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [2056.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["self._sendCSSText"].
pasteorg_paste
Parser
public
0
0
_doXHTMLHeader
def _doXHTMLHeader(self):# Optionalif self.header:self.out.write('%s\n'%self.header)else:name = MARKUPDICT.get(NAME)self.out.write('<div class="%s"># %s <br/> \# %s</div><hr/>\n '%(name, self.title, time.ctime()))
2
8
1
54
0
2,059
2,067
2,059
self
[]
None
{"Assign": 1, "Expr": 2, "If": 1}
4
9
4
["self.out.write", "MARKUPDICT.get", "self.out.write", "time.ctime"]
0
[]
The function (_doXHTMLHeader) defined within the public class called Parser.The function start at line 2059 and ends at 2067. It contains 8 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 ["self.out.write", "MARKUPDICT.get", "self.out.write", "time.ctime"].
pasteorg_paste
Parser
public
0
0
_doXHTMLFooter
def _doXHTMLFooter(self):# Optionalif self.footer:self.out.write('%s\n'%self.footer)else:self.out.write('<hr/><div class="%s"># %s <br/> \# %s</div>\n'%(MARKUPDICT.get(NAME), self.title, time.ctime()))
2
6
1
51
0
2,069
2,075
2,069
self
[]
None
{"Expr": 2, "If": 1}
4
7
4
["self.out.write", "self.out.write", "MARKUPDICT.get", "time.ctime"]
0
[]
The function (_doXHTMLFooter) defined within the public class called Parser.The function start at line 2069 and ends at 2075. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.out.write", "self.out.write", "MARKUPDICT.get", "time.ctime"].
pasteorg_paste
Parser
public
0
0
_doXHTMLEnd
def _doXHTMLEnd(self):self._doCSSEnd()
1
2
1
10
0
2,077
2,078
2,077
self
[]
None
{"Expr": 1}
1
2
1
["self._doCSSEnd"]
0
[]
The function (_doXHTMLEnd) defined within the public class called Parser.The function start at line 2077 and ends at 2078. 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 ["self._doCSSEnd"].
pasteorg_paste
NoDefault
public
0
0
__repr__
def __repr__(self):return '<NoDefault>'
1
2
1
7
0
10
11
10
self
[]
Returns
{"Return": 1}
0
2
0
[]
29
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"]
The function (__repr__) defined within the public class called NoDefault.The function start at line 10 and ends at 11. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 29.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3659669_pyopenapi_pyswagger.pyswagger.tests.v1_2.test_app_py.AppTestCase.test_ref", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Array.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3696868_turbogears_ming.ming.schema_py.Object.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3712456_stefanfoulis_django_phonenumber_field.phonenumber_field.phonenumber_py.PhoneNumber.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Number.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917268_lilott8_bioscript.compiler.data_structures.variable_py.Reagent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953196_wangzheng0822_algo.python.28_heap.heap_py.Heap.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963858_jaraco_path.path.__init___py.Path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967182_asarnow_pyem.pyem.util.util_py.chimera_xform2str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.cnf_py.Contraction.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.contingent_problem_py.ContingentProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.unified_planning.model.htn.hierarchical_problem_py.HierarchicalProblem.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68778225_osuakatsuki_gulag.app.objects.score_py.Score.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.__init___py.BlitzObjectWrapper.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.gateway.utils_py.ServiceOptsDict.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero.util.concurrency_py.AtExitEvent.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906343_ome_omero_py.src.omero_ext.path_py.path.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.contracts.vyper.decoder_utils_py._Struct.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70179132_vyperlang_titanoboa.boa.util.abi_py.Address.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70391654_fkie_cad_logprep.logprep.processor.base.rule_py.Rule.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fd_models_py.test_model_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70618802_lumicks_pylake.lumicks.pylake.fitting.tests.test_fit_py.test_fit_reprs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.individual_py.ObjectSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.ontology.utils_py.DataStructureSet.__repr__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.72771145_simphony_simphony_osp.simphony_osp.session.session_py.SessionSet.__repr__"].
pasteorg_paste
public
public
0
0
reset
def reset():"""Return a string that resets the CGI and browser to a known state."""return '''<!--: spamContent-Type: text/html<body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --><body bgcolor="#f0f0f8"><font color="#f0f0f8" size="-5"> --> --></font> </font> </font> </script> </object> </blockquote> </pre></table> </table> </table> </table> </table> </font> </font> </font>'''
1
8
0
7
0
21
29
21
[]
Returns
{"Expr": 1, "Return": 1}
0
9
0
[]
24
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.conftest_py.reset_progress", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_parser_py.TootParser.reset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.monitor_py.Monitor.handle_crash_ok", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.monitor_py.Monitor.handle_pcount", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.monitor_py.Monitor.handle_ping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.analysis_py.Entropy.reset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964649_karlicoss_hpi.src.my.core.core_config_py.test_active_modules", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964649_karlicoss_hpi.src.my.core.tests.test_cachew_py.test_cachew_dir_none", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964649_karlicoss_hpi.src.my.core.util_py.test_module_detection", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.up_test_cases.builtin.multiagent.procter_and_gamble_py.get_test_cases", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.code_runner_py.CodeRunner._reset_state", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.profile_py.Profile.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.ui.backend_py.Backend._load_profile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.ui.util_py.InputListenerModel._joy_event_cb", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.test.integration.conftest_py.profile_from_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.test.unit.test_logical_device_py.reset_logical", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_random_py.test_cuda_rng_tracker", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_random_py.test_model_parallel_cuda_manual_seed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94528933_amazon_braket_amazon_braket_pennylane_plugin_python.src.braket.pennylane_plugin.braket_device_py.BraketQubitDevice.reset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556497_datawhores_OF_Scraper.ofscraper.classes.table.app_py.InputApp.reset_all_inputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.Hook.handle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.taskwiki.main_py.Mappings.task_info_or_vimwiki_follow_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.taskwiki.main_py.Meta.inspect_viewport", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.taskwiki.main_py.SelectedTasks.__init__"]
The function (reset) defined within the public class called public.The function start at line 21 and ends at 29. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It has 24.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537219_anthraxx_diffoscope.tests.conftest_py.reset_progress", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3637699_magicalraccoon_tootstream.src.tootstream.toot_parser_py.TootParser.reset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.monitor_py.Monitor.handle_crash_ok", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.monitor_py.Monitor.handle_pcount", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653223_gsand_mark2.mk2.plugins.monitor_py.Monitor.handle_ping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3665918_alvinwan_neural_backed_decision_trees.nbdt.analysis_py.Entropy.reset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964649_karlicoss_hpi.src.my.core.core_config_py.test_active_modules", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964649_karlicoss_hpi.src.my.core.tests.test_cachew_py.test_cachew_dir_none", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964649_karlicoss_hpi.src.my.core.util_py.test_module_detection", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.68272342_aiplan4eu_unified_planning.up_test_cases.builtin.multiagent.procter_and_gamble_py.get_test_cases", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.code_runner_py.CodeRunner._reset_state", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.profile_py.Profile.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.ui.backend_py.Backend._load_profile", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.gremlin.ui.util_py.InputListenerModel._joy_event_cb", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.test.integration.conftest_py.profile_from_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76291634_whitemagic_joystickgremlin.test.unit.test_logical_device_py.reset_logical", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_random_py.test_cuda_rng_tracker", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464099_genggui001_megatron_deepspeed_llama.megatron.mpu.tests.test_random_py.test_model_parallel_cuda_manual_seed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94528933_amazon_braket_amazon_braket_pennylane_plugin_python.src.braket.pennylane_plugin.braket_device_py.BraketQubitDevice.reset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556497_datawhores_OF_Scraper.ofscraper.classes.table.app_py.InputApp.reset_all_inputs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.Hook.handle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.taskwiki.main_py.Mappings.task_info_or_vimwiki_follow_link", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.taskwiki.main_py.Meta.inspect_viewport", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95404293_tbabej_taskwiki.taskwiki.main_py.SelectedTasks.__init__"].
pasteorg_paste
public
public
0
0
small
def small(text):if text:return '<small>' + text + '</small>'else:return ''
2
5
1
18
0
35
39
35
text
[]
Returns
{"If": 1, "Return": 2}
0
5
0
[]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_blanks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_fonts"]
The function (small) defined within the public class called public.The function start at line 35 and ends at 39. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It 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.cgitb_hook_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_blanks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_fonts"].
pasteorg_paste
public
public
0
0
strong
def strong(text):if text:return '<strong>' + text + '</strong>'else:return ''
2
5
1
18
0
42
46
42
text
[]
Returns
{"If": 1, "Return": 2}
0
5
0
[]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_blanks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_fonts"]
The function (strong) defined within the public class called public.The function start at line 42 and ends at 46. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It 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.cgitb_hook_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_blanks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_fonts"].
pasteorg_paste
public
public
0
0
grey
def grey(text):if text:return '<font color="#909090">' + text + '</font>'else:return ''
2
5
1
18
0
49
53
49
text
[]
Returns
{"If": 1, "Return": 2}
0
5
0
[]
3
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_blanks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_fonts"]
The function (grey) defined within the public class called public.The function start at line 49 and ends at 53. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It 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.cgitb_hook_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_blanks", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_fonts"].
pasteorg_paste
public
public
0
0
lookup
def lookup(name, frame, locals):"""Find the value for a given name in the given environment."""if name in locals:return 'local', locals[name]if name in frame.f_globals:return 'global', frame.f_globals[name]if '__builtins__' in frame.f_globals:builtins = frame.f_globals['__builtins__']if isinstance(builtins, dict):if name in builtins:return 'builtin', builtins[name]else:if hasattr(builtins, name):return 'builtin', getattr(builtins, name)return None, __UNDEF__
7
14
3
96
1
56
70
56
name,frame,locals
['builtins']
Returns
{"Assign": 1, "Expr": 1, "If": 6, "Return": 5}
3
15
3
["isinstance", "hasattr", "getattr"]
5
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record._parse_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.morphologies.__init___py.Branch.list_labels", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.80499140_perrygeo_python_rasterstats.src.rasterstats.utils_py.remap_categories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464225_pylint_dev_pylint_django.pylint_django.transforms.fields_py.apply_type_shim", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.scanvars"]
The function (lookup) defined within the public class called public.The function start at line 56 and ends at 70. It contains 14 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [56.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["isinstance", "hasattr", "getattr"], It has 5.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.response_py.Record._parse_values", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.55413314_dbbs_lab_bsb.packages.bsb_core.bsb.morphologies.__init___py.Branch.list_labels", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.80499140_perrygeo_python_rasterstats.src.rasterstats.utils_py.remap_categories", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94464225_pylint_dev_pylint_django.pylint_django.transforms.fields_py.apply_type_shim", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.scanvars"].
pasteorg_paste
public
public
0
0
scanvars
def scanvars(reader, frame, locals):"""Scan one logical line of Python and look up values of variables used."""vars, lasttoken, parent, prefix, value = [], None, None, '', __UNDEF__for ttype, token, start, end, line in tokenize.generate_tokens(reader):if ttype == tokenize.NEWLINE:breakif ttype == tokenize.NAME and token not in keyword.kwlist:if lasttoken == '.':if parent is not __UNDEF__:value = getattr(parent, token, __UNDEF__)vars.append((prefix + token, prefix, value))else:where, value = lookup(token, frame, locals)vars.append((token, where, value))elif token == '.':prefix += lasttoken + '.'parent = valueelse:parent, prefix = None, ''lasttoken = tokenreturn vars
8
20
3
158
3
73
93
73
reader,frame,locals
['lasttoken', 'value', 'parent']
Returns
{"Assign": 6, "AugAssign": 1, "Expr": 3, "For": 1, "If": 5, "Return": 1}
5
21
5
["tokenize.generate_tokens", "getattr", "vars.append", "lookup", "vars.append"]
2
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.text"]
The function (scanvars) defined within the public class called public.The function start at line 73 and ends at 93. It contains 20 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [73.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["tokenize.generate_tokens", "getattr", "vars.append", "lookup", "vars.append"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.cgitb_hook_py.text"].
pasteorg_paste
public
public
0
0
html.reader
def reader(lnum=[lnum]):highlight[lnum[0]] = 1try:return linecache.getline(file, lnum[0])finally:lnum[0] += 1
2
6
1
40
0
136
141
136
null
[]
None
null
0
0
0
null
0
null
The function (html.reader) defined within the public class called public.The function start at line 136 and ends at 141. 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
html
def html(einfo, context=5):"""Return a nice HTML document describing a given traceback."""etype, evalue, etb = einfoif isinstance(etype, type):etype = etype.__name__pyver = 'Python ' + sys.version.split()[0] + ': ' + sys.executabledate = time.ctime(time.time())head = f'''<body bgcolor="#f0f0f8"><table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"><tr bgcolor="#6622aa"><td valign=bottom>&nbsp;<br><font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>{html_escape(str(etype))}</strong></big></big></font></td><td align=right valign=bottom><font color="#ffffff" face="helvetica, arial">{pyver}<br>{date}</font></td></tr></table><p>A problem occurred in a Python script.Here is the sequence offunction calls leading up to the error, in the order they occurred.</p>'''indent = '<tt>' + small('&nbsp;' * 5) + '&nbsp;</tt>'frames = []records = inspect.getinnerframes(etb, context)for frame, file, lnum, func, lines, index in records:if file:file = os.path.abspath(file)link = f'<a href="file://{file}">{pydoc.html.escape(file)}</a>'else:file = link = '?'args, varargs, varkw, locals = inspect.getargvalues(frame)call = ''if func != '?':call = 'in ' + strong(pydoc.html.escape(func))if func != "<module>":call += inspect.formatargvalues(args, varargs, varkw, locals,formatvalue=lambda value: '=' + pydoc.html.repr(value))highlight = {}def reader(lnum=[lnum]):highlight[lnum[0]] = 1try:return linecache.getline(file, lnum[0])finally:lnum[0] += 1vars = scanvars(reader, frame, locals)rows = ['<tr><td bgcolor="#d8bbff"><big>&nbsp;</big>'f'{link} {call}</td></tr>']if index is not None:i = lnum - indexfor line in lines:num = small('&nbsp;' * (5-len(str(i))) + str(i)) + '&nbsp;'if i in highlight:line = f'<tt>=&gt;{num}{pydoc.html.preformat(line)}</tt>'rows.append(f'<tr><td bgcolor="#ffccee">{line}</td></tr>')else:line = f'<tt>&nbsp;&nbsp;{num}{pydoc.html.preformat(line)}</tt>'rows.append(f'<tr><td>{grey(line)}</td></tr>')i += 1done, dump = {}, []for name, where, value in vars:if name in done:continuedone[name] = 1if value is not __UNDEF__:if where in ('global', 'builtin'):name = f'<em>{where}</em> {strong(name)}'elif where == 'local':name = strong(name)else:name = where + strong(name.split('.')[-1])dump.append(f'{name}&nbsp;= {pydoc.html.repr(value)}')else:dump.append(name + ' <em>undefined</em>')rows.append('<tr><td>{}</td></tr>'.format(small(grey(', '.join(dump)))))frames.append('''<table width="100%" cellspacing=0 cellpadding=0 border=0>{}</table>'''.format('\n'.join(rows)))exception = [f'<p>{strong(pydoc.html.escape(str(etype)))}:' f' {pydoc.html.escape(str(evalue))}']for name in dir(evalue):if name[:1] == '_':continuevalue = pydoc.html.repr(getattr(evalue, name))exception.append(f'\n<br>{indent}{name}&nbsp;=\n{value}')return head + ''.join(frames) + ''.join(exception) + '''<!-- The above is a description of an error in a Python program, formatted for a web browser because the 'cgitb' module was enabled.In case you are not reading this in a web browser, here is the original traceback:{}-->'''.format(pydoc.html.escape(''.join(traceback.format_exception(etype, evalue, etb))))
16
77
2
525
19
96
199
96
einfo,context
['i', 'date', 'etype', 'vars', 'exception', 'frames', 'rows', 'highlight', 'head', 'line', 'num', 'file', 'pyver', 'records', 'call', 'name', 'value', 'indent', 'link']
Returns
{"Assign": 29, "AugAssign": 3, "Expr": 8, "For": 4, "If": 11, "Return": 2, "Try": 1}
56
104
56
["isinstance", "sys.version.split", "time.ctime", "time.time", "html_escape", "str", "small", "inspect.getinnerframes", "os.path.abspath", "pydoc.html.escape", "inspect.getargvalues", "strong", "pydoc.html.escape", "inspect.formatargvalues", "pydoc.html.repr", "linecache.getline", "scanvars", "small", "len", "str", "str", "pydoc.html.preformat", "rows.append", "pydoc.html.preformat", "rows.append", "grey", "strong", "strong", "strong", "name.split", "dump.append", "pydoc.html.repr", "dump.append", "rows.append", "format", "small", "grey", "join", "frames.append", "format", "join", "strong", "pydoc.html.escape", "str", "pydoc.html.escape", "str", "dir", "pydoc.html.repr", "getattr", "exception.append", "join", "join", "format", "pydoc.html.escape", "join", "traceback.format_exception"]
9
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.pyquery.pyquery_py.PyQuery.text", "_.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.TestCallback.test_S_this_inside_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestCallback.test_parameterless_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestHTMLParser.test_replaceWith_with_function", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestManipulating.test_html_replacement", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestManipulating.test_remove", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.attr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_html"]
The function (html) defined within the public class called public.The function start at line 96 and ends at 199. It contains 77 lines of code and it has a cyclomatic complexity of 16. It takes 2 parameters, represented as [96.0], and this function return a value. It declares 56.0 functions, It has 56.0 functions called inside which are ["isinstance", "sys.version.split", "time.ctime", "time.time", "html_escape", "str", "small", "inspect.getinnerframes", "os.path.abspath", "pydoc.html.escape", "inspect.getargvalues", "strong", "pydoc.html.escape", "inspect.formatargvalues", "pydoc.html.repr", "linecache.getline", "scanvars", "small", "len", "str", "str", "pydoc.html.preformat", "rows.append", "pydoc.html.preformat", "rows.append", "grey", "strong", "strong", "strong", "name.split", "dump.append", "pydoc.html.repr", "dump.append", "rows.append", "format", "small", "grey", "join", "frames.append", "format", "join", "strong", "pydoc.html.escape", "str", "pydoc.html.escape", "str", "dir", "pydoc.html.repr", "getattr", "exception.append", "join", "join", "format", "pydoc.html.escape", "join", "traceback.format_exception"], It has 9.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.pyquery.pyquery_py.PyQuery.text", "_.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.TestCallback.test_S_this_inside_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestCallback.test_parameterless_callback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestHTMLParser.test_replaceWith_with_function", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestManipulating.test_html_replacement", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.test_pyquery_py.TestManipulating.test_remove", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.util.template_py.attr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_html"].