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/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from pyglet import app from base import Display, Screen, ScreenMode, Canvas from pyglet.libs.darwin import * from pyglet.libs.darwin import _oscheck class CarbonDisplay(Display): # TODO: CarbonDisplay could be per display d...
ajibawa-2023/Python-Code-Large/train/row_91556
149
252
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91556:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0139, 0.0079, 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_91556:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91556:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91556:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91556:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # $Id:$ from pyglet import app from pyglet import gl from pyglet import window class Display(object): '''A display device supporting one or more screens. :Ivariables: `name` : str Name of this display, if applicable. `x_screen` : int The...
ajibawa-2023/Python-Code-Large/train/row_91557
81
301
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91557:ImportFrom_L4_C0", "label": "from pyglet import app", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0133, 0.0033, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "pyglet", "arg_names": [], "import_names": ["app"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91557:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91557:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91557:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91557:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * R...
ajibawa-2023/Python-Code-Large/train/row_91558
27
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91558:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 59], "level": 0, "parent": null, "vector": [8, 0, 0.4519, 0.2404, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91558:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91558:Expr_L65_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91558:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91558:ImportFrom_L77_C4"}, {"f": "ajibawa-2023/Python-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributi...
ajibawa-2023/Python-Code-Large/train/row_91559
175
405
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91559:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0901, 0.0099, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91559:FunctionDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91559:Import_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91559:FunctionDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91559:Assign_L65_C4"}, {"f": "ajibawa-2023/Python-Co...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91560
153
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91560:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 37], "level": 0, "parent": null, "vector": [8, 0, 0.1164, 0.0131, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91560:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91560:FunctionDef_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91560:FunctionDef_L55_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91560:Assign_L56_C8"}, {"f": "ajibawa-2023/Python-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91561
7
45
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91561:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 36], "level": 0, "parent": null, "vector": [8, 0, 0.7778, 0.0667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[]
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91562
255
516
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91562:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0698, 0.0097, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91562:ClassDef_L207_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91562:Assign_L208_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91562:ClassDef_L214_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91562:Assign_L215_C4"}, {"f": "ajibawa-2023/Python-Code...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91563
162
374
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91563:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0963, 0.0134, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91563:ClassDef_L150_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91563:Assign_L151_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91563:ClassDef_L162_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91563:Assign_L163_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from pyglet.gl.base import Config, CanvasConfig, Context from pyglet.libs.darwin import * from pyglet.gl import ContextException from pyglet.gl import gl from pyglet.gl import agl from pyglet.canvas.cocoa import CocoaCanvas #...
ajibawa-2023/Python-Code-Large/train/row_91564
81
209
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91564:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0167, 0.0096, 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_91564:ClassDef_L75_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91564:FunctionDef_L77_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91564:FunctionDef_L77_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91564:Assign_L79_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # $Id:$ from pyglet.canvas.win32 import Win32Canvas from base import Config, CanvasConfig, Context from pyglet import gl from pyglet.gl import gl_info from pyglet.gl import wgl from pyglet.gl import wglext_arb from pyglet.gl import wgl_info from pyglet.libs.win32 import _user32, _kernel...
ajibawa-2023/Python-Code-Large/train/row_91565
162
263
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91565:ImportFrom_L4_C0", "label": "from pyglet.canvas.win32 import Win32Canvas", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0152, 0.0038, 0, 0.66, 0.0, 895, 0, 1, 0, 0, 895, 0, 0], "semantic": {"name": "pyglet.canvas.win32", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91565:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91565:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91565:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91565:If_L19_C8"}, {"f": "ajibawa-2023/Python-Code...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91566
26
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91566:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.4797, 0.027, 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_91566:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91566:Try_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91566:Try_L54_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91566:Assign_L55_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91567
48
161
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91567:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 57], "level": 0, "parent": null, "vector": [8, 0, 0.2857, 0.1429, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91567:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91567:Expr_L69_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91567:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91567:Assign_L78_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91568
65
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91568:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 52], "level": 0, "parent": null, "vector": [8, 0, 0.2959, 0.1224, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91568:ClassDef_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91568:FunctionDef_L66_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91568:FunctionDef_L66_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91568:If_L68_C8"}, {"f": "ajibawa-2023/Python-Code...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * R...
ajibawa-2023/Python-Code-Large/train/row_91569
488
1,025
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91569:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0351, 0.0049, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91569:ClassDef_L325_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91569:Assign_L326_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91569:ClassDef_L335_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91569:Assign_L336_C4"}]
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from ctypes import * from pyglet.canvas.xlib import XlibCanvas from base import Config, CanvasConfig, Context from pyglet import gl from pyglet.gl import glx from pyglet.gl import glxext_arb from pyglet.gl import glx_info from ...
ajibawa-2023/Python-Code-Large/train/row_91570
220
389
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91570:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.009, 0.0051, 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_91570:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91570:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91570:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91570:If_L22_C8"}, {"f": "ajibawa-2023/Python-Code...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91571
78
207
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91571:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 56], "level": 0, "parent": null, "vector": [8, 0, 0.2198, 0.1063, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91571:ClassDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91571:Expr_L68_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91571:ClassDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91571:Assign_L77_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91572
41
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91572:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.3777, 0.0213, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91572:Try_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91572:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91572:Try_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91572:Assign_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91573
240
624
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91573:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 37], "level": 0, "parent": null, "vector": [8, 0, 0.0569, 0.0064, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91573:ClassDef_L146_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91573:Assign_L147_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91573:ClassDef_L153_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91573:Assign_L154_C4"}, {"f": "ajibawa-2023/Python-Code...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91574
351
835
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91574:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0431, 0.006, 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_91574:ClassDef_L185_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91574:Assign_L186_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91574:ClassDef_L192_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91574:Assign_L193_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' from base import Config, CanvasConfig, Context from pyglet.libs.darwin import * from pyglet.libs.darwin import _oscheck from pyglet.gl import ContextException from pyglet.gl import gl from pyglet.gl import agl from pyglet.canva...
ajibawa-2023/Python-Code-Large/train/row_91575
102
202
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91575:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0173, 0.0099, 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_91575:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91575:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91575:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91575:If_L21_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91576
424
990
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91576:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0364, 0.0051, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91576:If_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91576:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91576:If_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91576:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91577
85
154
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91577:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.2305, 0.013, 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_91577:If_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91577:ImportFrom_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91577:If_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91577:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91578
5,610
11,520
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91578:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0031, 0.0004, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[]
#!/usr/bin/python # $Id:$ import sys as _sys from pyglet import gl from pyglet.gl import gl_info from pyglet.gl import glu_info class Config(object): '''Graphics configuration. A Config stores the preferences for OpenGL attributes such as the number of auxilliary buffers, size of the colour...
ajibawa-2023/Python-Code-Large/train/row_91579
119
387
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91579:Import_L4_C0", "label": "sys import _sys", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0103, 0.0026, 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_91579:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91579:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91579:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91579:Assign_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91580
7,384
15,283
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91580:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0024, 0.0003, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91580:ClassDef_L3645_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91580:Assign_L3646_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91580:ClassDef_L3652_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91580:Assign_L3653_C4"}, {"f": "ajibawa-2023/Python-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * R...
ajibawa-2023/Python-Code-Large/train/row_91581
432
909
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91581:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0396, 0.0055, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91581:ClassDef_L287_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91581:Assign_L288_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91581:ClassDef_L297_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91581:Assign_L298_C4"}]
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91582
76
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_91582:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 92], "level": 0, "parent": null, "vector": [8, 0, 0.2702, 0.2468, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91582:FunctionDef_L116_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91582:Expr_L117_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91582:FunctionDef_L116_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91582:Return_L127_C4"}, {"f": "ajibawa-2023/Python-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91583
1,339
2,709
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91583:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.0133, 0.0018, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[]
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91584
72
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_91584:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.2465, 0.0139, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91584:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91584:FunctionDef_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91584:FunctionDef_L53_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91584:Assign_L54_C8"}, {"f": "ajibawa-2023/Python-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91585
25
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91585:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 37], "level": 0, "parent": null, "vector": [8, 0, 0.5, 0.0417, 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_91585:ClassDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91585:FunctionDef_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91585:FunctionDef_L56_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91585:If_L57_C8"}, {"f": "ajibawa-2023/Python-Code...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91586
235
450
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91586:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 38], "level": 0, "parent": null, "vector": [8, 0, 0.08, 0.0111, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91586:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91586:Assign_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91586:ClassDef_L67_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91586:Assign_L68_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91587
66
193
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91587:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1839, 0.0104, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91587:ClassDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91587:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91587:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91587:Assign_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91588
402
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_91588:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.0665, 0.0037, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91588:FunctionDef_L164_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91588:Return_L165_C4"}]
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91589
111
339
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91589:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1047, 0.0059, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[]
import pyglet # Cocoa implementation: if pyglet.options['darwin_cocoa']: from Foundation import * from Cocoa import * from Quartz import * NSAnyEventMask = 0xFFFFFFFFL # Carbon implementation: else: from types import * from constants import * carbon = pyglet.lib.load_library( fra...
ajibawa-2023/Python-Code-Large/train/row_91590
22
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_91590:Import_L1_C0", "label": "pyglet import pyglet", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0227, 0.0227, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "pyglet", "arg_names": [], "import_names": ["pyglet"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91590:If_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91590:ImportFrom_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91590:If_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91590:ImportFrom_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91591
54
276
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91591:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1286, 0.0072, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91591:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91591:Assign_L63_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91591:ClassDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91591:Assign_L71_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import ctypes from pyglet import com lib = ctypes.oledll.dinput8 LPVOID = ctypes.c_void_p WORD = ctypes.c_uint16 DWORD = ctypes.c_uint32 LPDWORD = ctypes.POINTER(DWORD) BOOL = ctypes.c_int WCHAR = ctypes.c_wchar UINT = ctypes.c_uint HWND = ctypes.c_uint32 HANDLE = LPVOID MAX_PATH = 260 DIENUM_STOP ...
ajibawa-2023/Python-Code-Large/train/row_91592
209
397
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91592:Import_L1_C0", "label": "ctypes import ctypes", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0025, 0.0025, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["ctypes"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91592:FunctionDef_L131_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91592:Return_L132_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91592:ClassDef_L216_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91592:Assign_L217_C4"}, {"f": "ajibawa-2023/Python-C...
#!/usr/bin/python # $Id:$ import ctypes lib = ctypes.windll.wintab32 LONG = ctypes.c_long BOOL = ctypes.c_int UINT = ctypes.c_uint WORD = ctypes.c_uint16 DWORD = ctypes.c_uint32 WCHAR = ctypes.c_wchar FIX32 = DWORD WTPKT = DWORD LCNAMELEN = 40 class AXIS(ctypes.Structure): _fields_ = ( ...
ajibawa-2023/Python-Code-Large/train/row_91593
230
335
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91593:Import_L4_C0", "label": "ctypes import ctypes", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0119, 0.003, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["ctypes"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91593:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91593:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91593:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91593:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Cod...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91594
16
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91594:FunctionDef_L1_C0", "label": "PRIMARYLANGID", "type": "function", "loc": [1, 1], "level": 0, "parent": null, "vector": [2, 0, 0.0625, 0.0625, 0, 0.66, 0.0, 476, 0, 1, 1, 0, 0, 0, 0], "semantic": {"name": "PRIMARYLANGID", "arg_names": ["lgid"], "import_names": [], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91594:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91594:Return_L1_C25"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91594:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91594:Return_L3_C21"}, {"f": "ajibawa-2023/Python-Code...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91595
7
237
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91595:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1498, 0.0084, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[]
#!/usr/bin/python # $Id: $ from ctypes import * import pyglet import constants from types import * _debug_win32 = pyglet.options['debug_win32'] if _debug_win32: import traceback _GetLastError = windll.kernel32.GetLastError _SetLastError = windll.kernel32.SetLastError _FormatMessageA =...
ajibawa-2023/Python-Code-Large/train/row_91596
38
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91596:ImportFrom_L4_C0", "label": "from ctypes import *", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0678, 0.0169, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91596:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91596:Import_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91596:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91596:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91597
81
120
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91597:Expr_L35_C0", "label": "expression", "type": "expression", "loc": [35, 36], "level": 0, "parent": null, "vector": [8, 0, 0.2958, 0.0167, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[]
'''Wrapper for Xi Generated with: tools/genwrappers.py xinput Do not modify this file. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: wrap.py 1694 2008-01-30 23:12:00Z Alex.Holkner $' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('Xi') _int_types = (c_int16, c_i...
ajibawa-2023/Python-Code-Large/train/row_91598
576
1,650
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91598:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0024, 0.0042, 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_91598:For_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91598:If_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91598:If_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91598:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91...
'''Wrapper for Xxf86vm Generated with: tools/genwrappers.py xf86vmode Do not modify this file. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('Xxf86vm') _int_types = (c_int16, c_int32) if hasattr(ctypes, 'c_int64'):...
ajibawa-2023/Python-Code-Large/train/row_91599
143
346
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91599:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0116, 0.0202, 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_91599:For_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91599:If_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91599:If_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91599:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91...
'''Wrapper for X11 Generated with: tools/genwrappers.py xlib Do not modify this file. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('X11') _int_types = (c_int16, c_int32) if hasattr(ctypes, 'c_int64'): # Some b...
ajibawa-2023/Python-Code-Large/train/row_91600
2,478
5,611
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91600:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0007, 0.0012, 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_91600:For_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91600:If_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91600:If_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91600:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91601
198
471
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91601:Expr_L34_C0", "label": "expression", "type": "expression", "loc": [34, 40], "level": 0, "parent": null, "vector": [8, 0, 0.0786, 0.0149, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91601:For_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91601:If_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91601:If_L59_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91601:Assign_L60_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91...
'''Wrapper for Xinerama Generated with: tools/genwrappers.py xinerama Do not modify this file. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import ctypes from ctypes import * import pyglet.lib _lib = pyglet.lib.load_library('Xinerama') _int_types = (c_int16, c_int32) if hasattr(ctypes, 'c_int64')...
ajibawa-2023/Python-Code-Large/train/row_91602
33
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91602:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0513, 0.0897, 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_91602:For_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91602:If_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91602:If_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91602:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91603
113
404
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91603:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 48], "level": 0, "parent": null, "vector": [8, 0, 0.104, 0.0322, 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_91603:ClassDef_L76_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91603:Expr_L77_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91603:ClassDef_L76_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91603:FunctionDef_L85_C4"}, {"f": "ajibawa-2023/Python-Code-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91604
184
538
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91604:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 132], "level": 0, "parent": null, "vector": [8, 0, 0.1561, 0.1803, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "ann...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91604:FunctionDef_L176_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91604:Return_L177_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91604:FunctionDef_L179_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91604:Expr_L180_C4"}, {"f": "ajibawa-2023/Python-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributi...
ajibawa-2023/Python-Code-Large/train/row_91605
259
596
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91605:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 45], "level": 0, "parent": null, "vector": [8, 0, 0.068, 0.0168, 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_91605:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91605:Expr_L68_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91605:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91605:ImportFrom_L83_C4"}, {"f": "ajibawa-2023/Python-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91606
256
724
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91606:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 154], "level": 0, "parent": null, "vector": [8, 0, 0.1312, 0.1644, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "ann...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91606:FunctionDef_L168_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91606:Expr_L169_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91606:FunctionDef_L168_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91606:Expr_L181_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91608
16
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91608:ImportFrom_L48_C0", "label": "from distutils.core import setup", "type": "import", "loc": [48, 48], "level": 0, "parent": null, "vector": [1, 0, 0.5217, 0.0109, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91608:For_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91608:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91608:For_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91608:If_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91609
490
895
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91609:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 43], "level": 0, "parent": null, "vector": [8, 0, 0.0441, 0.0089, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91609:FunctionDef_L95_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91609:Assign_L96_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91609:FunctionDef_L95_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91609:Assign_L97_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91610
7
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_91610:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 37], "level": 0, "parent": null, "vector": [8, 0, 0.7449, 0.0408, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91610:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91610:Expr_L45_C4"}]
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91611
34
80
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91611:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 37], "level": 0, "parent": null, "vector": [8, 0, 0.4562, 0.025, 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_91611:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91611:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91611:FunctionDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91611:Expr_L44_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91612
92
190
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91612:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 47], "level": 0, "parent": null, "vector": [8, 0, 0.2184, 0.0632, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91612:Try_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91612:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91612:Try_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91612:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91613
17
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91613:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 38], "level": 0, "parent": null, "vector": [8, 0, 0.4744, 0.0385, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91613:FunctionDef_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91613:Assign_L67_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91613:FunctionDef_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91613:Assign_L70_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91615
213
337
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91615:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 37], "level": 0, "parent": null, "vector": [8, 0, 0.1083, 0.0059, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91615:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91615:Expr_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91615:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91615:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91616
82
179
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91616:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 45], "level": 0, "parent": null, "vector": [8, 0, 0.2263, 0.0559, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91616:Try_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91616:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91616:Try_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91616:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91617
24
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91617:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 44], "level": 0, "parent": null, "vector": [8, 0, 0.4878, 0.1098, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91617:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91617:Expr_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91617:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91617:Expr_L56_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91618
20
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91618:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 43], "level": 0, "parent": null, "vector": [8, 0, 0.5563, 0.1127, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91618:If_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91618:Expr_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91618:If_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91618:Expr_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_916...
''' A silly demonstration of how to use the Apple remote. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet from pyglet.gl import * import sys class MainWindow(pyglet.window.Window): def __init__(self): super(MainWindow, self).__init__(visible=False) self.set_caption('A...
ajibawa-2023/Python-Code-Large/train/row_91619
165
225
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91619:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0089, 0.0133, 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_91619:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91619:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91619:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91619:Expr_L15_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet from pyglet.gl import * joysticks = pyglet.input.get_joysticks() assert joysticks, 'No joystick device is connected' joystick = joysticks[0] joystick.open() window = pyglet.window.Window() @window.event def on_dr...
ajibawa-2023/Python-Code-Large/train/row_91620
42
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_91620:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0556, 0.0317, 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_91620:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91620:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91620:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91620:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # $Id:$ '''In order to use the new features of OpenGL 3, you must explicitly create an OpenGL 3 context. You can do this by supplying the `major_version` and `minor_version` attributes for a GL Config. This example creates an OpenGL 3 context, prints the version string to stdout, and exits....
ajibawa-2023/Python-Code-Large/train/row_91621
6
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_91621:Expr_L4_C0", "label": "expression", "type": "expression", "loc": [4, 23], "level": 0, "parent": null, "vector": [8, 0, 0.314, 0.4651, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91622
50
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_91622:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 40], "level": 0, "parent": null, "vector": [8, 0, 0.3276, 0.0431, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91622:If_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91622:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91622:ClassDef_L58_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91622:Assign_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91623
20
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_91623:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 37], "level": 0, "parent": null, "vector": [8, 0, 0.553, 0.0303, 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_91623:FunctionDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91623:If_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91623:If_L50_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91623:Expr_L51_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91624
10
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91624:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 37], "level": 0, "parent": null, "vector": [8, 0, 0.7019, 0.0385, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91624:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91624:Expr_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91624:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91624:Expr_L50_C4"}]
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91625
10
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91625:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 37], "level": 0, "parent": null, "vector": [8, 0, 0.6518, 0.0357, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91625:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91625:Expr_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91625:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91625:Expr_L54_C4"}]
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91626
17
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91626:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 43], "level": 0, "parent": null, "vector": [8, 0, 0.5267, 0.1067, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91626:If_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91626:Assign_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91626:If_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91626:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91627
12
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91627:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 37], "level": 0, "parent": null, "vector": [8, 0, 0.6887, 0.0377, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91627:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91627:FunctionDef_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91627:FunctionDef_L42_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91627:Expr_L43_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91628
33
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91628:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 43], "level": 0, "parent": null, "vector": [8, 0, 0.4341, 0.0879, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91628:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91628:FunctionDef_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91628:FunctionDef_L50_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91628:Assign_L51_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91629
31
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91629:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 45], "level": 0, "parent": null, "vector": [8, 0, 0.4355, 0.1075, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91629:Try_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91629:ImportFrom_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91629:Try_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91629:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91631
16
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91631:Expr_L36_C0", "label": "expression", "type": "expression", "loc": [36, 41], "level": 0, "parent": null, "vector": [8, 0, 0.5923, 0.0923, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91631:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91631:If_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91631:If_L48_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91631:Assign_L51_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet window = pyglet.window.Window() devices = pyglet.input.get_devices() def watch_control(device, control): @control.event def on_change(value): print '%r: %r.on_change(%r)' % (device, control, value)...
ajibawa-2023/Python-Code-Large/train/row_91632
25
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_91632:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0833, 0.0476, 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_91632:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91632:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91632:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91632:Expr_L17_C8"}, {"f": "ajibawa-2023/Python...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet import sys window = pyglet.window.Window() @window.event def on_draw(): window.clear() remote = pyglet.input.get_apple_remote() if not remote: print 'Apple IR Remote not available.' sys.exit(0) remot...
ajibawa-2023/Python-Code-Large/train/row_91633
38
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_91633:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0479, 0.0274, 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_91633:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91633:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91633:If_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91633:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91634
68
156
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91634:Expr_L37_C0", "label": "expression", "type": "expression", "loc": [37, 50], "level": 0, "parent": null, "vector": [8, 0, 0.2788, 0.0897, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91634:ClassDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91634:FunctionDef_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91634:FunctionDef_L64_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91634:Assign_L65_C8"}, {"f": "ajibawa-2023/Python-...
# ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistribu...
ajibawa-2023/Python-Code-Large/train/row_91635
52
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91635:Import_L36_C0", "label": "os import os", "type": "import", "loc": [36, 36], "level": 0, "parent": null, "vector": [1, 0, 0.3429, 0.0095, 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_91635:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91635:FunctionDef_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91635:FunctionDef_L42_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91635:Assign_L43_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # ---------------------------------------------------------------------------- # pyglet # Copyright (c) 2006-2008 Alex Holkner # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are ...
ajibawa-2023/Python-Code-Large/train/row_91636
399
608
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91636:Import_L37_C0", "label": "math import math", "type": "import", "loc": [37, 37], "level": 0, "parent": null, "vector": [1, 0, 0.0609, 0.0016, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91636:Try_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91636:ImportFrom_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91636:FunctionDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91636:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python # $Id:$ import pyglet window = pyglet.window.Window() tablets = pyglet.input.get_tablets() canvases = [] if tablets: print 'Tablets:' for i, tablet in enumerate(tablets): print ' (%d) %s' % (i + 1, tablet.name) print 'Press number key to open corresponding tablet d...
ajibawa-2023/Python-Code-Large/train/row_91637
32
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_91637:Import_L4_C0", "label": "pyglet import pyglet", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.069, 0.0172, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "pyglet", "arg_names": [], "import_names": ["pyglet"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91637:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91637:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91637:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91637:For_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9163...
#!/usr/bin/env python '''Demonstrates basic use of IncrementalTextLayout and Caret. A simple widget-like system is created in this example supporting keyboard and mouse focus. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import pyglet class Rectangle(object): '''Draws a rectangle into a batch....
ajibawa-2023/Python-Code-Large/train/row_91638
86
146
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91638:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0342, 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_91638:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91638:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91638:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91638:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2012 Zdenko Podobný # Author: Zdenko Podobný # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
ajibawa-2023/Python-Code-Large/train/row_91640
3
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_91640:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": "", "a...
[]
"""Script to offset by a fixed amount and expose Instructions: load Map.py into your TUI lib/python2.6/TUI/Scripts/TSpec/ directory start up TUI run script! (to test, set sr.debug = True in __init__) History: 2010-10-21 AGinsburg Changed from Nod.py to Map.py, a mapping script! 2008-04-23 ROwen 2008-07-24...
ajibawa-2023/Python-Code-Large/train/row_91642
93
216
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91642:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0301, 0.0556, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91642:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91642:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91642:FunctionDef_L34_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91642:Expr_L35_C8"}, {"f": "ajibawa-2023/Python-Co...
import datetime import os import numpy as np try: import astropy.io.fits as pyfits except ImportError: import pyfits import glob try: import progressbar widgets = [progressbar.FormatLabel('Processed: %(value)d spectra in %(elapsed)s)'), progressbar.Percentage()] progress = progressbar.ProgressBar(w...
ajibawa-2023/Python-Code-Large/train/row_91644
97
146
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91644:Import_L1_C0", "label": "datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0068, 0.0068, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91644:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91644:Import_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91644:Try_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91644:Import_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
import aplpy import os import pyfits import matplotlib.pyplot as pl pl.ioff() verbose_global = False # orion-specific ROrion = pyfits.getdata('/Volumes/disk5/Users/adam/observations/Q4CU05/UT121105/Robberto2010Orion.fits') UOrion = pyfits.getdata('/Volumes/disk5/Users/adam/observations/Q4CU05/UT121105/UKIDSS_Orion.fi...
ajibawa-2023/Python-Code-Large/train/row_91645
44
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_91645:Import_L1_C0", "label": "aplpy import aplpy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 0, 0.66, 0.0, 96, 0, 1, 0, 0, 96, 0, 0], "semantic": {"name": "aplpy", "arg_names": [], "import_names": ["aplpy"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91645:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91645:If_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91645:If_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91645:Expr_L17_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
""" TripleSpec's slit is centered at coordinates 250,416.4 REVISED: 250.11, 416.53 angle 0.66 degrees length 89.3 pix, height 3.24 pix in the slitviewer (proc coordinates, not raw) Its endpoints are approximately: 207,416 # REVISED 205.6 415.7 293,417 # REVISED 294.9 416.7 """ import numpy as np...
ajibawa-2023/Python-Code-Large/train/row_91646
19
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_91646:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 12], "level": 0, "parent": null, "vector": [8, 0, 0.1912, 0.3529, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91646:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91646:Import_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91646:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91646:Import_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot as pl pl.ioff() import numpy as np import pyfits verbose_global=False def plot_axy(fn,plow=1,phi=99,verbose=verbose_global): if verbose: print "Plotting %s" % fn prefix = fn.replace('.fits','') axy = pyfits.getdata(prefix+".axy") ...
ajibawa-2023/Python-Code-Large/train/row_91647
35
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91647:Import_L1_C0", "label": "matplotlib import matplotlib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 0.0244, 0, 0.66, 0.0, 75, 0, 1, 0, 0, 75, 0, 0], "semantic": {"name": "matplotlib", "arg_names": [], "import_names": ["mat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91647:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91647:If_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91647:If_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91647:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
import datetime def dateobs_to_datetime(fitsstr): """ Converte a DATE-OBS time string to a datetime instance string format should be like: '2012-11-05T08:47:31.549' """ year = int(fitsstr[:4]) month = int(fitsstr[5:7]) day = int(fitsstr[8:10]) hour = int(fitsstr[11:13]) minute ...
ajibawa-2023/Python-Code-Large/train/row_91648
11
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_91648:Import_L1_C0", "label": "datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91648:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91648:Expr_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91648:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91648:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# Step 1: Grab 2MASS catalog # """ import astroquery.irsa ORION = astroquery.irsa.query_gator_box('pt_src_cat','83.808 -5.391',900) import atpy import astropy T = atpy.Table() [T.add_column(n,ORION[n]) for n in ORION.columns] T.write('2MASS_orion_cat.fits') T2 = atpy.Table() T2.add_column('RA',T.ra) T2.add_column('Dec'...
ajibawa-2023/Python-Code-Large/train/row_91649
115
262
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91649:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0363, 0.0534, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91649:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91649:Assign_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91649:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91649:If_L54_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_91651
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91651:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 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_91651:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91651:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91651:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91651:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
''' yfrog api ''' from upload import *
ajibawa-2023/Python-Code-Large/train/row_91653
2
6
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91653:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
#!/usr/bin/env python ''' Client API library to upload images and videos to yfrog.com Using Yfrog public API, as described here: http://yfrog.com/api.php ''' import urllib2_file import urllib2 import socket from mimetypes import guess_type from xml.dom.minidom import parseString from os.path import exists API_UR...
ajibawa-2023/Python-Code-Large/train/row_91654
100
216
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91654:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0301, 0.037, 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_91654:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91654:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91654:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91654:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python ''' Client API library for chuncked video uploading to imageshack.us Using "Streaming upload API" as described here: http://code.google.com/p/imageshackapi/wiki/StreamingAPI ''' import os import urllib import httplib import urllib2 from urlparse import urlparse from os.path import exists fro...
ajibawa-2023/Python-Code-Large/train/row_91655
107
176
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91655:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0369, 0.0455, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91655:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91655:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91655:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91655:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
''' imageshack api ''' from upload import * from chuncked_upload import Uploader as ChunkedUploader
ajibawa-2023/Python-Code-Large/train/row_91657
3
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_91657:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.25, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[]
#!/usr/bin/env python ''' Client API library to upload images and videos to imageshack.us Using "Unified upload API" as described here: http://reg.imageshack.us/content.php?page=developerpublic ''' import urllib2_file import urllib2 import socket import httplib from mimetypes import guess_type from xml.dom.minido...
ajibawa-2023/Python-Code-Large/train/row_91658
123
252
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91658:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.0258, 0.0317, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91658:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91658:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91658:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91658:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python import yfrog import sys if __name__ == "__main__": if len(sys.argv)<4: print "Usage upload.py <username> <password> <filename/url> [<text>] [<source>]" sys.exit(1) u = yfrog.Uploader() if len(sys.argv)>=5: msg = sys.argv[4] else: msg = None if...
ajibawa-2023/Python-Code-Large/train/row_91659
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91659:Import_L1_C0", "label": "yfrog import yfrog", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "yfrog", "arg_names": [], "import_names": ["yfrog"], "rhs_ca...
[]
#!/usr/bin/env python import imageshack import sys if __name__ == "__main__": if len(sys.argv)!=3: print "Usage upload.py <devkey> <filename/url>" sys.exit(1) u = imageshack.Uploader(sys.argv[1]) try: if sys.argv[2].startswith("http://"): print u.uploadURL(sys.argv[2]...
ajibawa-2023/Python-Code-Large/train/row_91660
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91660:Import_L1_C0", "label": "imageshack import imageshack", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 115, 0, 1, 0, 0, 115, 0, 0], "semantic": {"name": "imageshack", "arg_names": [], "import_names": ["i...
[]
# Copyright 2011 Tom SF Haines # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, softwar...
ajibawa-2023/Python-Code-Large/train/row_91662
75
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_91662:ImportFrom_L11_C0", "label": "from collections import defaultdict", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.0873, 0.0079, 0, 0.66, 0.0, 193, 0, 1, 0, 0, 193, 0, 0], "semantic": {"name": "collections", "arg_names": [], "imp...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91662:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91662:Expr_L23_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91662:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91662:FunctionDef_L24_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2011 Tom SF Haines # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, softwar...
ajibawa-2023/Python-Code-Large/train/row_91663
150
196
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91663:Import_L11_C0", "label": "math import math", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.0561, 0.0051, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91663:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91663:Expr_L19_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91663:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91663:Assign_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- # Copyright (c) 2010, Tom SF Haines # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, this list of...
ajibawa-2023/Python-Code-Large/train/row_91664
28
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_91664:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2941, 0.0196, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91664:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91664:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91664:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91664:FunctionDef_L22_C2"}, {"f": "ajibawa-2023/Python-Code-...
# -*- coding: utf-8 -*- # Copyright (c) 2010, Tom SF Haines # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright notice, this list of...
ajibawa-2023/Python-Code-Large/train/row_91665
12
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91665:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.0333, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91665:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91665:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91665:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91665:Assign_L22_C2"}, {"f": "ajibawa-2023/Python-Code...