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
#!/usr/bin/python # -*- coding: UTF-8 -*- # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: # Author: Huang Jiahua <jhuangjiahua@gmail.com> # License: LGPLv3+ # Last modified: __version__ = '0.5.1' import gtk, gobject import webkit import jswebkit import gtklatex import urllib2 import os, errno import re impor...
ajibawa-2023/Python-Code-Large/train/row_4486
453
1,330
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_4486:Assign_L8_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [8, 8], "level": 0, "parent": null, "vector": [14, 0, 0.006, 0.0008, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4486:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4486:Import_L19_C5"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4486:Try_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4486:ImportFrom_L20_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/python # -*- coding: UTF-8 -*- # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: # Author: Huang Jiahua <jhuangjiahua@gmail.com> # License: GNU LGPL # Last modified: """ """ __revision__ = '0.1' if __name__=="__main__": import gwrite.gwrite gwrite.gwrite.main()
ajibawa-2023/Python-Code-Large/train/row_4487
5
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_4487:Expr_L8_C0", "label": "expression", "type": "expression", "loc": [8, 9], "level": 0, "parent": null, "vector": [8, 0, 0.4474, 0.1053, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4487:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4487:Import_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4487:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4487:Expr_L16_C4"}]
#!/usr/bin/python from distutils.core import setup from DistUtilsExtra.command import * from glob import glob setup(name='gwrite', version='0.5.1', description='HTML5 Doc Writer based on GTK2', long_description ="""GWrite is a simple HTML5 Doc Writer base on Gtk2. Features include: 1. HTML Form...
ajibawa-2023/Python-Code-Large/train/row_4488
4
47
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_4488:ImportFrom_L3_C0", "label": "from distutils.core import setup", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0638, 0.0213, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "import_...
[]
from sqlalchemy import * from sqlalchemy.orm import * hostname = "127.0.0.1" username = "userpython" password = "python" dbname = "test" db = create_engine("mysql://%s:%s@%s/%s" %(username, password, hostname, dbname)) db.echo = True metadata = MetaData(db) users = Table('users', metadata, Column('user_id', I...
ajibawa-2023/Python-Code-Large/train/row_4491
18
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_4491:ImportFrom_L1_C0", "label": "from sqlalchemy import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0086, 0.0086, 0, 0.66, 0.0, 835, 0, 1, 0, 0, 835, 0, 0], "semantic": {"name": "sqlalchemy", "arg_names": [], "import_names": ["*"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4491:For_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4491:Expr_L35_C4"}]
import dbtest dbtype = "mysql" hostname = "db4free.net" username = "userpython" password = "python" port = "3306" dbname = "groupsixdatabase" success = dbtest.init(dbtype, username, password, hostname, port, dbname) john = dbtest.User('John', 42, 'pass') mary = dbtest.User(name='Mary', age=30, password='secret') jac...
ajibawa-2023/Python-Code-Large/train/row_4492
1
2
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_4492:Import_L1_C0", "label": "dbtest import dbtest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.5, 0, 0.66, 0.0, 297, 0, 1, 0, 0, 297, 0, 0], "semantic": {"name": "dbtest", "arg_names": [], "import_names": ["dbtest"], "rhs_call_...
[]
# Note: this executes in the global scope from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, String, Integer import sqlalchemy engine=sqlalchemy.create_engine('mysql://localhost/test') debug=False # set this to true and only the generated code is printed. MYSQL_TO_ALCHEMY_TYPE = d...
ajibawa-2023/Python-Code-Large/train/row_4493
18
44
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_4493:ImportFrom_L3_C0", "label": "from sqlalchemy.ext.declarative import declarative_base", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0682, 0.0227, 0, 0.66, 0.0, 666, 0, 1, 0, 0, 666, 0, 0], "semantic": {"name": "sqlalchemy.ext.decl...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4493:For_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4493:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4493:For_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4493:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4...
import os from google.appengine.ext.webapp import template import cgi from google.appengine.ext.webapp.util import login_required from google.appengine.api import users from google.appengine.ext import webapp from google.appengine.ext.webapp.util import run_wsgi_app from google.appengine.ext import db from goog...
ajibawa-2023/Python-Code-Large/train/row_4494
42
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_4494:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 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_4494:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4494:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4494:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4494:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-Code...
SECRET_CODE = 'whateveryourcodeis'
ajibawa-2023/Python-Code-Large/train/row_4495
1
2
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_4495:Assign_L2_C0", "label": "SECRET_CODE =", "type": "assigned_variable", "loc": [2, 2], "level": 0, "parent": null, "vector": [14, 0, 1.0, 0.5, 0, 0.66, 0.0, 52, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "SECRET_CODE", "arg_names": [], "import_names": [], "rhs_call_n...
[]
#!/usr/bin/env python from django.core.management import execute_manager try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to ...
ajibawa-2023/Python-Code-Large/train/row_4496
8
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_4496:ImportFrom_L2_C0", "label": "from django.core.management import execute_manager", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1818, 0.0909, 0, 0.66, 0.0, 879, 0, 1, 0, 0, 879, 0, 0], "semantic": {"name": "django.core.management",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4496:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4496:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4496:Try_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4496:Import_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4496:...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4497
40
66
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_4497:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1591, 0.2727, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4497:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4497:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4497:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4497:Try_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4498
10
51
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_4498:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2059, 0.3529, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4498:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4498:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4498:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4498:Return_L38_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from django.conf import settings def path_context_processor(request): path = { 'PATH': settings.APP_PATH, } return path
ajibawa-2023/Python-Code-Large/train/row_4500
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_4500:ImportFrom_L1_C0", "label": "from django.conf import settings", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.125, 0, 0.66, 0.0, 128, 0, 1, 0, 0, 128, 0, 0], "semantic": {"name": "django.conf", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4500:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4500:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4500:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4500:Return_L8_C4"}]
# -*- encoding: utf-8 -*- DATE_FORMAT = 'N j, Y'
ajibawa-2023/Python-Code-Large/train/row_4501
1
2
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_4501:Assign_L2_C0", "label": "DATE_FORMAT =", "type": "assigned_variable", "loc": [2, 2], "level": 0, "parent": null, "vector": [14, 0, 1.0, 0.5, 0, 0.66, 0.0, 843, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DATE_FORMAT", "arg_names": [], "import_names": [], "rhs_call_...
[]
# -*- coding: utf-8 -*- DATE_FORMAT = r'j N Y'
ajibawa-2023/Python-Code-Large/train/row_4502
1
2
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_4502:Assign_L2_C0", "label": "DATE_FORMAT =", "type": "assigned_variable", "loc": [2, 2], "level": 0, "parent": null, "vector": [14, 0, 1.0, 0.5, 0, 0.66, 0.0, 843, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DATE_FORMAT", "arg_names": [], "import_names": [], "rhs_call_...
[]
# -*- coding: utf-8 -*- ''' Copyright Cobalys (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option)...
ajibawa-2023/Python-Code-Large/train/row_4503
7
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_4503:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1694, 0.2903, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4504
45
139
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_4504:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0755, 0.1295, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
import sys import os sys.path.append('/usr/django') os.environ["CELERY_LOADER"] = "django" os.environ['DJANGO_SETTINGS_MODULE'] = 'video365.settings' import django.core.handlers.wsgi application = django.core.handlers.wsgi.WSGIHandler()
ajibawa-2023/Python-Code-Large/train/row_4505
7
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_4505:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.125, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": "...
[]
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4506
15
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4506:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2838, 0.4865, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4506:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4506:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4506:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4506:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4507
28
57
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_4507:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1842, 0.3158, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4507:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4507:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4507:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4507:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4508
78
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_4508:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0833, 0.1429, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4508:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4508:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4508:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4508:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4509
240
332
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_4509:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0316, 0.0542, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4509:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4509:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4509:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4509:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4510
5
25
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_4510:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.42, 0.72, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4510:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4510:Assign_L25_C4"}]
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4511
17
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4511:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2625, 0.45, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4511:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4511:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4511:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4511:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4512
12
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_4512:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.5143, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4512:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4512:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4512:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4512:FunctionDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4513
89
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4513:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.0734, 0.1259, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4513:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4513:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4513:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4513:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- ''' Copyright Cobalys.com (c) 2011 This file is part of 365Video. 365Video is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your opt...
ajibawa-2023/Python-Code-Large/train/row_4514
30
58
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_4514:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 19], "level": 0, "parent": null, "vector": [8, 0, 0.181, 0.3103, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4514:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4514:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4514:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4514:Assign_L35_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '3dlp_slicer.ui' # # Created: Sat Jun 01 20:47:44 2013 # by: PyQt4 UI code generator 4.8.5 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf...
ajibawa-2023/Python-Code-Large/train/row_4515
518
534
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4515:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0187, 0.0019, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4515:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4515:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4515:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4515:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'manual_control_gui.ui' # # Created: Mon May 06 20:43:40 2013 # by: PyQt4 UI code generator 4.8.5 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString....
ajibawa-2023/Python-Code-Large/train/row_4516
197
213
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_4516:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0469, 0.0047, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4516:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4516:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4516:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4516:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4...
#!/usr/bin/env python # # build_arduino.py - build, link and upload sketches script for Arduino # Copyright (c) 2010 Ben Sasson. All right reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # ...
ajibawa-2023/Python-Code-Large/train/row_4517
138
235
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_4517:Import_L22_C0", "label": "sys import sys", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.0936, 0.0043, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4517:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4517:If_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4517:If_L47_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4517:Expr_L48_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/env python # # build_arduino.py - build, link and upload sketches script for Arduino # Copyright (c) 2010 Ben Sasson. All right reserved. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # ...
ajibawa-2023/Python-Code-Large/train/row_4518
138
235
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_4518:Import_L22_C0", "label": "sys import sys", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.0936, 0.0043, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4518:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4518:If_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4518:If_L47_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4518:Expr_L48_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'settingsdialog.ui' # # Created: Mon May 13 19:24:11 2013 # by: PyQt4 UI code generator 4.8.5 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.from...
ajibawa-2023/Python-Code-Large/train/row_4519
360
376
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4519:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0266, 0.0027, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4519:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4519:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4519:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4519:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4...
# -*- coding: utf-8 -*- """ Created on Mon Dec 17 21:01:39 2012 @author: Chris Marion """ import serial import math import time from threading import Thread class Heartbeat(Thread): def __init__(self, parent): self.stopped = False self.parent = parent Thread.__init__(self) ...
ajibawa-2023/Python-Code-Large/train/row_4521
67
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_4521:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0377, 0.0472, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4521:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4521:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4521:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4521:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-Code...
import slicer import vtk import sys from PyQt4 import QtCore,QtGui from PyQt4.Qt import * from PyQt4.QtGui import QFileDialog, QPixmap, QSplashScreen #from PyQt4.Qt import * from slicer_gui import Ui_MainWindow from slicer_settings_dialog_gui import Ui_Dialog from vtk.qt4.QVTKRenderWindowInteractor import QVTK...
ajibawa-2023/Python-Code-Large/train/row_4522
337
426
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_4522:Import_L1_C0", "label": "slicer import slicer", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0023, 0.0023, 0, 0.66, 0.0, 588, 0, 1, 0, 0, 588, 0, 0], "semantic": {"name": "slicer", "arg_names": [], "import_names": ["slicer"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4522:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4522:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4522:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4522:Expr_L19_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'slicer_settings_dialog.ui' # # Created: Sun Mar 31 19:34:46 2013 # by: PyQt4 UI code generator 4.8.5 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QStr...
ajibawa-2023/Python-Code-Large/train/row_4523
128
144
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_4523:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0694, 0.0069, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4523:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4523:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4523:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4523:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4...
import vtk import time import os import ConfigParser import cPickle as pickle import zipfile import StringIO import numpy import Image from vtk.util.numpy_support import vtk_to_numpy class MyInteractorStyle(vtk.vtkInteractorStyleTrackballCamera): #defines all the mouse interactions for the render views ...
ajibawa-2023/Python-Code-Large/train/row_4524
118
165
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_4524:Import_L1_C0", "label": "vtk import vtk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0061, 0.0061, 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_4524:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4524:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4524:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4524:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'aboutdialog.ui' # # Created: Sun Mar 03 18:00:57 2013 # by: PyQt4 UI code generator 4.8.5 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf...
ajibawa-2023/Python-Code-Large/train/row_4525
46
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_4525:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0143, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4525:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4525:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4525:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4525:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file '3dlp_v2.ui' # # Created: Sun Jun 30 18:26:15 2013 # by: PyQt4 UI code generator 4.8.5 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui try: _fromUtf8 = QtCore.QString.fromUtf8 e...
ajibawa-2023/Python-Code-Large/train/row_4526
1,420
1,435
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_4526:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.007, 0.0007, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4526:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4526:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4526:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4526:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4...
# -*- coding: utf-8 -*- """ Created on Thu Apr 05 22:20:39 2012 @author: Chris Marion Copyright 2012-2013 www.chrismarion.net Still to add/known issues: -projector control functionality is not finished. -still looking for a good method of calibrating for X and Y (image size) -raise the bed to a ...
ajibawa-2023/Python-Code-Large/train/row_4528
2,971
3,402
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_4528:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0028, 0.0047, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4528:Try_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4528:ImportFrom_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4528:Try_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4528:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
## Pre-defined animation. ## ## Move selected object to the top right corner. import animation from keyframe import PosKeyFrame def anim_topRight(firstFrame, lastFrame, nFrames): #self.firstFrame = firstFrame #self.lastFrame = lastFrame #self.nframes = nframes anim = animation.Animation ([Pos...
ajibawa-2023/Python-Code-Large/train/row_4530
6
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_4530:Import_L4_C0", "label": "animation import animation", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.2667, 0.0667, 0, 0.66, 0.0, 733, 0, 1, 0, 0, 733, 0, 0], "semantic": {"name": "animation", "arg_names": [], "import_names": ["anima...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4530:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4530:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4530:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4530:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
## Pre-defined animation. ## ##class DefAnimTransRot(): import animation from keyframe import PosKeyFrame, RotKeyFrame ## FUTURO - Chamar bringObj.py ## * The code bellow is responsable for creating keyframe animation structure to bring an' object near to the user. def anim_bringObj(firstFrame, lastFrame, nFra...
ajibawa-2023/Python-Code-Large/train/row_4531
6
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4531:Import_L4_C0", "label": "animation import animation", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.2353, 0.0588, 0, 0.66, 0.0, 733, 0, 1, 0, 0, 733, 0, 0], "semantic": {"name": "animation", "arg_names": [], "import_names": ["anima...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4531:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4531:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4531:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4531:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- ## This code is responsable for creating keyframe animation structure. ## Master Research: Elisabete Thomaselli Nogueira ## Professor: Claudio Esperanca ## Graduate Student: Victor Soares Bursztyn ## Created in: 13-03-08 ## Last updated in: class KeyFrame: ...
ajibawa-2023/Python-Code-Large/train/row_4532
27
47
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_4532:ClassDef_L8_C0", "label": "KeyFrame", "type": "class", "loc": [8, 16], "level": 0, "parent": null, "vector": [3, 0, 0.2553, 0.1915, 0, 0.66, 0.0, 699, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "KeyFrame", "arg_names": [], "import_names": [], "rhs_call_name": "", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4532:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4532:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4532:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4532:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# -*- coding: utf-8 -*- ## This code is responsable for creating keyframe animation structure. ## Master Research: Elisabete Thomaselli Nogueira ## Professor: Claudio Esperanca ## Graduate Student: Victor Soares Bursztyn ## Created in: 13-02-08 ## Last updated in: from scipy import * ...
ajibawa-2023/Python-Code-Large/train/row_4533
67
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_4533:ImportFrom_L8_C0", "label": "from scipy import *", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.069, 0.0086, 0, 0.66, 0.0, 265, 0, 1, 0, 0, 265, 0, 0], "semantic": {"name": "scipy", "arg_names": [], "import_names": ["*"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4533:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4533:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4533:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4533:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
class c: def __init__(self): self.a = 1 def geta (self) : return self.a def seta (self,val) : self.a = val class d: def __init__(self,getter,setter): self.getter = getter self.setter = setter def update (self): self.setter (self.getter()+1) c0=c() d0=d(c0.g...
ajibawa-2023/Python-Code-Large/train/row_4534
17
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_4534:ClassDef_L1_C0", "label": "c", "type": "class", "loc": [1, 5], "level": 0, "parent": null, "vector": [3, 0, 0.1579, 0.2632, 0, 0.66, 0.0, 411, 0, 3, 0, 0, 0, 0, 0], "semantic": {"name": "c", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4534:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4534:FunctionDef_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4534:FunctionDef_L2_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4534:Assign_L3_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interfAnim_sem_Delay_sem_Graph.ui' # # Created: Fri May 02 01:04:07 2008 # by: PyQt4 UI code generator 4.1.1 # # WARNING! All changes made in this file will be lost! import sys from PyQt4 import QtCore, QtGui class Ui_Dial...
ajibawa-2023/Python-Code-Large/train/row_4535
76
102
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4535:Import_L10_C0", "label": "sys import sys", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.098, 0.0098, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4535:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4535:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4535:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4535:Expr_L15_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- ## This code is responsable for creating keyframe animation structure. ## Master Research: Elisabete Thomaselli Nogueira ## Professor: Claudio Esperanca ## Graduate Student: Victor Soares Bursztyn ## Created in: 13-03-08 ## Last updated in: ## Rotine responsable for imp...
ajibawa-2023/Python-Code-Large/train/row_4536
7
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_4536:Import_L10_C0", "label": "anim_TransRot import anim_TransRot", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.4545, 0.0455, 0, 0.66, 0.0, 613, 0, 1, 0, 0, 613, 0, 0], "semantic": {"name": "anim_TransRot", "arg_names": [], "import_...
[]
## Pre-defined animation. ## ##class DefAnimTransRot(): import animation from keyframe import PosKeyFrame, RotKeyFrame def anim_TransRot(firstFrame, lastFrame, nFrames): #self.firstFrame = firstFrame #self.lastFrame = lastFrame #self.nframes = nframes anim = animation.Animation ([PosKeyFrame ...
ajibawa-2023/Python-Code-Large/train/row_4537
6
18
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_4537:Import_L4_C0", "label": "animation import animation", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.2222, 0.0556, 0, 0.66, 0.0, 733, 0, 1, 0, 0, 733, 0, 0], "semantic": {"name": "animation", "arg_names": [], "import_names": ["anima...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4537:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4537:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4537:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4537:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- ## This code is responsable for creating keyframe animation structure. ## Master Research: Elisabete Thomaselli Nogueira ## Professor: Claudio Esperanca ## Graduate Student: Victor Soares Bursztyn ## Created in: 13-03-08 ## Last updated in: ## Rotine responsab...
ajibawa-2023/Python-Code-Large/train/row_4538
4
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4538:Import_L10_C0", "label": "anim_TransRot import anim_TransRot", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.5882, 0.0588, 0, 0.66, 0.0, 613, 0, 1, 0, 0, 613, 0, 0], "semantic": {"name": "anim_TransRot", "arg_names": [], "import_...
[]
#!/usr/bin/env python """extremely simple demonstration playing a soundfile and waiting for it to finish. you'll need the pygame.mixer module for this to work. Note how in this simple example we don't even bother loading all of the pygame package. Just pick the mixer for sound and time for the delay function."""...
ajibawa-2023/Python-Code-Large/train/row_4539
14
36
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_4539:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1389, 0.1389, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4539:While_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4539:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4539:While_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4539:Expr_L32_C4"}]
#!/usr/bin/env python """extremely simple demonstration playing a soundfile and waiting for it to finish. you'll need the pygame.mixer module for this to work. Note how in this simple example we don't even bother loading all of the pygame package. Just pick the mixer for sound and time for the delay function."""...
ajibawa-2023/Python-Code-Large/train/row_4541
15
36
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_4541:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1389, 0.1389, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4541:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4541:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4541:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4541:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """extremely simple demonstration playing a soundfile and waiting for it to finish. you'll need the pygame.mixer module for this to work. Note how in this simple example we don't even bother loading all of the pygame package. Just pick the mixer for sound and time for the delay function."""...
ajibawa-2023/Python-Code-Large/train/row_4542
14
36
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_4542:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1389, 0.1389, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4542:While_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4542:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4542:While_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4542:Expr_L32_C4"}]
#!/usr/bin/env python """extremely simple demonstration playing a soundfile and waiting for it to finish. you'll need the pygame.mixer module for this to work. Note how in this simple example we don't even bother loading all of the pygame package. Just pick the mixer for sound and time for the delay function."""...
ajibawa-2023/Python-Code-Large/train/row_4543
15
36
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_4543:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1389, 0.1389, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4543:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4543:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4543:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4543:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interfQtPrototipo.ui' # # Created: Tue Apr 15 21:47:42 2008 # by: PyQt4 UI code generator 4.1.1 # # WARNING! All changes made in this file will be lost! import sys from PyQt4 import QtCore, QtGui class Ui_MainWindow(object...
ajibawa-2023/Python-Code-Large/train/row_4544
508
663
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_4544:Import_L10_C0", "label": "sys import sys", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0151, 0.0015, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4544:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4544:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4544:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4544:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import scene.vector as vector from math import * __all__ = ["ArcBall"] class ArcBall(object): """Implements an arcball manipulator for specifying rotations.""" def __init__(self, center, radius): """Creates a new arcball manipulator. @param center: Triple of coordinates of center point ...
ajibawa-2023/Python-Code-Large/train/row_4545
78
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_4545:Import_L1_C0", "label": "scene.vector import vector", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 0, 0.66, 0.0, 441, 0, 1, 0, 0, 441, 0, 0], "semantic": {"name": "scene.vector", "arg_names": [], "import_names": ["ve...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4545:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4545:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4545:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4545:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# -*- coding: utf-8 -*- ## ****************************************************************** PROTOTIPO.PY ## * Description: ## * 3DbyStep main window calls. ## * The code bellow is very simplistic. It only shows a small window. ## ******************************************************************************* ## * Cre...
ajibawa-2023/Python-Code-Large/train/row_4546
12
39
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_4546:Import_L14_C0", "label": "sys import sys", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.359, 0.0256, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4546:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4546:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4546:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4546:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- ## ************************************************************* INTERFBEHAVIOR.PY ## * Description: ## * This code is responsable for treat application buttons Behaviors. ## * (events, routines and classes) that exist in the glwidget canvas. ## **************************************************...
ajibawa-2023/Python-Code-Large/train/row_4547
261
508
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_4547:ImportFrom_L13_C0", "label": "from interfPrototipo import *", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.0256, 0.002, 0, 0.66, 0.0, 821, 0, 1, 0, 0, 821, 0, 0], "semantic": {"name": "interfPrototipo", "arg_names": [], "import_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4547:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4547:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4547:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4547:If_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'interfTextDoc.ui' # # Created: Tue May 6 08:09:59 2008 # by: PyQt4 UI code generator 4.3.3 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_Dialog_Doc(object): def setupUi(self, Di...
ajibawa-2023/Python-Code-Large/train/row_4548
47
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_4548:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.1493, 0.0149, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4548:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4548:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4548:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4548:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- ## This code is responsable for creating visual element structures to support other 3DbyStep routines. ## dispose a group of interations inside these environment. ## Master Research: Elisabete Thomaselli Nogueira ## Professor: Claudio Esperanca ## Graduate student: V...
ajibawa-2023/Python-Code-Large/train/row_4549
359
687
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_4549:Assign_L13_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.0189, 0.0015, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4549:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4549:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4549:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4549:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" Implementation of a very simple set of classes for representing objects in a given scene. Most of the attributes and properties model OpenGL primitives and state variables, so that their meaning is mostly self-documenting. The idea here is that objects may be passed around or maybe stored (using pickle or something...
ajibawa-2023/Python-Code-Large/train/row_4550
381
672
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_4550:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.006, 0.0104, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4550:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4550:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4550:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4550:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__all__=["Cube"] from mesh import Mesh import vector from bbox import * class Cube(Mesh): """A Cube of side length 2 centered at the origin.""" face = [[3, 2, 1, 0], [7, 6, 2, 3], [4, 5, 6, 7], [0, 1, 5, 4], [1, 2, 6, 5], [3, 0, 4, 7] ] vertex = [[-1, -1,1],[-1, -1,-1], [-1,1,-1], [-1,1,1], ...
ajibawa-2023/Python-Code-Large/train/row_4551
13
34
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_4551:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0294, 0.0294, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4551:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4551:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4551:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4551:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
__all__=["Sphere"] from OpenGL.GL import * from OpenGL.GLU import * from graphicobject import * from bbox import * class Sphere(GraphicObject): "A Sphere of a given radius." def __init__(self,radius=1, material=None, transformation=None): """Constructor. @param radius: sphere radius. ...
ajibawa-2023/Python-Code-Large/train/row_4552
20
34
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_4552:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0294, 0.0294, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4552:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4552:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4552:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4552:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Various mesh loaders. Each function receives a filename which points to a file in some format and returns a Mesh object. """ __all__=["loadoff"] from graphicobject import * from mesh import * def loadoff (filename,invertCirculations=False): """Reads an off file and returns a corresponding Mesh object. @p...
ajibawa-2023/Python-Code-Large/train/row_4553
22
42
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_4553:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0595, 0.0952, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4553:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4553:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4553:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4553:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
""" Light sources. """ __all__ = ["Light"] from OpenGL.GL import * from graphicobject import * # Some globals defaultLightAmbient = (0,0,0,1) defaultLightDiffuse = (1,1,1,1) defaultLightSpecular = (1,1,1,1) defaultLightPosition = (0,0,1,0) class Light(object): "Represents a positional or directional light source...
ajibawa-2023/Python-Code-Large/train/row_4554
31
57
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_4554:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0351, 0.0526, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4554:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4554:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4554:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4554:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from math import sqrt def sub(v1,v2): """Difference of two vectors. @param v1: first vector @param v2: second vector @return: v1 - v2 """ return [a-b for a,b in zip(v1,v2)] def add(v1,v2): """Sum of two vectors. @param v1: first vector @param v2: second vector @return: v1 - ...
ajibawa-2023/Python-Code-Large/train/row_4555
28
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_4555:ImportFrom_L1_C0", "label": "from math import sqrt", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["sqrt"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4555:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4555:Expr_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4555:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4555:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__all__ = ["Mesh"] from graphicobject import * from halfedge import * from OpenGL.GL import * from bbox import * from math import sqrt class Mesh(GraphicObject): "A Mesh object" def __init__(self,face=[],vertex=[], drawmode="fill",normalmode="face", material=None,transfo...
ajibawa-2023/Python-Code-Large/train/row_4556
103
144
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_4556:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0069, 0.0069, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4556:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4556:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4556:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4556:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
__all__=["HandleBox"] from OpenGL.GL import * from OpenGL.GLU import * from graphicobject import * class HandleBox(GraphicObject): """This object is to be used as a manipulator for other graphicobjects. The idea is that each handlebox object is attached to some other object. Altering the transformation o...
ajibawa-2023/Python-Code-Large/train/row_4557
47
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_4557:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0149, 0.0149, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4557:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4557:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4557:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4557:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
"""Several matrix utilities.""" import vector from math import * def cofactor(m,irow,icol): """Returns the cofactor icol,irow of matrix m.""" def minor(): """Returns a minor matrix of m, where row irow and col icol were removed.""" return [row[:icol]+row[icol+1:] for row in m[:irow]+m[irow+1:]...
ajibawa-2023/Python-Code-Large/train/row_4558
104
171
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_4558:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0058, 0.0058, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4558:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4558:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4558:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4558:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-La...
from EditableVisualElement import EditableVisualElement, visualElement from graphicobject import GraphicObject, GraphicObjectCollection from cube import Cube from sphere import Sphere from material import Material from mesh import Mesh from halfedge import Halfedge,HalfedgeDS from light import Light from bbox import Bo...
ajibawa-2023/Python-Code-Large/train/row_4559
12
12
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_4559:ImportFrom_L1_C0", "label": "from EditableVisualElement import EditableVisualElement, visualElement", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 945, 0, 2, 0, 0, 945, 0, 0], "semantic": {"name": "Edit...
[]
""" An implementation of the halfedge data structure, sometimes known as the *DCEL* (double connected edge list). It is capable of storing the topology of (planar?) graphs, which makes it very useful for handling polyedra, for instance. """ __all__=["Halfedge","HalfedgeDS"] from managedlist import ManagedList cl...
ajibawa-2023/Python-Code-Large/train/row_4560
204
348
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_4560:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0086, 0.0144, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4560:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4560:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4560:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4560:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" Stuff to do with bounding boxes. """ __all__ = ["BoundingBox"] from OpenGL.GL import * from math import * import matrix class BoundingBox(object): """A Bounding Box. Used to approximate the locus of a graphic object.""" def __init__ (self, center=(0,0,0), side=(0,0,0)): """Constructor @pa...
ajibawa-2023/Python-Code-Large/train/row_4561
51
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_4561:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0222, 0.0333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4561:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4561:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4561:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4561:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" Implementation of a very simple set of classes for representing objects in a given scene. Most of the attributes and properties model OpenGL primitives and state variables, so that their meaning is mostly self-documenting. The idea here is that objects may be passed around or maybe stored (using pickle or somethin...
ajibawa-2023/Python-Code-Large/train/row_4562
122
219
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_4562:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0183, 0.032, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4562:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4562:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4562:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4562:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
""" Implementation of a list with stable index positions. """ class ManagedList(list): """This is a list where index positions are stable, i.e, whenever an element is removed (with del), the array is not shrunk, but rather, the position is marked as free. On the other hand, rather than appending, one may i...
ajibawa-2023/Python-Code-Large/train/row_4563
39
55
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_4563:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0364, 0.0545, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4563:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4563:Expr_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4563:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4563:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" Material properties of objects. """ __all__=["Material"] from OpenGL.GL import * defaultMaterialDiffuse = (0.8, 0.8, 0.8, 1.0) defaultMaterialAmbient = (0.2, 0.2, 0.2, 1.0) defaultMaterialSpecular = (0,0,0,1) defaultMaterialEmission = (0,0,0,1) defaultMaterialShininess = 0 class Material(object): "A Material...
ajibawa-2023/Python-Code-Large/train/row_4564
27
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4564:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0408, 0.0612, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4564:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4564:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4564:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4564:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
import wx from wx import glcanvas from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * import sys,math name = 'ball_glut' class myGLCanvas(glcanvas.GLCanvas): def __init__(self, parent): #wx.EvtHandler.__init__(self) glcanvas.GLCanvas.__init__(self, parent,-1) wx.EVT_...
ajibawa-2023/Python-Code-Large/train/row_4566
61
88
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4566:Import_L1_C0", "label": "wx import wx", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0114, 0.0114, 0, 0.66, 0.0, 666, 0, 1, 0, 0, 666, 0, 0], "semantic": {"name": "wx", "arg_names": [], "import_names": ["wx"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4566:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4566:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4566:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4566:Expr_L13_C8"}, {"f": "ajibawa-2023/Python-Code-L...
class CanvasSettings: nearZ = 1.0 farZ = 1000.0 fov = 40.0 class Settings: canvas = CanvasSettings() settings = Settings()
ajibawa-2023/Python-Code-Large/train/row_4567
7
10
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_4567:ClassDef_L1_C0", "label": "CanvasSettings", "type": "class", "loc": [1, 4], "level": 0, "parent": null, "vector": [3, 0, 0.25, 0.4, 0, 0.66, 0.0, 682, 0, 0, 0, 0, 0, 0, 0], "semantic": {"name": "CanvasSettings", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4567:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4567:Assign_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4567:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4567:Assign_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
class ObjectRegistry(object): def __init__(self): self.oidGObjectmap = {} self.count = 0 def register(self, gobject): self.count += 1 self.oidGObjectmap[self.count] = gobject return self.count def getGObject(self, oid): return self.oidGObjectmap.get...
ajibawa-2023/Python-Code-Large/train/row_4568
10
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_4568:ClassDef_L2_C0", "label": "ObjectRegistry", "type": "class", "loc": [2, 13], "level": 0, "parent": null, "vector": [3, 0, 0.5, 0.8, 0, 0.66, 0.0, 610, 0, 3, 0, 0, 186, 0, 1], "semantic": {"name": "ObjectRegistry", "arg_names": [], "import_names": [], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4568:ClassDef_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4568:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4568:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4568:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
import logging BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8) #The background is set with 40 plus the number of the color, and the foreground with 30 #These are the sequences need to get colored ouput RESET_SEQ = "\033[0m" COLOR_SEQ = "\033[1;%dm" BOLD_SEQ = "\033[1m" def formatter_message(messag...
ajibawa-2023/Python-Code-Large/train/row_4569
36
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4569:Import_L1_C0", "label": "logging import logging", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0159, 0.0159, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4569:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4569:If_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4569:If_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4569:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
from math import sin, cos, sqrt, atan2 dotp = lambda u, v: sum([u[i]*v[i] for i in range(3)]) scalarp = lambda s, v: tuple([s*v[i] for i in range(3)]) vsum = lambda u, v: tuple([u[i] + v[i] for i in range(3)]) vdiff = lambda u, v: tuple([u[i] - v[i] for i in range(3)]) mag = lambda v: sqrt(sum([v[i]*v[i...
ajibawa-2023/Python-Code-Large/train/row_4570
29
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4570:ImportFrom_L1_C0", "label": "from math import sin, cos, sqrt\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0233, 0, 0.66, 0.0, 526, 0, 4, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4570:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4570:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4570:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4570:Return_L13_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from time import time class TimeStat(object): def __init__(self): self.tsdata = {} def __call__(self, func, name=None): name = func.__name__ if not name else name self.tsdata[name] = (0, 0, 0, 0) def wrapper(*args, **kw): ts = time() t...
ajibawa-2023/Python-Code-Large/train/row_4571
35
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_4571:ImportFrom_L2_C0", "label": "from time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0217, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4571:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4571:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4571:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4571:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
import FTGL import os from logger import log class Fonts(object): def __init__(self): self.fontRef = {} self.uiFonts = [] def __call__(self, fontfilename, fonttype, size): f = self.fontRef.get((fontfilename, fonttype, size), None) if f: ret...
ajibawa-2023/Python-Code-Large/train/row_4572
23
36
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_4572:Import_L1_C0", "label": "FTGL import FTGL", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 0, 0.66, 0.0, 122, 0, 1, 0, 0, 122, 0, 0], "semantic": {"name": "FTGL", "arg_names": [], "import_names": ["FTGL"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4572:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4572:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4572:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4572:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * from random import random, randint from gobjects import Sphere, GObject, Tetrahedron, \ Cylinder, Scene, Arrow from fonts ...
ajibawa-2023/Python-Code-Large/train/row_4573
123
181
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_4573:ImportFrom_L1_C0", "label": "from OpenGL.GL import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0055, 0.0055, 0, 0.66, 0.0, 280, 0, 1, 0, 0, 280, 0, 0], "semantic": {"name": "OpenGL.GL", "arg_names": [], "import_names": ["*"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4573:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4573:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4573:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4573:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import sys from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * import FTGL fonts = [] width = 600 height = 600 def do_ortho(): w, h = width, height glViewport(0, 0, w, h) glMatrixMode(GL_PROJECTION) glLoadIdentity() size = max(w, h) / 2.0 aspect = fl...
ajibawa-2023/Python-Code-Large/train/row_4574
106
142
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_4574:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0211, 0.007, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4574:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4574:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4574:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4574:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
COLOR_GREY = (0.6, 0.6, 0.6, 1.0) COLOR_BLACK = (0.0, 0.0, 0.0, 1.0) COLOR_WHITE = (1.0, 1.0, 1.0, 1.0) GEN_GREY = lambda x: (x, x, x, 1.0)
ajibawa-2023/Python-Code-Large/train/row_4575
4
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": "ajibawa-2023/Python-Code-Large/train/row_4575:Assign_L1_C0", "label": "COLOR_GREY =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.25, 0.25, 0, 0.66, 0.0, 264, 0, 0, 0, 0, 0, 8, 0], "semantic": {"name": "COLOR_GREY", "arg_names": [], "import_names": [], "rhs_call_...
[]
######################################################### ## ## ## OpenGl Canvas for drawing stereo 3D images and ## handling mouse and keyboard control ## ## ######################################################### import wx import traceback from OpenGL.GL import * from OpenGL.GLU import...
ajibawa-2023/Python-Code-Large/train/row_4576
459
689
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_4576:Import_L10_C0", "label": "wx import wx", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0145, 0.0015, 0, 0.66, 0.0, 666, 0, 1, 0, 0, 666, 0, 0], "semantic": {"name": "wx", "arg_names": [], "import_names": ["wx"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4576:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4576:FunctionDef_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4576:FunctionDef_L55_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4576:Expr_L56_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * from math import sin, cos, pi, exp, floor, sqrt, atan2 from logger import log from timestat import timestat from vector import dotp, scal...
ajibawa-2023/Python-Code-Large/train/row_4577
193
338
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_4577:ImportFrom_L1_C0", "label": "from OpenGL.GL import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.003, 0.003, 0, 0.66, 0.0, 280, 0, 1, 0, 0, 280, 0, 0], "semantic": {"name": "OpenGL.GL", "arg_names": [], "import_names": ["*"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4577:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4577:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4577:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4577:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Cod...
from gobjects import GObject from fonts import regularFont class Text(GObject): def __init__(self, x=0, y=0, z=0, text='', **kw): GObject.__init__(self, x, y, z, **kw) self.text = text def render(self): glPushMatrix() glTranslatef(*self.translation) ...
ajibawa-2023/Python-Code-Large/train/row_4578
15
23
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_4578:ImportFrom_L2_C0", "label": "from gobjects import GObject", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.087, 0.0435, 0, 0.66, 0.0, 382, 0, 1, 0, 0, 382, 0, 0], "semantic": {"name": "gobjects", "arg_names": [], "import_names": ["G...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4578:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4578:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4578:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4578:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * from colors import COLOR_BLACK, COLOR_GREY, COLOR_WHITE, GEN_GREY from objectregistry import objectRegistry from logger import log from math imp...
ajibawa-2023/Python-Code-Large/train/row_4579
250
375
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_4579:ImportFrom_L1_C0", "label": "from OpenGL.GL import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0027, 0.0027, 0, 0.66, 0.0, 280, 0, 1, 0, 0, 280, 0, 0], "semantic": {"name": "OpenGL.GL", "arg_names": [], "import_names": ["*"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4579:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4579:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4579:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4579:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-Code...
# # Program to find new coordinates when the angle of a point is compressed # to half original value in the negative z direction # import math def compressAngle(x,y,z): r = math.sqrt(x*x + y*y + z*z) zn = - math.sqrt(0.5*(r*(r - z) )) xn = r*(math.sqrt((1+math.sqrt(1 - x*x/(r*r)))/2)) yn = r*(math.sq...
ajibawa-2023/Python-Code-Large/train/row_4580
8
18
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_4580:Import_L7_C0", "label": "math import math", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.3889, 0.0556, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4580:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4580:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4580:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4580:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Utils (c) 2002, 2004, 2007, 2008 David Turner <david@freetype.org> # import string, sys, os, glob # current output directory # output_dir = None # This function is used to sort the index. It is a simple lexicographical # sort, except that it places capital letters before lowercase ones. # def index_sort( s1, ...
ajibawa-2023/Python-Code-Large/train/row_4581
70
132
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_4581:Import_L4_C0", "label": "string import string, sys, os\u2026", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0076, 0, 0.66, 0.0, 890, 0, 4, 0, 0, 890, 0, 0], "semantic": {"name": "string", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4581:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4581:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4581:If_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4581:Return_L16_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # # DocBeauty (c) 2003, 2004, 2008 David Turner <david@freetype.org> # # This program is used to beautify the documentation comments used # in the FreeType 2 public headers. # from sources import * from content import * from utils import * import utils import sys, os, time, string, getopt ...
ajibawa-2023/Python-Code-Large/train/row_4583
63
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_4583:ImportFrom_L9_C0", "label": "from sources import *", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.0088, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4583:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4583:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4583:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4583:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/env python # # DocMaker (c) 2002, 2004, 2008 David Turner <david@freetype.org> # # This program is a re-write of the original DocMaker took used # to generate the API Reference of the FreeType font engine # by converting in-source comments into structured HTML. # # This new version is capable of outputting ...
ajibawa-2023/Python-Code-Large/train/row_4584
55
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_4584:ImportFrom_L16_C0", "label": "from sources import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1509, 0.0094, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4584:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4584:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4584:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4584:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python # # DocMaker (c) 2002, 2004, 2008 David Turner <david@freetype.org> # # This program is a re-write of the original DocMaker took used # to generate the API Reference of the FreeType font engine # by converting in-source comments into structured HTML. # # This new version is capable of outputting ...
ajibawa-2023/Python-Code-Large/train/row_4585
55
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_4585:ImportFrom_L16_C0", "label": "from sources import *", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1509, 0.0094, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4585:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4585:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4585:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4585:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Sources (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009 # David Turner <david@freetype.org> # # # this file contains definitions of classes needed to decompose # C sources files into a series of multi-line "blocks". There are # two kinds of blocks: # # - normal blocks, which contain source code or ordinary comment...
ajibawa-2023/Python-Code-Large/train/row_4586
113
347
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_4586:Import_L22_C0", "label": "fileinput import fileinput, re, sys\u2026", "type": "import", "loc": [22, 22], "level": 0, "parent": null, "vector": [1, 0, 0.0634, 0.0029, 0, 0.66, 0.0, 286, 0, 5, 0, 0, 286, 0, 0], "semantic": {"name": "fileinput", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4586:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4586:FunctionDef_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4586:FunctionDef_L39_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4586:Expr_L40_C8"}, {"f": "ajibawa-2023/Python-Code-L...
# Formatter (c) 2002, 2004, 2007, 2008 David Turner <david@freetype.org> # from sources import * from content import * from utils import * # This is the base Formatter class. Its purpose is to convert # a content processor's data into specific documents (i.e., table of # contents, global index, and individual API...
ajibawa-2023/Python-Code-Large/train/row_4587
90
188
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_4587:ImportFrom_L4_C0", "label": "from sources import *", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0053, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4587:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4587:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4587:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4587:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-Code...
# Content (c) 2002, 2004, 2006, 2007, 2008, 2009 # David Turner <david@freetype.org> # # This file contains routines used to parse the content of documentation # comment blocks and build more structured objects out of them. # from sources import * from utils import * import string, re # this regular expression...
ajibawa-2023/Python-Code-Large/train/row_4588
348
584
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_4588:ImportFrom_L8_C0", "label": "from sources import *", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0017, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4588:ClassDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4588:FunctionDef_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4588:FunctionDef_L57_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4588:Assign_L58_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # # DocBeauty (c) 2003, 2004, 2008 David Turner <david@freetype.org> # # This program is used to beautify the documentation comments used # in the FreeType 2 public headers. # from sources import * from content import * from utils import * import utils import sys, os, time, string, getopt ...
ajibawa-2023/Python-Code-Large/train/row_4589
63
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_4589:ImportFrom_L9_C0", "label": "from sources import *", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.0088, 0, 0.66, 0.0, 648, 0, 1, 0, 0, 648, 0, 0], "semantic": {"name": "sources", "arg_names": [], "import_names": ["*"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4589:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4589:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4589:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4589:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# compute arctangent table for CORDIC computations in fttrigon.c import sys, math #units = 64*65536.0 # don't change !! units = 256 scale = units/math.pi shrink = 1.0 comma = "" def calc_val( x ): global units, shrink angle = math.atan(x) shrink = shrink * math.cos(angle) return angle/math.pi *...
ajibawa-2023/Python-Code-Large/train/row_4590
47
77
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4590:Import_L2_C0", "label": "sys import sys, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.026, 0.013, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "math"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4590:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4590:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4590:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4590:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # # # FreeType 2 glyph name builder # # Copyright 1996-2000, 2003, 2005, 2007, 2008, 2011 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LI...
ajibawa-2023/Python-Code-Large/train/row_4591
213
5,487
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_4591:Expr_L19_C0", "label": "expression", "type": "expression", "loc": [19, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0042, 0.0016, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4591:ClassDef_L4908_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4591:FunctionDef_L4909_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4591:FunctionDef_L4909_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4591:Assign_L4910_C4"}, {"f": "ajibawa-2023/Pyt...
#!/usr/bin/env python # # Check trace components in FreeType 2 source. # Author: suzuki toshiya, 2009 # # This code is explicitly into the public domain. import sys import os import re SRC_FILE_LIST = [] USED_COMPONENT = {} KNOWN_COMPONENT = {} SRC_FILE_DIRS = [ "src" ] TRACE_DEF_FILES = [ "include/freetype/in...
ajibawa-2023/Python-Code-Large/train/row_4592
71
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_4592:Import_L9_C0", "label": "sys import sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.0088, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4592:For_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4592:If_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4592:If_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4592:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4592:If_...
#!/usr/bin/env python # # # FreeType 2 glyph name builder # # Copyright 1996-2000, 2003, 2005, 2007, 2008, 2011 by # David Turner, Robert Wilhelm, and Werner Lemberg. # # This file is part of the FreeType project, and may only be used, modified, # and distributed under the terms of the FreeType project license, # LI...
ajibawa-2023/Python-Code-Large/train/row_4593
213
5,487
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_4593:Expr_L19_C0", "label": "expression", "type": "expression", "loc": [19, 27], "level": 0, "parent": null, "vector": [8, 0, 0.0042, 0.0016, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4593:ClassDef_L4908_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4593:FunctionDef_L4909_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4593:FunctionDef_L4909_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4593:Assign_L4910_C4"}, {"f": "ajibawa-2023/Pyt...
#!/usr/bin/env python # # Check trace components in FreeType 2 source. # Author: suzuki toshiya, 2009 # # This code is explicitly into the public domain. import sys import os import re SRC_FILE_LIST = [] USED_COMPONENT = {} KNOWN_COMPONENT = {} SRC_FILE_DIRS = [ "src" ] TRACE_DEF_FILES = [ "include/freetype/in...
ajibawa-2023/Python-Code-Large/train/row_4594
71
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_4594:Import_L9_C0", "label": "sys import sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.0088, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4594:For_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4594:If_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4594:If_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4594:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4594:If_...