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
from module_mixins import simpleVTKClassModuleBase import vtk import vtkdevide class imageBorderMask(simpleVTKClassModuleBase): def __init__(self, module_manager): simpleVTKClassModuleBase.__init__( self, module_manager, vtkdevide.vtkImageBorderMask(), 'Creating border mask.', ...
ajibawa-2023/Python-Code-Large/train/row_2552
6
14
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_2552:ImportFrom_L1_C0", "label": "from module_mixins import simpleVTKClassModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0714, 0, 0.66, 0.0, 676, 0, 1, 0, 0, 676, 0, 0], "semantic": {"name": "module_mixins", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2552:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2552:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2552:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2552:Expr_L8_C8"}]
# $Id$ import fixitk as itk import gen_utils from module_base import ModuleBase import module_utils import module_utilsITK from module_mixins import ScriptedConfigModuleMixin class hessianDoG(ScriptedConfigModuleMixin, ModuleBase): """Calculates Hessian matrix of volume by convolution with second and cross de...
ajibawa-2023/Python-Code-Large/train/row_2555
40
86
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_2555:Import_L3_C0", "label": "fixitk import itk", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0349, 0.0116, 0, 0.66, 0.0, 362, 0, 1, 0, 0, 362, 0, 0], "semantic": {"name": "fixitk", "arg_names": [], "import_names": ["itk"], "rhs_call_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2555:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2555:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2555:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2555:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# EmphysemaViewerFrame by Corine Slagboom & Noeska Smit # Description # # Based on SkeletonAUIViewerFrame: # 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....
ajibawa-2023/Python-Code-Large/train/row_2557
137
276
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_2557:Import_L9_C0", "label": "cStringIO import cStringIO", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0326, 0.0036, 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_2557:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2557:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2557:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2557:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
class EmphysemaViewer: kits = ['vtk_kit'] cats = ['Viewers'] help = """Module to visualize lungemphysema from a CT-thorax scan and a lung mask. EmphysemaViewer consists of a volume rendering and two linked slice-based views; one with the original data and one with an emphysema overlay. The volume rende...
ajibawa-2023/Python-Code-Large/train/row_2558
4
27
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_2558:ClassDef_L1_C0", "label": "EmphysemaViewer", "type": "class", "loc": [1, 27], "level": 0, "parent": null, "vector": [3, 0, 0.5185, 1.0, 0, 0.66, 0.0, 628, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "EmphysemaViewer", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2558:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2558:Assign_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2558:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2558:Assign_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. # --------------------------------------- # Edited by Corine Slagboom & Noeska Smit to add possibility of adding overlay to the sliceviewer and some special synching. # And by edited we mean mutilated :) from module_kits.vtk_...
ajibawa-2023/Python-Code-Large/train/row_2560
314
583
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_2560:ImportFrom_L8_C0", "label": "from module_kits.vtk_kit.utils import DVOrientationWidget", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0017, 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_2560:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2560:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2560:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2560:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from module_mixins import simpleVTKClassModuleBase import vtktud class imageKnutssonMapping(simpleVTKClassModuleBase): """This is the minimum you need to wrap a single VTK object. This __doc__ string will be replaced by the __doc__ string of the encapsulated VTK object, i.e. vtkStripper in this case. ...
ajibawa-2023/Python-Code-Large/train/row_2561
6
19
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_2561:ImportFrom_L1_C0", "label": "from module_mixins import simpleVTKClassModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 676, 0, 1, 0, 0, 676, 0, 0], "semantic": {"name": "module_mixins", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2561:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2561:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2561:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2561:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtktud class MyGlyph3D(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, mod...
ajibawa-2023/Python-Code-Large/train/row_2562
40
80
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_2562:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0125, 0.0125, 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_2562:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2562:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2562:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2562:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# $Id: module_index.py 1894 2006-02-23 08:55:45Z cpbotha $ class MyGaussian: kits = ['vtk_kit'] cats = ['User','Optic Flow'] keywords = ['gaussian', 'source']
ajibawa-2023/Python-Code-Large/train/row_2563
4
8
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_2563:ClassDef_L3_C0", "label": "MyGaussian", "type": "class", "loc": [3, 6], "level": 0, "parent": null, "vector": [3, 0, 0.5625, 0.5, 0, 0.66, 0.0, 751, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "MyGaussian", "arg_names": [], "import_names": [], "rhs_call_name": "", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2563:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2563:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2563:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2563:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# dummy __init__ so that this dir will be seen as package.
ajibawa-2023/Python-Code-Large/train/row_2564
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_mixins import simpleVTKClassModuleBase import vtktud class imageExtentUnionizer(simpleVTKClassModuleBase): """This is the minimum you need to wrap a single VTK object. This __doc__ string will be replaced by the __doc__ string of the encapsulated VTK object, i.e. vtkStripper in this case. ...
ajibawa-2023/Python-Code-Large/train/row_2566
6
19
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_2566:ImportFrom_L1_C0", "label": "from module_mixins import simpleVTKClassModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 676, 0, 1, 0, 0, 676, 0, 0], "semantic": {"name": "module_mixins", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2566:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2566:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2566:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2566:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtktud class gaussianKernel(ScriptedConfigModuleMixin, ModuleBase): """First test of a gaussian implicit kernel $Revision: 1.1 $ """ def __init__(self, module_manager): ...
ajibawa-2023/Python-Code-Large/train/row_2567
41
87
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_2567:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0115, 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_2567:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2567:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2567:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2567:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class myImageClip(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._clipper = vtk.vtkImageClip()...
ajibawa-2023/Python-Code-Large/train/row_2568
36
67
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_2568:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0149, 0.0149, 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_2568:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2568:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2568:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2568:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
# $Id$ class simplestVTKExample: kits = ['vtk_kit'] cats = ['User'] class isolated_points_check: kits = ['vtk_kit'] cats = ['User'] class testModule: kits = ['vtk_kit'] cats = ['User']
ajibawa-2023/Python-Code-Large/train/row_2569
9
15
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_2569:ClassDef_L3_C0", "label": "simplestVTKExample", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.2667, 0.2, 0, 0.66, 0.0, 969, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "simplestVTKExample", "arg_names": [], "import_names": [], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2569:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2569:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2569:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2569:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
from module_mixins import simpleVTKClassModuleBase import vtktud class imageCopyPad(simpleVTKClassModuleBase): """This is the minimum you need to wrap a single VTK object. This __doc__ string will be replaced by the __doc__ string of the encapsulated VTK object, i.e. vtkStripper in this case. With th...
ajibawa-2023/Python-Code-Large/train/row_2570
6
19
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_2570:ImportFrom_L1_C0", "label": "from module_mixins import simpleVTKClassModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 676, 0, 1, 0, 0, 676, 0, 0], "semantic": {"name": "module_mixins", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2570:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2570:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2570:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2570:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtktud import wx class imageSepConvolution(ScriptedConfigModuleMixin, ModuleBase): """ lksajflksjdf """ def __init__(self, module_manager): # initialise our base class ...
ajibawa-2023/Python-Code-Large/train/row_2572
37
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_2572:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0132, 0.0132, 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_2572:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2572:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2572:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2572:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtktud class imageCurvatureMagnitude(ModuleBase, NoConfigModuleMixin): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manag...
ajibawa-2023/Python-Code-Large/train/row_2573
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_2573: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_2573:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2573:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2573:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2573:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class DilateExample(ScriptedConfigModuleMixin, ModuleBase): """Performs a greyscale 3D dilation on the input. $Revision: 1.2 $ """ def __init__(self, module_...
ajibawa-2023/Python-Code-Large/train/row_2574
38
86
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_2574:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0116, 0.0116, 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_2574:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2574:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2574:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2574:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# $Id: module_index.py 1894 2006-02-23 08:55:45Z cpbotha $ class DilateExample: kits = ['vtk_kit'] cats = ['User','Cartilage3D']
ajibawa-2023/Python-Code-Large/train/row_2575
3
5
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_2575:ClassDef_L3_C0", "label": "DilateExample", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.8, 0.6, 0, 0.66, 0.0, 481, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "DilateExample", "arg_names": [], "import_names": [], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2575:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2575:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2575:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2575:Assign_L5_C4"}]
from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase import vtk class simplestVTKExample(SimpleVTKClassModuleBase): """This is the minimum you need to wrap a single VTK object. This __doc__ string will be replaced by the __doc__ string of the encapsulated VTK object, i.e. vtkStripper in this ca...
ajibawa-2023/Python-Code-Large/train/row_2576
6
22
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_2576:ImportFrom_L1_C0", "label": "from module_kits.vtk_kit.mixins import SimpleVTKClassModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0455, 0.0455, 0, 0.66, 0.0, 67, 0, 1, 0, 0, 67, 0, 0], "semantic": {"name": "module_kits.v...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2576:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2576:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2576:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2576:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtktud class cubicBCSplineKernel(ScriptedConfigModuleMixin, ModuleBase): """First test of a cubic B-Spline implicit kernel $Revision: 1.1 $ """ def __init__(self, module_manag...
ajibawa-2023/Python-Code-Large/train/row_2577
42
90
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_2577:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0333, 0.0111, 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_2577:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2577:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2577:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2577:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import wx import vtk class myTubeFilter(ScriptedConfigModuleMixin, ModuleBase): """Simple demonstration of ScriptedConfigModuleMixin-based wrapping of a single VTK object. It would ...
ajibawa-2023/Python-Code-Large/train/row_2578
40
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_2578:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.012, 0.012, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_uti...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2578:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2578:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2578:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2578:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
import itk import module_kits.itk_kit as itk_kit from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import math class BSplineRegistration(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) ...
ajibawa-2023/Python-Code-Large/train/row_2581
64
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_2581:Import_L1_C0", "label": "itk import itk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0083, 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_2581:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2581:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2581:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2581:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2582
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"]
[]
[]
# surfaceToDistanceField copyright (c) 2004 by Charl P. Botha cpbotha.net # $Id$ import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class surfaceToDistanceField(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_ma...
ajibawa-2023/Python-Code-Large/train/row_2583
39
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_2583:Import_L4_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0494, 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_2583:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2583:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2583:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2583:Expr_L14_C8"}, {"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 input_array_choice_mixin # need this for constants reload(input_array_choice_mixin) from input_array_...
ajibawa-2023/Python-Code-Large/train/row_2585
50
103
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_2585:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0485, 0.0097, 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_2585:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2585:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2585:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2585:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# 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 class ICPTransform(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ...
ajibawa-2023/Python-Code-Large/train/row_2586
44
92
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_2586:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0543, 0.0109, 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_2586:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2586:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2586:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2586:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class appendPolyData(NoConfigModuleMixin, ModuleBase): _numInputs = 5 def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, ...
ajibawa-2023/Python-Code-Large/train/row_2588
36
79
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_2588:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 0.0127, 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_2588:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2588:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2588:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2588:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class imageGreyDilate(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_mana...
ajibawa-2023/Python-Code-Large/train/row_2589
36
72
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_2589:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0139, 0.0139, 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_2589:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2589:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2589:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2589:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class ShephardMethod(ScriptedConfigModuleMixin, ModuleBase): """Apply Shepard Method to input. """ def __init__(self, module_manager): # initialise our base class ...
ajibawa-2023/Python-Code-Large/train/row_2591
34
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_2591:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 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_2591:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2591:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2591:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2591:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class polyDataNormals(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
ajibawa-2023/Python-Code-Large/train/row_2593
32
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_2593:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 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_2593:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2593:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2593:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2593: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 wx import vtk class imageFlip(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manage...
ajibawa-2023/Python-Code-Large/train/row_2594
33
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_2594:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0145, 0.0145, 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_2594:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2594:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2594:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2594:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-La...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class imageGreyErode(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_mana...
ajibawa-2023/Python-Code-Large/train/row_2595
36
72
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_2595:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0139, 0.0139, 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_2595:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2595:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2595:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2595:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-La...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk OPS = ['add', 'subtract', 'multiply', 'divide', 'invert', 'sin', 'cos', 'exp', 'log', 'abs', 'sqr', 'sqrt', 'min', 'max', 'atan', 'atan2', 'multiply by k', 'add c', 'conj...
ajibawa-2023/Python-Code-Large/train/row_2597
55
110
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_2597:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0091, 0.0091, 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_2597:For_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2597:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2597:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2597:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class transformImageToTarget(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
ajibawa-2023/Python-Code-Large/train/row_2598
74
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_2598:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0079, 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_2598:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2598:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2598:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2598:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import wx import vtk class imageGradientMagnitude(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module...
ajibawa-2023/Python-Code-Large/train/row_2599
33
68
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_2599:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0147, 0.0147, 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_2599:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2599:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2599:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2599:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# 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 class RegionGrowing(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ...
ajibawa-2023/Python-Code-Large/train/row_2600
69
145
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_2600:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0069, 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_2600:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2600:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2600:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2600:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class opening(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
ajibawa-2023/Python-Code-Large/train/row_2601
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_2601:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.012, 0.012, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_uti...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2601:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2601:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2601:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2601:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class extractGrid(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._config.sampleRate = (...
ajibawa-2023/Python-Code-Large/train/row_2602
32
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_2602:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 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_2602:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2602:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2602:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2602:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk import numpy class FitEllipsoidToMask(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ...
ajibawa-2023/Python-Code-Large/train/row_2603
87
159
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_2603:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0314, 0.0063, 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_2603:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2603:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2603:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2603:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# imageGaussianSmooth copyright (c) 2003 by Charl P. Botha cpbotha@ieee.org # $Id: resampleImage.py 3229 2008-09-04 17:06:13Z cpbotha $ # performs image smoothing by convolving with a Gaussian import gen_utils from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils...
ajibawa-2023/Python-Code-Large/train/row_2604
73
147
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_2604:Import_L5_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.034, 0.0068, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_ut...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2604:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2604:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2604:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2604:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class extractHDomes(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._imageMath...
ajibawa-2023/Python-Code-Large/train/row_2605
43
96
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_2605:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0104, 0.0104, 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_2605:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2605:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2605:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2605:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
import input_array_choice_mixin from input_array_choice_mixin import InputArrayChoiceMixin from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk INTEG_TYPE = ['RK2', 'RK4', 'RK45'] INTEG_TYPE_TEXTS = ['Runge-Kutta 2', 'Runge-Kutta 4', 'Runge-Kutta 45'] IN...
ajibawa-2023/Python-Code-Large/train/row_2607
56
116
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_2607:Import_L1_C0", "label": "input_array_choice_mixin import input_array_choice_mixin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0086, 0.0086, 0, 0.66, 0.0, 680, 0, 1, 0, 0, 680, 0, 0], "semantic": {"name": "input_array_choice_mix...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2607:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2607:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2607:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2607:Expr_L18_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class extractImageComponents(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._extract = vtk....
ajibawa-2023/Python-Code-Large/train/row_2608
45
104
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_2608:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0288, 0.0096, 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_2608:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2608:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2608:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2608:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# 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 input_array_choice_mixin reload(input_array_choice_mixin) from input_array_choice_mixin import InputA...
ajibawa-2023/Python-Code-Large/train/row_2609
75
168
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_2609:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0298, 0.006, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2609:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2609:FunctionDef_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2609:FunctionDef_L46_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2609:Expr_L47_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtktudoss class FastSurfaceToDistanceField(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBas...
ajibawa-2023/Python-Code-Large/train/row_2610
43
91
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_2610:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.011, 0.011, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_uti...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2610:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2610:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2610:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2610:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-La...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class selectConnectedComponents(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, mo...
ajibawa-2023/Python-Code-Large/train/row_2611
58
129
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_2611:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0078, 0.0078, 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_2611:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2611:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2611:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2611:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. import vtk DEFAULT_SELECTION_STRING = 'Default active array' class InputArrayChoiceMixin: def __init__(self): self._config.vectorsSelection = DEFAULT_SELECTION_STRING self._config.input_array_names = [] ...
ajibawa-2023/Python-Code-Large/train/row_2612
48
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_2612:Import_L5_C0", "label": "vtk import vtk", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0463, 0.0093, 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_2612:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2612:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2612:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2612:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-Code-...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk IMAGE_DATA = 0 POLY_DATA = 1 class StreamerVTK(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._image_data_streamer ...
ajibawa-2023/Python-Code-Large/train/row_2613
44
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_2613:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 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_2613:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2613:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2613:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2613:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-La...
from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class transformVolumeData(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) self._imageR...
ajibawa-2023/Python-Code-Large/train/row_2614
35
74
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_2614:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0135, 0.0135, 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_2614:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2614:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2614:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2614:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import wx import vtk class closing(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, mod...
ajibawa-2023/Python-Code-Large/train/row_2615
40
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_2615:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0119, 0.0119, 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_2615:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2615:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2615:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2615:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# this one was generated with: # for i in *.py; do n=`echo $i | cut -f 1 -d .`; \ # echo -e "class $n:\n kits = ['vtk_kit']\n cats = ['Filters']\n" \ # >> blaat.txt; done class appendPolyData: kits = ['vtk_kit'] cats = ['Filters'] help = """DeVIDE encapsulation of the vtkAppendPolyDataFilter that ...
ajibawa-2023/Python-Code-Large/train/row_2616
218
545
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_2616:ClassDef_L6_C0", "label": "appendPolyData", "type": "class", "loc": [6, 13], "level": 0, "parent": null, "vector": [3, 0, 0.0174, 0.0147, 0, 0.66, 0.0, 238, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "appendPolyData", "arg_names": [], "import_names": [], "rhs_call_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2616:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2616:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2616:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2616:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class clipPolyData(NoConfigModuleMixin, ModuleBase): """Given an input polydata and an implicitFunction, this will clip the polydata. All points that are inside the implicit fun...
ajibawa-2023/Python-Code-Large/train/row_2617
33
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_2617:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 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_2617:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2617:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2617:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2617:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Modified by FrancoisMalan 2011-12-06 so that it can handle an input with larger # extent than its source. Changes constitute the padder module and pad_source method import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk class prob...
ajibawa-2023/Python-Code-Large/train/row_2618
60
116
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_2618:Import_L4_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0086, 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_2618:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2618:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2618:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2618:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import vtkdevide class imageFillHoles(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._imageBorderMask =...
ajibawa-2023/Python-Code-Large/train/row_2620
44
106
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_2620:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0094, 0.0094, 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_2620:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2620:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2620:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2620:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# imageGaussianSmooth copyright (c) 2003 by Charl P. Botha cpbotha@ieee.org # $Id$ # performs image smoothing by convolving with a Gaussian import gen_utils from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import vtk class imageGaussianSmooth(IntrospectModuleMixin...
ajibawa-2023/Python-Code-Large/train/row_2621
59
117
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_2621:Import_L5_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0427, 0.0085, 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_2621:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2621:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2621:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2621:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class seedConnect(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager)...
ajibawa-2023/Python-Code-Large/train/row_2622
60
129
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_2622:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0078, 0.0078, 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_2622:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2622:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2622:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2622:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2623
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_2624
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 ScriptedConfigModuleMixin import module_utils import vtk class imageMask(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) # se...
ajibawa-2023/Python-Code-Large/train/row_2625
43
107
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_2625:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0093, 0.0093, 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_2625:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2625:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2625:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2625:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class morphGradient(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager...
ajibawa-2023/Python-Code-Large/train/row_2626
59
125
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_2626:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.008, 0.008, 0, 0.66, 0.0, 714, 0, 1, 0, 0, 714, 0, 0], "semantic": {"name": "gen_utils", "arg_names": [], "import_names": ["gen_uti...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2626:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2626:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2626:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2626:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class wsMeshSmooth(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
ajibawa-2023/Python-Code-Large/train/row_2627
44
103
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_2627:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0097, 0.0097, 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_2627:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2627:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2627:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2627:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2628
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"]
[]
[]
__author__ = 'Francois' # PerturbPolyPoints.py by Francois Malan - 2012-12-06 # Randomly perturbs each polydata vertex by a uniformly sampled magnitude and random direction from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import vtk import numpy import math import rando...
ajibawa-2023/Python-Code-Large/train/row_2629
53
93
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_2629:Assign_L1_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0108, 0.0108, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2629:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2629:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2629:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2629:Expr_L17_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# DicomAligner.py by Francois Malan - 2011-06-23 # Revised as version 2.0 on 2011-07-07 from module_base import ModuleBase from module_mixins import NoConfigModuleMixin from module_kits.misc_kit import misc_utils import wx import os import vtk import itk import math import numpy class DICOMAligner( NoConfigModule...
ajibawa-2023/Python-Code-Large/train/row_2630
89
172
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_2630:ImportFrom_L4_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0058, 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_2630:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2630:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2630:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2630:Expr_L19_C8"}, {"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 IntrospectModuleMixin import module_kits.vtk_kit import module_utils import vtk import wx from module_kits.misc_kit.devide_types import MedicalMetaData class EditM...
ajibawa-2023/Python-Code-Large/train/row_2631
112
237
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_2631:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0211, 0.0042, 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_2631:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2631:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2631:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2631:Expr_L17_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import gen_utils from module_base import ModuleBase from module_mixins import NoConfigModuleMixin import module_utils import vtk import vtkdevide class greyReconstruct(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_...
ajibawa-2023/Python-Code-Large/train/row_2633
34
71
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_2633:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0141, 0.0141, 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_2633:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2633:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2633:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2633: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 vtk class transformPolyData(NoConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_manager) ...
ajibawa-2023/Python-Code-Large/train/row_2634
32
62
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_2634:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0161, 0.0161, 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_2634:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2634:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2634:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2634:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# 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 class ImageLogic(ScriptedConfigModuleMixin, ModuleBase): # get these values from vtkImageMathematic...
ajibawa-2023/Python-Code-Large/train/row_2635
45
113
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_2635:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0442, 0.0088, 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_2635:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2635:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2635:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2635:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# todo: # * vtkVolumeMapper::SetCroppingRegionPlanes(xmin,xmax,ymin,ymax,zmin,zmax) from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class MIPRender( ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # ini...
ajibawa-2023/Python-Code-Large/train/row_2636
64
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_2636:ImportFrom_L4_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0071, 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_2636:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2636:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2636:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2636:Expr_L15_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk class imageMedian3D(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): # initialise our base class ModuleBase.__init__(self, module_m...
ajibawa-2023/Python-Code-Large/train/row_2637
35
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_2637: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_2637:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2637:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2637:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2637:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-La...
import gen_utils from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk EMODES = { 1:'Point seeded regions', 2:'Cell seeded regions', 3:'Specified regions', 4:'Largest region', 5:'All regions', 6:'Closest po...
ajibawa-2023/Python-Code-Large/train/row_2638
58
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_2638:Import_L1_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0079, 0.0079, 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_2638:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2638:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2638:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2638:Expr_L22_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import operator from module_base import ModuleBase from module_mixins import IntrospectModuleMixin import module_utils import vtk import vtkdevide import wx from module_mixins import ColourDialogMixin class shellSplatSimple(IntrospectModuleMixin, ColourDialogMixin, ModuleBase): def __init_...
ajibawa-2023/Python-Code-Large/train/row_2639
130
303
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_2639:Import_L1_C0", "label": "operator import operator", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0033, 0.0033, 0, 0.66, 0.0, 616, 0, 1, 0, 0, 616, 0, 0], "semantic": {"name": "operator", "arg_names": [], "import_names": ["operator...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2639:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2639:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2639:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2639:Expr_L16_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# glenoidMouldDesigner.py copyright 2003 Charl P. Botha http://cpbotha.net/ # $Id$ # devide module that designs glenoid moulds by making use of insertion # axis and model of scapula # this module doesn't satisfy the event handling requirements of DeVIDE yet # if you call update on the output PolyData, this module won'...
ajibawa-2023/Python-Code-Large/train/row_2640
322
620
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_2640:Import_L13_C0", "label": "math import math", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.021, 0.0016, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2640:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2640:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2640:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2640:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# __init__.py by Charl P. Botha <cpbotha@ieee.org> # $Id$ # used to be module list, now dummy file
ajibawa-2023/Python-Code-Large/train/row_2642
0
4
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: BMPRDR.py 1853 2006-02-01 17:16:28Z cpbotha $ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class BMPReader(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, mo...
ajibawa-2023/Python-Code-Large/train/row_2643
47
101
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_2643:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0297, 0.0099, 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_2643:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2643:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2643:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2643:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# $Id$ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import vtk class vtpRDR(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) self._read...
ajibawa-2023/Python-Code-Large/train/row_2644
36
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_2644: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_2644:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2644:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2644:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2644:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
# $Id$ from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class metaImageRDR(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._reader = vtk....
ajibawa-2023/Python-Code-Large/train/row_2645
32
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_2645:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0395, 0.0132, 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_2645:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2645:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2645:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2645:Expr_L13_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 class pngRDR(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._reader = vtk.vtkPNG...
ajibawa-2023/Python-Code-Large/train/row_2647
46
100
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_2647:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.03, 0.01, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2647:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2647:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2647:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2647:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin import module_utils import vtk import wx class JPEGReader(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_manager): ModuleBase.__init__(self, module_manager) self._reader = vtk.vtkJPEGRea...
ajibawa-2023/Python-Code-Large/train/row_2648
46
98
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_2648:ImportFrom_L1_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0102, 0.0102, 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_2648:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2648:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2648:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2648:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# Copyright (c) Charl P. Botha, TU Delft # All rights reserved. # See COPYRIGHT for details. from module_base import ModuleBase from module_kits.misc_kit import misc_utils from module_mixins import \ IntrospectModuleMixin import module_utils import gdcm import vtk import vtkgdcm import wx from module_kits.misc_...
ajibawa-2023/Python-Code-Large/train/row_2649
159
329
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_2649:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0152, 0.003, 0, 0.66, 0.0, 745, 0, 1, 0, 0, 745, 0, 0], "semantic": {"name": "module_base", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2649:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2649:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2649:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2649:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# $Id$ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import vtk class plyRDR(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) self._re...
ajibawa-2023/Python-Code-Large/train/row_2651
35
71
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_2651:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0423, 0.0141, 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_2651:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2651:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2651:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2651:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# Copyright (c) Charl P. Botha, TU Delft. # All rights reserved. # See COPYRIGHT for details. class BMPReader: kits = ['vtk_kit'] cats = ['Readers'] help = """Reads a series of BMP files. Set the file pattern by making use of the file browsing dialog. Replace the increasing index by a %d format s...
ajibawa-2023/Python-Code-Large/train/row_2653
64
160
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_2653:ClassDef_L5_C0", "label": "BMPReader", "type": "class", "loc": [5, 16], "level": 0, "parent": null, "vector": [3, 0, 0.0656, 0.075, 0, 0.66, 0.0, 439, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "BMPReader", "arg_names": [], "import_names": [], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2653:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2653:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2653:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2653: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 gen_utils from module_kits.misc_kit import misc_utils import os from module_base import ModuleBase from module_mixins import \ IntrospectModuleMixin, FileOpenDialogModuleMixin import module_utils import stat impo...
ajibawa-2023/Python-Code-Large/train/row_2654
141
310
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_2654:Import_L5_C0", "label": "gen_utils import gen_utils", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0161, 0.0032, 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_2654:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2654:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2654:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2654:Expr_L26_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# dumy __init__ so this directory can function as a package
ajibawa-2023/Python-Code-Large/train/row_2655
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_2656
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_2658
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. from module_base import ModuleBase from module_mixins import ScriptedConfigModuleMixin, WX_OPEN import module_utils import vtk class TIFFReader(ScriptedConfigModuleMixin, ModuleBase): def __init__(self, module_mana...
ajibawa-2023/Python-Code-Large/train/row_2659
45
95
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_2659:ImportFrom_L5_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0105, 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_2659:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2659:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2659:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2659:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# $Id$ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import vtk class vtiRDR(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) self._re...
ajibawa-2023/Python-Code-Large/train/row_2660
40
80
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_2660:ImportFrom_L3_C0", "label": "from module_base import ModuleBase", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0375, 0.0125, 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_2660:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2660:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2660:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2660:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# $Id$ from module_base import ModuleBase from module_mixins import FilenameViewModuleMixin import module_utils import vtk class vtkStructPtsRDR(FilenameViewModuleMixin, ModuleBase): def __init__(self, module_manager): # call parent constructor ModuleBase.__init__(self, module_manager) ...
ajibawa-2023/Python-Code-Large/train/row_2662
35
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_2662: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_2662:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2662:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2662:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_2662:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-La...
# snippet to save polydata of all selected objects to disc, transformed with # the currently active object motion for that object. This snippet should be # run within a slice3dVWR introspection context. # $Id$ import os import tempfile import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': ...
ajibawa-2023/Python-Code-Large/train/row_2663
27
46
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_2663:Import_L6_C0", "label": "os import os", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.1304, 0.0217, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2663:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2663:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2663:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2663:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_266...
import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': rw = obj.threedFrame.threedRWI.GetRenderWindow() rw.SetStereoTypeToCrystalEyes() #rw.SetStereoTypeToRedBlue() rw.SetStereoRender(1) rw.Render() else: print "This snippet must be run from a slice3dVWR introspection win...
ajibawa-2023/Python-Code-Large/train/row_2664
8
13
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_2664:Import_L1_C0", "label": "vtk import vtk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0769, 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_2664:If_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2664:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2664:If_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2664:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2664:If_L...
# $Id$ # to use a shader on an actor, do this first before export: # a = vtk.vtkRIBProperty() # a.SetVariable('Km', 'float') # a.SetParameter('Km', '1') # a.SetDisplacementShader('dented') # actor.SetProperty(a) import os import tempfile import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': ...
ajibawa-2023/Python-Code-Large/train/row_2665
17
31
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_2665:Import_L10_C0", "label": "os import os", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.3226, 0.0323, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2665:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2665:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2665:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2665:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_266...
# this is an extremely simple example of a DeVIDE snippet # Open the Python shell (under Window in the Main Window), click on the # "Load Snippet" button and select this file. # it will print the directory where devide is installed and then show # the main application help print devideApp.get_appdir() devideApp.showH...
ajibawa-2023/Python-Code-Large/train/row_2666
2
9
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_2666:Expr_L8_C0", "label": "print()", "type": "expression", "loc": [8, 8], "level": 0, "parent": null, "vector": [8, 0, 0.8889, 0.1111, 0, 0.66, 0.0, 535, 3, 1, 0, 0, 0, 0, 2], "semantic": {"name": "print", "arg_names": [], "import_names": [], "rhs_call_name": "print", ...
[]
# this snippet will rotate the camera in the slice3dVWR that you have # selected whilst slowly increasing the isovalue of the marchingCubes that # you have selected and dump every frame as a PNG to the temporary directory # this is ideal for making movies of propagating surfaces in distance fields # 1. right click on ...
ajibawa-2023/Python-Code-Large/train/row_2667
26
50
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_2667:Import_L12_C0", "label": "os import os", "type": "import", "loc": [12, 12], "level": 0, "parent": null, "vector": [1, 0, 0.24, 0.02, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2667:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2667:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2667:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2667:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2667:If...
# convert old-style (up to DeVIDE 8.5) to new-style DVN network files # # usage: # load your old network in DeVIDE 8.5, then execute this snippet in # the main Python introspection window. To open the main Python # introspection window, select from the main DeVIDE menu: "Window | # Python Shell". In the window ...
ajibawa-2023/Python-Code-Large/train/row_2668
36
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_2668:Import_L11_C0", "label": "ConfigParser import ConfigParser", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.1358, 0.0123, 0, 0.66, 0.0, 272, 0, 1, 0, 0, 272, 0, 0], "semantic": {"name": "ConfigParser", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2668:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2668:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2668:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2668:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import vtk import wx className = obj.__class__.__name__ if className == 'slice3dVWR': sds = obj.sliceDirections.getSelectedSliceDirections() if len(sds) > 0: opacityText = wx.GetTextFromUser( 'Enter a new opacity value (0.0 to 1.0) for all selected ' 'slices.') o...
ajibawa-2023/Python-Code-Large/train/row_2669
18
35
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_2669:Import_L1_C0", "label": "vtk import vtk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0286, 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_2669:If_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2669:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2669:If_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2669:If_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2669:If_L9_...
# $Id$ import os import tempfile import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': rw = obj._threedRenderer.GetRenderWindow() try: e = vtk.vtkGL2PSExporter() except AttributeError: print "Your VTK was compiled without GL2PS support." else: e.S...
ajibawa-2023/Python-Code-Large/train/row_2670
21
30
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_2670:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1, 0.0333, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2670:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2670:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2670:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2670:Try_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2670:Try_...
# snippet to be ran in the introspection window of a slice3dVWR to # export the whole scene as a RIB file. Before you can do this, # both BACKGROUND_RENDERER and GRADIENT_BACKGROUND in slice3dVWR.py # should be set to False. obj._orientation_widget.Off() rw = obj._threedRenderer.GetRenderWindow() re = vtk.vtkRIBExp...
ajibawa-2023/Python-Code-Large/train/row_2671
6
11
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_2671:Expr_L6_C0", "label": "Off()", "type": "expression", "loc": [6, 6], "level": 0, "parent": null, "vector": [8, 0, 0.5455, 0.0909, 0, 0.66, 0.0, 420, 3, 0, 0, 0, 0, 0, 1], "semantic": {"name": "Off", "arg_names": [], "import_names": [], "rhs_call_name": "Off", "annot...
[]
# EXPERIMENTAL. DO NOT USE UNLESS YOU ARE JORIK. (OR JORIS) import vtk className = obj.__class__.__name__ if className == 'slice3dVWR': ipw = obj.sliceDirections._sliceDirectionsDict.values()[0]._ipws[0] if ipw.GetInput(): mins, maxs = ipw.GetInput().GetScalarRange() else: mins, maxs...
ajibawa-2023/Python-Code-Large/train/row_2672
17
27
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_2672:Import_L3_C0", "label": "vtk import vtk", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 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_2672:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2672:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2672:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2672:If_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2672:If_L9_...
# to use this code: # 1. load into slice3dVWR introspection window # 2. execute with ctrl-enter or File | Run current edit # 3. in the bottom window type lm1 = get_lookmark() # 4. do stuff # 5. to restore lookmark, do set_lookmark(lm1) # keep on bugging me to: # 1. fix slice3dVWR # 2. build this sort of functionality ...
ajibawa-2023/Python-Code-Large/train/row_2673
71
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_2673:FunctionDef_L14_C0", "label": "get_plane_infos", "type": "function", "loc": [14, 22], "level": 0, "parent": null, "vector": [2, 0, 0.1429, 0.0714, 0, 0.66, 0.0, 881, 0, 0, 1, 0, 0, 0, 7], "semantic": {"name": "get_plane_infos", "arg_names": [], "import_names": [], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_2673:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2673:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_2673:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_2673:For_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...