project_name string | class_name string | class_modifiers string | class_implements int64 | class_extends int64 | function_name string | function_body string | cyclomatic_complexity int64 | NLOC int64 | num_parameter int64 | num_token int64 | num_variable int64 | start_line int64 | end_line int64 | function_index int64 | function_params string | function_variable string | function_return_type string | function_body_line_type string | function_num_functions int64 | function_num_lines int64 | outgoing_function_count int64 | outgoing_function_names string | incoming_function_count int64 | incoming_function_names string | lexical_representation string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
pasteorg_paste | public | public | 0 | 0 | test_logger | def test_logger():fn = setup_file('test_logger.log')rep = LogReporter(filename=fn,show_hidden_frames=False)try:int('a')except Exception:exc_data = collector.collect_exception(*sys.exc_info())else:assert 0rep.report(exc_data)content = open(fn).read()assert len(content.splitlines()) == 4assert 'ValueError' in contentassert 'int' in contentassert 'test_reporter.py' in contentassert 'test_logger' in contenttry:1 / 0except Exception:exc_data = collector.collect_exception(*sys.exc_info())else:assert 0rep.report(exc_data)content = open(fn).read()print(content)assert len(content.splitlines()) == 8assert 'ZeroDivisionError' in content | 3 | 29 | 0 | 151 | 4 | 20 | 49 | 20 | ['fn', 'exc_data', 'rep', 'content'] | None | {"Assign": 6, "Expr": 5, "Try": 2} | 18 | 30 | 18 | ["setup_file", "LogReporter", "int", "collector.collect_exception", "sys.exc_info", "rep.report", "read", "open", "len", "content.splitlines", "collector.collect_exception", "sys.exc_info", "rep.report", "read", "open", "print", "len", "content.splitlines"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.ducktape.tests.runner_client_py.RunnerClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.ducktape.tests.test_py.TestContext.logger"] | The function (test_logger) defined within the public class called public.The function start at line 20 and ends at 49. It contains 29 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 18.0 functions, It has 18.0 functions called inside which are ["setup_file", "LogReporter", "int", "collector.collect_exception", "sys.exc_info", "rep.report", "read", "open", "len", "content.splitlines", "collector.collect_exception", "sys.exc_info", "rep.report", "read", "open", "print", "len", "content.splitlines"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.ducktape.tests.runner_client_py.RunnerClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3706078_confluentinc_ducktape.ducktape.tests.test_py.TestContext.logger"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fonts | def test_fonts():text = "Hello Robbie!"assert small(text) == f'<small>{text}</small>'assert strong(text) == f'<strong>{text}</strong>'assert grey(text) == f'<font color="#909090">{text}</font>' | 1 | 5 | 0 | 31 | 1 | 12 | 16 | 12 | ['text'] | None | {"Assign": 1} | 3 | 5 | 3 | ["small", "strong", "grey"] | 0 | [] | The function (test_fonts) defined within the public class called public.The function start at line 12 and ends at 16. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["small", "strong", "grey"]. | |
pasteorg_paste | public | public | 0 | 0 | test_blanks | def test_blanks():assert small('') == ''assert strong('') == ''assert grey('') == '' | 1 | 4 | 0 | 25 | 0 | 19 | 22 | 19 | [] | None | {} | 3 | 4 | 3 | ["small", "strong", "grey"] | 0 | [] | The function (test_blanks) defined within the public class called public.The function start at line 19 and ends at 22. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["small", "strong", "grey"]. | |
pasteorg_paste | public | public | 0 | 0 | test_html | def test_html():try:raise ValueError("Hello World")except ValueError as err:# If the html was templated we could do a bit more here.# At least check that we get details on what we just raised.out = html(sys.exc_info())assert 'ValueError' in outassert str(err) in out | 2 | 7 | 0 | 37 | 1 | 25 | 33 | 25 | ['out'] | None | {"Assign": 1, "Try": 1} | 4 | 9 | 4 | ["ValueError", "html", "sys.exc_info", "str"] | 0 | [] | The function (test_html) defined within the public class called public.The function start at line 25 and ends at 33. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["ValueError", "html", "sys.exc_info", "str"]. | |
pasteorg_paste | public | public | 0 | 0 | test_text | def test_text():try:raise ValueError("Hello World")except ValueError:out = text(sys.exc_info())assert 'ValueError' in outassert 'Hello World' in out | 2 | 7 | 0 | 32 | 1 | 36 | 42 | 36 | ['out'] | None | {"Assign": 1, "Try": 1} | 3 | 7 | 3 | ["ValueError", "text", "sys.exc_info"] | 0 | [] | The function (test_text) defined within the public class called public.The function start at line 36 and ends at 42. It contains 7 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["ValueError", "text", "sys.exc_info"]. | |
pasteorg_paste | public | public | 0 | 0 | dummy_error | def dummy_error():raise RuntimeError("Hello World") | 1 | 2 | 0 | 9 | 0 | 45 | 46 | 45 | [] | None | {} | 1 | 2 | 1 | ["RuntimeError"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_syshook_no_logdir_default_format"] | The function (dummy_error) defined within the public class called public.The function start at line 45 and ends at 46. 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, It has 1.0 function called inside which is ["RuntimeError"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_cgitb_hook_py.test_syshook_no_logdir_default_format"]. | |
pasteorg_paste | public | public | 0 | 0 | test_syshook_no_logdir_default_format | def test_syshook_no_logdir_default_format(format, capsys, tmp_path):excepthook = sys.excepthookargs = {'logdir': tmp_path}if format:args['format'] = formathook = Hook(**args)try:dummy_error()except RuntimeError as err:hook(err.__class__, err, err.__traceback__)finally:sys.excepthook = excepthooklog_files = list(tmp_path.glob('*.txt' if format == 'text' else '*.html'))assert len(log_files) == 1log_file = log_files[0]out = log_file.open('r').read()log_file.unlink()assert 'A problem occurred in a Python script.' in outassert 'RuntimeError' in outassert 'Hello World' in outassert 'test_syshook_no_logdir_default_format' in outif format == 'text':assert 'in dummy_error' in outelse:assert 'in <strong>dummy_error</strong>' in outassert '<p>' in outassert '</p>' in outassert 'Content-Type: text/html' not in outassert 'contains the description of this error' not in outcaptured = capsys.readouterr()assert not captured.erroutput = captured.outif format != 'text':assert 'Content-Type: text/html' in outputassert out in outputassert log_file.name in outputassert 'contains the description of this error' in output | 7 | 37 | 3 | 202 | 8 | 50 | 91 | 50 | format,capsys,tmp_path | ['out', 'args', 'output', 'log_files', 'hook', 'captured', 'log_file', 'excepthook'] | None | {"Assign": 10, "Expr": 3, "If": 3, "Try": 1} | 11 | 42 | 11 | ["Hook", "dummy_error", "hook", "list", "tmp_path.glob", "len", "read", "log_file.open", "log_file.unlink", "capsys.readouterr", "pytest.mark.parametrize"] | 0 | [] | The function (test_syshook_no_logdir_default_format) defined within the public class called public.The function start at line 50 and ends at 91. It contains 37 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [50.0] and does not return any value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["Hook", "dummy_error", "hook", "list", "tmp_path.glob", "len", "read", "log_file.open", "log_file.unlink", "capsys.readouterr", "pytest.mark.parametrize"]. |
pasteorg_paste | public | public | 0 | 0 | test_timedelta | def test_timedelta():assert('' == normalize_timedelta(""))assert('0.10' == normalize_timedelta("6m"))assert('0.50' == normalize_timedelta("30m"))assert('0.75' == normalize_timedelta("45m"))assert('1.00' == normalize_timedelta("60 min"))assert('1.50' == normalize_timedelta("90min"))assert('1.50' == normalize_timedelta("1.50"))assert('4.50' == normalize_timedelta("4 : 30"))assert('1.50' == normalize_timedelta("1h 30m"))assert('1.00' == normalize_timedelta("1"))assert('1.00' == normalize_timedelta("1 hour"))assert('8.00' == normalize_timedelta("480 mins"))assert('8.00' == normalize_timedelta("8h"))assert('0.50' == normalize_timedelta("0.5"))assert('0.10' == normalize_timedelta(".1"))assert('0.50' == normalize_timedelta(".50"))assert('0.75' == normalize_timedelta("0.75")) | 1 | 18 | 0 | 157 | 0 | 14 | 31 | 14 | [] | None | {} | 17 | 18 | 17 | ["normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta"] | 0 | [] | The function (test_timedelta) defined within the public class called public.The function start at line 14 and ends at 31. It contains 18 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 17.0 functions, and It has 17.0 functions called inside which are ["normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta", "normalize_timedelta"]. | |
pasteorg_paste | public | public | 0 | 0 | test_time | def test_time():assert('03:00 PM' == normalize_time("3p", ampm=True))assert('03:00 AM' == normalize_time("300", ampm=True))assert('03:22 AM' == normalize_time("322", ampm=True))assert('01:22 PM' == normalize_time("1322", ampm=True))assert('01:00 PM' == normalize_time("13", ampm=True))assert('12:00 PM' == normalize_time("noon", ampm=True))assert("06:00 PM" == normalize_time("6", ampm=True))assert("01:00 PM" == normalize_time("1", ampm=True))assert("07:00 AM" == normalize_time("7", ampm=True))assert("01:00 PM" == normalize_time("1 pm", ampm=True))assert("03:30 PM" == normalize_time("3:30 pm", ampm=True))assert("03:30 PM" == normalize_time("3 30 pm", ampm=True))assert("03:30 PM" == normalize_time("3 30 P.M.", ampm=True))assert("12:00 PM" == normalize_time("0", ampm=True))assert("12:00 AM" == normalize_time("1200 AM", ampm=True)) | 1 | 16 | 0 | 199 | 0 | 33 | 48 | 33 | [] | None | {} | 15 | 16 | 15 | ["normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time"] | 0 | [] | The function (test_time) defined within the public class called public.The function start at line 33 and ends at 48. It contains 16 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 15.0 functions, and It has 15.0 functions called inside which are ["normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time", "normalize_time"]. | |
pasteorg_paste | public | public | 0 | 0 | test_date.assertError | def assertError(val):try:normalize_date(val)except (TypeError,ValueError):returnraise ValueError("type error expected", val) | 2 | 6 | 1 | 26 | 0 | 119 | 124 | 119 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_date.assertError) defined within the public class called public.The function start at line 119 and ends at 124. 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 | test_date | def test_date():tm = localtime()yr = tm[0]mo = tm[1]assert(date(yr,4,11)== parse_date("411"))assert(date(yr,4,11)== parse_date("APR11"))assert(date(yr,4,11)== parse_date("11APR"))assert(date(yr,4,11)== parse_date("4 11"))assert(date(yr,4,11)== parse_date("11 APR"))assert(date(yr,4,11)== parse_date("APR 11"))assert(date(yr,mo,11) == parse_date("11"))assert(date(yr,4,1) == parse_date("APR"))assert(date(yr,4,11)== parse_date("4/11"))assert(date.today() == parse_date("today"))assert(date.today() == parse_date("now"))assert(None == parse_date(""))assert('' == normalize_date(None))assert('2001-02-03' == normalize_date("20010203"))assert('1999-04-11' == normalize_date("1999 4 11"))assert('1999-04-11' == normalize_date("1999 APR 11"))assert('1999-04-11' == normalize_date("APR 11 1999"))assert('1999-04-11' == normalize_date("11 APR 1999"))assert('1999-04-11' == normalize_date("4 11 1999"))assert('1999-04-01' == normalize_date("1999 APR"))assert('1999-04-01' == normalize_date("1999 4"))assert('1999-04-01' == normalize_date("4 1999"))assert('1999-04-01' == normalize_date("APR 1999"))assert('1999-01-01' == normalize_date("1999"))assert('1999-04-01' == normalize_date("1APR1999"))assert('2001-04-01' == normalize_date("1APR2001"))assert('1999-04-18' == normalize_date("1999-04-11+7"))assert('1999-04-18' == normalize_date("1999-04-11 7"))assert('1999-04-01' == normalize_date("1 apr 1999"))assert('1999-04-11' == normalize_date("11 apr 1999"))assert('1999-04-11' == normalize_date("11 Apr 1999"))assert('1999-04-11' == normalize_date("11-apr-1999"))assert('1999-04-11' == normalize_date("11 April 1999"))assert('1999-04-11' == normalize_date("11 APRIL 1999"))assert('1999-04-11' == normalize_date("11 april 1999"))assert('1999-04-11' == normalize_date("11 aprick 1999"))assert('1999-04-11' == normalize_date("APR 11, 1999"))assert('1999-04-11' == normalize_date("4/11/1999"))assert('1999-04-11' == normalize_date("4-11-1999"))assert('1999-04-11' == normalize_date("1999-4-11"))assert('1999-04-11' == normalize_date("19990411"))assert('1999-01-01' == normalize_date("1 Jan 1999"))assert('1999-02-01' == normalize_date("1 Feb 1999"))assert('1999-03-01' == normalize_date("1 Mar 1999"))assert('1999-04-01' == normalize_date("1 Apr 1999"))assert('1999-05-01' == normalize_date("1 May 1999"))assert('1999-06-01' == normalize_date("1 Jun 1999"))assert('1999-07-01' == normalize_date("1 Jul 1999"))assert('1999-08-01' == normalize_date("1 Aug 1999"))assert('1999-09-01' == normalize_date("1 Sep 1999"))assert('1999-10-01' == normalize_date("1 Oct 1999"))assert('1999-11-01' == normalize_date("1 Nov 1999"))assert('1999-12-01' == normalize_date("1 Dec 1999"))assert('1999-04-30' == normalize_date("1999-4-30"))assert('2000-02-29' == normalize_date("29 FEB 2000"))assert('2001-02-28' == normalize_date("28 FEB 2001"))assert('2004-02-29' == normalize_date("29 FEB 2004"))assert('2100-02-28' == normalize_date("28 FEB 2100"))assert('1900-02-28' == normalize_date("28 FEB 1900"))def assertError(val):try:normalize_date(val)except (TypeError,ValueError):returnraise ValueError("type error expected", val)assertError("2000-13-11")assertError("APR 99")assertError("29 FEB 1900")assertError("29 FEB 2100")assertError("29 FEB 2001")assertError("1999-4-31")assertError("APR 99")assertError("20301")assertError("020301")assertError("1APR99")assertError("1APR01")assertError("1 APR 99")assertError("1 APR 01")assertError("11/5/01") | 1 | 78 | 0 | 681 | 3 | 50 | 139 | 50 | ['yr', 'tm', 'mo'] | None | {"Assign": 3, "Expr": 15, "Return": 1, "Try": 1} | 87 | 90 | 87 | ["localtime", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date.today", "parse_date", "date.today", "parse_date", "parse_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "ValueError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError"] | 0 | [] | The function (test_date) defined within the public class called public.The function start at line 50 and ends at 139. It contains 78 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 87.0 functions, and It has 87.0 functions called inside which are ["localtime", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date", "parse_date", "date.today", "parse_date", "date.today", "parse_date", "parse_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "normalize_date", "ValueError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError", "assertError"]. | |
pasteorg_paste | public | public | 0 | 0 | gen_result | def gen_result(data, environ):encoding = 'latin-1'fake_stdin = BytesIO(data.encode(encoding))fake_stdin.seek(0)form = FieldStorage(fp=fake_stdin, environ=environ, encoding=encoding)return {k: form.getlist(k) if isinstance(v, list) else v.valuefor k, v in dict(form).items()} | 3 | 7 | 2 | 78 | 3 | 72 | 78 | 72 | data,environ | ['encoding', 'form', 'fake_stdin'] | Returns | {"Assign": 3, "Expr": 1, "Return": 1} | 8 | 7 | 8 | ["BytesIO", "data.encode", "fake_stdin.seek", "FieldStorage", "isinstance", "form.getlist", "items", "dict"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_field_storage_py.test_fieldstorage_multipart_maxline", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_field_storage_py.test_qs_and_form_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_field_storage_py.test_qs_and_form_data_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_field_storage_py.test_qs_and_url_encode"] | The function (gen_result) defined within the public class called public.The function start at line 72 and ends at 78. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [72.0], and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["BytesIO", "data.encode", "fake_stdin.seek", "FieldStorage", "isinstance", "form.getlist", "items", "dict"], It has 4.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_field_storage_py.test_fieldstorage_multipart_maxline", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_field_storage_py.test_qs_and_form_data", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_field_storage_py.test_qs_and_form_data_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_util.test_field_storage_py.test_qs_and_url_encode"]. |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_properties | def test_fieldstorage_properties():fs = FieldStorage()assert not fsassert "FieldStorage" in repr(fs)assert list(fs) == list(fs.keys())fs.list.append(namedtuple('MockFieldStorage', 'name')('fieldvalue'))assert fs | 1 | 7 | 0 | 51 | 1 | 81 | 87 | 81 | ['fs'] | None | {"Assign": 1, "Expr": 1} | 7 | 7 | 7 | ["FieldStorage", "repr", "list", "list", "fs.keys", "fs.list.append", "namedtuple"] | 0 | [] | The function (test_fieldstorage_properties) defined within the public class called public.The function start at line 81 and ends at 87. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["FieldStorage", "repr", "list", "list", "fs.keys", "fs.list.append", "namedtuple"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_invalid | def test_fieldstorage_invalid():with pytest.raises(TypeError):FieldStorage("not-a-file-obj", environ={"REQUEST_METHOD": "PUT"})with pytest.raises(TypeError):FieldStorage("foo", "bar")fs = FieldStorage(headers={'content-type': 'text/plain'})with pytest.raises(TypeError):bool(fs) | 1 | 8 | 0 | 62 | 1 | 90 | 97 | 90 | ['fs'] | None | {"Assign": 1, "Expr": 3, "With": 3} | 7 | 8 | 7 | ["pytest.raises", "FieldStorage", "pytest.raises", "FieldStorage", "FieldStorage", "pytest.raises", "bool"] | 0 | [] | The function (test_fieldstorage_invalid) defined within the public class called public.The function start at line 90 and ends at 97. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["pytest.raises", "FieldStorage", "pytest.raises", "FieldStorage", "FieldStorage", "pytest.raises", "bool"]. | |
pasteorg_paste | public | public | 0 | 0 | test_strict | def test_strict():for orig, expect in parse_strict_test_cases:env = {'QUERY_STRING': orig}fs = FieldStorage(environ=env)if isinstance(expect, dict):# test dict interfaceassert len(expect) == len(fs)assert len(expect.keys()) == len(fs.keys())assert fs.getvalue("nonexistent field", "default") == "default"# test individual fieldsfor key in expect.keys():expect_val = expect[key]assert key in fsif len(expect_val) > 1:assert fs.getvalue(key) == expect_valelse:assert fs.getvalue(key) == expect_val[0] | 5 | 15 | 0 | 123 | 3 | 100 | 116 | 100 | ['env', 'fs', 'expect_val'] | None | {"Assign": 3, "For": 2, "If": 2} | 13 | 17 | 13 | ["FieldStorage", "isinstance", "len", "len", "len", "expect.keys", "len", "fs.keys", "fs.getvalue", "expect.keys", "len", "fs.getvalue", "fs.getvalue"] | 0 | [] | The function (test_strict) defined within the public class called public.The function start at line 100 and ends at 116. It contains 15 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 13.0 functions, and It has 13.0 functions called inside which are ["FieldStorage", "isinstance", "len", "len", "len", "expect.keys", "len", "fs.keys", "fs.getvalue", "expect.keys", "len", "fs.getvalue", "fs.getvalue"]. | |
pasteorg_paste | public | public | 0 | 0 | test_separator | def test_separator():parse_semicolon = [("x=1;y=2.0", {'x': ['1'], 'y': ['2.0']}),("x=1;y=2.0;z=2-3.%2b0", {'x': ['1'], 'y': ['2.0'], 'z': ['2-3.+0']}),(";", ValueError("bad query field: ''")),(";;", ValueError("bad query field: ''")),("=;a", ValueError("bad query field: 'a'")),(";b=a", ValueError("bad query field: ''")),("b;=a", ValueError("bad query field: 'b'")),("a=a+b;b=b+c", {'a': ['a b'], 'b': ['b c']}),("a=a+b;a=b+a", {'a': ['a b', 'b a']}),]for orig, expect in parse_semicolon:env = {'QUERY_STRING': orig}fs = FieldStorage(separator=';', environ=env)if isinstance(expect, dict):for key in expect.keys():expect_val = expect[key]assert key in fsif len(expect_val) > 1:assert fs.getvalue(key) == expect_valelse:assert fs.getvalue(key) == expect_val[0] | 5 | 23 | 0 | 211 | 4 | 119 | 141 | 119 | ['env', 'fs', 'expect_val', 'parse_semicolon'] | None | {"Assign": 4, "For": 2, "If": 2} | 11 | 23 | 11 | ["ValueError", "ValueError", "ValueError", "ValueError", "ValueError", "FieldStorage", "isinstance", "expect.keys", "len", "fs.getvalue", "fs.getvalue"] | 0 | [] | The function (test_separator) defined within the public class called public.The function start at line 119 and ends at 141. It contains 23 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["ValueError", "ValueError", "ValueError", "ValueError", "ValueError", "FieldStorage", "isinstance", "expect.keys", "len", "fs.getvalue", "fs.getvalue"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_readline.__init__ | def __init__(self, file):self.file = fileself.numcalls = 0 | 1 | 3 | 2 | 17 | 0 | 150 | 152 | 150 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_fieldstorage_readline.__init__) defined within the public class called public.The function start at line 150 and ends at 152. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [150.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_readline.readline | def readline(self, size=None):self.numcalls += 1if size:return self.file.readline(size)else:return self.file.readline() | 2 | 6 | 2 | 36 | 0 | 154 | 159 | 154 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_fieldstorage_readline.readline) defined within the public class called public.The function start at line 154 and ends at 159. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [154.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_readline.__getattr__ | def __getattr__(self, name):file = self.__dict__['file']a = getattr(file, name)if not isinstance(a, int):setattr(self, name, a)return a | 2 | 6 | 2 | 42 | 0 | 161 | 166 | 161 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_fieldstorage_readline.__getattr__) defined within the public class called public.The function start at line 161 and ends at 166. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [161.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_readline | def test_fieldstorage_readline():# FieldStorage uses readline, which has the capacity to read all# contents of the input file into memory; we use readline's size argument# to prevent that for files that do not contain any newlines in# non-GET/HEAD requestsclass TestReadlineFile:def __init__(self, file):self.file = fileself.numcalls = 0def readline(self, size=None):self.numcalls += 1if size:return self.file.readline(size)else:return self.file.readline()def __getattr__(self, name):file = self.__dict__['file']a = getattr(file, name)if not isinstance(a, int):setattr(self, name, a)return af = TestReadlineFile(tempfile.TemporaryFile("wb+"))try:f.write(b'x' * 256 * 1024)f.seek(0)env = {'REQUEST_METHOD': 'PUT'}fs = FieldStorage(fp=f, environ=env)try:# if we're not chunking properly, readline is only called twice# (by read_binary); if we are chunking properly, it will be called# 5 times as long as the chunk size is 1 << 16.assert f.numcalls >= 2finally:fs.file.close()finally:f.close() | 3 | 17 | 0 | 86 | 5 | 144 | 182 | 144 | ['env', 'file', 'fs', 'a', 'f'] | Returns | {"Assign": 7, "AugAssign": 1, "Expr": 5, "If": 2, "Return": 3, "Try": 2} | 12 | 39 | 12 | ["self.file.readline", "self.file.readline", "getattr", "isinstance", "setattr", "TestReadlineFile", "tempfile.TemporaryFile", "f.write", "f.seek", "FieldStorage", "fs.file.close", "f.close"] | 0 | [] | The function (test_fieldstorage_readline) defined within the public class called public.The function start at line 144 and ends at 182. It contains 17 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 12.0 functions, and It has 12.0 functions called inside which are ["self.file.readline", "self.file.readline", "getattr", "isinstance", "setattr", "TestReadlineFile", "tempfile.TemporaryFile", "f.write", "f.seek", "FieldStorage", "fs.file.close", "f.close"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_multipart | def test_fieldstorage_multipart():# Test basic FieldStorage multipart parsingenv = {'REQUEST_METHOD': 'POST','CONTENT_TYPE': f'multipart/form-data; boundary={BOUNDARY}','CONTENT_LENGTH': '558'}fp = BytesIO(POSTDATA.encode('latin-1'))fs = FieldStorage(fp, environ=env, encoding="latin-1")assert len(fs.list) == 4expect = [{'name': 'id', 'filename': None, 'value': '1234'},{'name': 'title', 'filename': None, 'value': ''},{'name': 'file', 'filename': 'test.txt', 'value': b'Testing 123.\n'},{'name': 'submit', 'filename': None, 'value': ' Add '}]for x in range(len(fs.list)):for k, exp in expect[x].items():got = getattr(fs.list[x], k)assert got == exp | 3 | 17 | 0 | 158 | 5 | 185 | 202 | 185 | ['env', 'expect', 'got', 'fs', 'fp'] | None | {"Assign": 5, "For": 2} | 8 | 18 | 8 | ["BytesIO", "POSTDATA.encode", "FieldStorage", "len", "range", "len", "items", "getattr"] | 0 | [] | The function (test_fieldstorage_multipart) defined within the public class called public.The function start at line 185 and ends at 202. It contains 17 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["BytesIO", "POSTDATA.encode", "FieldStorage", "len", "range", "len", "items", "getattr"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_multipart_leading_whitespace | def test_fieldstorage_multipart_leading_whitespace():env = {'REQUEST_METHOD': 'POST','CONTENT_TYPE': f'multipart/form-data; boundary={BOUNDARY}','CONTENT_LENGTH': '560'}# Add some leading whitespace to our post data that will cause the# first line to not be the inner boundary.fp = BytesIO(b"\r\n" + POSTDATA.encode('latin-1'))fs = FieldStorage(fp, environ=env, encoding="latin-1")assert len(fs.list) == 4expect = [{'name': 'id', 'filename': None, 'value': '1234'},{'name': 'title', 'filename': None, 'value': ''},{'name': 'file', 'filename': 'test.txt', 'value': b'Testing 123.\n'},{'name': 'submit', 'filename': None, 'value': ' Add '}]for x in range(len(fs.list)):for k, exp in expect[x].items():got = getattr(fs.list[x], k)assert got == exp | 3 | 17 | 0 | 161 | 5 | 205 | 223 | 205 | ['env', 'expect', 'got', 'fs', 'fp'] | None | {"Assign": 5, "For": 2} | 8 | 19 | 8 | ["BytesIO", "POSTDATA.encode", "FieldStorage", "len", "range", "len", "items", "getattr"] | 0 | [] | The function (test_fieldstorage_multipart_leading_whitespace) defined within the public class called public.The function start at line 205 and ends at 223. It contains 17 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["BytesIO", "POSTDATA.encode", "FieldStorage", "len", "range", "len", "items", "getattr"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_multipart_non_ascii | def test_fieldstorage_multipart_non_ascii():# Test basic FieldStorage multipart parsingenv = {'REQUEST_METHOD': 'POST', 'CONTENT_TYPE': f'multipart/form-data; boundary={BOUNDARY}', 'CONTENT_LENGTH': '558'}for encoding in ['iso-8859-1', 'utf-8']:fp = BytesIO(POSTDATA_NON_ASCII.encode(encoding))fs = FieldStorage(fp, environ=env, encoding=encoding)assert len(fs.list) == 1expect = [{'name': 'id', 'filename': None, 'value': '\xe7\xf1\x80'}]for x in range(len(fs.list)):for k, exp in expect[x].items():got = getattr(fs.list[x], k)assert got == exp | 4 | 13 | 0 | 124 | 5 | 226 | 239 | 226 | ['env', 'expect', 'got', 'fs', 'fp'] | None | {"Assign": 5, "For": 3} | 8 | 14 | 8 | ["BytesIO", "POSTDATA_NON_ASCII.encode", "FieldStorage", "len", "range", "len", "items", "getattr"] | 0 | [] | The function (test_fieldstorage_multipart_non_ascii) defined within the public class called public.The function start at line 226 and ends at 239. It contains 13 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 declares 8.0 functions, and It has 8.0 functions called inside which are ["BytesIO", "POSTDATA_NON_ASCII.encode", "FieldStorage", "len", "range", "len", "items", "getattr"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_multipart_maxline.check | def check(content):data = """---123Content-Disposition: form-data; name="upload"; filename="fake.txt"Content-Type: text/plain{}---123--""".replace('\n', '\r\n').format(content)environ = {'CONTENT_LENGTH': str(len(data)),'CONTENT_TYPE': 'multipart/form-data; boundary=-123','REQUEST_METHOD': 'POST',}assert gen_result(data, environ) == {'upload': content.encode('latin1')} | 1 | 15 | 1 | 60 | 0 | 246 | 261 | 246 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (test_fieldstorage_multipart_maxline.check) defined within the public class called public.The function start at line 246 and ends at 261. It contains 15 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_multipart_maxline | def test_fieldstorage_multipart_maxline():# Issue #18167maxline = 1 << 16 - 1def check(content):data = """---123Content-Disposition: form-data; name="upload"; filename="fake.txt"Content-Type: text/plain{}---123--""".replace('\n', '\r\n').format(content)environ = {'CONTENT_LENGTH': str(len(data)),'CONTENT_TYPE': 'multipart/form-data; boundary=-123','REQUEST_METHOD': 'POST',}assert gen_result(data, environ) == {'upload': content.encode('latin1')}check('x' * maxline)check('x' * maxline + '\r')check('x' * maxline + '\r' + 'y' * maxline) | 1 | 6 | 0 | 40 | 3 | 242 | 264 | 242 | ['data', 'maxline', 'environ'] | None | {"Assign": 3, "Expr": 3} | 9 | 23 | 9 | ["format", "replace", "str", "len", "gen_result", "content.encode", "check", "check", "check"] | 0 | [] | The function (test_fieldstorage_multipart_maxline) defined within the public class called public.The function start at line 242 and ends at 264. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["format", "replace", "str", "len", "gen_result", "content.encode", "check", "check", "check"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_multipart_w3c | def test_fieldstorage_multipart_w3c():# Test basic FieldStorage multipart parsing (W3C sample)env = {'REQUEST_METHOD': 'POST','CONTENT_TYPE': f'multipart/form-data; boundary={BOUNDARY_W3}','CONTENT_LENGTH': str(len(POSTDATA_W3))}fp = BytesIO(POSTDATA_W3.encode('latin-1'))fs = FieldStorage(fp, environ=env, encoding="latin-1")assert len(fs.list) == 2assert fs.list[0].name == 'submit-name'assert fs.list[0].value == 'Larry'assert fs.list[1].name == 'files'files = fs.list[1].valueassert len(files) == 2expect = [{'name': None, 'filename': 'file1.txt', 'value': b'... contents of file1.txt ...'},{'name': None, 'filename': 'file2.gif', 'value': b'...contents of file2.gif...'}]for x in range(len(files)):for k, exp in expect[x].items():got = getattr(files[x], k)assert got == exp | 3 | 21 | 0 | 183 | 6 | 267 | 288 | 267 | ['env', 'expect', 'fp', 'fs', 'got', 'files'] | None | {"Assign": 6, "For": 2} | 11 | 22 | 11 | ["str", "len", "BytesIO", "POSTDATA_W3.encode", "FieldStorage", "len", "len", "range", "len", "items", "getattr"] | 0 | [] | The function (test_fieldstorage_multipart_w3c) defined within the public class called public.The function start at line 267 and ends at 288. It contains 21 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["str", "len", "BytesIO", "POSTDATA_W3.encode", "FieldStorage", "len", "len", "range", "len", "items", "getattr"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_part_content_length | def test_fieldstorage_part_content_length():boundary = "JfISa01"postdata = """--JfISa01Content-Disposition: form-data; name="submit-name"Content-Length: 5Larry--JfISa01"""env = {'REQUEST_METHOD': 'POST','CONTENT_TYPE': f'multipart/form-data; boundary={boundary}','CONTENT_LENGTH': str(len(postdata))}fp = BytesIO(postdata.encode('latin-1'))fs = FieldStorage(fp, environ=env, encoding="latin-1")assert len(fs.list) == 1assert fs.list[0].name == 'submit-name'assert fs.list[0].value == 'Larry' | 1 | 17 | 0 | 88 | 5 | 291 | 307 | 291 | ['env', 'postdata', 'fp', 'fs', 'boundary'] | None | {"Assign": 5} | 6 | 17 | 6 | ["str", "len", "BytesIO", "postdata.encode", "FieldStorage", "len"] | 0 | [] | The function (test_fieldstorage_part_content_length) defined within the public class called public.The function start at line 291 and ends at 307. It contains 17 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 6.0 functions, and It has 6.0 functions called inside which are ["str", "len", "BytesIO", "postdata.encode", "FieldStorage", "len"]. | |
pasteorg_paste | public | public | 0 | 0 | test_field_storage_multipart_no_content_length | def test_field_storage_multipart_no_content_length():fp = BytesIO(b"""--MyBoundaryContent-Disposition: form-data; name="my-arg"; filename="foo"Test--MyBoundary--""")env = {"REQUEST_METHOD": "POST","CONTENT_TYPE": "multipart/form-data; boundary=MyBoundary","wsgi.input": fp,}fields = FieldStorage(fp, environ=env)assert len(fields["my-arg"].file.read()) == 5 | 1 | 8 | 0 | 53 | 3 | 310 | 325 | 310 | ['env', 'fp', 'fields'] | None | {"Assign": 3} | 4 | 16 | 4 | ["BytesIO", "FieldStorage", "len", "file.read"] | 0 | [] | The function (test_field_storage_multipart_no_content_length) defined within the public class called public.The function start at line 310 and ends at 325. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["BytesIO", "FieldStorage", "len", "file.read"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fieldstorage_as_context_manager | def test_fieldstorage_as_context_manager():fp = BytesIO(b'x' * 10)env = {'REQUEST_METHOD': 'PUT'}with FieldStorage(fp=fp, environ=env) as fs:content = fs.file.read()assert fs.file.closed is Falseassert fs.file.closed is Trueassert content == 'x' * 10with pytest.raises(ValueError, match='I/O operation on closed file'):fs.file.read() | 1 | 10 | 0 | 84 | 3 | 328 | 337 | 328 | ['env', 'fp', 'content'] | None | {"Assign": 3, "Expr": 1, "With": 2} | 5 | 10 | 5 | ["BytesIO", "FieldStorage", "fs.file.read", "pytest.raises", "fs.file.read"] | 0 | [] | The function (test_fieldstorage_as_context_manager) defined within the public class called public.The function start at line 328 and ends at 337. 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 5.0 functions, and It has 5.0 functions called inside which are ["BytesIO", "FieldStorage", "fs.file.read", "pytest.raises", "fs.file.read"]. | |
pasteorg_paste | public | public | 0 | 0 | test_qs_and_url_encode | def test_qs_and_url_encode():data = "key2=value2x&key3=value3&key4=value4"environ = {'CONTENT_LENGTH': str(len(data)),'CONTENT_TYPE': 'application/x-www-form-urlencoded','QUERY_STRING': 'key1=value1&key2=value2y','REQUEST_METHOD': 'POST',}assert gen_result(data, environ) == _qs_result | 1 | 9 | 0 | 42 | 2 | 348 | 356 | 348 | ['data', 'environ'] | None | {"Assign": 2} | 3 | 9 | 3 | ["str", "len", "gen_result"] | 0 | [] | The function (test_qs_and_url_encode) defined within the public class called public.The function start at line 348 and ends at 356. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["str", "len", "gen_result"]. | |
pasteorg_paste | public | public | 0 | 0 | test_max_num_fields | def test_max_num_fields():# For application/x-www-form-urlencodeddata = '&'.join(['a=a']*11)environ = {'CONTENT_LENGTH': str(len(data)),'CONTENT_TYPE': 'application/x-www-form-urlencoded','REQUEST_METHOD': 'POST',}with pytest.raises(ValueError):FieldStorage(fp=BytesIO(data.encode()),environ=environ,max_num_fields=10,)# For multipart/form-datadata = """---123Content-Disposition: form-data; name="a"3---123Content-Type: application/x-www-form-urlencodeda=4---123Content-Type: application/x-www-form-urlencodeda=5---123--"""environ = {'CONTENT_LENGTH': str(len(data)),'CONTENT_TYPE': 'multipart/form-data; boundary=-123','QUERY_STRING': 'a=1&a=2','REQUEST_METHOD': 'POST',}# 2 GET entities# 1 top level POST entities# 1 entity within the second POST entity# 1 entity within the third POST entitywith pytest.raises(ValueError):FieldStorage(fp=BytesIO(data.encode()),environ=environ,max_num_fields=4,)FieldStorage(fp=BytesIO(data.encode()),environ=environ,max_num_fields=5,) | 1 | 44 | 0 | 149 | 2 | 359 | 411 | 359 | ['data', 'environ'] | None | {"Assign": 4, "Expr": 3, "With": 2} | 16 | 53 | 16 | ["join", "str", "len", "pytest.raises", "FieldStorage", "BytesIO", "data.encode", "str", "len", "pytest.raises", "FieldStorage", "BytesIO", "data.encode", "FieldStorage", "BytesIO", "data.encode"] | 0 | [] | The function (test_max_num_fields) defined within the public class called public.The function start at line 359 and ends at 411. It contains 44 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 16.0 functions, and It has 16.0 functions called inside which are ["join", "str", "len", "pytest.raises", "FieldStorage", "BytesIO", "data.encode", "str", "len", "pytest.raises", "FieldStorage", "BytesIO", "data.encode", "FieldStorage", "BytesIO", "data.encode"]. | |
pasteorg_paste | public | public | 0 | 0 | test_qs_and_form_data | def test_qs_and_form_data():data = """---123Content-Disposition: form-data; name="key2"value2y---123Content-Disposition: form-data; name="key3"value3---123Content-Disposition: form-data; name="key4"value4---123--"""environ = {'CONTENT_LENGTH': str(len(data)),'CONTENT_TYPE': 'multipart/form-data; boundary=-123','QUERY_STRING': 'key1=value1&key2=value2x','REQUEST_METHOD': 'POST',}assert gen_result(data, environ) == _qs_result | 1 | 22 | 0 | 42 | 2 | 414 | 435 | 414 | ['data', 'environ'] | None | {"Assign": 2} | 3 | 22 | 3 | ["str", "len", "gen_result"] | 0 | [] | The function (test_qs_and_form_data) defined within the public class called public.The function start at line 414 and ends at 435. It contains 22 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["str", "len", "gen_result"]. | |
pasteorg_paste | public | public | 0 | 0 | test_qs_and_form_data_file | def test_qs_and_form_data_file():data = """---123Content-Disposition: form-data; name="key2"value2y---123Content-Disposition: form-data; name="key3"value3---123Content-Disposition: form-data; name="key4"value4---123Content-Disposition: form-data; name="upload"; filename="fake.txt"Content-Type: text/plainthis is the content of the fake file---123--"""environ = {'CONTENT_LENGTH': str(len(data)),'CONTENT_TYPE': 'multipart/form-data; boundary=-123','QUERY_STRING': 'key1=value1&key2=value2x','REQUEST_METHOD': 'POST',}result = {**_qs_result,'upload': b'this is the content of the fake file\n'}assert gen_result(data, environ) == result | 1 | 30 | 0 | 53 | 3 | 438 | 467 | 438 | ['result', 'data', 'environ'] | None | {"Assign": 3} | 3 | 30 | 3 | ["str", "len", "gen_result"] | 0 | [] | The function (test_qs_and_form_data_file) defined within the public class called public.The function start at line 438 and ends at 467. It contains 30 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["str", "len", "gen_result"]. | |
pasteorg_paste | public | public | 0 | 0 | test_parse_header | def test_parse_header():assert parse_header("text/plain") == ("text/plain", {})assert parse_header("text/vnd.just.made.this.up ; ") == ("text/vnd.just.made.this.up", {})assert parse_header("text/plain;charset=us-ascii") == ("text/plain", {"charset": "us-ascii"})assert parse_header('text/plain ; charset="us-ascii"') == ("text/plain", {"charset": "us-ascii"})assert parse_header('text/plain ; charset="us-ascii"; another=opt') == ("text/plain", {"charset": "us-ascii", "another": "opt"})assert parse_header('attachment; filename="silly.txt"') == ("attachment", {"filename": "silly.txt"})assert parse_header('attachment; filename="strange;name"') == ("attachment", {"filename": "strange;name"})assert parse_header('attachment; filename="strange;name";size=123;') == ("attachment", {"filename": "strange;name", "size": "123"})assert parse_header('form-data; name="files"; filename="fo\\"o;bar"') == ("form-data", {"name": "files", "filename": 'fo"o;bar'}) | 1 | 18 | 0 | 145 | 0 | 470 | 487 | 470 | [] | None | {} | 9 | 18 | 9 | ["parse_header", "parse_header", "parse_header", "parse_header", "parse_header", "parse_header", "parse_header", "parse_header", "parse_header"] | 0 | [] | The function (test_parse_header) defined within the public class called public.The function start at line 470 and ends at 487. It contains 18 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["parse_header", "parse_header", "parse_header", "parse_header", "parse_header", "parse_header", "parse_header", "parse_header", "parse_header"]. | |
pasteorg_paste | public | public | 0 | 0 | test_parse_mime_type | def test_parse_mime_type():parse = parse_mime_typeassert parse('*/*') == ('*', '*', {})assert parse('text/html') == ('text', 'html', {})assert parse('audio/*; q=0.2') == ('audio', '*', {'q': '0.2'})assert parse('text/x-dvi;level=1') == ('text', 'x-dvi', {'level': '1'})assert parse('image/gif; level=2; q=0.4') == ('image', 'gif', {'level': '2', 'q': '0.4'})assert parse('application/xhtml;level=3;q=0.5') == ('application', 'xhtml', {'level': '3', 'q': '0.5'})assert parse('application/xml') == ('application', 'xml', {})assert parse('application/xml;q=1') == ('application', 'xml', {'q': '1'})assert parse('application/xml ; q=1;b=other') == ('application', 'xml', {'q': '1', 'b': 'other'})assert parse('application/xml ; q=2;b=other') == ('application', 'xml', {'q': '2', 'b': 'other'})assert parse('application/xhtml;q=0.5') == ('application', 'xhtml', {'q': '0.5'})assert parse('application/xhtml;q=0.5;ver=1.2') == ('application', 'xhtml', {'q': '0.5', 'ver': '1.2'}) | 1 | 20 | 0 | 222 | 1 | 15 | 34 | 15 | ['parse'] | None | {"Assign": 1} | 12 | 20 | 12 | ["parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse"] | 0 | [] | The function (test_parse_mime_type) defined within the public class called public.The function start at line 15 and ends at 34. It contains 20 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 12.0 functions, and It has 12.0 functions called inside which are ["parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse"]. | |
pasteorg_paste | public | public | 0 | 0 | test_parse_illformed_mime_type | def test_parse_illformed_mime_type():parse = parse_mime_typeassert parse('*') == ('*', '*', {})assert parse('text') == ('text', '*', {})assert parse('text/') == ('text', '*', {})assert parse('/plain') == ('*', 'plain', {})assert parse('/') == ('*', '*', {})assert parse('text/plain;') == ('text', 'plain', {})assert parse(';q=0.5') == ('*', '*', {'q': '0.5'})assert parse('*; q=.2') == ('*', '*', {'q': '.2'})assert parse('image; q=.7; level=3') == ('image', '*', {'q': '.7', 'level': '3'})assert parse('*;q=1') == ('*', '*', {'q': '1'})assert parse('*;q=') == ('*', '*', {})assert parse('*;=0.5') == ('*', '*', {})assert parse('*;q=foobar') == ('*', '*', {'q': 'foobar'})assert parse('image/gif; level=2; q=2') == ('image', 'gif', {'level': '2', 'q': '2'})assert parse('application/xml;q=') == ('application', 'xml', {})assert parse('application/xml ;q=') == ('application', 'xml', {})assert parse(' *; q =;') == ('*', '*', {})assert parse(' *; q=.2') == ('*', '*', {'q': '.2'}) | 1 | 22 | 0 | 288 | 1 | 36 | 57 | 36 | ['parse'] | None | {"Assign": 1} | 18 | 22 | 18 | ["parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse"] | 0 | [] | The function (test_parse_illformed_mime_type) defined within the public class called public.The function start at line 36 and ends at 57. It contains 22 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 18.0 functions, and It has 18.0 functions called inside which are ["parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse"]. | |
pasteorg_paste | public | public | 0 | 0 | test_parse_media_range | def test_parse_media_range():parse = parse_media_rangeassert parse('application/*;q=0.5') == ('application', '*', {'q': '0.5'})assert parse('text/plain') == ('text', 'plain', {'q': '1'})assert parse('*') == ('*', '*', {'q': '1'})assert parse(';q=0.5') == ('*', '*', {'q': '0.5'})assert parse('*;q=0.5') == ('*', '*', {'q': '0.5'})assert parse('*;q=1') == ('*', '*', {'q': '1'})assert parse('*;q=') == ('*', '*', {'q': '1'})assert parse('*;q=-1') == ('*', '*', {'q': '1'})assert parse('*;q=foobar') == ('*', '*', {'q': '1'})assert parse('*;q=0.0001') == ('*', '*', {'q': '0.0001'})assert parse('*;q=1000.0') == ('*', '*', {'q': '1'})assert parse('*;q=0') == ('*', '*', {'q': '0'})assert parse('*;q=0.0000') == ('*', '*', {'q': '0.0000'})assert parse('*;q=1.0001') == ('*', '*', {'q': '1'})assert parse('*;q=2') == ('*', '*', {'q': '1'})assert parse('*;q=1e3') == ('*', '*', {'q': '1'})assert parse('image/gif; level=2') == ('image', 'gif', {'level': '2', 'q': '1'})assert parse('image/gif; level=2; q=0.5') == ('image', 'gif', {'level': '2', 'q': '0.5'})assert parse('image/gif; level=2; q=2') == ('image', 'gif', {'level': '2', 'q': '1'})assert parse('application/xml') == ('application', 'xml', {'q': '1'})assert parse('application/xml;q=1') == ('application', 'xml', {'q': '1'})assert parse('application/xml;q=') == ('application', 'xml', {'q': '1'})assert parse('application/xml ;q=') == ('application', 'xml', {'q': '1'})assert parse('application/xml ; q=1;b=other') == ('application', 'xml', {'q': '1', 'b': 'other'})assert parse('application/xml ; q=2;b=other') == ('application', 'xml', {'q': '1', 'b': 'other'})assert parse(' *; q =;') == ('*', '*', {'q': '1'})assert parse(' *; q=.2') == ('*', '*', {'q': '.2'}) | 1 | 34 | 0 | 486 | 1 | 59 | 92 | 59 | ['parse'] | None | {"Assign": 1} | 27 | 34 | 27 | ["parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse"] | 0 | [] | The function (test_parse_media_range) defined within the public class called public.The function start at line 59 and ends at 92. It contains 34 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 27.0 functions, and It has 27.0 functions called inside which are ["parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse", "parse"]. | |
pasteorg_paste | public | public | 0 | 0 | test_fitness_and_quality_parsed | def test_fitness_and_quality_parsed():faq = fitness_and_quality_parsedassert faq('*/*;q=0.7', [('foo', 'bar', {'q': '0.5'})]) == (0, 0.5)assert faq('foo/*;q=0.7', [('foo', 'bar', {'q': '0.5'})]) == (100, 0.5)assert faq('*/bar;q=0.7', [('foo', 'bar', {'q': '0.5'})]) == (10, 0.5)assert faq('foo/bar;q=0.7', [('foo', 'bar', {'q': '0.5'})]) == (110, 0.5)assert faq('text/html;q=0.7', [('foo', 'bar', {'q': '0.5'})]) == (-1, 0)assert faq('text/html;q=0.7', [('text', 'bar', {'q': '0.5'})]) == (-1, 0)assert faq('text/html;q=0.7', [('foo', 'html', {'q': '0.5'})]) == (-1, 0)assert faq('text/html;q=0.7', [('text', '*', {'q': '0.5'})]) == (100, 0.5)assert faq('text/html;q=0.7', [('*', 'html', {'q': '0.5'})]) == (10, 0.5)assert faq('text/html;q=0.7', [('*', '*', {'q': '0'}), ('text', 'html', {'q': '0.5'})]) == (110, 0.5)assert faq('text/html;q=0.7', [('*', '*', {'q': '0.5'}), ('audio', '*', {'q': '0'})]) == (0, 0.5)assert faq('audio/mp3;q=0.7', [('*', '*', {'q': '0'}), ('audio', '*', {'q': '0.5'})]) == (100, 0.5)assert faq('*/mp3;q=0.7', [('foo', 'mp3', {'q': '0.5'}), ('audio', '*', {'q': '0'})]) == (10, 0.5)assert faq('audio/mp3;q=0.7', [('audio', 'ogg', {'q': '0'}), ('*', 'mp3', {'q': '0.5'})]) == (10, 0.5)assert faq('audio/mp3;q=0.7', [('*', 'ogg', {'q': '0'}), ('*', 'mp3', {'q': '0.5'})]) == (10, 0.5)assert faq('text/html;q=0.7', [('text', 'plain', {'q': '0'}),('plain', 'html', {'q': '0'}),('text', 'html', {'q': '0.5'}),('html', 'text', {'q': '0'})]) == (110, 0.5)assert faq('text/html;q=0.7;level=2', [('plain', 'html', {'q': '0', 'level': '2'}),('text', '*', {'q': '0.5', 'level': '3'}),('*', 'html', {'q': '0.5', 'level': '2'}),('image', 'gif', {'q': '0.5', 'level': '2'})]) == (100, 0.5)assert faq('text/html;q=0.7;level=2', [('text', 'plain', {'q': '0'}), ('text', 'html', {'q': '0'}),('text', 'plain', {'q': '0', 'level': '2'}),('text', 'html', {'q': '0.5', 'level': '2'}),('*', '*', {'q': '0', 'level': '2'}),('text', 'html', {'q': '0', 'level': '3'})]) == (111, 0.5)assert faq('text/html;q=0.7;level=2;opt=3', [('text', 'html', {'q': '0'}),('text', 'html', {'q': '0', 'level': '2'}),('text', 'html', {'q': '0', 'opt': '3'}),('*', '*', {'q': '0', 'level': '2', 'opt': '3'}),('text', 'html', {'q': '0', 'level': '3', 'opt': '3'}),('text', 'html', {'q': '0.5', 'level': '2', 'opt': '3'}),('*', '*', {'q': '0', 'level': '3', 'opt': '3'})]) == (112, 0.5) | 1 | 56 | 0 | 865 | 1 | 94 | 149 | 94 | ['faq'] | None | {"Assign": 1} | 19 | 56 | 19 | ["faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq"] | 0 | [] | The function (test_fitness_and_quality_parsed) defined within the public class called public.The function start at line 94 and ends at 149. It contains 56 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 19.0 functions, and It has 19.0 functions called inside which are ["faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq", "faq"]. | |
pasteorg_paste | public | public | 0 | 0 | test_quality_parsed | def test_quality_parsed():qp = quality_parsedassert qp('image/gif;q=0.7', [('image', 'jpg', {'q': '0.5'})]) == 0assert qp('image/gif;q=0.7', [('image', '*', {'q': '0.5'})]) == 0.5assert qp('audio/mp3;q=0.7;quality=100', [('*', '*', {'q': '0', 'quality': '100'}),('audio', '*', {'q': '0', 'quality': '100'}),('*', 'mp3', {'q': '0', 'quality': '100'}),('audio', 'mp3', {'q': '0', 'quality': '50'}),('audio', 'mp3', {'q': '0.5', 'quality': '100'}),('audio', 'mp3', {'q': '0.5'})]) == 0.5 | 1 | 11 | 0 | 154 | 1 | 151 | 161 | 151 | ['qp'] | None | {"Assign": 1} | 3 | 11 | 3 | ["qp", "qp", "qp"] | 0 | [] | The function (test_quality_parsed) defined within the public class called public.The function start at line 151 and ends at 161. 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 3.0 functions, and It has 3.0 functions called inside which are ["qp", "qp", "qp"]. | |
pasteorg_paste | public | public | 0 | 0 | test_quality | def test_quality():assert quality('text/html','text/*;q=0.3, text/html;q=0.75, text/html;level=1,'' text/html;level=2;q=0.4, */*;q=0.5') == 0.75assert quality('text/html;level=2','text/*;q=0.3, text/html;q=0.7, text/html;level=1,'' text/html;level=2;q=0.4, */*;q=0.5') == 0.4assert quality('text/plain','text/*;q=0.25, text/html;q=0.7, text/html;level=1,'' text/html;level=2;q=0.4, */*;q=0.5') == 0.25assert quality('plain/text','text/*;q=0.3, text/html;q=0.7, text/html;level=1,'' text/html;level=2;q=0.4, */*;q=0.5') == 0.5assert quality('text/html;level=1','text/*;q=0.3, text/html;q=0.7, text/html;level=1,'' text/html;level=2;q=0.4, */*;q=0.5') == 1assert quality('image/jpeg','text/*;q=0.3, text/html;q=0.7, text/html;level=1,'' text/html;level=2;q=0.4, */*;q=0.5') == 0.5assert quality('text/html;level=2','text/*;q=0.3, text/html;q=0.7, text/html;level=1,'' text/html;level=2;q=0.375, */*;q=0.5') == 0.375assert quality('text/html;level=3','text/*;q=0.3, text/html;q=0.75, text/html;level=1,'' text/html;level=2;q=0.4, */*;q=0.5') == 0.75 | 1 | 25 | 0 | 98 | 0 | 163 | 187 | 163 | [] | None | {} | 8 | 25 | 8 | ["quality", "quality", "quality", "quality", "quality", "quality", "quality", "quality"] | 0 | [] | The function (test_quality) defined within the public class called public.The function start at line 163 and ends at 187. It contains 25 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 8.0 functions, and It has 8.0 functions called inside which are ["quality", "quality", "quality", "quality", "quality", "quality", "quality", "quality"]. | |
pasteorg_paste | public | public | 0 | 0 | test_best_match | def test_best_match():bm = best_matchassert bm([], '*/*') == ''assert bm(['application/xbel+xml', 'text/xml'],'text/*;q=0.5,*/*; q=0.1') == 'text/xml'assert bm(['application/xbel+xml', 'audio/mp3'],'text/*;q=0.5,*/*; q=0.1') == 'application/xbel+xml'assert bm(['application/xbel+xml', 'audio/mp3'],'text/*;q=0.5,*/mp3; q=0.1') == 'audio/mp3'assert bm(['application/xbel+xml', 'text/plain', 'text/html'],'text/*;q=0.5,*/plain; q=0.1') == 'text/plain'assert bm(['application/xbel+xml', 'text/html', 'text/xhtml'],'text/*;q=0.1,*/xhtml; q=0.5') == 'text/html'assert bm(['application/xbel+xml', 'text/html', 'text/xhtml'],'*/html;q=0.1,*/xhtml; q=0.5') == 'text/xhtml'assert bm(['application/xbel+xml', 'application/xml'],'application/xbel+xml') == 'application/xbel+xml'assert bm(['application/xbel+xml', 'application/xml'],'application/xbel+xml; q=1') == 'application/xbel+xml'assert bm(['application/xbel+xml', 'application/xml'],'application/xml; q=1') == 'application/xml'assert bm(['application/xbel+xml', 'application/xml'],'application/*; q=1') == 'application/xbel+xml'assert bm(['application/xbel+xml', 'application/xml'],'*/*, application/xml') == 'application/xml'assert bm(['application/xbel+xml', 'text/xml'],'text/*;q=0.5,*/*; q=0.1') == 'text/xml'assert bm(['application/xbel+xml', 'text/xml'],'text/html,application/atom+xml; q=0.9') == ''assert bm(['application/json', 'text/html'],'application/json, text/javascript, */*') == 'application/json'assert bm(['application/json', 'text/html'],'application/json, text/html;q=0.9') == 'application/json'assert bm(['image/*', 'application/xml'], 'image/png') == 'image/*'assert bm(['image/*', 'application/xml'], 'image/*') == 'image/*' | 1 | 35 | 0 | 244 | 1 | 189 | 223 | 189 | ['bm'] | None | {"Assign": 1} | 18 | 35 | 18 | ["bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm"] | 0 | [] | The function (test_best_match) defined within the public class called public.The function start at line 189 and ends at 223. It contains 35 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 18.0 functions, and It has 18.0 functions called inside which are ["bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm", "bm"]. | |
pasteorg_paste | public | public | 0 | 0 | test_illformed_best_match | def test_illformed_best_match():bm = best_matchassert bm(['image/png', 'image/jpeg', 'image/gif', 'text/html'],'text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2') == 'image/jpeg'assert bm(['image/png', 'image/jpg', 'image/tif', 'text/html'],'text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2') == 'text/html'assert bm(['image/png', 'image/jpg', 'image/tif', 'audio/mp3'],'text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2') == 'image/png' | 1 | 8 | 0 | 58 | 1 | 225 | 232 | 225 | ['bm'] | None | {"Assign": 1} | 3 | 8 | 3 | ["bm", "bm", "bm"] | 0 | [] | The function (test_illformed_best_match) defined within the public class called public.The function start at line 225 and ends at 232. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["bm", "bm", "bm"]. | |
pasteorg_paste | public | public | 0 | 0 | test_sorted_match | def test_sorted_match():dm = desired_matchesassert dm(['text/html', 'application/xml'],'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,''text/plain;q=0.8,image/png') == ['text/html', 'application/xml']assert dm(['text/html', 'application/xml'],'application/xml,application/json') == ['application/xml']assert dm(['text/xhtml', 'text/plain', 'application/xhtml'],'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,''text/plain;q=0.8,image/png') == ['text/plain'] | 1 | 10 | 0 | 58 | 1 | 234 | 243 | 234 | ['dm'] | None | {"Assign": 1} | 3 | 10 | 3 | ["dm", "dm", "dm"] | 0 | [] | The function (test_sorted_match) defined within the public class called public.The function start at line 234 and ends at 243. 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 3.0 functions, and It has 3.0 functions called inside which are ["dm", "dm", "dm"]. | |
pasteorg_paste | TestQuoting | public | 0 | 1 | test_html_unquote | def test_html_unquote(self):self.assertEqual(quoting.html_unquote(b'<hey you>'), '<hey\xa0you>')self.assertEqual(quoting.html_unquote(b''), '')self.assertEqual(quoting.html_unquote(b'&blahblah;'), '&blahblah;')self.assertEqual(quoting.html_unquote(b'\xe1\x80\xa9'), '\u1029') | 1 | 9 | 1 | 61 | 0 | 5 | 13 | 5 | self | [] | None | {"Expr": 4} | 8 | 9 | 8 | ["self.assertEqual", "quoting.html_unquote", "self.assertEqual", "quoting.html_unquote", "self.assertEqual", "quoting.html_unquote", "self.assertEqual", "quoting.html_unquote"] | 0 | [] | The function (test_html_unquote) defined within the public class called TestQuoting, that inherit another class.The function start at line 5 and ends at 13. It contains 9 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["self.assertEqual", "quoting.html_unquote", "self.assertEqual", "quoting.html_unquote", "self.assertEqual", "quoting.html_unquote", "self.assertEqual", "quoting.html_unquote"]. |
pasteorg_paste | TestQuoting | public | 0 | 1 | test_html_quote | def test_html_quote(self):self.assertEqual(quoting.html_quote(1), '1')self.assertEqual(quoting.html_quote(None), '')self.assertEqual(quoting.html_quote('<hey!>'), '<hey!>')self.assertEqual(quoting.html_quote(b'<hey!>'), b'<hey!>')self.assertEqual(quoting.html_quote('<\u1029>'), '<\u1029>') | 1 | 11 | 1 | 72 | 0 | 15 | 25 | 15 | self | [] | None | {"Expr": 5} | 10 | 11 | 10 | ["self.assertEqual", "quoting.html_quote", "self.assertEqual", "quoting.html_quote", "self.assertEqual", "quoting.html_quote", "self.assertEqual", "quoting.html_quote", "self.assertEqual", "quoting.html_quote"] | 0 | [] | The function (test_html_quote) defined within the public class called TestQuoting, that inherit another class.The function start at line 15 and ends at 25. It contains 11 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["self.assertEqual", "quoting.html_quote", "self.assertEqual", "quoting.html_quote", "self.assertEqual", "quoting.html_quote", "self.assertEqual", "quoting.html_quote", "self.assertEqual", "quoting.html_quote"]. |
pasteorg_paste | public | public | 0 | 0 | urlparser_hook | def urlparser_hook(environ):first, rest = request.path_info_split(environ.get('PATH_INFO', ''))if not first:# No usernamereturnenviron['app.user'] = firstenviron['SCRIPT_NAME'] += '/' + firstenviron['PATH_INFO'] = rest | 2 | 7 | 1 | 47 | 0 | 3 | 10 | 3 | environ | [] | None | {"Assign": 3, "AugAssign": 1, "If": 1, "Return": 1} | 2 | 8 | 2 | ["request.path_info_split", "environ.get"] | 0 | [] | The function (urlparser_hook) defined within the public class called public.The function start at line 3 and ends at 10. 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 2.0 functions, and It has 2.0 functions called inside which are ["request.path_info_split", "environ.get"]. |
pasteorg_paste | public | public | 0 | 0 | application | def application(environ, start_response):start_response('200 OK', [('Content-type', 'text/html')])body = 'user: %s' % environ['app.user']body = body.encode('ascii')return [body] | 1 | 5 | 2 | 39 | 1 | 2 | 6 | 2 | environ,start_response | ['body'] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 2 | 5 | 2 | ["start_response", "body.encode"] | 30 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"] | The function (application) defined within the public class called public.The function start at line 2 and ends at 6. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["start_response", "body.encode"], It has 30.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"]. |
pasteorg_paste | public | public | 0 | 0 | application | def application(environ, start_response):start_response('200 OK', [('Content-type', 'text/html')])body = 'index: %s' % environ['app.user']body = body.encode('ascii')return [body] | 1 | 5 | 2 | 39 | 1 | 2 | 6 | 2 | environ,start_response | ['body'] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 2 | 5 | 2 | ["start_response", "body.encode"] | 30 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"] | The function (application) defined within the public class called public.The function start at line 2 and ends at 6. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2.0], and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["start_response", "body.encode"], It has 30.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"]. |
pasteorg_paste | public | public | 0 | 0 | not_found_hook | def not_found_hook(environ, start_response):urlparser = environ['paste.urlparser.not_found_parser']path = environ.get('PATH_INFO', '')if not path:return urlparser.not_found(environ, start_response)# Strip off leading _'spath = '/' + path.lstrip('/').lstrip('_')environ['PATH_INFO'] = pathreturn urlparser(environ, start_response) | 2 | 8 | 2 | 64 | 2 | 1 | 9 | 1 | environ,start_response | ['urlparser', 'path'] | Returns | {"Assign": 4, "If": 1, "Return": 2} | 5 | 9 | 5 | ["environ.get", "urlparser.not_found", "lstrip", "path.lstrip", "urlparser"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__"] | The function (not_found_hook) defined within the public class called public.The function start at line 1 and ends at 9. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [1.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["environ.get", "urlparser.not_found", "lstrip", "path.lstrip", "urlparser"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__"]. |
pasteorg_paste | public | public | 0 | 0 | not_found_hook | def not_found_hook(environ, start_response):start_response('200 OK', [('Content-type', 'text/plain')])return [b'not found'] | 1 | 3 | 2 | 24 | 0 | 1 | 3 | 1 | environ,start_response | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 3 | 1 | ["start_response"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__"] | The function (not_found_hook) defined within the public class called public.The function start at line 1 and ends at 3. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["start_response"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__"]. |
pasteorg_paste | public | public | 0 | 0 | not_found_hook | def not_found_hook(environ, start_response):urlparser = environ['paste.urlparser.not_found_parser']first, rest = request.path_info_split(environ.get('PATH_INFO', ''))if not first:# No usernamereturnenviron['app.user'] = firstenviron['SCRIPT_NAME'] += '/' + firstenviron['PATH_INFO'] = restreturn urlparser(environ, start_response) | 2 | 9 | 2 | 62 | 1 | 3 | 12 | 3 | environ,start_response | ['urlparser'] | Returns | {"Assign": 4, "AugAssign": 1, "If": 1, "Return": 2} | 3 | 10 | 3 | ["request.path_info_split", "environ.get", "urlparser"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__"] | The function (not_found_hook) defined within the public class called public.The function start at line 3 and ends at 12. It contains 9 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [3.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["request.path_info_split", "environ.get", "urlparser"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__"]. |
pasteorg_paste | public | public | 0 | 0 | application | def application(environ, start_response):start_response('200 OK', [('Content-type', 'text/plain')])body = 'user: %s' % environ.get('app.user')body = body.encode('ascii')return [body] | 1 | 5 | 2 | 41 | 1 | 2 | 6 | 2 | environ,start_response | ['body'] | Returns | {"Assign": 2, "Expr": 1, "Return": 1} | 3 | 5 | 3 | ["start_response", "environ.get", "body.encode"] | 30 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"] | The function (application) defined within the public class called public.The function start at line 2 and ends at 6. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["start_response", "environ.get", "body.encode"], It has 30.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"]. |
pasteorg_paste | public | public | 0 | 0 | application | def application(environ, start_response):start_response('200 OK', [('Content-type', 'text/html'),('test-header', 'TEST!')])return [b'test1'] | 1 | 4 | 2 | 30 | 0 | 1 | 4 | 1 | environ,start_response | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 4 | 1 | ["start_response"] | 30 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"] | The function (application) defined within the public class called public.The function start at line 1 and ends at 4. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["start_response"], It has 30.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"]. |
pasteorg_paste | public | public | 0 | 0 | stream.app | def app(environ, start_response):writer = start_response('200 OK', [('Content-type', 'text/html')])writer(b'te')writer(b'st')return [b'2'] | 1 | 5 | 2 | 36 | 0 | 2 | 6 | 2 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (stream.app) defined within the public class called public.The function start at line 2 and ends at 6. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [2.0] and does not return any value.. |
pasteorg_paste | public | public | 0 | 0 | stream | def stream():def app(environ, start_response):writer = start_response('200 OK', [('Content-type', 'text/html')])writer(b'te')writer(b'st')return [b'2']return app | 1 | 3 | 0 | 8 | 1 | 1 | 7 | 1 | ['writer'] | Returns | {"Assign": 1, "Expr": 2, "Return": 2} | 3 | 7 | 3 | ["start_response", "writer", "writer"] | 4 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953282_googlecloudplatform_getting_started_python.background.app.main_py.index", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.tests.test_util_py.test_sanitize_data_stream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.ansible_base.resource_registry.views_py.ResourceTypeViewSet.manifest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.test_app.tests.lib.utils.test_response_py.test_csv_stream_response"] | The function (stream) defined within the public class called public.The function start at line 1 and ends at 7. It contains 3 lines of code and it has a cyclomatic complexity of 1. It take 0 parameter, represented as [1.0], and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["start_response", "writer", "writer"], It has 4.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3953282_googlecloudplatform_getting_started_python.background.app.main_py.index", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.tests.test_util_py.test_sanitize_data_stream", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.ansible_base.resource_registry.views_py.ResourceTypeViewSet.manifest", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95163051_ansible_django_ansible_base.test_app.tests.lib.utils.test_response_py.test_csv_stream_response"]. | |
pasteorg_paste | public | public | 0 | 0 | application | def application(environ, start_response):start_response('200 OK', [('Content-type', 'text/html'),('test-header', 'TEST!')])return [b'subsimple'] | 1 | 4 | 2 | 30 | 0 | 1 | 4 | 1 | environ,start_response | [] | Returns | {"Expr": 1, "Return": 1} | 1 | 4 | 1 | ["start_response"] | 30 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"] | The function (application) defined within the public class called public.The function start at line 1 and ends at 4. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [1.0], and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["start_response"], It has 30.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3718286_gawel_pyquery.tests.apps_py.secure_application", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ChannelNameRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.ProtocolTypeRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964585_django_channels.channels.routing_py.URLRouter.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.auth.cas_py.AuthCASHandler", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.config_py.ConfigMiddleware.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.evalexception.middleware_py.simplecatcher", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.fileapp_py.ArchiveStore.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.lint_py.middleware", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.modpython_py.Handler.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.urlparser_py.URLParser.__call__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.capture_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.catch_errors_app", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.intercept_output", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.paste.wsgilib_py.raw_interactive", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95051027_pasteorg_paste.tests.test_auth.test_auth_cookie_py.build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_get_js_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_head_request", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_large_static_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_lifespan_scope", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_out_of_range_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_redirect_preserves_query_string", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_request_range_response", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169445_Archmonger_ServeStatic.tests.test_asgi_py.test_small_block_size"]. |
unifyai_unify | Visitor | public | 0 | 1 | __init__ | def __init__(self):self.class_stack = []self.function_stack = []self.classes = []self.functions = [] | 1 | 5 | 1 | 29 | 0 | 24 | 28 | 24 | self | [] | None | {"Assign": 4} | 0 | 5 | 0 | [] | 14,667 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__init__"] | The function (__init__) defined within the public class called Visitor, that inherit another class.The function start at line 24 and ends at 28. 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 has 14667.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.AllocationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ContentError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.ParameterValidationError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.15914487_netbox_community_pynetbox.pynetbox.core.query_py.RequestError.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.16851155_pbui_bobbit.src.bobbit.http_client_py.HTTPClient.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Command.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._commands_py.Group.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._context_py.Context.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._option_groups_py.OptionGroupMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Argument.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._params_py.Option.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._sections_py.SectionMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup._util_py.FrozenSpaceMeta.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.AcceptBetween.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._core_py.RequireExactly.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints._support_py.ConstraintMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.ConstraintViolated.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.constraints.exceptions_py.UnsatisfiableConstraint.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.cloup.formatting._formatter_py.HelpFormatter.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.18358916_janluke_cloup.tests.test_commands_py.test_group_command_class_is_used_to_create_subcommands", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.explorer_py.MainWindow.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.search_filter_py.QudFilterModel.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudObjTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudPopTreeView.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.26231153_trashmonks_qud_wiki.qbe.tree_view_py.QudTreeView.__init__"]. |
unifyai_unify | Visitor | public | 0 | 1 | visit_ClassDef | def visit_ClassDef(self, node):self.class_stack.append(node.name)self.classes.append({"name": node.name, "lineno": node.lineno})self.generic_visit(node)self.class_stack.pop() | 1 | 5 | 2 | 50 | 0 | 30 | 34 | 30 | self,node | [] | None | {"Expr": 4} | 4 | 5 | 4 | ["self.class_stack.append", "self.classes.append", "self.generic_visit", "self.class_stack.pop"] | 11 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pycpp.transpiler_py.CppTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyd.transpiler_py.DTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pydart.transpiler_py.DartTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pygo.transpiler_py.GoTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyjl.transpiler_py.JuliaTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pykt.transpiler_py.KotlinTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pymojo.transpiler_py.MojoTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pynim.transpiler_py.NimTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyrs.transpiler_py.RustTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyv.transpiler_py.VTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyzig.transpiler_py.ZigTranspiler.visit_ClassDef"] | The function (visit_ClassDef) defined within the public class called Visitor, that inherit another class.The function start at line 30 and ends at 34. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [30.0] and does not return any value. It declares 4.0 functions, It has 4.0 functions called inside which are ["self.class_stack.append", "self.classes.append", "self.generic_visit", "self.class_stack.pop"], It has 11.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pycpp.transpiler_py.CppTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyd.transpiler_py.DTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pydart.transpiler_py.DartTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pygo.transpiler_py.GoTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyjl.transpiler_py.JuliaTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pykt.transpiler_py.KotlinTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pymojo.transpiler_py.MojoTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pynim.transpiler_py.NimTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyrs.transpiler_py.RustTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyv.transpiler_py.VTranspiler.visit_ClassDef", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677202_py2many_py2many.pyzig.transpiler_py.ZigTranspiler.visit_ClassDef"]. |
unifyai_unify | Visitor | public | 0 | 1 | visit_FunctionDef | def visit_FunctionDef(self, node):if self.function_stack or self.class_stack:returnself.function_stack.append(node.name)self.functions.append({"name": node.name, "lineno": node.lineno})self.generic_visit(node)self.function_stack.pop() | 3 | 7 | 2 | 60 | 0 | 36 | 42 | 36 | self,node | [] | None | {"Expr": 4, "If": 1, "Return": 1} | 4 | 7 | 4 | ["self.function_stack.append", "self.functions.append", "self.generic_visit", "self.function_stack.pop"] | 0 | [] | The function (visit_FunctionDef) defined within the public class called Visitor, that inherit another class.The function start at line 36 and ends at 42. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [36.0] and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["self.function_stack.append", "self.functions.append", "self.generic_visit", "self.function_stack.pop"]. |
unifyai_unify | public | public | 0 | 0 | get_all_modules | def get_all_modules():# get all modules in the packagemodule_paths = []for root, _, files in os.walk("unify"):for file in files:if "__init__" not in file and file[-3:] == ".py":module_paths.append(os.path.join(root, file))return module_paths | 5 | 7 | 0 | 59 | 1 | 45 | 52 | 45 | ['module_paths'] | Returns | {"Assign": 1, "Expr": 1, "For": 2, "If": 1, "Return": 1} | 3 | 8 | 3 | ["os.walk", "module_paths.append", "os.path.join"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169609_codelion_optillm.optillm.plugins.deepthink.self_discover_py.SelfDiscover.__init__"] | The function (get_all_modules) defined within the public class called public.The function start at line 45 and ends at 52. It contains 7 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["os.walk", "module_paths.append", "os.path.join"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95169609_codelion_optillm.optillm.plugins.deepthink.self_discover_py.SelfDiscover.__init__"]. | |
unifyai_unify | public | public | 0 | 0 | get_functions_and_classes | def get_functions_and_classes(module_paths):# ast parse to get functions and classes in each moduledetails = dict()for module_path in module_paths:visitor = Visitor()with open(module_path) as f:code = f.read()tree = ast.parse(code)visitor.visit(tree)details[module_path] = {"class_names": visitor.classes,"function_names": visitor.functions,}return details | 2 | 13 | 1 | 70 | 4 | 55 | 68 | 55 | module_paths | ['code', 'visitor', 'tree', 'details'] | Returns | {"Assign": 5, "Expr": 1, "For": 1, "Return": 1, "With": 1} | 6 | 14 | 6 | ["dict", "Visitor", "open", "f.read", "ast.parse", "visitor.visit"] | 0 | [] | The function (get_functions_and_classes) defined within the public class called public.The function start at line 55 and ends at 68. It contains 13 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["dict", "Visitor", "open", "f.read", "ast.parse", "visitor.visit"]. |
unifyai_unify | public | public | 0 | 0 | filter_and_import | def filter_and_import(details):# filter and import the public functions and classes in public modulesprivate_modules = []for module_path in details:private_module = Falsemodule_name = module_path[:-3].replace("/", ".")# check if there are any private modulesfor namespace in module_name.split("."):if namespace.startswith("_"):private_module = Truebreakif private_module:private_modules.append(module_path)continuefunction_names = details[module_path]["function_names"]class_names = details[module_path]["class_names"]# import the functions and classesfunctions = {function_name["name"]: {"obj": importlib.import_module(module_name).__dict__[function_name["name"]],"lineno": function_name["lineno"],}for function_name in function_namesif not function_name["name"].startswith("_")}classes = {class_name["name"]: {"obj": importlib.import_module(module_name).__dict__[class_name["name"]],"lineno": class_name["lineno"],}for class_name in class_namesif not class_name["name"].startswith("_")}details[module_path]["module_name"] = module_namedetails[module_path]["functions"] = functionsdetails[module_path]["classes"] = classesreturn details, private_modules | 9 | 38 | 1 | 213 | 7 | 71 | 117 | 71 | details | ['private_module', 'classes', 'function_names', 'module_name', 'functions', 'private_modules', 'class_names'] | Returns | {"Assign": 11, "Expr": 1, "For": 2, "If": 2, "Return": 1} | 8 | 47 | 8 | ["replace", "module_name.split", "namespace.startswith", "private_modules.append", "importlib.import_module", "startswith", "importlib.import_module", "startswith"] | 0 | [] | The function (filter_and_import) defined within the public class called public.The function start at line 71 and ends at 117. It contains 38 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters, and this function return a value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["replace", "module_name.split", "namespace.startswith", "private_modules.append", "importlib.import_module", "startswith", "importlib.import_module", "startswith"]. |
unifyai_unify | public | public | 0 | 0 | get_function_signature | def get_function_signature(source_code):# get function signaturesig_start, sig_end = re.search(r"def\s+([a-zA-Z_][a-zA-Z0-9_]*)\s*\(\s*((?:[^()]*|\([^()]*\))*)\s*\)\s*(?:->\s*([^:]+))?\s*:",source_code,).span()signature = source_code[sig_start:sig_end]return signature | 1 | 7 | 1 | 33 | 1 | 120 | 127 | 120 | source_code | ['signature'] | Returns | {"Assign": 2, "Return": 1} | 2 | 8 | 2 | ["span", "re.search"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.write_function_and_class_jsons"] | The function (get_function_signature) defined within the public class called public.The function start at line 120 and ends at 127. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["span", "re.search"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.write_function_and_class_jsons"]. |
unifyai_unify | public | public | 0 | 0 | get_formatted_docstring | def get_formatted_docstring(func):# get the docstring and split into linesdocstring = "\n".join(line.lstrip(" ") for line in func.__doc__.split("\n"))sections = docstring.strip().split("\n\n")# in case there's additional newlines, collect all the sections togetherfinal_sections = []count = 0for section in sections:if section.startswith("Args:"):final_sections.append(section)count = 1elif section.startswith("Returns:"):final_sections.append(section)count = 2elif section.startswith("Raises:"):final_sections.append(section)count = 3else:if count == 0:final_sections.append(section)else:final_sections[-1] += "\n" + sectiondescription = ""args_str = []returns_str = []raises_str = []# Iterate over the sections and classify each onefor section in final_sections:# Extract the "Args" sectionif section.startswith("Args:"):arg_lines = section.strip().split("\n")[1:]for line in arg_lines:match = re.match(r"(\s*)(\S+): (.+)", line)if match:_, arg, desc = match.groups()args_str.append(f"- `{arg}` - {desc}")# Extract the "Returns" sectionelif section.startswith("Returns:"):return_lines = section.strip().split("\n")[1:]for line in return_lines:match = re.match(r"(\s*)(\S+): (.+)", line)if match:_, arg, desc = match.groups()returns_str.append(f"- `{arg}` - {desc}")elif len(returns_str) == 0:returns_str.append(section.strip().split("Returns:")[1].strip())# Extract the "Raises" sectionelif section.startswith("Raises:"):raise_lines = section.strip().split("\n")[1:]for line in raise_lines:match = re.match(r"(\s*)(\S+): (.+)", line)if match:_, exception, desc = match.groups()raises_str.append(f"- `{exception}`: {desc}")# Treat the first section as the main descriptionelse:description += section.strip()# Construct the new docstring formatformatted_docstring = f"{description}"if args_str:formatted_docstring += "\n\n**Arguments**:\n\n" + "\n".join(args_str) + "\n\n"if returns_str:formatted_docstring += "\n\n**Returns**:\n\n" + "\n".join(returns_str) + "\n\n"if raises_str:formatted_docstring += f"\n\n**Raises**:\n\n" + "\n".join(raises_str) + "\n"formatted_docstring = formatted_docstring.strip()return formatted_docstring | 21 | 59 | 1 | 429 | 13 | 130 | 205 | 130 | func | ['docstring', 'raises_str', 'final_sections', 'count', 'arg_lines', 'return_lines', 'formatted_docstring', 'description', 'raise_lines', 'match', 'args_str', 'returns_str', 'sections'] | Returns | {"Assign": 22, "AugAssign": 5, "Expr": 8, "For": 5, "If": 14, "Return": 1} | 40 | 76 | 40 | ["join", "line.lstrip", "func.__doc__.split", "split", "docstring.strip", "section.startswith", "final_sections.append", "section.startswith", "final_sections.append", "section.startswith", "final_sections.append", "final_sections.append", "section.startswith", "split", "section.strip", "re.match", "match.groups", "args_str.append", "section.startswith", "split", "section.strip", "re.match", "match.groups", "returns_str.append", "len", "returns_str.append", "strip", "split", "section.strip", "section.startswith", "split", "section.strip", "re.match", "match.groups", "raises_str.append", "section.strip", "join", "join", "join", "formatted_docstring.strip"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.write_function_and_class_jsons"] | The function (get_formatted_docstring) defined within the public class called public.The function start at line 130 and ends at 205. It contains 59 lines of code and it has a cyclomatic complexity of 21. The function does not take any parameters, and this function return a value. It declares 40.0 functions, It has 40.0 functions called inside which are ["join", "line.lstrip", "func.__doc__.split", "split", "docstring.strip", "section.startswith", "final_sections.append", "section.startswith", "final_sections.append", "section.startswith", "final_sections.append", "final_sections.append", "section.startswith", "split", "section.strip", "re.match", "match.groups", "args_str.append", "section.startswith", "split", "section.strip", "re.match", "match.groups", "returns_str.append", "len", "returns_str.append", "strip", "split", "section.strip", "section.startswith", "split", "section.strip", "re.match", "match.groups", "raises_str.append", "section.strip", "join", "join", "join", "formatted_docstring.strip"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.write_function_and_class_jsons"]. |
unifyai_unify | public | public | 0 | 0 | write_function_and_class_jsons | def write_function_and_class_jsons(details, private_modules):# create the json_files folderos.makedirs("json_files", exist_ok=True)os.makedirs("json_files/functions", exist_ok=True)os.makedirs("json_files/classes", exist_ok=True)# load all function and class docsfor module_path in details:# skip private modulesif module_path in private_modules:continue# get the module namespace from the pathmodule_name = module_path[:-3].replace("/", ".")# load all function docsfunctions = details[module_path]["functions"]for function_name in functions:# get function detailslineno = functions[function_name]["lineno"]function = functions[function_name]["obj"]functions[function_name] = {"lineno": lineno, "module_path": module_path}# get the signature of the functiontry:source_code = inspect.getsource(function)except OSError:warnings.warn(f"Error getting source code for {function_name}")continuesignature = get_function_signature(source_code)# get the formatted docstring of the functionif function.__doc__:formatted_docstring = get_formatted_docstring(function)functions[function_name]["docstring"] = formatted_docstringelse:functions[function_name]["docstring"] = ""functions[function_name]["signature"] = signaturefunctions[function_name]["source_code"] = source_code# load all class docsclasses = details[module_path]["classes"]for class_name in classes:class_lineno = classes[class_name]["lineno"]class_ = classes[class_name]["obj"]class_module = class_.__module__class_docstring = class_.__doc__# get all relevant members of the classmembers = dict()for member in inspect.getmembers(class_):module = getattr(member[1], "__module__", "")if ((isinstance(module, str) and module.startswith("unify."))or isinstance(member[1], property)) and (member[0].startswith("__") or not member[0].startswith("_")):if isinstance(member[1], property):module = member[1].fget.__module__members[member[0]] = {"obj": member[1], "module": module}# get the source code for all membersfor member in members.copy():obj = members[member]["obj"]module = members[member]["module"]try:if isinstance(obj, property):source_lines, lineno = inspect.getsourcelines(obj.fget)else:source_lines, lineno = inspect.getsourcelines(obj)except OSError:warnings.warn(f"Error getting source code for {member} in {class_name}",)del members[member]continuemembers[member] = {"obj": obj,"source_code": "".join(source_lines),"lineno": lineno,"module_path": module.replace(".", "/") + ".py",}# get the method signature and docstring for all the methodsfor member in members:obj = members[member]["obj"]source_code = members[member]["source_code"]lineno = members[member]["lineno"]module_path = members[member]["module_path"]# get signaturesignature = get_function_signature(source_code)# get the formatted docstring of the methodif obj.__doc__:formatted_docstring = get_formatted_docstring(obj)else:formatted_docstring = ""# store the resultsmembers[member] = {"member": member,"source_code": source_code,"signature": signature,"docstring": formatted_docstring,"lineno": lineno,"module_path": module_path,}# separate the members into properties, setters,# dunders and methodsproperties, setters, dunders, methods = dict(), dict(), dict(), dict()init_method = Nonemember_names = list(members.keys())for member_name in member_names:if members[member_name]["source_code"].strip().startswith("@property"):properties[member_name] = members[member_name]elif member_name.startswith("set_"):setters[member_name] = members[member_name]elif member_name.startswith("__") and member_name != "__init__":dunders[member_name] = members[member_name]elif member_name == "__init__":init_method = members[member_name]else:methods[member_name] = members[member_name]# store the resultsclasses[class_name] = {"properties": properties,"setters": setters,"dunder_methods": dunders,"methods": methods,"docstring": class_docstring,"lineno": class_lineno,"module_path": class_module.replace(".", "/") + ".py",}if init_method:classes[class_name] = {"": {"__init__": init_method},**classes[class_name],}# write all the functions to separate filesfor function_name in functions:with open(f"json_files/functions/{module_name}.{function_name}.json","w",) as f:json.dump(functions[function_name], f)# write all the classes to separate filesfor class_name in classes:with open(f"json_files/classes/{module_name}.{class_name}.json","w",) as f:json.dump(classes[class_name], f) | 28 | 120 | 2 | 809 | 18 | 208 | 364 | 208 | details,private_modules | ['init_method', 'classes', 'class_', 'module_path', 'function', 'obj', 'member_names', 'source_code', 'formatted_docstring', 'lineno', 'module_name', 'signature', 'class_lineno', 'class_docstring', 'members', 'functions', 'class_module', 'module'] | None | {"Assign": 44, "Expr": 7, "For": 9, "If": 11, "Try": 2, "With": 2} | 41 | 157 | 41 | ["os.makedirs", "os.makedirs", "os.makedirs", "replace", "inspect.getsource", "warnings.warn", "get_function_signature", "get_formatted_docstring", "dict", "inspect.getmembers", "getattr", "isinstance", "module.startswith", "isinstance", "startswith", "startswith", "isinstance", "members.copy", "isinstance", "inspect.getsourcelines", "inspect.getsourcelines", "warnings.warn", "join", "module.replace", "get_function_signature", "get_formatted_docstring", "dict", "dict", "dict", "dict", "list", "members.keys", "startswith", "strip", "member_name.startswith", "member_name.startswith", "class_module.replace", "open", "json.dump", "open", "json.dump"] | 0 | [] | The function (write_function_and_class_jsons) defined within the public class called public.The function start at line 208 and ends at 364. It contains 120 lines of code and it has a cyclomatic complexity of 28. It takes 2 parameters, represented as [208.0] and does not return any value. It declares 41.0 functions, and It has 41.0 functions called inside which are ["os.makedirs", "os.makedirs", "os.makedirs", "replace", "inspect.getsource", "warnings.warn", "get_function_signature", "get_formatted_docstring", "dict", "inspect.getmembers", "getattr", "isinstance", "module.startswith", "isinstance", "startswith", "startswith", "isinstance", "members.copy", "isinstance", "inspect.getsourcelines", "inspect.getsourcelines", "warnings.warn", "join", "module.replace", "get_function_signature", "get_formatted_docstring", "dict", "dict", "dict", "dict", "list", "members.keys", "startswith", "strip", "member_name.startswith", "member_name.startswith", "class_module.replace", "open", "json.dump", "open", "json.dump"]. |
unifyai_unify | public | public | 0 | 0 | write_docs | def write_docs(latest_hash: str):files = [os.path.join("functions", path) for path in os.listdir("json_files/functions")] + [os.path.join("classes", path) for path in os.listdir("json_files/classes")]new_line = lambda f: f.write("\n\n")python_path_json = dict()github_url = f"https://github.com/unifyai/unify/tree/{latest_hash}/"for file_path in sorted(files):# get the module strmodule_name = file_path.replace(".json", "")module_path = "docs/" + module_name.replace(".", "/")module_name = "/".join(module_name.split("/")[1:])actual_path = module_path.replace("unify/", "")# storing the tree of calls to update the mint.jsoninfo = python_path_jsonnamespace = module_name.split(".")for key in namespace:if key not in info:info[key] = dict()info = info[key]# load the data from the jsonos.makedirs("/".join(actual_path.split("/")[:-1]), exist_ok=True)with open(os.path.join("json_files", file_path)) as f:module_data = json.load(f)# write the results to an mdxname = module_name.split(".")[-1]python_file_path = module_data["module_path"]class_lineno = module_data["lineno"]with open(f"{actual_path}.mdx", "w") as f:f.write("---\n" f"title: '{name}'\n" "---")# if the module is a classsections = ["", "properties", "setters", "methods", "dunder_methods"]if any(member in module_data for member in sections):# add class def python blockgithub_path = github_url + python_file_path + f"#L{class_lineno}"new_line(f)f.write(f"```python\n" f"class {name}\n" "```")new_line(f)f.write(f'<p align="right">[source code]({github_path})</p>')new_line(f)# add docstring for python classif module_data.get("docstring"):f.write(module_data.get("docstring"))# add details for each instance method/propertyfor section in sections:# skip the section if no members under itif section not in module_data or len(module_data[section]) == 0:continue# add section headerif section != "":new_line(f)f.write(f"## {section}")for member_name in module_data[section]:# get member detailsmember = module_data[section][member_name]escaped_member_name = member_name.replace("_", "\_")signature = member["signature"]docstring = member["docstring"]lineno = member["lineno"]github_path = github_url + member["module_path"] + f"#L{lineno}"# add escape characters to the docstringfor key, value in replace.items():docstring = docstring.replace(key, value)# add method infoif section != "":new_line(f)f.write("---")new_line(f)f.write(f"### {escaped_member_name}")new_line(f)f.write(f'<p align="right">[source code]({github_path})</p>')new_line(f)f.write("```python\n" f"{signature}\n" "```")new_line(f)f.write(docstring)# if the module is a functionelse:lineno = module_data["lineno"]github_path = github_url + python_file_path + f"#L{lineno}"signature = module_data["signature"]docstring = module_data["docstring"]# add function infonew_line(f)f.write("```python\n" f"{signature}\n" "```")new_line(f)f.write(f'<p align="right">[source code]({github_path})</p>')new_line(f)f.write(docstring)with open("python_path.json", "w") as f:json.dump(python_path_json, f, indent=4) | 16 | 75 | 1 | 599 | 20 | 367 | 470 | 367 | latest_hash | ['actual_path', 'escaped_member_name', 'files', 'info', 'sections', 'module_path', 'new_line', 'namespace', 'lineno', 'module_name', 'module_data', 'github_path', 'python_file_path', 'member', 'signature', 'python_path_json', 'name', 'docstring', 'github_url', 'class_lineno'] | None | {"Assign": 29, "Expr": 27, "For": 5, "If": 6, "With": 3} | 56 | 104 | 56 | ["os.path.join", "os.listdir", "os.path.join", "os.listdir", "f.write", "dict", "sorted", "file_path.replace", "module_name.replace", "join", "module_name.split", "module_path.replace", "module_name.split", "dict", "os.makedirs", "join", "actual_path.split", "open", "os.path.join", "json.load", "module_name.split", "open", "f.write", "any", "new_line", "f.write", "new_line", "f.write", "new_line", "module_data.get", "f.write", "module_data.get", "len", "new_line", "f.write", "member_name.replace", "replace.items", "docstring.replace", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "open", "json.dump"] | 0 | [] | The function (write_docs) defined within the public class called public.The function start at line 367 and ends at 470. It contains 75 lines of code and it has a cyclomatic complexity of 16. The function does not take any parameters and does not return any value. It declares 56.0 functions, and It has 56.0 functions called inside which are ["os.path.join", "os.listdir", "os.path.join", "os.listdir", "f.write", "dict", "sorted", "file_path.replace", "module_name.replace", "join", "module_name.split", "module_path.replace", "module_name.split", "dict", "os.makedirs", "join", "actual_path.split", "open", "os.path.join", "json.load", "module_name.split", "open", "f.write", "any", "new_line", "f.write", "new_line", "f.write", "new_line", "module_data.get", "f.write", "module_data.get", "len", "new_line", "f.write", "member_name.replace", "replace.items", "docstring.replace", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "new_line", "f.write", "open", "json.dump"]. |
unifyai_unify | public | public | 0 | 0 | get_mint_format | def get_mint_format(python_path, root=""):results = []for key in python_path:results.append({"group": key,"pages": get_mint_format(python_path[key], os.path.join(root, key)),},)if len(results[-1]["pages"]) == 0:results[-1] = os.path.join(root, key)return results | 3 | 12 | 2 | 84 | 1 | 473 | 484 | 473 | python_path,root | ['results'] | Returns | {"Assign": 2, "Expr": 1, "For": 1, "If": 1, "Return": 1} | 5 | 12 | 5 | ["results.append", "get_mint_format", "os.path.join", "len", "os.path.join"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.get_mint_format", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.update_mint"] | The function (get_mint_format) defined within the public class called public.The function start at line 473 and ends at 484. It contains 12 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [473.0], and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["results.append", "get_mint_format", "os.path.join", "len", "os.path.join"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.get_mint_format", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.update_mint"]. |
unifyai_unify | public | public | 0 | 0 | update_function_classes_path | def update_function_classes_path(mint_format):if isinstance(mint_format, str):mint_format = mint_format.replace("python/", "")obj_name = mint_format.split("/")[-1]return (f"python/functions/{mint_format}"if obj_name[0].islower()else f"python/classes/{mint_format}")updated_pages = []for page in sorted(mint_format["pages"],key=lambda x: (x if isinstance(x, str) else x["group"]),):updated_pages.append(update_function_classes_path(page))mint_format["pages"] = updated_pagesreturn mint_format | 5 | 17 | 1 | 106 | 3 | 487 | 503 | 487 | mint_format | ['obj_name', 'updated_pages', 'mint_format'] | Returns | {"Assign": 4, "Expr": 1, "For": 1, "If": 1, "Return": 2} | 8 | 17 | 8 | ["isinstance", "mint_format.replace", "mint_format.split", "islower", "sorted", "isinstance", "updated_pages.append", "update_function_classes_path"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.update_function_classes_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.update_mint"] | The function (update_function_classes_path) defined within the public class called public.The function start at line 487 and ends at 503. It contains 17 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters, and this function return a value. It declares 8.0 functions, It has 8.0 functions called inside which are ["isinstance", "mint_format.replace", "mint_format.split", "islower", "sorted", "isinstance", "updated_pages.append", "update_function_classes_path"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.update_function_classes_path", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95053461_unifyai_unify.generate_docs_py.update_mint"]. |
unifyai_unify | public | public | 0 | 0 | update_mint | def update_mint():with open("mint.json") as f:mint = json.load(f)with open("python_path.json") as f:python_path = json.load(f)mint_format = get_mint_format(python_path["unify"], root="python")updated_mint_format = [update_function_classes_path(group) for group in mint_format]mint["navigation"][1] = {"group": "","pages": updated_mint_format,}with open("mint.json", "w") as f:json.dump(mint, f, indent=4) | 2 | 13 | 0 | 101 | 4 | 506 | 521 | 506 | ['mint', 'updated_mint_format', 'mint_format', 'python_path'] | None | {"Assign": 5, "Expr": 1, "With": 3} | 8 | 16 | 8 | ["open", "json.load", "open", "json.load", "get_mint_format", "update_function_classes_path", "open", "json.dump"] | 0 | [] | The function (update_mint) defined within the public class called public.The function start at line 506 and ends at 521. It contains 13 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 8.0 functions, and It has 8.0 functions called inside which are ["open", "json.load", "open", "json.load", "get_mint_format", "update_function_classes_path", "open", "json.dump"]. | |
unifyai_unify | public | public | 0 | 0 | pytest_sessionstart | def pytest_sessionstart(session):if os.environ.get("CI"):unify.delete_logs() | 2 | 3 | 1 | 20 | 0 | 6 | 8 | 6 | session | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["os.environ.get", "unify.delete_logs"] | 0 | [] | The function (pytest_sessionstart) defined within the public class called public.The function start at line 6 and ends at 8. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["os.environ.get", "unify.delete_logs"]. |
unifyai_unify | public | public | 0 | 0 | _handle_project.wrapper | def wrapper(*args, **kwargs):project = test_fn.__name__if project in unify.list_projects():unify.delete_project(project)try:with unify.Project(project):unify.unset_context()test_fn(*args, **kwargs)unify.delete_project(project)except:unify.delete_project(project)exc_type, exc_value, exc_tb = sys.exc_info()tb_string = "".join(traceback.format_exception(exc_type, exc_value, exc_tb))raise Exception(f"{tb_string}") | 3 | 14 | 2 | 100 | 0 | 12 | 25 | 12 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_handle_project.wrapper) defined within the public class called public.The function start at line 12 and ends at 25. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [12.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | _handle_project.async_wrapper | async def async_wrapper(*args, **kwargs):project = test_fn.__name__if project in unify.list_projects():unify.delete_project(project)try:with unify.Project(project):unify.unset_context()await test_fn(*args, **kwargs)unify.delete_project(project)except:unify.delete_project(project)exc_type, exc_value, exc_tb = sys.exc_info()tb_string = "".join(traceback.format_exception(exc_type, exc_value, exc_tb))raise Exception(f"{tb_string}") | 3 | 14 | 2 | 101 | 0 | 28 | 41 | 28 | null | [] | None | null | 0 | 0 | 0 | null | 0 | null | The function (_handle_project.async_wrapper) defined within the public class called public.The function start at line 28 and ends at 41. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [28.0] and does not return any value.. |
unifyai_unify | public | public | 0 | 0 | _handle_project | def _handle_project(test_fn):# noinspection PyBroadException@functools.wraps(test_fn)def wrapper(*args, **kwargs):project = test_fn.__name__if project in unify.list_projects():unify.delete_project(project)try:with unify.Project(project):unify.unset_context()test_fn(*args, **kwargs)unify.delete_project(project)except:unify.delete_project(project)exc_type, exc_value, exc_tb = sys.exc_info()tb_string = "".join(traceback.format_exception(exc_type, exc_value, exc_tb))raise Exception(f"{tb_string}")@functools.wraps(test_fn)async def async_wrapper(*args, **kwargs):project = test_fn.__name__if project in unify.list_projects():unify.delete_project(project)try:with unify.Project(project):unify.unset_context()await test_fn(*args, **kwargs)unify.delete_project(project)except:unify.delete_project(project)exc_type, exc_value, exc_tb = sys.exc_info()tb_string = "".join(traceback.format_exception(exc_type, exc_value, exc_tb))raise Exception(f"{tb_string}")return async_wrapper if asyncio.iscoroutinefunction(test_fn) else wrapper | 2 | 6 | 1 | 35 | 2 | 9 | 43 | 9 | test_fn | ['tb_string', 'project'] | Returns | {"Assign": 6, "Expr": 10, "If": 2, "Return": 1, "Try": 2, "With": 2} | 25 | 35 | 25 | ["unify.list_projects", "unify.delete_project", "unify.Project", "unify.unset_context", "test_fn", "unify.delete_project", "unify.delete_project", "sys.exc_info", "join", "traceback.format_exception", "Exception", "functools.wraps", "unify.list_projects", "unify.delete_project", "unify.Project", "unify.unset_context", "test_fn", "unify.delete_project", "unify.delete_project", "sys.exc_info", "join", "traceback.format_exception", "Exception", "functools.wraps", "asyncio.iscoroutinefunction"] | 0 | [] | The function (_handle_project) defined within the public class called public.The function start at line 9 and ends at 43. It contains 6 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 25.0 functions, and It has 25.0 functions called inside which are ["unify.list_projects", "unify.delete_project", "unify.Project", "unify.unset_context", "test_fn", "unify.delete_project", "unify.delete_project", "sys.exc_info", "join", "traceback.format_exception", "Exception", "functools.wraps", "unify.list_projects", "unify.delete_project", "unify.Project", "unify.unset_context", "test_fn", "unify.delete_project", "unify.delete_project", "sys.exc_info", "join", "traceback.format_exception", "Exception", "functools.wraps", "asyncio.iscoroutinefunction"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_str | def test_create_dataset_from_str(self) -> None:dataset = unify.Dataset("a")assert isinstance(dataset[0], unify.Log)data = dataset.dataassert isinstance(data, list)assert len(data) == 1assert isinstance(data[0], str)assert data[0] == "a" | 1 | 8 | 1 | 63 | 0 | 16 | 23 | 16 | self | [] | None | {"Assign": 2} | 5 | 8 | 5 | ["unify.Dataset", "isinstance", "isinstance", "len", "isinstance"] | 0 | [] | The function (test_create_dataset_from_str) defined within the public class called TestDatasetConstruction.The function start at line 16 and ends at 23. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["unify.Dataset", "isinstance", "isinstance", "len", "isinstance"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_list_of_str | def test_create_dataset_from_list_of_str(self) -> None:dataset = unify.Dataset(["a", "b", "c"])assert isinstance(dataset[0], unify.Log)data = dataset.dataassert isinstance(data, list)assert len(data) == 3assert isinstance(data[0], str)assert data[0] == "a" | 1 | 8 | 1 | 69 | 0 | 26 | 33 | 26 | self | [] | None | {"Assign": 2} | 5 | 8 | 5 | ["unify.Dataset", "isinstance", "isinstance", "len", "isinstance"] | 0 | [] | The function (test_create_dataset_from_list_of_str) defined within the public class called TestDatasetConstruction.The function start at line 26 and ends at 33. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["unify.Dataset", "isinstance", "isinstance", "len", "isinstance"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_prompt | def test_create_dataset_from_prompt(self) -> None:dataset = unify.Dataset(Prompt(messages=[{"role": "user", "content": "a"}]))assert isinstance(dataset[0], unify.Log)data = dataset.dataassert isinstance(data, list)assert len(data) == 1assert isinstance(data[0], Prompt)assert data[0].components["messages"][0] == {"role": "user", "content": "a"} | 1 | 8 | 1 | 94 | 0 | 36 | 43 | 36 | self | [] | None | {"Assign": 2} | 6 | 8 | 6 | ["unify.Dataset", "Prompt", "isinstance", "isinstance", "len", "isinstance"] | 0 | [] | The function (test_create_dataset_from_prompt) defined within the public class called TestDatasetConstruction.The function start at line 36 and ends at 43. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["unify.Dataset", "Prompt", "isinstance", "isinstance", "len", "isinstance"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_list_of_prompts | def test_create_dataset_from_list_of_prompts(self) -> None:dataset = unify.Dataset([Prompt(messages=[{"role": "user", "content": usr_msg}])for usr_msg in ["a", "b", "c"]],)assert isinstance(dataset[0], unify.Log)data = dataset.dataassert isinstance(data, list)assert len(data) == 3assert isinstance(data[0], Prompt)assert data[0].components["messages"][0] == {"role": "user", "content": "a"} | 2 | 13 | 1 | 107 | 0 | 46 | 58 | 46 | self | [] | None | {"Assign": 2} | 6 | 13 | 6 | ["unify.Dataset", "Prompt", "isinstance", "isinstance", "len", "isinstance"] | 0 | [] | The function (test_create_dataset_from_list_of_prompts) defined within the public class called TestDatasetConstruction.The function start at line 46 and ends at 58. It contains 13 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["unify.Dataset", "Prompt", "isinstance", "isinstance", "len", "isinstance"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_dict | def test_create_dataset_from_dict(self) -> None:dataset = unify.Dataset(dict(messages=[{"role": "user", "content": "a"}]))assert isinstance(dataset[0], unify.Log)data = dataset.dataassert isinstance(data, list)assert len(data) == 1assert isinstance(data[0], dict)assert data[0]["messages"][0] == {"role": "user", "content": "a"} | 1 | 8 | 1 | 92 | 0 | 61 | 68 | 61 | self | [] | None | {"Assign": 2} | 6 | 8 | 6 | ["unify.Dataset", "dict", "isinstance", "isinstance", "len", "isinstance"] | 0 | [] | The function (test_create_dataset_from_dict) defined within the public class called TestDatasetConstruction.The function start at line 61 and ends at 68. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["unify.Dataset", "dict", "isinstance", "isinstance", "len", "isinstance"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_list_of_dicts | def test_create_dataset_from_list_of_dicts(self) -> None:dataset = unify.Dataset([dict(messages=[{"role": "user", "content": usr_msg}])for usr_msg in ["a", "b", "c"]],)assert isinstance(dataset[0], unify.Log)data = dataset.dataassert isinstance(data, list)assert len(data) == 3assert isinstance(data[0], dict)assert data[0]["messages"][0] == {"role": "user", "content": "a"} | 2 | 13 | 1 | 105 | 0 | 71 | 83 | 71 | self | [] | None | {"Assign": 2} | 6 | 13 | 6 | ["unify.Dataset", "dict", "isinstance", "isinstance", "len", "isinstance"] | 0 | [] | The function (test_create_dataset_from_list_of_dicts) defined within the public class called TestDatasetConstruction.The function start at line 71 and ends at 83. It contains 13 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["unify.Dataset", "dict", "isinstance", "isinstance", "len", "isinstance"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_dict_w_prompt | def test_create_dataset_from_dict_w_prompt(self) -> None:dataset = unify.Dataset(dict(prompt=Prompt(messages=[{"role": "user", "content": "a"}])),)assert isinstance(dataset[0], unify.Log)data = dataset.dataassert isinstance(data, list)assert len(data) == 1assert isinstance(data[0], dict)assert data[0]["prompt"].components["messages"][0] == {"role": "user","content": "a",} | 1 | 13 | 1 | 104 | 0 | 86 | 98 | 86 | self | [] | None | {"Assign": 2} | 7 | 13 | 7 | ["unify.Dataset", "dict", "Prompt", "isinstance", "isinstance", "len", "isinstance"] | 0 | [] | The function (test_create_dataset_from_dict_w_prompt) defined within the public class called TestDatasetConstruction.The function start at line 86 and ends at 98. It contains 13 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["unify.Dataset", "dict", "Prompt", "isinstance", "isinstance", "len", "isinstance"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_list_of_prompt_dicts | def test_create_dataset_from_list_of_prompt_dicts(self) -> None:dataset = unify.Dataset([dict(prompt=Prompt(messages=[{"role": "user", "content": usr_msg}]))for usr_msg in ["a", "b", "c"]],)assert isinstance(dataset[0], unify.Log)data = dataset.dataassert isinstance(data, list)assert len(data) == 3assert isinstance(data[0], dict)assert data[0]["prompt"].components["messages"][0] == {"role": "user","content": "a",} | 2 | 16 | 1 | 116 | 0 | 101 | 116 | 101 | self | [] | None | {"Assign": 2} | 7 | 16 | 7 | ["unify.Dataset", "dict", "Prompt", "isinstance", "isinstance", "len", "isinstance"] | 0 | [] | The function (test_create_dataset_from_list_of_prompt_dicts) defined within the public class called TestDatasetConstruction.The function start at line 101 and ends at 116. It contains 16 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["unify.Dataset", "dict", "Prompt", "isinstance", "isinstance", "len", "isinstance"]. |
unifyai_unify | TestDatasetConstruction | public | 0 | 0 | test_create_dataset_from_upstream | def test_create_dataset_from_upstream(self) -> None:if "TestCreateDatasetFromStr" in unify.list_datasets():unify.delete_dataset("TestCreateDatasetFromStr")dataset = unify.Dataset(["a", "b", "c"], name="TestCreateDatasetFromStr")assert dataset.name not in unify.list_datasets()dataset.upload()assert "TestCreateDatasetFromStr" in unify.list_datasets()dataset = unify.Dataset.from_upstream("TestCreateDatasetFromStr")assert isinstance(dataset[0], unify.Log)unify.delete_dataset("TestCreateDatasetFromStr")assert "TestCreateDatasetFromStr" not in unify.list_datasets() | 2 | 11 | 1 | 101 | 0 | 119 | 130 | 119 | self | [] | None | {"Assign": 2, "Expr": 3, "If": 1} | 10 | 12 | 10 | ["unify.list_datasets", "unify.delete_dataset", "unify.Dataset", "unify.list_datasets", "dataset.upload", "unify.list_datasets", "unify.Dataset.from_upstream", "isinstance", "unify.delete_dataset", "unify.list_datasets"] | 0 | [] | The function (test_create_dataset_from_upstream) defined within the public class called TestDatasetConstruction.The function start at line 119 and ends at 130. It contains 11 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 10.0 functions, and It has 10.0 functions called inside which are ["unify.list_datasets", "unify.delete_dataset", "unify.Dataset", "unify.list_datasets", "dataset.upload", "unify.list_datasets", "unify.Dataset.from_upstream", "isinstance", "unify.delete_dataset", "unify.list_datasets"]. |
unifyai_unify | TestDatasetManipulation | public | 0 | 0 | test_iterate_over_dataset | def test_iterate_over_dataset(self) -> None:msgs = ["a", "b", "c"]dataset = unify.Dataset(msgs)assert len(dataset) == len(msgs)for log, item, msg in zip(dataset, dataset.data, msgs):assert isinstance(log, unify.Log)assert item == msg | 2 | 7 | 1 | 65 | 0 | 136 | 142 | 136 | self | [] | None | {"Assign": 2, "For": 1} | 5 | 7 | 5 | ["unify.Dataset", "len", "len", "zip", "isinstance"] | 0 | [] | The function (test_iterate_over_dataset) defined within the public class called TestDatasetManipulation.The function start at line 136 and ends at 142. 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 5.0 functions, and It has 5.0 functions called inside which are ["unify.Dataset", "len", "len", "zip", "isinstance"]. |
unifyai_unify | TestDatasetManipulation | public | 0 | 0 | test_index_dataset | def test_index_dataset(self) -> None:dataset = unify.Dataset(["a", "b", "c"])data = dataset.dataassert isinstance(dataset[0], unify.Log)assert data[0] == "a"assert isinstance(dataset[1], unify.Log)assert data[1] == "b"assert isinstance(dataset[2], unify.Log)assert data[2] == "c"assert isinstance(dataset[-1], unify.Log)assert data[-1] == "c"with pytest.raises(IndexError):dataset[3] | 1 | 13 | 1 | 116 | 0 | 145 | 157 | 145 | self | [] | None | {"Assign": 2, "Expr": 1, "With": 1} | 6 | 13 | 6 | ["unify.Dataset", "isinstance", "isinstance", "isinstance", "isinstance", "pytest.raises"] | 0 | [] | The function (test_index_dataset) defined within the public class called TestDatasetManipulation.The function start at line 145 and ends at 157. It contains 13 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 6.0 functions, and It has 6.0 functions called inside which are ["unify.Dataset", "isinstance", "isinstance", "isinstance", "isinstance", "pytest.raises"]. |
unifyai_unify | TestDatasetManipulation | public | 0 | 0 | test_slice_dataset | def test_slice_dataset(self) -> None:msgs = ["a", "b", "c", "d"]dataset = unify.Dataset(["a", "b", "c", "d"])msgs = msgs[1:-1]dataset = dataset[1:-1]data = dataset.data[1:-1]for log, item, msg in zip(dataset, data, msgs):assert isinstance(log, unify.Log)assert item == msg | 2 | 9 | 1 | 92 | 0 | 160 | 168 | 160 | self | [] | None | {"Assign": 5, "For": 1} | 3 | 9 | 3 | ["unify.Dataset", "zip", "isinstance"] | 0 | [] | The function (test_slice_dataset) defined within the public class called TestDatasetManipulation.The function start at line 160 and ends at 168. It contains 9 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["unify.Dataset", "zip", "isinstance"]. |
unifyai_unify | TestDatasetManipulation | public | 0 | 0 | test_dataset_contains | def test_dataset_contains(self) -> None:dataset1 = unify.Dataset(["a", "b", "c"])dataset2 = unify.Dataset(["a", "b"])assert dataset2 in dataset1assert "a" in dataset1assert "b" in dataset1assert dataset1.data[1] in dataset1assert dataset1.data[0:2] in dataset1assert ["b", "c"] in dataset1assert "d" not in dataset1dataset3 = unify.Dataset(["c", "d"])assert dataset3 not in dataset1 | 1 | 12 | 1 | 95 | 0 | 171 | 182 | 171 | self | [] | None | {"Assign": 3} | 3 | 12 | 3 | ["unify.Dataset", "unify.Dataset", "unify.Dataset"] | 0 | [] | The function (test_dataset_contains) defined within the public class called TestDatasetManipulation.The function start at line 171 and ends at 182. It contains 12 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["unify.Dataset", "unify.Dataset", "unify.Dataset"]. |
unifyai_unify | TestDatasetManipulation | public | 0 | 0 | test_dataset_one_liners | def test_dataset_one_liners(self) -> None:dataset = (unify.Dataset(["a"]) + "b").add("c").set_name("my_dataset")assert dataset.name == "my_dataset"assert "a" in datasetassert "b" in datasetassert "c" in dataset | 1 | 6 | 1 | 49 | 0 | 185 | 190 | 185 | self | [] | None | {"Assign": 1} | 3 | 6 | 3 | ["set_name", "add", "unify.Dataset"] | 0 | [] | The function (test_dataset_one_liners) defined within the public class called TestDatasetManipulation.The function start at line 185 and ends at 190. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["set_name", "add", "unify.Dataset"]. |
unifyai_unify | TestDatasetCombining | public | 0 | 0 | test_add_datasets | def test_add_datasets(self) -> None:msgs = ["a", "b", "c", "d"]dataset1 = unify.Dataset(msgs[0:2])dataset2 = unify.Dataset(msgs[2:])dataset = dataset1 + dataset2assert len(dataset) == len(msgs)data = dataset.datafor log, item, msg in zip(dataset, data, msgs):assert isinstance(log, unify.Log)assert item == msg | 2 | 10 | 1 | 92 | 0 | 196 | 205 | 196 | self | [] | None | {"Assign": 5, "For": 1} | 6 | 10 | 6 | ["unify.Dataset", "unify.Dataset", "len", "len", "zip", "isinstance"] | 0 | [] | The function (test_add_datasets) defined within the public class called TestDatasetCombining.The function start at line 196 and ends at 205. It contains 10 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["unify.Dataset", "unify.Dataset", "len", "len", "zip", "isinstance"]. |
unifyai_unify | TestDatasetCombining | public | 0 | 0 | test_sum_datasets | def test_sum_datasets(self) -> None:msgs = ["a", "b", "c", "d"]dataset1 = unify.Dataset(msgs[0:2])dataset2 = unify.Dataset(msgs[2:])dataset = sum([dataset1, dataset2])assert len(dataset) == len(msgs)data = dataset.datafor log, item, msg in zip(dataset, data, msgs):assert isinstance(log, unify.Log)assert item == msg | 2 | 10 | 1 | 97 | 0 | 208 | 217 | 208 | self | [] | None | {"Assign": 5, "For": 1} | 7 | 10 | 7 | ["unify.Dataset", "unify.Dataset", "sum", "len", "len", "zip", "isinstance"] | 0 | [] | The function (test_sum_datasets) defined within the public class called TestDatasetCombining.The function start at line 208 and ends at 217. It contains 10 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["unify.Dataset", "unify.Dataset", "sum", "len", "len", "zip", "isinstance"]. |
unifyai_unify | TestDatasetCombining | public | 0 | 0 | test_add_datasets_w_duplicates | def test_add_datasets_w_duplicates(self) -> None:msgs1 = ["a", "b"]msgs2 = ["b", "c"]dataset1 = unify.Dataset(msgs1)dataset2 = unify.Dataset(msgs2)dataset = dataset1 + dataset2assert len(dataset) == 3data = dataset.datafor log, item, msg in zip(dataset, data, ("a", "b", "c")):assert isinstance(log, unify.Log)assert item == msg | 2 | 11 | 1 | 89 | 0 | 220 | 230 | 220 | self | [] | None | {"Assign": 6, "For": 1} | 5 | 11 | 5 | ["unify.Dataset", "unify.Dataset", "len", "zip", "isinstance"] | 0 | [] | The function (test_add_datasets_w_duplicates) defined within the public class called TestDatasetCombining.The function start at line 220 and ends at 230. It contains 11 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 5.0 functions, and It has 5.0 functions called inside which are ["unify.Dataset", "unify.Dataset", "len", "zip", "isinstance"]. |
unifyai_unify | TestDatasetCombining | public | 0 | 0 | test_dataset_inplace_addition | def test_dataset_inplace_addition(self) -> None:msgs = ["a", "b", "c", "d"]dataset = unify.Dataset(msgs[0:2])did = id(dataset)dataset2 = unify.Dataset(msgs[2:])dataset += dataset2assert did == id(dataset)assert len(dataset) == len(msgs)data = dataset.datafor log, item, msg in zip(dataset, data, msgs):assert isinstance(log, unify.Log)assert item == msg | 2 | 12 | 1 | 103 | 0 | 233 | 244 | 233 | self | [] | None | {"Assign": 5, "AugAssign": 1, "For": 1} | 8 | 12 | 8 | ["unify.Dataset", "id", "unify.Dataset", "id", "len", "len", "zip", "isinstance"] | 0 | [] | The function (test_dataset_inplace_addition) defined within the public class called TestDatasetCombining.The function start at line 233 and ends at 244. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 8.0 functions, and It has 8.0 functions called inside which are ["unify.Dataset", "id", "unify.Dataset", "id", "len", "len", "zip", "isinstance"]. |
unifyai_unify | TestDatasetCombining | public | 0 | 0 | test_dataset_single_item_addition | def test_dataset_single_item_addition(self) -> None:dataset = unify.Dataset("a") + "b"data = dataset.dataassert len(dataset) == 2assert isinstance(dataset[0], unify.Log)assert data[0] == "a"assert isinstance(dataset[1], unify.Log)assert data[1] == "b" | 1 | 8 | 1 | 67 | 0 | 247 | 254 | 247 | self | [] | None | {"Assign": 2} | 4 | 8 | 4 | ["unify.Dataset", "len", "isinstance", "isinstance"] | 0 | [] | The function (test_dataset_single_item_addition) defined within the public class called TestDatasetCombining.The function start at line 247 and ends at 254. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["unify.Dataset", "len", "isinstance", "isinstance"]. |
unifyai_unify | TestDatasetCombining | public | 0 | 0 | test_dataset_reverse_addition | def test_dataset_reverse_addition(self) -> None:dataset = "a" + unify.Dataset("b")data = dataset.dataassert len(dataset) == 2assert isinstance(dataset[0], unify.Log)assert data[0] == "a"assert isinstance(dataset[1], unify.Log)assert data[1] == "b" | 1 | 8 | 1 | 67 | 0 | 257 | 264 | 257 | self | [] | None | {"Assign": 2} | 4 | 8 | 4 | ["unify.Dataset", "len", "isinstance", "isinstance"] | 0 | [] | The function (test_dataset_reverse_addition) defined within the public class called TestDatasetCombining.The function start at line 257 and ends at 264. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["unify.Dataset", "len", "isinstance", "isinstance"]. |
unifyai_unify | TestDatasetTrimming | public | 0 | 0 | test_sub_datasets | def test_sub_datasets(self) -> None:msgs = ["a", "b", "c", "d"]dataset1 = unify.Dataset(msgs)dataset2 = unify.Dataset(msgs[2:])dataset = dataset1 - dataset2assert len(dataset) == 2data = dataset.datafor log, item, msg in zip(dataset, data, msgs[0:2]):assert isinstance(log, unify.Log)assert item == msg | 2 | 10 | 1 | 89 | 0 | 269 | 278 | 269 | self | [] | None | {"Assign": 5, "For": 1} | 5 | 10 | 5 | ["unify.Dataset", "unify.Dataset", "len", "zip", "isinstance"] | 0 | [] | The function (test_sub_datasets) defined within the public class called TestDatasetTrimming.The function start at line 269 and ends at 278. It contains 10 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["unify.Dataset", "unify.Dataset", "len", "zip", "isinstance"]. |
unifyai_unify | TestDatasetTrimming | public | 0 | 0 | test_sub_datasets_w_non_overlap | def test_sub_datasets_w_non_overlap(self) -> None:msgs1 = ["a", "b"]msgs2 = ["b", "c"]dataset1 = unify.Dataset(msgs1)dataset2 = unify.Dataset(msgs2)with pytest.raises(AssertionError):dataset1 - dataset2 | 1 | 7 | 1 | 48 | 0 | 281 | 287 | 281 | self | [] | None | {"Assign": 4, "Expr": 1, "With": 1} | 3 | 7 | 3 | ["unify.Dataset", "unify.Dataset", "pytest.raises"] | 0 | [] | The function (test_sub_datasets_w_non_overlap) defined within the public class called TestDatasetTrimming.The function start at line 281 and ends at 287. It contains 7 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["unify.Dataset", "unify.Dataset", "pytest.raises"]. |
unifyai_unify | TestDatasetTrimming | public | 0 | 0 | test_dataset_inplace_subtraction | def test_dataset_inplace_subtraction(self) -> None:msgs = ["a", "b", "c", "d"]dataset = unify.Dataset(msgs)did = id(dataset)dataset2 = unify.Dataset(msgs[2:])dataset -= dataset2assert did == id(dataset)assert len(dataset) == 2data = dataset.datafor log, item, msg in zip(dataset, data, msgs[0:2]):assert isinstance(log, unify.Log)assert item == msg | 2 | 12 | 1 | 100 | 0 | 290 | 301 | 290 | self | [] | None | {"Assign": 5, "AugAssign": 1, "For": 1} | 7 | 12 | 7 | ["unify.Dataset", "id", "unify.Dataset", "id", "len", "zip", "isinstance"] | 0 | [] | The function (test_dataset_inplace_subtraction) defined within the public class called TestDatasetTrimming.The function start at line 290 and ends at 301. It contains 12 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["unify.Dataset", "id", "unify.Dataset", "id", "len", "zip", "isinstance"]. |
unifyai_unify | TestDatasetTrimming | public | 0 | 0 | test_dataset_single_item_subtraction | def test_dataset_single_item_subtraction(self) -> None:dataset = unify.Dataset(["a", "b"]) - "b"assert len(dataset) == 1data = dataset.dataassert isinstance(dataset[0], unify.Log)assert data[0] == "a" | 1 | 6 | 1 | 52 | 0 | 304 | 309 | 304 | self | [] | None | {"Assign": 2} | 3 | 6 | 3 | ["unify.Dataset", "len", "isinstance"] | 0 | [] | The function (test_dataset_single_item_subtraction) defined within the public class called TestDatasetTrimming.The function start at line 304 and ends at 309. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["unify.Dataset", "len", "isinstance"]. |
unifyai_unify | TestDatasetTrimming | public | 0 | 0 | test_dataset_reverse_subtraction | def test_dataset_reverse_subtraction(self) -> None:dataset = ["a", "b"] - unify.Dataset("b")assert len(dataset) == 1data = dataset.dataassert isinstance(dataset[0], unify.Log)assert data[0] == "a" | 1 | 6 | 1 | 52 | 0 | 312 | 317 | 312 | self | [] | None | {"Assign": 2} | 3 | 6 | 3 | ["unify.Dataset", "len", "isinstance"] | 0 | [] | The function (test_dataset_reverse_subtraction) defined within the public class called TestDatasetTrimming.The function start at line 312 and ends at 317. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["unify.Dataset", "len", "isinstance"]. |
unifyai_unify | TestDatasetTrimming | public | 0 | 0 | test_dataset_from_item_subtraction | def test_dataset_from_item_subtraction(self) -> None:dataset = unify.Dataset("b") + "a" - "b"assert len(dataset) == 1data = dataset.dataassert isinstance(dataset[0], unify.Log)assert data[0] == "a" | 1 | 6 | 1 | 50 | 0 | 320 | 325 | 320 | self | [] | None | {"Assign": 2} | 3 | 6 | 3 | ["unify.Dataset", "len", "isinstance"] | 0 | [] | The function (test_dataset_from_item_subtraction) defined within the public class called TestDatasetTrimming.The function start at line 320 and ends at 325. It contains 6 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["unify.Dataset", "len", "isinstance"]. |
unifyai_unify | UploadTesting | public | 0 | 0 | __enter__ | def __enter__(self):if "test_dataset" in unify.list_datasets():unify.delete_dataset("test_dataset") | 2 | 3 | 1 | 20 | 0 | 329 | 331 | 329 | self | [] | None | {"Expr": 1, "If": 1} | 2 | 3 | 2 | ["unify.list_datasets", "unify.delete_dataset"] | 35 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheelCtx.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.adjoint_py.AdjointTape.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.kinesis.kinesis_py.KinesisSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.consumer_py.PubSubConsumer.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.pubsub_py.PubSubSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.devel_common.src.tests_common.test_utils.stream_capture_manager_py.StreamCaptureManager.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_modify_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message"] | The function (__enter__) defined within the public class called UploadTesting.The function start at line 329 and ends at 331. It contains 3 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["unify.list_datasets", "unify.delete_dataset"], It has 35.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928915_donnemartin_gitsome.xonsh.contexts_py.Functor.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.tmpdirs_py.InTemporaryDirectory.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheel.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967063_matthew_brett_delocate.delocate.wheeltools_py.InWheelCtx.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3969490_pyro_ppl_funsor.funsor.adjoint_py.AdjointTape.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.77620428_lqhuang_mode_ng.src.mode.locals_py.ContextManagerRole.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78313907_openzim_python_scraperlib.src.zimscraperlib.zim.creator_py.Creator.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.kinesis.kinesis_py.KinesisSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.consumer_py.PubSubConsumer.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.84727806_quixio_quix_streams.quixstreams.sources.community.pubsub.pubsub_py.PubSubSource.setup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_api_server_command_py.TestCliApiServer.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.cli.commands.test_kerberos_command_py.TestKerberosCommand.test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_failed_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.airflow_core.tests.unit.security.test_kerberos_py.TestKerberos.test_renew_from_kt_without_workaround", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.devel_common.src.tests_common.test_utils.stream_capture_manager_py.StreamCaptureManager.__enter__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.celery.tests.unit.celery.cli.test_celery_command_py.TestFlowerCommand._test_run_command_daemon", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.google.tests.unit.google.cloud.hooks.test_gcs_py.TestGCSHook.test_provide_file_upload", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_delete_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestAdminClientHook.test_modify_subscription", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_message", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94556628_apache_airflow.providers.microsoft.azure.tests.unit.microsoft.azure.hooks.test_asb_py.TestMessageHook.test_receive_subscription_message"]. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.