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<...
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 decl...
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 ...
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(va...
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 decl...
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/javasc...
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 declare...
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:v...
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 1...
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...
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", "_.cont...
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 ...
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 c...
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 Excep...
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 call...
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...
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 ...
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 ...
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:...
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 functio...
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 = l...
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....
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....
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 in...
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....
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 ["...
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_b...
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 calle...
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", "_.cont...
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 calle...
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 calle...
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.a...
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.ArborAda...
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...
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....
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 ["...
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 = m...
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.trunca...
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 ...
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....
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 ...
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.ArborAda...
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 functio...
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....
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 ...
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.ArborAda...
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 functio...
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....
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...
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...
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...
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 % ba...
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 ca...
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 use...
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 f...
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...
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.gdriv...
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...
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.Get...
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....
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 insid...
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 th...
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", "str2f...
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...
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 i...
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=co...
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...
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(...
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 calle...
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()Pa...
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 call...
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.lo...
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 call...
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, mar...
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 c...
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=head...
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 call...
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...
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 functio...
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 o...
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", "_.conten...
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 call...
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...
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", "_print...
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 functi...
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 functio...
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 functi...
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 ...
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 ins...
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_Cr...
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...
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", "_.cont...
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 i...
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.sele...
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...
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....
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....
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...
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 fu...
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....
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....
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....
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....
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 = '...
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....
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...
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.dolinenum...
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._doSnippet...
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",...
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 cal...
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 (toke...
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....
43
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.renderers_py.GeoJSON.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3508200_spiral_project_daybed.daybed.schemas.validators_py.PermissionValidator.__call__", "_.content...
The function (__call__) defined within the public class called 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 ...
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 function...
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 ...
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 functi...
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 call...
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 ...
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...
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...
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 funct...
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...
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 fun...
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 fun...
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...
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 functio...
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 f...
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 ...
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 b...
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 ...
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 ta...
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...
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, tokte...
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 fu...
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 ...
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 ...
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 cal...
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 c...
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....
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())# wr...
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....
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')...
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...
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 functio...
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(tokt...
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", "stor...
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 fu...
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 c...
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 c...
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 call...
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 \<...
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 functio...
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 funct...
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 functi...
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...
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...
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 calle...
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...
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 [...
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></tabl...
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.MyDri...
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 ["_.con...
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.Dat...
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 ["_.cont...
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.Dat...
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 ["_.con...
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.Dat...
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 ["_.conte...
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 na...
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_labe...
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 i...
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 toke...
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...
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%" cell...
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", "st...
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.Outp...
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...