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 '''Test that audio playback works. You should hear white noise (static) for 0.5 seconds. The test will exit immediately after. You may want to turn down the volume of your speakers. ''' import unittest from pyglet import media from pyglet.media import procedural class TEST_...
ajibawa-2023/Python-Code-Large/train/row_91202
14
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91202:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.2222, 0.2593, 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_91202:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91202:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91202:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91202:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that audio playback works. You should hear white noise (static) for 0.5 seconds. The test will exit immediately after. You may want to turn down the volume of your speakers. ''' import unittest from pyglet import media from pyglet.media import procedural class TEST_...
ajibawa-2023/Python-Code-Large/train/row_91203
14
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91203:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.2222, 0.2593, 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_91203:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91203:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91203:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91203:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that audio playback works. You should hear white noise (static) for 0.5 seconds. The test will exit immediately after. You may want to turn down the volume of your speakers. ''' import unittest from pyglet import media from pyglet.media import procedural class TEST_...
ajibawa-2023/Python-Code-Large/train/row_91204
16
29
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91204:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.2069, 0.2414, 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_91204:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91204:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91204:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91204:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that audio playback works. You should hear white noise (static) for 0.25 seconds, then a 0.5 second pause then another 0.25 seconds of noise. The test will exit immediately after. You may want to turn down the volume of your speakers. ''' import unittest import time ...
ajibawa-2023/Python-Code-Large/train/row_91205
23
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91205:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1622, 0.1892, 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_91205:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91205:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91205:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91205:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that window size can be set. Expected behaviour: One window will be opened. The window's dimensions will be printed to the terminal. - press "x" to increase the width - press "X" to decrease the width - press "y" to increase the height - press "Y" to decre...
ajibawa-2023/Python-Code-Large/train/row_91206
27
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_91206:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1923, 0.2885, 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_91206:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91206:FunctionDef_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91206:FunctionDef_L30_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91206:Assign_L31_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that exclusive mouse mode can be set. Expected behaviour: One window will be opened. Press 'e' to enable exclusive mode and 'E' to disable exclusive mode. In exclusive mode: - the mouse cursor should be invisible - moving the mouse should generate events with bogu...
ajibawa-2023/Python-Code-Large/train/row_91207
23
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91207:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 19], "level": 0, "parent": null, "vector": [8, 0, 0.2292, 0.3542, 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_91207:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91207:FunctionDef_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91207:FunctionDef_L30_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91207:If_L31_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python '''Test that window style can be dialog. Expected behaviour: One dialog-styled window will be opened. Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:04:10Z Alex.Holkner $' import un...
ajibawa-2023/Python-Code-Large/train/row_91208
19
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91208:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.2121, 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_91208:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91208:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91208:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91208:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # $Id:$ import unittest from pyglet import window import base_event_sequence __noninteractive = True class TEST_CLASS(base_event_sequence.BaseEventSequence): last_sequence = 3 def on_resize(self, width, height): self.check_sequence(1, 'on_resize') def on_show(self): ...
ajibawa-2023/Python-Code-Large/train/row_91209
24
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91209:Import_L4_C0", "label": "unittest import unittest", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1081, 0.027, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91209:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91209:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91209:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91209:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test that screens can be selected for fullscreen. Expected behaviour: One window will be created fullscreen on the primary screen. When you close this window, another will open on the next screen, and so on until all screens have been tested. Each screen will be filled ...
ajibawa-2023/Python-Code-Large/train/row_91210
28
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_91210:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 16], "level": 0, "parent": null, "vector": [8, 0, 0.1607, 0.2679, 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_91210:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91210:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91210:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91210:Assign_L34_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that minimum and maximum window size can be set. Expected behaviour: One window will be opened. The window's dimensions will be printed to the terminal. Initially the window has no minimum or maximum size (besides any OS-enforced limit). - press "n" to set the minimum...
ajibawa-2023/Python-Code-Large/train/row_91211
29
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_91211:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 16], "level": 0, "parent": null, "vector": [8, 0, 0.1827, 0.2692, 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_91211:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91211:FunctionDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91211:FunctionDef_L29_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91211:Expr_L30_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # $Id: $ import unittest from pyglet import window import base_event_sequence __noninteractive = True class TEST_CLASS(base_event_sequence.BaseEventSequence): last_sequence = 2 def on_resize(self, width, height): self.check_sequence(1, 'on_resize') def on_expose(self): ...
ajibawa-2023/Python-Code-Large/train/row_91212
22
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_91212:Import_L4_C0", "label": "unittest import unittest", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1176, 0.0294, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91212:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91212:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91212:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91212:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test that window icon can be set for multiple sizes. Expected behaviour: One window will be opened. The window's icon depends on the icon size: 16x16 icon is a yellow "1" 32x32 icon is a purple "2" 48x48 icon is a cyan "3" 72x72 icon is a red "4" 128x12...
ajibawa-2023/Python-Code-Large/train/row_91213
28
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_91213:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 20], "level": 0, "parent": null, "vector": [8, 0, 0.1983, 0.3103, 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_91213:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91213:FunctionDef_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91213:FunctionDef_L42_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91213:Assign_L43_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # $Id: $ import unittest from pyglet import window import base_event_sequence __noninteractive = True class TEST_CLASS(base_event_sequence.BaseEventSequence): last_sequence = 3 def on_resize(self, width, height): self.check_sequence(1, 'on_resize') def on_show(self): ...
ajibawa-2023/Python-Code-Large/train/row_91214
22
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91214:Import_L4_C0", "label": "unittest import unittest", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1212, 0.0303, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91214:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91214:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91214:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91214:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test that mouse drag event works correctly. Expected behaviour: One window will be opened. Click and drag with the mouse and ensure that buttons, coordinates and modifiers are reported correctly. Events should be generated even when the drag leaves the window. Close the win...
ajibawa-2023/Python-Code-Large/train/row_91215
15
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_91215:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 11], "level": 0, "parent": null, "vector": [8, 0, 0.2333, 0.3, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91215:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91215:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91215:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91215:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that the window can be hidden and shown. Expected behaviour: One window will be opened. Every 5 seconds it will toggle between hidden and shown. Press escape or close the window to finish the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import time ...
ajibawa-2023/Python-Code-Large/train/row_91216
23
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91216:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1757, 0.2162, 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_91216:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91216:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91216:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91216:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that a window can be opened. Expected behaviour: One small window will be opened coloured purple. Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest from pyglet import window from pyglet.gl import * clas...
ajibawa-2023/Python-Code-Large/train/row_91217
22
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91217:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1351, 0.1892, 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_91217:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91217:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91217:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91217:Return_L20_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that close event works correctly. Expected behaviour: One window will be opened. Click the close button and ensure the event is printed to the terminal. The window should not close when you do this. Press ESC to end the test. ''' __docformat__ = 'restructuredtext' __v...
ajibawa-2023/Python-Code-Large/train/row_91218
22
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_91218:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 11], "level": 0, "parent": null, "vector": [8, 0, 0.1707, 0.2195, 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_91218:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91218:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91218:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91218:Expr_L24_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that window expose event works correctly. Expected behaviour: One window will be opened. Uncovering the window from other windows or the edge of the screen should produce the expose event. Note that on OS X and other compositing window managers this event is equivalent ...
ajibawa-2023/Python-Code-Large/train/row_91219
16
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_91219:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 13], "level": 0, "parent": null, "vector": [8, 0, 0.2353, 0.3235, 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_91219:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91219:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91219:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91219:Expr_L24_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that window location can be set. Expected behaviour: One window will be opened. The window's location will be printed to the terminal. - Use the arrow keys to move the window. Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __v...
ajibawa-2023/Python-Code-Large/train/row_91220
23
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_91220:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 12], "level": 0, "parent": null, "vector": [8, 0, 0.1705, 0.2273, 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_91220:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91220:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91220:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91220:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that window style can be borderless. Expected behaviour: One borderless window will be opened. Mouse click in the window to close it and end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:04:10Z Alex.Holkner $' ...
ajibawa-2023/Python-Code-Large/train/row_91221
21
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91221:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.1944, 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_91221:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91221:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91221:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91221:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that mouse scroll event works correctly. Expected behaviour: One window will be opened. Move the scroll wheel and check that events are printed to console. Positive values are associated with scrolling up. Scrolling can also be side-to-side, for example with an Apple M...
ajibawa-2023/Python-Code-Large/train/row_91222
16
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91222:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2632, 0.3947, 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_91222:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91222:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91222:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91222:Expr_L28_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # $Id: $ import unittest from pyglet import window import base_event_sequence __noninteractive = True class TEST_CLASS(base_event_sequence.BaseEventSequence): last_sequence = 3 def on_resize(self, width, height): self.check_sequence(1, 'on_resize') def on_show(self): ...
ajibawa-2023/Python-Code-Large/train/row_91223
22
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91223:Import_L4_C0", "label": "unittest import unittest", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1212, 0.0303, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91223:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91223:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91223:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91223:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest from pyglet import window from pyglet.window.event import WindowEventLogger from pyglet.window import key from pyglet.gl import * import window_util class WINDOW_SET_FULLSCREEN(unittest.TestCase): def on_te...
ajibawa-2023/Python-Code-Large/train/row_91224
34
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91224:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0729, 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_91224:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91224:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91224:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91224:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that mouse cursor can be made visible and hidden. Expected behaviour: One window will be opened. Press 'v' to hide mouse cursor and 'V' to show mouse cursor. It should only affect the mouse when within the client area of the window. Close the window or press ESC to end...
ajibawa-2023/Python-Code-Large/train/row_91226
23
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91226:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 11], "level": 0, "parent": null, "vector": [8, 0, 0.175, 0.225, 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_91226:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91226:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91226:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91226:If_L23_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python '''Test that window icon can be set. Expected behaviour: One window will be opened. It will have an icon depicting a yellow "A". Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:...
ajibawa-2023/Python-Code-Large/train/row_91227
23
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91227:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1711, 0.2105, 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_91227:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91227:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91227:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91227:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that show and hide events work correctly. Expected behaviour: One window will be opened. There should be one shown event printed initially. Minimizing and restoring the window should produce hidden and shown events, respectively. On OS X the events should also be fired...
ajibawa-2023/Python-Code-Large/train/row_91228
19
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91228:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.2179, 0.3077, 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_91228:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91228:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91228:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91228:Expr_L25_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that activate and deactivate events work correctly. Expected behaviour: One window will be opened. Clicking on the window should activate it, clicking on another window should deactivate it. Messages will be printed to the console for both events. On OS X you can also ...
ajibawa-2023/Python-Code-Large/train/row_91229
18
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_91229:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 17], "level": 0, "parent": null, "vector": [8, 0, 0.2439, 0.3659, 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_91229:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91229:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91229:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91229:Expr_L28_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that window style can be tool. Expected behaviour: One tool-styled window will be opened. Close the window to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:04:10Z Alex.Holkner $' import unittest from pygl...
ajibawa-2023/Python-Code-Large/train/row_91230
18
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91230:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.2188, 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_91230:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91230:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91230:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91230:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that image mouse cursor can be set. Expected behaviour: One window will be opened. The mouse cursor in the window will be a custom cursor. Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest from pygl...
ajibawa-2023/Python-Code-Large/train/row_91232
26
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_91232:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1548, 0.1905, 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_91232:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91232:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91232:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91232:Expr_L26_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that a window can have multisample. A window will be opened containing two rotating squares. Initially, there will be no multisampling (the edges will look "jaggy"). Press: * M to toggle multisampling on/off * S to increase samples (2, 4, 6, 8, 10, ...) * Shift+S to...
ajibawa-2023/Python-Code-Large/train/row_91234
87
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91234:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0704, 0.1185, 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_91234:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91234:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91234:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91234:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test that vsync can be set. Expected behaviour: A window will alternate between red and green fill. - Press "v" to toggle vsync on/off. "Tearing" should only be visible when vsync is off (as indicated at the terminal). Not all video drivers support vsync. On Linux,...
ajibawa-2023/Python-Code-Large/train/row_91235
33
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_91235:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 22], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.3281, 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_91235:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91235:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91235:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91235:Assign_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test that window can be set to and from various fullscreen sizes. Expected behaviour: One window will be opened. Press a number to switch to the corresponding fullscreen size; hold control and press a number to switch back to the corresponding window size: 0 - Default si...
ajibawa-2023/Python-Code-Large/train/row_91236
48
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91236:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.2738, 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_91236:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91236:FunctionDef_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91236:FunctionDef_L40_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91236:Assign_L41_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that window move event works correctly. Expected behaviour: One window will be opened. Move the window and ensure that the location printed to the terminal is correct. Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id:...
ajibawa-2023/Python-Code-Large/train/row_91237
16
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91237:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.2097, 0.2581, 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_91237:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91237:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91237:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91237:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that window can be minimized and maximized. Expected behaviour: One window will be opened. - press "x" to maximize the window. - press "n" to minimize the window. Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id...
ajibawa-2023/Python-Code-Large/train/row_91238
23
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91238:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 12], "level": 0, "parent": null, "vector": [8, 0, 0.1875, 0.25, 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_91238:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91238:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91238:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91238:If_L24_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python '''Test that mouse motion event works correctly. Expected behaviour: One window will be opened. Move the mouse in and out of this window and ensure the absolute and relative coordinates are correct. - Absolute coordinates should have (0,0) at bottom-left of client area of wi...
ajibawa-2023/Python-Code-Large/train/row_91239
16
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_91239:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 13], "level": 0, "parent": null, "vector": [8, 0, 0.2353, 0.3235, 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_91239:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91239:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91239:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91239:Expr_L24_C12"}, {"f": "ajibawa-2023/Python-C...
#!/usr/bin/env python '''Test that multiple windows share objects by default. This test is non-interactive. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest from ctypes import * from pyglet import window from pyglet.gl import * __noninteractive = True class CONTEXT_SHARE(unittest.Tes...
ajibawa-2023/Python-Code-Large/train/row_91240
71
103
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91240:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0388, 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_91240:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91240:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91240:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91240:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # $Id: $ import unittest from pyglet import window import base_event_sequence __noninteractive = True class TEST_CLASS(base_event_sequence.BaseEventSequence): last_sequence = 2 def on_resize(self, width, height): self.check_sequence(1, 'on_resize') def on_expose(self): ...
ajibawa-2023/Python-Code-Large/train/row_91241
22
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_91241:Import_L4_C0", "label": "unittest import unittest", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1176, 0.0294, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91241:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91241:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91241:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91241:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test that the window can be activated (focus set). Expected behaviour: One window will be opened. Every 5 seconds it will be activated; it should be come to the front and accept keyboard input (this will be shown on the terminal). On Windows XP, the taskbar icon may flash (i...
ajibawa-2023/Python-Code-Large/train/row_91242
21
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91242:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 15], "level": 0, "parent": null, "vector": [8, 0, 0.225, 0.325, 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_91242:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91242:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91242:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91242:Assign_L28_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that text events work correctly. Expected behaviour: One window will be opened. Type into this window and check the console output for text events. - Repeated when keys are held down - Motion events (e.g., arrow keys, HOME/END, etc) are reported - Select events ...
ajibawa-2023/Python-Code-Large/train/row_91243
21
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_91243:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 16], "level": 0, "parent": null, "vector": [8, 0, 0.2159, 0.3182, 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_91243:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91243:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91243:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91243:Expr_L28_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that a non-resizable window's size can be set. Expected behaviour: One window will be opened. The window's dimensions will be printed to the terminal. - press "x" to increase the width - press "X" to decrease the width - press "y" to increase the height - ...
ajibawa-2023/Python-Code-Large/train/row_91244
27
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_91244:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 17], "level": 0, "parent": null, "vector": [8, 0, 0.1923, 0.2885, 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_91244:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91244:FunctionDef_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91244:FunctionDef_L30_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91244:Assign_L31_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that mouse enter and leave events work correctly. Expected behaviour: One window will be opened. Move the mouse in and out of this window and ensure the events displayed are correct. Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __ve...
ajibawa-2023/Python-Code-Large/train/row_91245
18
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_91245:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1912, 0.2353, 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_91245:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91245:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91245:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91245:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # $Id:$ from pyglet.gl import * def draw_client_border(window): glClearColor(0, 0, 0, 1) glClear(GL_COLOR_BUFFER_BIT) glMatrixMode(GL_PROJECTION) glLoadIdentity() glOrtho(0, window.width, 0, window.height, -1, 1) glMatrixMode(GL_MODELVIEW) glLoadIdentity()...
ajibawa-2023/Python-Code-Large/train/row_91246
20
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91246:ImportFrom_L4_C0", "label": "from pyglet.gl import *", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0357, 0, 0.66, 0.0, 531, 0, 1, 0, 0, 531, 0, 0], "semantic": {"name": "pyglet.gl", "arg_names": [], "import_names": ["*"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91246:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91246:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91246:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91246:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/env python '''Test that a window can be opened fullscreen. Expected behaviour: A fullscreen window will be created, with a flat purple colour. - Press 'g' to leave fullscreen mode and create a window. - Press 'f' to re-enter fullscreen mode. - All events will be printed to the console. ...
ajibawa-2023/Python-Code-Large/train/row_91247
31
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_91247:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 13], "level": 0, "parent": null, "vector": [8, 0, 0.1471, 0.2353, 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_91247:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91247:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91247:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91247:If_L28_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python '''Test that resize event works correctly. Expected behaviour: One window will be opened. Resize the window and ensure that the dimensions printed to the terminal are correct. You should see a green border inside the window but no red. Close the window or press ESC to end the ...
ajibawa-2023/Python-Code-Large/train/row_91248
19
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91248:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 11], "level": 0, "parent": null, "vector": [8, 0, 0.1944, 0.25, 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_91248:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91248:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91248:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91248:Expr_L24_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that window can be resized. Expected behaviour: One window will be opened. It should be resizable by the user. Close the window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: WINDOW_SET_MOUSE_CURSOR.py 717 2007-03-03 07:04:10Z Alex.Ho...
ajibawa-2023/Python-Code-Large/train/row_91249
20
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91249:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 9], "level": 0, "parent": null, "vector": [8, 0, 0.1765, 0.2059, 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_91249:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91249:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91249:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91249:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that mouse cursor can be set to a platform-dependent image. Expected behaviour: One window will be opened. Press the left and right arrow keys to cycle through the system mouse cursors. The current cursor selected will be printed to the terminal. Note that not all curs...
ajibawa-2023/Python-Code-Large/train/row_91250
32
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_91250:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1233, 0.1781, 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_91250:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91250:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91250:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91250:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test that multiple windows can be opened. Expected behaviour: Two small windows will be opened, one coloured yellow and the other purple. Close either window or press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest from pyglet...
ajibawa-2023/Python-Code-Large/train/row_91251
26
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_91251:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 9], "level": 0, "parent": null, "vector": [8, 0, 0.131, 0.1905, 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_91251:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91251:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91251:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91251:Return_L21_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # $Id:$ import unittest import time class BaseEventSequence(unittest.TestCase): next_sequence = 0 last_sequence = 0 finished = False timeout = 2 start_time = time.time() def check_sequence(self, sequence, name): if self.next_sequence == 0 and sequence != 0: ...
ajibawa-2023/Python-Code-Large/train/row_91252
21
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91252:Import_L4_C0", "label": "unittest import unittest", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.1333, 0.0333, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91252:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91252:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91252:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91252:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python '''Test that window can be set fullscreen and back again. Expected behaviour: One window will be opened. - press "f" to enter fullscreen mode. - press "g" to leave fullscreen mode. All events will be printed to the terminal. Close the window or press ESC to end the tes...
ajibawa-2023/Python-Code-Large/train/row_91253
30
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91253:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 14], "level": 0, "parent": null, "vector": [8, 0, 0.17, 0.24, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91253:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91253:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91253:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91253:If_L28_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python '''Test that the window caption can be set. Expected behaviour: Two windows will be opened, one with the caption "Window caption 1" counting up every second; the other with a Unicode string including some non-ASCII characters. Press escape or close either window to finished the ...
ajibawa-2023/Python-Code-Large/train/row_91254
24
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91254:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 11], "level": 0, "parent": null, "vector": [8, 0, 0.1795, 0.2308, 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_91254:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91254:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91254:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91254:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that all public modules are accessible after importing just 'pyglet'. This _must_ be the first test run. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: TICK.py 310 2006-12-23 15:56:35Z Alex.Holkner $' import unittest import pyglet __noninteractive = True modules = [ ...
ajibawa-2023/Python-Code-Large/train/row_91255
26
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91255:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0652, 0.058, 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_91255:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91255:For_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91255:For_L48_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91255:Assign_L49_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#!/usr/bin/env python '''Test load using the Python BMP loader. You should see the rgb_24bpp.bmp image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.bmp import BMPImageDecoder class TEST_SUITE(base_lo...
ajibawa-2023/Python-Code-Large/train/row_91256
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91256:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91256:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91256:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91256:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91256:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test DXT1 compressed RGBA load from a DDS file. You should see the rgba_dxt1.dds image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.dds import DDSImageDecoder class TEST_DDS_...
ajibawa-2023/Python-Code-Large/train/row_91257
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91257:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91257:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91257:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91257:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91257:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test RGBA save using PyPNG. You should see rgba.png reference image on the left, and saved (and reloaded) image on the right. The saved image may have larger dimensions due to texture size restrictions. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest...
ajibawa-2023/Python-Code-Large/train/row_91258
11
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91258:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2143, 0.1905, 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_91258:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91258:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91258:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91258:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test LA load using PyPNG. You should see the la.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.png import PNGImageDecoder class TEST_PNG_LA_LOAD(base_load.TestLoad):...
ajibawa-2023/Python-Code-Large/train/row_91259
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91259:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91259:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91259:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91259:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91259:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test LA load using PIL. You should see the la.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.pil import * class TEST_PNG_LA(base_load.TestLoad): texture_file = ...
ajibawa-2023/Python-Code-Large/train/row_91260
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91260:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91260:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91260:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91260:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91260:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test rearrangement of color components using the OpenGL color matrix. The test will be skipped if the GL_ARB_imaging extension is not present. You should see the RGBA test image correctly rendered. Press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$I...
ajibawa-2023/Python-Code-Large/train/row_91261
17
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91261:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1719, 0.1875, 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_91261:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91261:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91261:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91261:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test LA load using the platform decoder (QuickTime, Quartz, GDI+ or Gdk). You should see the la.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load import sys if sys.platform.startswith('linux'): ...
ajibawa-2023/Python-Code-Large/train/row_91262
20
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_91262:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.1333, 0.1, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91262:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91262:ImportFrom_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91262:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91262:If_L16_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python '''Test RGB load using PyPNG. You should see the rgb.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest import base_load from pyglet.image.codecs.png import PNGImageDecoder class TEST_PNG_RGB_LOAD(base_load.TestL...
ajibawa-2023/Python-Code-Large/train/row_91263
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91263:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91263:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91263:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91263:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91263:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test DXT3 compressed RGBA load from a DDS file. You should see the rgba_dxt3.dds image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.dds import DDSImageDecoder class TEST_DDS_...
ajibawa-2023/Python-Code-Large/train/row_91264
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91264:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91264:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91264:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91264:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91264:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test rearrangement of color components using the OpenGL color matrix. The test will be skipped if the GL_ARB_imaging extension is not present. You should see the RGB test image correctly rendered. Press ESC to end the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id...
ajibawa-2023/Python-Code-Large/train/row_91265
18
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91265:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 8], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.1818, 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_91265:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91265:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91265:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91265:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test load using the Python BMP loader. You should see the rgb_32bpp.bmp image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.bmp import BMPImageDecoder class TEST_SUITE(base_lo...
ajibawa-2023/Python-Code-Large/train/row_91266
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91266:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91266:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91266:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91266:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91266:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python # $Id:$ import unittest from pyglet.image import atlas __noninteractive = True class Rect(object): def __init__(self, x1, y1, x2, y2): self.x1 = x1 self.y1 = y1 self.x2 = x2 self.y2 = y2 def __repr__(self): return 'Rect(%d, %d to %d, %d)' % ( ...
ajibawa-2023/Python-Code-Large/train/row_91267
69
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_91267:Import_L4_C0", "label": "unittest import unittest", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0109, 0, 0.66, 0.0, 88, 0, 1, 0, 0, 88, 0, 0], "semantic": {"name": "unittest", "arg_names": [], "import_names": ["unittest"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91267:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91267:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91267:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91267:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test RGB load using the platform decoder (QuickTime, Quartz, GDI+ or Gdk). You should see the rgb.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest import base_load import sys if sys.platform.startswith('linux'):...
ajibawa-2023/Python-Code-Large/train/row_91268
20
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_91268:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.1333, 0.1, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91268:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91268:ImportFrom_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91268:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91268:If_L16_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python '''Test load using the Python BMP loader. You should see the rgba_32bpp.bmp image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.bmp import BMPImageDecoder class TEST_SUITE(base_l...
ajibawa-2023/Python-Code-Large/train/row_91269
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91269:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91269:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91269:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91269:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91269:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test L load using PyPNG. You should see the l.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.png import PNGImageDecoder class TEST_PNG_L_LOAD(base_load.TestLoad): ...
ajibawa-2023/Python-Code-Large/train/row_91270
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91270:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91270:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91270:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91270:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91270:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test RGB load using PIL. You should see the rgb.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest import base_load from pyglet.image.codecs.pil import * class TEST_PIL_RGB_LOAD(base_load.TestLoad): textu...
ajibawa-2023/Python-Code-Large/train/row_91271
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91271:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91271:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91271:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91271:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91271:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test load using the Python BMP loader. You should see the rgb_4bpp.bmp image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.bmp import BMPImageDecoder class TEST_SUITE(base_loa...
ajibawa-2023/Python-Code-Large/train/row_91272
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91272:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91272:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91272:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91272:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91272:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test RGBA save using PIL. You should see rgba.png reference image on the left, and saved (and reloaded) image on the right. The saved image may have larger dimensions due to texture size restrictions. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest ...
ajibawa-2023/Python-Code-Large/train/row_91273
11
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91273:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2143, 0.1905, 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_91273:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91273:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91273:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91273:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test RGBA load using PIL. You should see the rgba.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest import base_load from pyglet.image.codecs.pil import * class TEST_PIL_RGBA_LOAD(base_load.TestLoad): te...
ajibawa-2023/Python-Code-Large/train/row_91274
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91274:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91274:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91274:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91274:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91274:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test DXT5 compressed RGBA load from a DDS file. You should see the rgba_dxt5.dds image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.dds import DDSImageDecoder class TEST_DDS_...
ajibawa-2023/Python-Code-Large/train/row_91275
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91275:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91275:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91275:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91275:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91275:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test colour buffer save. A scene consisting of a single coloured triangle will be rendered. The colour buffer will then be saved to a stream and loaded as a texture. You will see the original scene first for up to several seconds before the buffer image appears (because retrieving...
ajibawa-2023/Python-Code-Large/train/row_91276
36
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_91276:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 12], "level": 0, "parent": null, "vector": [8, 0, 0.1293, 0.1724, 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_91276:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91276:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91276:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91276:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test DXT1 compressed RGB load from a DDS file. You should see the rgb_dxt1.dds image. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.dds import DDSImageDecoder class TEST_DDS_RGB_DXT1(base_load.TestLoad):...
ajibawa-2023/Python-Code-Large/train/row_91277
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91277:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91277:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91277:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91277:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91277:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test load using the Python BMP loader. You should see the rgb_1bpp.bmp image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.bmp import BMPImageDecoder class TEST_SUITE(base_loa...
ajibawa-2023/Python-Code-Large/train/row_91278
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91278:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91278:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91278:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91278:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91278:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Base class for image tests. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest from StringIO import StringIO from os.path import dirname, join from pyglet.gl import * from pyglet import image from pyglet.image import codecs from pyglet.window import * from pyglet....
ajibawa-2023/Python-Code-Large/train/row_91279
74
108
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91279:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0324, 0.0185, 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_91279:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91279:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91279:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91279:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test RGBA load using PyPNG. You should see the rgba.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest import base_load from pyglet.image.codecs.png import PNGImageDecoder class TEST_PNG_RGBA_LOAD(base_load.Te...
ajibawa-2023/Python-Code-Large/train/row_91280
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91280:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91280:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91280:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91280:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91280:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test L load using PIL. You should see the la.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.pil import * class TEST_PIL_L(base_load.TestLoad): texture_file = 'l...
ajibawa-2023/Python-Code-Large/train/row_91281
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91281:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91281:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91281:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91281:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91281:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test RGB save using PIL. You should see rgb.png reference image on the left, and saved (and reloaded) image on the right. The saved image may have larger dimensions due to texture size restrictions. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest im...
ajibawa-2023/Python-Code-Large/train/row_91282
11
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91282:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2143, 0.1905, 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_91282:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91282:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91282:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91282:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test colour buffer copy to texture. A scene consisting of a single coloured triangle will be rendered. The colour buffer will then be saved to a stream and loaded as a texture. You will see the original scene first for up to several seconds before the buffer image appears (because r...
ajibawa-2023/Python-Code-Large/train/row_91283
31
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_91283:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 12], "level": 0, "parent": null, "vector": [8, 0, 0.1415, 0.1887, 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_91283:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91283:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91283:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91283:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Base class for image tests. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest from os.path import dirname, join from pyglet.gl import * from pyglet import image from pyglet.image import codecs from pyglet.window import * from pyglet.window.event import * from te...
ajibawa-2023/Python-Code-Large/train/row_91284
65
89
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91284:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0393, 0.0225, 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_91284:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91284:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91284:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91284:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test LA save using PyPNG. You should see la.png reference image on the left, and saved (and reloaded) image on the right. The saved image may have larger dimensions due to texture size restrictions. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest impo...
ajibawa-2023/Python-Code-Large/train/row_91285
11
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91285:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2143, 0.1905, 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_91285:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91285:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91285:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91285:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test L load using the platform decoder (QuickTime, Quartz, GDI+ or Gdk). You should see the l.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load import sys if sys.platform.startswith('linux'): ...
ajibawa-2023/Python-Code-Large/train/row_91286
20
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_91286:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.1333, 0.1, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91286:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91286:ImportFrom_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91286:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91286:If_L16_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python '''Test LA save using PIL. You should see la.png reference image on the left, and saved (and reloaded) image on the right. The saved image may have larger dimensions due to texture size restrictions. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import...
ajibawa-2023/Python-Code-Large/train/row_91287
11
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91287:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2143, 0.1905, 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_91287:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91287:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91287:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91287:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test L save using PIL. You should see l.png reference image on the left, and saved (and reloaded) image on the right. The saved image may have larger dimensions due to texture size restrictions. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import b...
ajibawa-2023/Python-Code-Large/train/row_91288
11
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91288:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2143, 0.1905, 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_91288:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91288:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91288:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91288:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest from pyglet.gl import * from pyglet.image import * from pyglet.window import * __noninteractive = True class TestTextureGrid(unittest.TestCase): def set_grid_image(self, itemwidth, itemheight, rows, cols, r...
ajibawa-2023/Python-Code-Large/train/row_91289
67
100
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91289:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.035, 0.02, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91289:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91289:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91289:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91289:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test depth buffer save. A scene consisting of a single coloured triangle will be rendered. The depth buffer will then be saved to a stream and loaded as a texture. You will see the original scene first for up to several seconds before the depth buffer image appears (because retrie...
ajibawa-2023/Python-Code-Large/train/row_91290
39
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91290:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 12], "level": 0, "parent": null, "vector": [8, 0, 0.121, 0.1613, 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_91290:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91290:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91290:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91290:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python ''' ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest from pyglet.gl import * from pyglet.image import * from pyglet.window import * __noninteractive = True class TestTexture3D(unittest.TestCase): def create_image(self, width, height, color): data = ('...
ajibawa-2023/Python-Code-Large/train/row_91291
80
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91291:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0307, 0.0175, 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_91291:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91291:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91291:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91291:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python '''Test that the checkerboard pattern looks correct. One window will open, it should show one instance of the checkerboard pattern in two levels of grey. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest from pyglet.gl import * from pyglet import image from pyglet....
ajibawa-2023/Python-Code-Large/train/row_91292
30
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91292:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1064, 0.1064, 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_91292:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91292:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91292:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91292:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test load using the Python BMP loader. You should see the rgb_16bpp.bmp image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.bmp import BMPImageDecoder class TEST_SUITE(base_lo...
ajibawa-2023/Python-Code-Large/train/row_91293
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91293:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91293:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91293:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91293:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91293:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test L save using PyPNG. You should see l.png reference image on the left, and saved (and reloaded) image on the right. The saved image may have larger dimensions due to texture size restrictions. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import...
ajibawa-2023/Python-Code-Large/train/row_91294
11
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91294:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2143, 0.1905, 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_91294:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91294:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91294:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91294:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test RGB save using PyPNG. You should see rgb.png reference image on the left, and saved (and reloaded) image on the right. The saved image may have larger dimensions due to texture size restrictions. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest ...
ajibawa-2023/Python-Code-Large/train/row_91295
11
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91295:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.2143, 0.1905, 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_91295:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91295:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91295:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91295:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test load using the Python BMP loader. You should see the rgb_8bpp.bmp image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id$' import unittest import base_load from pyglet.image.codecs.bmp import BMPImageDecoder class TEST_SUITE(base_loa...
ajibawa-2023/Python-Code-Large/train/row_91296
11
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91296:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.15, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91296:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91296:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91296:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91296:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python '''Test RGBA load using the platform decoder (QuickTime, Quartz, GDI+ or Gdk). You should see the rgba.png image on a checkboard background. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: $' import unittest import base_load import sys if sys.platform.startswith('linux'...
ajibawa-2023/Python-Code-Large/train/row_91297
20
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_91297:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.1333, 0.1, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91297:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91297:ImportFrom_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91297:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91297:If_L16_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python '''Test framework for pyglet. Reads details of components and capabilities from a requirements document, runs the appropriate unit tests. Overview -------- First, some definitions: Test case: A single test, implemented by a Python module in the tests/ directory. Tests can be interacti...
ajibawa-2023/Python-Code-Large/train/row_91298
248
529
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91298:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 161], "level": 0, "parent": null, "vector": [8, 0, 0.155, 0.3006, 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_91298:ClassDef_L184_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91298:FunctionDef_L185_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91298:FunctionDef_L185_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91298:Assign_L186_C8"}, {"f": "ajibawa-2023/Pyt...
#!/usr/bin/env python '''Test that inline elements can have their style changed, even after text has been deleted before them. [This triggers bug 538 if it has not yet been fixed.] To run the test, delete the first line, one character at a time, verifying that the element remains visible and no tracebacks are printed...
ajibawa-2023/Python-Code-Large/train/row_91299
46
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91299:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 11], "level": 0, "parent": null, "vector": [8, 0, 0.0614, 0.0789, 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_91299:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91299:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91299:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91299:FunctionDef_L57_C4"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test that HTML data is decoded into a formatted document. Press ESC to exit the test. ''' __docformat__ = 'restructuredtext' __version__ = '$Id: ELEMENT.py 1764 2008-02-16 05:24:46Z Alex.Holkner $' import unittest import pyglet from pyglet.text import caret, document, layout doctext = ''' ...
ajibawa-2023/Python-Code-Large/train/row_91300
41
246
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91300:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0183, 0.0163, 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_91300:ClassDef_L200_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91300:FunctionDef_L201_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91300:FunctionDef_L201_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91300:Expr_L202_C8"}, {"f": "ajibawa-2023/Pytho...
#!/usr/bin/env python '''Test that an empty document doesn't break, even when its (nonexistent) text is set to bold. ''' __docformat__ = 'restructuredtext' __noninteractive = True import unittest from pyglet import gl from pyglet import graphics from pyglet.text import document from pyglet.text import layout from ...
ajibawa-2023/Python-Code-Large/train/row_91301
31
46
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91301:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.087, 0.0652, 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_91301:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91301:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91301:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91301:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python '''Test that character and paragraph-level style is adhered to correctly in incremental layout. Examine and type over the text in the window that appears. The window contents can be scrolled with the mouse wheel. There are no formatting commands, however formatting should be preserved as expec...
ajibawa-2023/Python-Code-Large/train/row_91302
47
228
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_91302:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0329, 0.0439, 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_91302:ClassDef_L182_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91302:FunctionDef_L183_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91302:FunctionDef_L183_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91302:Expr_L184_C8"}, {"f": "ajibawa-2023/Pytho...
#!/usr/bin/python # $Id:$ from pyglet.text import runlist import unittest __noninteractive = True class TestStyleRuns(unittest.TestCase): def check_value(self, runs, value): for i, style in enumerate(value): self.assertTrue(runs[i] == style, repr(runs.runs)) self.check_optimal(runs) ...
ajibawa-2023/Python-Code-Large/train/row_91303
249
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_91303:ImportFrom_L4_C0", "label": "from pyglet.text import runlist", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0133, 0.0033, 0, 0.66, 0.0, 988, 0, 1, 0, 0, 988, 0, 0], "semantic": {"name": "pyglet.text", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_91303:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91303:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91303:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91303:For_L12_C8"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python '''Test that an empty document doesn't break. ''' __docformat__ = 'restructuredtext' __noninteractive = True import unittest from pyglet import gl from pyglet import graphics from pyglet.text import document from pyglet.text import layout from pyglet import window class TestWindow(window.Win...
ajibawa-2023/Python-Code-Large/train/row_91304
30
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_91304:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 4], "level": 0, "parent": null, "vector": [8, 0, 0.0795, 0.0455, 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_91304:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_91304:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_91304:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_91304:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Co...