code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
# -*- coding: utf-8 -*- """ markupsafe._constants ~~~~~~~~~~~~~~~~~~~~~ Highlevel implementation of the Markup string. :copyright: (c) 2010 by Armin Ronacher. :license: BSD, see LICENSE for more details. """ HTML_ENTITIES = { 'AElig': 198, 'Aacute': 193, 'Acirc': 194, 'Agrave': 1...
ajibawa-2023/Python-Code-Large/train/row_2410
2
267
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2410:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0225, 0.0337, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# -*- coding: utf-8 -*- """ jinja2.exceptions ~~~~~~~~~~~~~~~~~ Jinja exceptions. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ class TemplateError(Exception): """Baseclass for all template errors.""" def __init__(self, message=None): i...
ajibawa-2023/Python-Code-Large/train/row_2411
69
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2411:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.042, 0.0629, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2411:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2411:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2411:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2411:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: utf-8 -*- """ jinja2.sandbox ~~~~~~~~~~~~~~ Adds a sandbox layer to Jinja as it was the default behavior in the old Jinja 1 releases. This sandbox is slightly different from Jinja 1 as the default behavior is easier to use. The behavior can be changed by subclassing the environm...
ajibawa-2023/Python-Code-Large/train/row_2412
103
271
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2412:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0295, 0.048, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2412:Try_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2412:ImportFrom_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2412:Try_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2412:ImportFrom_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# -*- coding: utf-8 -*- """ jinja2.meta ~~~~~~~~~~~ This module implements various functions that exposes information about templates that might be interesting for various kinds of applications. :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details. :license: BSD, see LICENSE fo...
ajibawa-2023/Python-Code-Large/train/row_2413
36
102
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2413:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0637, 0.098, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2413:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2413:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2413:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2413:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: utf-8 -*- """ jinja2.defaults ~~~~~~~~~~~~~~~ Jinja default filters and tags. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner from gettext import gettext as _ ##ADDD # defaults for...
ajibawa-2023/Python-Code-Large/train/row_2414
17
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2414:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1463, 0.2195, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# -*- coding: utf-8 -*- """ jinja2._stringdefs ~~~~~~~~~~~~~~~~~~ Strings of all Unicode characters of a certain category. Used for matching in Unicode-aware languages. Run to regenerate. Inspired by chartypes_create.py from the MoinMoin project, original implementation from Pygments. :co...
ajibawa-2023/Python-Code-Large/train/row_2415
66
130
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2415:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 14], "level": 0, "parent": null, "vector": [8, 0, 0.0615, 0.1, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2415:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2415:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2415:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2415:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2...
# -*- coding: utf-8 -*- """ jinja.constants ~~~~~~~~~~~~~~~ Various constants. :copyright: (c) 2010 by the Jinja Team. :license: BSD, see LICENSE for more details. """ #: list of lorem ipsum words used by the lipsum() helper function LOREM_IPSUM_WORDS = u'''\ a ac accumsan ad adipiscing aenean a...
ajibawa-2023/Python-Code-Large/train/row_2416
2
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2416:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.2812, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# -*- coding: utf-8 -*- """ jinja2 ~~~~~~ Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. Nutshell -------- Here a small example of a Jinja2 template:: {% ...
ajibawa-2023/Python-Code-Large/train/row_2417
13
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2417:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 28], "level": 0, "parent": null, "vector": [8, 0, 0.2055, 0.3699, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2417:Try_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2417:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2417:Try_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2417:Assign_L34_C4"}]
# -*- coding: utf-8 -*- """ jinja2.bccache ~~~~~~~~~~~~~~ This module implements the bytecode cache system Jinja is optionally using. This is useful if you have very complex template situations and the compiliation of all those templates slow down your application too much. Situations whe...
ajibawa-2023/Python-Code-Large/train/row_2420
121
280
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2420:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0321, 0.0536, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2420:Try_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2420:ImportFrom_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2420:Try_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2420:ImportFrom_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_2421
5
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2421:Assign_L24_C0", "label": "DEFAULT_LOCALE =", "type": "assigned_variable", "loc": [24, 24], "level": 0, "parent": null, "vector": [14, 0, 0.8571, 0.0357, 0, 0.66, 0.0, 335, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DEFAULT_LOCALE", "arg_names": [], "import_names":...
[]
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_2422
134
258
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2422:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.0523, 0.1008, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2422:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2422:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2422:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2422:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_2423
252
482
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2423:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.028, 0.0539, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2423:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2423:Expr_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2423:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2423:Assign_L62_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_2424
14
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2424:FunctionDef_L22_C0", "label": "loadProperties", "type": "function", "loc": [22, 37], "level": 0, "parent": null, "vector": [2, 0, 0.7973, 0.4324, 0, 0.66, 0.0, 366, 0, 1, 1, 0, 0, 0, 11], "semantic": {"name": "loadProperties", "arg_names": ["fileName"], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2424:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2424:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2424:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2424:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-L...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_2425
27
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2425:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1776, 0.3421, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2425:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2425:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2425:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2425:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" Copyright (c) 2008, appengine-utilities project All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and ...
ajibawa-2023/Python-Code-Large/train/row_2426
31
97
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2426:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 26], "level": 0, "parent": null, "vector": [8, 0, 0.1392, 0.268, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2426:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2426:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2426:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2426:FunctionDef_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation...
ajibawa-2023/Python-Code-Large/train/row_2427
57
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2427:Import_L22_C0", "label": "model import model", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.2018, 0.0092, 0, 0.66, 0.0, 722, 0, 1, 0, 0, 722, 0, 0], "semantic": {"name": "model", "arg_names": [], "import_names": ["model"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2427:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2427:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2427:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2427:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python version = "1.7" version_info = (1,7,0,"rc-2") __revision__ = "$Rev: 72 $" """ Python-Markdown =============== Converts Markdown to HTML. Basic usage as a module: import markdown md = Markdown() html = md.convert(your_text_string) See http://www.freewisdom.org/projects/python-mark...
ajibawa-2023/Python-Code-Large/train/row_2428
891
1,930
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2428:Assign_L3_C0", "label": "version =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.0016, 0.0005, 0, 0.66, 0.0, 623, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "version", "arg_names": [], "import_names": [], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2428:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2428:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2428:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2428:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software ...
ajibawa-2023/Python-Code-Large/train/row_2429
19
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2429:Import_L23_C0", "label": "wsgiref.handlers import wsgiref.handlers", "type": "import", "loc": [23, 23], "level": 0, "parent": null, "vector": [1, 0, 0.4694, 0.0204, 0, 0.66, 0.0, 709, 0, 1, 0, 0, 709, 0, 0], "semantic": {"name": "wsgiref.handlers", "arg_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2429:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2429:FunctionDef_L33_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2429:FunctionDef_L33_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_2429:Expr_L34_C2"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python import struct from StringIO import StringIO from google.appengine.api import images def resize(image, maxwidth, maxheight): imageinfo = getimageinfo(image) width = float(imageinfo[1]) height = float(imageinfo[2]) ratio = width / height dwidth = maxheight * ratio dheight = ma...
ajibawa-2023/Python-Code-Large/train/row_2430
54
77
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2430:Import_L2_C0", "label": "struct import struct", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.026, 0.013, 0, 0.66, 0.0, 399, 0, 1, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names": ["struct"], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2430:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2430:Assign_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2430:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2430:Assign_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large...
import simplejson import cgi class JSONFilter(object): def __init__(self, app, mime_type='text/x-json'): self.app = app self.mime_type = mime_type def __call__(self, environ, start_response): # Read JSON POST input to jsonfilter.json if matching mime type response = {...
ajibawa-2023/Python-Code-Large/train/row_2431
31
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2431:Import_L1_C0", "label": "simplejson import simplejson", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.025, 0.025, 0, 0.66, 0.0, 386, 0, 1, 0, 0, 386, 0, 0], "semantic": {"name": "simplejson", "arg_names": [], "import_names": ["simp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2431:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2431:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2431:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2431:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" Implementation of JSONDecoder """ import re import sys from simplejson.scanner import Scanner, pattern try: from simplejson import _speedups except: _speedups = None FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconstants(): import struct import sys _BYTES = '7FF800...
ajibawa-2023/Python-Code-Large/train/row_2432
177
331
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2432:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.006, 0.0091, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2432:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2432:ImportFrom_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2432:Try_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2432:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
""" Iterator based sre token scanner """ import sre_parse, sre_compile, sre_constants from sre_constants import BRANCH, SUBPATTERN from re import VERBOSE, MULTILINE, DOTALL import re __all__ = ['Scanner', 'pattern'] FLAGS = (VERBOSE | MULTILINE | DOTALL) class Scanner(object): def __init__(self, lexic...
ajibawa-2023/Python-Code-Large/train/row_2433
47
64
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2433:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0312, 0.0469, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2433:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2433:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2433:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2433:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-Code...
""" Implementation of JSONEncoder """ import re try: from simplejson import _speedups except ImportError: _speedups = None ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') ESCAPE_ASCII = re.compile(r'([\\"/]|[^\ -~])') ESCAPE_DCT = { '\\': '\\\\', '"': '\\"', '\b': '\\b', '\f': '...
ajibawa-2023/Python-Code-Large/train/row_2434
199
376
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2434:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0053, 0.008, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2434:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2434:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2434:Try_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2434:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2...
#!/usr/bin/python # -*- coding: utf-8 -*- ## # (C) Copyright 2011 Jose Blanco <jose.blanco[a]vikuit.com> # (C) Copyright 2011 Jose Carrasco <jose.carrasco[a]vikuit.com> # # This file is part of "vikuit". # # "vikuit" is free software: you can redistribute it and/or modify # it under the terms of the GNU Aff...
ajibawa-2023/Python-Code-Large/train/row_2436
282
391
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2436:ImportFrom_L24_C0", "label": "from google.appengine.ext import db", "type": "import", "loc": [24, 24], "level": 0, "parent": null, "vector": [1, 0, 0.0614, 0.0026, 0, 0.66, 0.0, 167, 0, 1, 0, 0, 167, 0, 0], "semantic": {"name": "google.appengine.ext", "arg_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2436:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2436:Assign_L29_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2436:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2436:Assign_L30_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import copy from logging_mixin import LoggingMixin import os from simple_api_mixin import SimpleAPIMixin class ScriptInterface(SimpleAPIMixin, LoggingMixin): def __init__(self, devide_app): self.devide_app = devide_app # initialise logging mixin LoggingMixin.__init__(self) print ...
ajibawa-2023/Python-Code-Large/train/row_2437
26
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2437:Import_L1_C0", "label": "copy import copy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0233, 0, 0.66, 0.0, 739, 0, 1, 0, 0, 739, 0, 0], "semantic": {"name": "copy", "arg_names": [], "import_names": ["copy"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2437:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2437:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2437:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2437:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
# simple api mixin to be used by RPC and command line interfaces # of DeVIDE that require simple methods for speaking to a running # instance class SimpleAPIMixin: def __init__(self, devide_app): self.devide_app = devide_app def close(self): del self.devide_app def load_and_realise_netwo...
ajibawa-2023/Python-Code-Large/train/row_2438
31
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2438:ClassDef_L5_C0", "label": "SimpleAPIMixin", "type": "class", "loc": [5, 63], "level": 0, "parent": null, "vector": [3, 0, 0.5397, 0.9365, 0, 0.66, 0.0, 850, 0, 8, 0, 0, 0, 0, 12], "semantic": {"name": "SimpleAPIMixin", "arg_names": [], "import_names": [], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2438:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2438:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2438:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2438:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
# logging mixin for use by DeVIDE interfaces import logging import sys class LoggingMixin: def __init__(self): # this sets things up for logging to stderr logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(levelname)s %(message)s', ...
ajibawa-2023/Python-Code-Large/train/row_2439
27
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2439:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0159, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2439:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2439:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2439:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2439:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
from logging_mixin import LoggingMixin from SimpleXMLRPCServer import SimpleXMLRPCServer import time class ServerProxy: def test_function(self): return "Hello World!" class XMLRPCInterface(LoggingMixin): def __init__(self, devide_app): self._devide_app = devide_app # initialise loggi...
ajibawa-2023/Python-Code-Large/train/row_2440
25
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2440:ImportFrom_L1_C0", "label": "from logging_mixin import LoggingMixin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0233, 0, 0.66, 0.0, 424, 0, 1, 0, 0, 424, 0, 0], "semantic": {"name": "logging_mixin", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2440:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2440:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2440:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2440:Return_L7_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
# required for this dir to be recognised as package.
ajibawa-2023/Python-Code-Large/train/row_2441
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. # we use psutil for keeping an eye on memory (and crashes) # if you don't have this yet, install with: # dre shell # pip install psutil import psutil import string import sys import time import webbrowser import wx import wx....
ajibawa-2023/Python-Code-Large/train/row_2442
189
427
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2442:Import_L9_C0", "label": "psutil import psutil", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0211, 0.0023, 0, 0.66, 0.0, 155, 0, 1, 0, 0, 155, 0, 0], "semantic": {"name": "psutil", "arg_names": [], "import_names": ["psutil"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2442:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2442:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2442:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2442:FunctionDef_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import vtk from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx from module_kits.wx_kit import utils as wxutils import wx.lib.agw.aui as aui wx.aui = aui from wx.html import HtmlWindow class ...
ajibawa-2023/Python-Code-Large/train/row_2444
205
437
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2444:Import_L5_C0", "label": "vtk import vtk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0114, 0.0023, 0, 0.66, 0.0, 665, 0, 1, 0, 0, 665, 0, 0], "semantic": {"name": "vtk", "arg_names": [], "import_names": ["vtk"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2444:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2444:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2444:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2444:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from main import WXInterface
ajibawa-2023/Python-Code-Large/train/row_2445
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2445:ImportFrom_L1_C0", "label": "from main import WXInterface", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 1.0, 1.0, 0, 0.66, 0.0, 624, 0, 1, 0, 0, 624, 0, 0], "semantic": {"name": "main", "arg_names": [], "import_names": ["WXInterfac...
[]
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. """Collection of module utility functions. @author: Charl P. Botha <http://cpbotha.net/> """ import wx import resources.graphics.images def create_eoca_buttons(d3module, viewFrame, viewFramePanel, o...
ajibawa-2023/Python-Code-Large/train/row_2447
104
314
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2447:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 8], "level": 0, "parent": null, "vector": [8, 0, 0.0207, 0.0127, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2447:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2447:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2447:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2447:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# python rules. severely. # (c) 2007 cpbotha import glob import sys import os import shutil import zipfile def main(): cwd = os.path.abspath(os.curdir) hhp_dir = os.path.join(cwd, 'devidehelp_tmphhp') os.chdir(hhp_dir) htb_list = glob.glob('*.html') + \ glob.glob('*.png') + \ glob....
ajibawa-2023/Python-Code-Large/train/row_2448
17
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2448:Import_L4_C0", "label": "glob import glob", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1212, 0.0303, 0, 0.66, 0.0, 958, 0, 1, 0, 0, 958, 0, 0], "semantic": {"name": "glob", "arg_names": [], "import_names": ["glob"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2448:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2448:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2448:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2448:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import math class MarschnerLobb(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_mana...
ajibawa-2023/Python-Code-Large/train/row_2450
58
112
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2450:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0446, 0.0089, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2450:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2450:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2450:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2450:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class manualTransform(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._config.scale = (1.0, 1.0, 1.0) ...
ajibawa-2023/Python-Code-Large/train/row_2455
39
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2455:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.012, 0.012, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2455:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2455:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2455:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2455:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
# $Id$ class advectionProperties: kits = ['vtk_kit'] cats = ['Sources'] help = """Given a series of prepared advection volumes (each input is a timestep), calculate a number of metrics. The first input HAS to have a VolumeIndex PointData attribute/array. For example, the output of the pointsT...
ajibawa-2023/Python-Code-Large/train/row_2456
32
108
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2456:ClassDef_L3_C0", "label": "advectionProperties", "type": "class", "loc": [3, 18], "level": 0, "parent": null, "vector": [3, 0, 0.0972, 0.1481, 0, 0.66, 0.0, 13, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "advectionProperties", "arg_names": [], "import_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2456:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2456:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2456:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2456:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils class PassThrough(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) NoConfigModuleMixin.__init__( ...
ajibawa-2023/Python-Code-Large/train/row_2457
21
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2457:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.027, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2457:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2457:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2457:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2457:Expr_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2458
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import vtk import vtkdevide import wx class histogramSegment(IntrospectModuleMixin, ModuleBase): """Mooooo! I'm a cow. $Revision: 1.9 $ """ _gridCols = [('Type', 0), ('Number of Handles',0)] _g...
ajibawa-2023/Python-Code-Large/train/row_2460
341
641
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2460:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0016, 0.0016, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2460:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2460:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2460:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2460:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
from external import wxPyPlot import gen_utils from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils try: import Numeric except: import numarray as Numeric import vtk import wx class histogram1D(IntrospectModuleMixin, ModuleBase): """Calculates and sh...
ajibawa-2023/Python-Code-Large/train/row_2461
105
202
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2461:ImportFrom_L1_C0", "label": "from external import wxPyPlot", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.005, 0.005, 0, 0.66, 0.0, 924, 0, 1, 0, 0, 924, 0, 0], "semantic": {"name": "external", "arg_names": [], "import_names": ["w...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2461:Try_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2461:Import_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2461:Try_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2461:Import_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2461...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import cStringIO from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx # wxPython 2.8.8.1 wx.aui bugs severely on GTK. See: # http://trac.wxwidgets.org/ticket/9716 # Until this is fixed, use th...
ajibawa-2023/Python-Code-Large/train/row_2462
92
215
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2462:Import_L5_C0", "label": "cStringIO import cStringIO", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0047, 0, 0.66, 0.0, 764, 0, 1, 0, 0, 764, 0, 0], "semantic": {"name": "cStringIO", "arg_names": [], "import_names": ["cStri...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2462:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2462:ImportFrom_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2462:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2462:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# Modified by Francois Malan, LUMC / TU Delft # Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx import wx.lib.inspection import vtk # wxPython 2.8.8.1 wx.aui bugs severely on GTK. See: # ht...
ajibawa-2023/Python-Code-Large/train/row_2463
202
342
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2463:ImportFrom_L6_C0", "label": "from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.0175, 0.0029, 0, 0.66, 0.0, 201, 0, 1, 0, 0, 201, 0, 0], "semantic": {"name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2463:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2463:ImportFrom_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2463:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2463:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class histogram2D(ScriptedConfigModuleMixin, ModuleBase): """This module takes two inputs and creates a 2D histogram with input 2 vs input 1, i.e. input 1 on x-axis and...
ajibawa-2023/Python-Code-Large/train/row_2464
60
126
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2464:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0079, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2464:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2464:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2464:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2464:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # skeleton of an AUI-based viewer module # copy and modify for your own purposes. # set to False for 3D viewer, True for 2D image viewer IMAGE_VIEWER = True # import the frame, i.e. the wx window containing everything impor...
ajibawa-2023/Python-Code-Large/train/row_2466
103
247
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2466:Assign_L9_C0", "label": "IMAGE_VIEWER =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.0364, 0.004, 0, 0.66, 0.0, 16, 1, 0, 0, 0, 0, 4, 0], "semantic": {"name": "IMAGE_VIEWER", "arg_names": [], "import_names": [], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2466:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2466:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2466:FunctionDef_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2466:Expr_L29_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import csv import geometry import glob import os import math from module_base import ModuleBase from module_mixins import IntrospectModuleMixin,\ FileOpenDialogModuleMixin import module_utils import vtk import vtkgdcm...
ajibawa-2023/Python-Code-Large/train/row_2468
401
775
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2468:Import_L5_C0", "label": "csv import csv", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0065, 0.0013, 0, 0.66, 0.0, 312, 0, 1, 0, 0, 312, 0, 0], "semantic": {"name": "csv", "arg_names": [], "import_names": ["csv"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2468:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2468:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2468:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2468:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from module_kits.misc_kit.mixins import SubjectMixin import geometry from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import Measure2DFrame reload(Measure2DFrame) import vtk import vtktudoss import wx class M2DMeasurementInfo: pass class M2DWidget: """Cla...
ajibawa-2023/Python-Code-Large/train/row_2470
247
477
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2470:ImportFrom_L1_C0", "label": "from module_kits.misc_kit.mixins import SubjectMixin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0021, 0.0021, 0, 0.66, 0.0, 313, 0, 1, 0, 0, 313, 0, 0], "semantic": {"name": "module_kits.misc_kit.m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2470:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2470:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2470:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2470:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import comedi_utils reload(comedi_utils) import vtk import vtktudoss from module_kits import vtk_kit import wx ########################################################################### # 2D: # * Checkerboard. # * differe...
ajibawa-2023/Python-Code-Large/train/row_2471
257
488
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2471:Import_L5_C0", "label": "comedi_utils import comedi_utils", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0102, 0.002, 0, 0.66, 0.0, 286, 0, 1, 0, 0, 286, 0, 0], "semantic": {"name": "comedi_utils", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2471:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2471:FunctionDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2471:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2471:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Co...
import vtk import wx from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import external.PyAUI as PyAUI from resources.python import measure2d_panels reload(measure2d_panels) class Measure2DFrame(wx.Frame): def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, ...
ajibawa-2023/Python-Code-Large/train/row_2472
92
214
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2472:Import_L1_C0", "label": "vtk import vtk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0047, 0.0047, 0, 0.66, 0.0, 665, 0, 1, 0, 0, 665, 0, 0], "semantic": {"name": "vtk", "arg_names": [], "import_names": ["vtk"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2472:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2472:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2472:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2472:Expr_L17_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from wxPython._controls import wxLIST_MASK_STATE from wxPython._controls import wxLIST_STATE_SELECTED import os.path # Modified by Francois Malan, LUMC / TU Delft # December 2009 # # based on the SkeletonAUIViewer: # skeleton of an AUI-based viewer module # Copyright (c) Charl P. Botha, TU Delft. # set to False for 3D...
ajibawa-2023/Python-Code-Large/train/row_2473
1,009
1,446
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2473:ImportFrom_L1_C0", "label": "from wxPython._controls import wxLIST_MASK_STATE", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0007, 0.0007, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "wxPython._controls", "arg_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2473:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2473:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2473:FunctionDef_L34_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2473:Assign_L35_C8"}, {"f": "ajibawa-2023/Python-Code...
from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import operator HTML_START = '<html><body>' HTML_END = '</body></html>' def render_actions(lines): ms = '<p><b><ul>%s</ul></b></p>' # this should yield: <li>thing 1\n<li>thing 2\n<li>thing 3 etc bullets ...
ajibawa-2023/Python-Code-Large/train/row_2474
130
253
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2474:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.004, 0.004, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2474:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2474:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2474:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2474:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. class CodeRunner: kits = ['wx_kit', 'vtk_kit'] cats = ['Viewers'] help = \ """CodeRunner facilitates the direct integration of Python code into a DeVIDE network. The top part contains three editor int...
ajibawa-2023/Python-Code-Large/train/row_2476
55
197
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2476:ClassDef_L5_C0", "label": "CodeRunner", "type": "class", "loc": [5, 42], "level": 0, "parent": null, "vector": [3, 0, 0.1193, 0.1929, 0, 0.66, 0.0, 879, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "CodeRunner", "arg_names": [], "import_names": [], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2476:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2476:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2476:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2476:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#Hacked out of a class contained in Charl Botha's comedi_utils.py #Incorporated edits by by Corine Slagboom & Noeska Smit which formed part of their comedi_utils module, used in their 'Emphysema Viewer' #Final version by Francois Malan (2010-2011) from module_kits.vtk_kit.utils import DVOrientationWidget import o...
ajibawa-2023/Python-Code-Large/train/row_2477
170
283
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2477:ImportFrom_L5_C0", "label": "from module_kits.vtk_kit.utils import DVOrientationWidget", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0177, 0.0035, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "module_kits.vtk_k...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2477:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2477:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2477:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2477:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # skeleton of an AUI-based viewer module # copy and modify for your own purposes. # set to False for 3D viewer, True for 2D image viewer IMAGE_VIEWER = True MATCH_MODE_PASSTHROUGH = 0 MATCH_MODE_LANDMARK_SS = 1 MATCH_MODE_...
ajibawa-2023/Python-Code-Large/train/row_2478
237
515
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2478:Assign_L9_C0", "label": "IMAGE_VIEWER =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.0175, 0.0019, 0, 0.66, 0.0, 16, 1, 0, 0, 0, 0, 4, 0], "semantic": {"name": "IMAGE_VIEWER", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2478:ClassDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2478:FunctionDef_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2478:FunctionDef_L52_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2478:Expr_L53_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# sliceDirections.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ # class encapsulating all instances of the sliceDirection class import gen_utils # the following two lines are only needed during prototyping of the modules # that they import import modules.viewers.slice3dVWRmodules.sliceDirection reloa...
ajibawa-2023/Python-Code-Large/train/row_2479
345
650
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2479:Import_L5_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0077, 0.0015, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_u...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2479:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2479:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2479:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2479:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# shared.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ # import wx class s3dcGridMixin(object): """ """ def _handlerGridRangeSelect(self, event): """This event handler is a fix for the fact that the row selection in the wxGrid is deliberately broken. It's also ...
ajibawa-2023/Python-Code-Large/train/row_2480
33
81
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2480:Import_L5_C0", "label": "wx import wx", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0617, 0.0123, 0, 0.66, 0.0, 666, 0, 1, 0, 0, 666, 0, 0], "semantic": {"name": "wx", "arg_names": [], "import_names": ["wx"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2480:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2480:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2480:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2480:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# selectedPoints.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ # from module_kits.misc_kit.mixins import SubjectMixin from modules.viewers.slice3dVWRmodules.shared import s3dcGridMixin import operator import vtk import wx # ------------------------------------------------------------------------- c...
ajibawa-2023/Python-Code-Large/train/row_2483
247
534
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2483:ImportFrom_L5_C0", "label": "from module_kits.misc_kit.mixins import SubjectMixin", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0094, 0.0019, 0, 0.66, 0.0, 313, 0, 1, 0, 0, 313, 0, 0], "semantic": {"name": "module_kits.misc_kit.m...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2483:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2483:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2483:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2483:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# implicits.py copyright (c) 2003 Charl P. Botha <cpbotha@ieee.org> # $Id$ import gen_utils from modules.viewers.slice3dVWRmodules.shared import s3dcGridMixin import vtk import wx # ------------------------------------------------------------------------- class implicitInfo: def __init__(self): self.name...
ajibawa-2023/Python-Code-Large/train/row_2484
382
751
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2484:Import_L4_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0053, 0.0013, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_u...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2484:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2484:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2484:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2484:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-Code...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2485
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2486
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2487
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import cStringIO import vtk from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx # wxPython 2.8.8.1 wx.aui bugs severely on GTK. See: # http://trac.wxwidgets.org/ticket/9716 # Until this is fi...
ajibawa-2023/Python-Code-Large/train/row_2488
177
371
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2488:Import_L5_C0", "label": "cStringIO import cStringIO", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0135, 0.0027, 0, 0.66, 0.0, 764, 0, 1, 0, 0, 764, 0, 0], "semantic": {"name": "cStringIO", "arg_names": [], "import_names": ["cStri...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2488:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2488:ImportFrom_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2488:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2488:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. import cStringIO from vtk.wx.wxVTKRenderWindowInteractor import wxVTKRenderWindowInteractor import wx # wxPython 2.8.8.1 wx.aui bugs severely on GTK. See: # http://trac.wxwidgets.org/ticket/9716 # Until this is fixed, use th...
ajibawa-2023/Python-Code-Large/train/row_2489
171
368
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2489:Import_L5_C0", "label": "cStringIO import cStringIO", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0136, 0.0027, 0, 0.66, 0.0, 764, 0, 1, 0, 0, 764, 0, 0], "semantic": {"name": "cStringIO", "arg_names": [], "import_names": ["cStri...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2489:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2489:ImportFrom_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2489:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2489:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. # NOTES: # you can't put the RWI in a StaticBox, it never manages to appear. # mode: add / subtract # tool: new region growing, level set (with existing mask), draw # closed polygon, delete # ARGH. region growing results in...
ajibawa-2023/Python-Code-Large/train/row_2490
112
268
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2490:ImportFrom_L52_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [52, 52], "level": 0, "parent": null, "vector": [1, 0, 0.194, 0.0037, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2490:ClassDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2490:FunctionDef_L65_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2490:FunctionDef_L65_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2490:Expr_L66_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. from module_kits.vtk_kit.utils import DVOrientationWidget import operator import vtk import wx class SyncSliceViewers: """Class to link a number of CMSliceViewer instances w.r.t. camera. FIXME: consider adding o...
ajibawa-2023/Python-Code-Large/train/row_2492
231
434
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2492:ImportFrom_L5_C0", "label": "from module_kits.vtk_kit.utils import DVOrientationWidget", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0115, 0.0023, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "module_kits.vtk_k...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2492:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2492:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2492:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2492:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# $Id: vtpWRT.py 2401 2006-12-20 20:29:15Z cpbotha $ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import types class MatlabPointsWriter(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor M...
ajibawa-2023/Python-Code-Large/train/row_2493
34
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2493:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0145, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2493:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2493:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2493:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2493:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# $Id: vtpWRT.py 2401 2006-12-20 20:29:15Z cpbotha $ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import types class points_writer(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor Module...
ajibawa-2023/Python-Code-Large/train/row_2496
32
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2496:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0462, 0.0154, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2496:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2496:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2496:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2496:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. # Random development notes: # * SetFileDimensionality(2) if you want multiple slices written from # a single volume # * just generate im%05d.dcm filenames, as many as there are slices # * study / series UIDs are auto generat...
ajibawa-2023/Python-Code-Large/train/row_2498
87
197
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2498:ImportFrom_L11_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.0558, 0.0051, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2498:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2498:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2498:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2498:Expr_L25_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx # need this for wx.SAVE class metaImageWRT(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__ini...
ajibawa-2023/Python-Code-Large/train/row_2501
43
88
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2501:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0341, 0.0114, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2501:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2501:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2501:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2501:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
class batchConverter: kits = ['vtk_kit', 'wx_kit'] cats = ['Readers','Writers','Converters'] keywords = ['batch','convert','read','write','vti','mha','gipl'] help = """Batch converts image volume files from one type to another. Source and target types can be VTK ImageData (.vti), MetaImage (.mha), ...
ajibawa-2023/Python-Code-Large/train/row_2502
53
127
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2502:ClassDef_L1_C0", "label": "batchConverter", "type": "class", "loc": [1, 19], "level": 0, "parent": null, "vector": [3, 0, 0.0787, 0.1496, 0, 0.66, 0.0, 124, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "batchConverter", "arg_names": [], "import_names": [], "rhs_call_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2502:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2502:Assign_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2502:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2502:Assign_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# BatchConverter.py by Francois Malan - 2010-03-05. Updated 2011-12-11# import os.path from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import wx import os import vtk import itk class batchConverter( ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manag...
ajibawa-2023/Python-Code-Large/train/row_2503
261
422
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2503:Import_L3_C0", "label": "os.path import os.path", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0071, 0.0024, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["os.path"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2503:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2503:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2503:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2503:Expr_L16_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2504
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class nbhSeedConnect(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, ...
ajibawa-2023/Python-Code-Large/train/row_2508
64
138
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2508:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0362, 0.0072, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2508:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2508:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2508:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2508:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class nbCurvesLevelSet(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, mo...
ajibawa-2023/Python-Code-Large/train/row_2509
46
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2509:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0459, 0.0092, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2509:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2509:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2509:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2509:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class curvatureFlowDenoising(ScriptedConfigModuleMixin, ModuleBase): def __init_...
ajibawa-2023/Python-Code-Large/train/row_2510
37
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2510:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0602, 0.012, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2510:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2510:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2510:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2510:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class curvatureAnisotropicDiffusion(ScriptedConfigModuleMixin, ModuleBase): def __in...
ajibawa-2023/Python-Code-Large/train/row_2511
38
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2511:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2511:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2511:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2511:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2511:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class sigmoid(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manag...
ajibawa-2023/Python-Code-Large/train/row_2514
38
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2514:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0595, 0.0119, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2514:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2514:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2514:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2514:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class symmetricDemonsRegistration(ScriptedConfigModuleMixin, ModuleBase): def __init_...
ajibawa-2023/Python-Code-Large/train/row_2515
47
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2515:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.045, 0.009, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2515:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2515:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2515:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2515:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# $Id$ from genMixins import subjectMixin, updateCallsExecuteModuleMixin class transformStackClass(list, subjectMixin, updateCallsExecuteModuleMixin): def __init__(self, d3Module): # call base ctors subjectMixin.__init__(self) update...
ajibawa-2023/Python-Code-Large/train/row_2516
8
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2516:ImportFrom_L3_C0", "label": "from genMixins import subjectMixin, updateCallsExecuteModuleMixin", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 968, 0, 2, 0, 0, 968, 0, 0], "semantic": {"name": "genMixins...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2516:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2516:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2516:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2516:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2517
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# $Id$ from genMixins import subjectMixin, updateCallsExecuteModuleMixin class imageStackClass(list, subjectMixin, updateCallsExecuteModuleMixin): def __init__(self, d3Module): # call base ctors subjectMixin.__init__(self) updateCallsExecute...
ajibawa-2023/Python-Code-Large/train/row_2518
8
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2518:ImportFrom_L3_C0", "label": "from genMixins import subjectMixin, updateCallsExecuteModuleMixin", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1765, 0.0588, 0, 0.66, 0.0, 968, 0, 2, 0, 0, 968, 0, 0], "semantic": {"name": "genMixins...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2518:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2518:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2518:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2518:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk from module_base import ModuleBase import module_kits.itk_kit from module_mixins import ScriptedConfigModuleMixin class gradientAnisotropicDiffusion(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, mo...
ajibawa-2023/Python-Code-Large/train/row_2519
38
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2519:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0602, 0.012, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2519:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2519:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2519:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2519:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class cannyEdgeDetection(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, m...
ajibawa-2023/Python-Code-Large/train/row_2522
52
126
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2522:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0397, 0.0079, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2522:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2522:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2522:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2522:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class demonsRegistration(ScriptedConfigModuleMixin, ModuleBase): def __init__(se...
ajibawa-2023/Python-Code-Large/train/row_2523
47
112
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2523:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0446, 0.0089, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2523:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2523:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2523:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2523:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import copy import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import wx class ITKReader(ScriptedConfigModuleMixin, ModuleBase): def __i...
ajibawa-2023/Python-Code-Large/train/row_2524
67
150
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2524:Import_L5_C0", "label": "copy import copy", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0333, 0.0067, 0, 0.66, 0.0, 739, 0, 1, 0, 0, 739, 0, 0], "semantic": {"name": "copy", "arg_names": [], "import_names": ["copy"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2524:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2524:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2524:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2524:Expr_L15_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class gaussianConvolve(ScriptedConfigModuleMixin, ModuleBase): _orders = ['Zero', 'F...
ajibawa-2023/Python-Code-Large/train/row_2525
49
115
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2525:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0087, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2525:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2525:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2525:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2525:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. class ITKtoVTK: kits = ['itk_kit'] cats = ['Insight'] help = """Use this module to convert from any ITK image type to the corresponding VTK type. """ class VTKtoITK: kits = ['itk_kit'] cats = ['Ins...
ajibawa-2023/Python-Code-Large/train/row_2530
96
358
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2530:ClassDef_L5_C0", "label": "ITKtoVTK", "type": "class", "loc": [5, 10], "level": 0, "parent": null, "vector": [3, 0, 0.0209, 0.0168, 0, 0.66, 0.0, 54, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "ITKtoVTK", "arg_names": [], "import_names": [], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2530:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2530:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2530:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2530:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import vtk class VTKtoITKF3(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(se...
ajibawa-2023/Python-Code-Large/train/row_2532
32
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2532:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2532:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2532:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2532:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2532:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2534
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2535
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class levelSetMotionRegistration(ScriptedConfigModuleMixin, ModuleBase): def __init__...
ajibawa-2023/Python-Code-Large/train/row_2537
52
134
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2537:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0373, 0.0075, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2537:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2537:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2537:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2537:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2538
0
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[]
[]
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class gvfgac(ScriptedConfigModuleMixin, ModuleBase): """Module for performing Gradie...
ajibawa-2023/Python-Code-Large/train/row_2540
48
140
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2540:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0071, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2540:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2540:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2540:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2540:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import NoConfigModuleMixin class discreteLaplacian(NoConfigModuleMixin, ModuleBase): def __init__(self, module_ma...
ajibawa-2023/Python-Code-Large/train/row_2541
27
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2541:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.082, 0.0164, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2541:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2541:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2541:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2541:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin class tpgac(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manag...
ajibawa-2023/Python-Code-Large/train/row_2544
48
121
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2544:Import_L5_C0", "label": "itk import itk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0413, 0.0083, 0, 0.66, 0.0, 77, 0, 1, 0, 0, 77, 0, 0], "semantic": {"name": "itk", "arg_names": [], "import_names": ["itk"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2544:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2544:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2544:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2544:Expr_L15_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from typeModules.imageStackClass import imageStackClass import fixitk as itk from module_base import ModuleBase from module_mixins import FileOpenDialogModuleMixin import module_utils import wx class imageStackRDR(ModuleBase,...
ajibawa-2023/Python-Code-Large/train/row_2545
78
154
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2545:ImportFrom_L5_C0", "label": "from typeModules.imageStackClass import imageStackClass", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0325, 0.0065, 0, 0.66, 0.0, 855, 0, 1, 0, 0, 855, 0, 0], "semantic": {"name": "typeModules.imageSt...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2545:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2545:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2545:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2545:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtktud class imageEigenvectors(ModuleBase, NoConfigModuleMixin): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
ajibawa-2023/Python-Code-Large/train/row_2546
34
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2546:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0143, 0.0143, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_u...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2546:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2546:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2546:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2546:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtktud class imageGradientStructureTensor(ModuleBase, NoConfigModuleMixin): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_...
ajibawa-2023/Python-Code-Large/train/row_2548
34
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2548:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0143, 0.0143, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_u...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2548:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2548:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2548:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2548:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class testModule(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) # we'll be playing ...
ajibawa-2023/Python-Code-Large/train/row_2549
31
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2549:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0159, 0.0159, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2549:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2549:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2549:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2549:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtktud class imageCurvature(ModuleBase, NoConfigModuleMixin): """Calculates image curvature with VTKTUD vtkImageCurvature filter. You need 8 inputs, and in the following sequence: d...
ajibawa-2023/Python-Code-Large/train/row_2550
35
81
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_2550:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0123, 0.0123, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_u...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2550:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2550:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2550:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2550:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...