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
import gamewidget firstRun = True def run(widgets, gameDic): global firstRun if firstRun: initialize(widgets, gameDic) firstRun = False widgets["game_info"].show() def initialize(widgets, gameDic): gamemodel = gameDic[gamewidget.cur_gmwidg()] widgets["event_entry"].set_text(gamemod...
ajibawa-2023/Python-Code-Large/train/row_90264
31
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_90264:Import_L1_C0", "label": "gamewidget import gamewidget", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 0.0244, 0, 0.66, 0.0, 632, 0, 1, 0, 0, 632, 0, 0], "semantic": {"name": "gamewidget", "arg_names": [], "import_names": ["g...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90264:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90264:If_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90264:If_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90264:Expr_L7_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
import gtk import pango import math import random from gtk.gdk import pixbuf_new_from_file from pychess.Players.Human import Human from pychess.Players.engineNest import discoverer from pychess.System import uistuff, conf from pychess.System.glock import glock_connect_after from pychess.System.prefix import addDataPr...
ajibawa-2023/Python-Code-Large/train/row_90265
171
255
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90265:Import_L1_C0", "label": "gtk import gtk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0039, 0.0039, 0, 0.66, 0.0, 166, 0, 1, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90265:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90265:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90265:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90265:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
import sys import time import math import gtk import gobject import cairo if sys.platform == 'win32': from pychess.System.WinRsvg import rsvg else: import rsvg from pychess.System.uistuff import addDataPrefix from pychess.System.repeat import repeat_sleep from pychess.System import glock MAX_FPS = 20 RAD_PS...
ajibawa-2023/Python-Code-Large/train/row_90266
56
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90266:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0141, 0.0141, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90266:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90266:ImportFrom_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90266:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90266:Import_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
import os.path import gettext import locale from cStringIO import StringIO from operator import attrgetter from itertools import groupby import gtk from cairo import ImageSurface try: from gtksourceview import SourceBuffer from gtksourceview import SourceView from gtksourceview import SourceLanguagesManag...
ajibawa-2023/Python-Code-Large/train/row_90267
375
572
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90267:Import_L1_C0", "label": "os.path import os.path", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0017, 0.0017, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["os.path"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90267:Try_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90267:ImportFrom_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90267:Try_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90267:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
from time import strftime, gmtime, localtime import random import gtk from gtk.gdk import keyval_from_name import pango import gobject from pychess.System import uistuff from BorderBox import BorderBox class ChatView (gtk.VPaned): __gsignals__ = { 'messageAdded' : (gobject.SIGNAL_RUN_FIRST, None, (str,st...
ajibawa-2023/Python-Code-Large/train/row_90268
97
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_90268:ImportFrom_L1_C0", "label": "from time import strftime, gmtime, localtime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0074, 0.0074, 0, 0.66, 0.0, 654, 0, 3, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90268:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90268:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90268:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90268:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Cod...
import gtk, cairo from math import ceil as fceil ceil = lambda f: int(fceil(f)) from __init__ import NORTH, EAST, SOUTH, WEST, CENTER from OverlayWindow import OverlayWindow class HighlightArea (OverlayWindow): """ An entirely blue widget """ def __init__ (self, parent): OverlayWindow.__init__(s...
ajibawa-2023/Python-Code-Large/train/row_90269
46
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90269:Import_L1_C0", "label": "gtk import gtk, cairo", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0185, 0.0185, 0, 0.66, 0.0, 166, 0, 2, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk", "cairo"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90269:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90269:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90269:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90269:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import os import re import sys import gtk import cairo if sys.platform == 'win32': from pychess.System.WinRsvg import rsvg else: import rsvg class OverlayWindow (gtk.Window): """ This class knows about being an overlaywindow and some svg stuff """ cache = {} # Class global self.cache for svgPat...
ajibawa-2023/Python-Code-Large/train/row_90270
82
127
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90270:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0079, 0.0079, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90270:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90270:ImportFrom_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90270:If_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90270:Import_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
from math import ceil as float_ceil ceil = lambda f: int(float_ceil(f)) import gtk, cairo import gobject from OverlayWindow import OverlayWindow POSITIONS_COUNT = 5 NORTH, EAST, SOUTH, WEST, CENTER = range(POSITIONS_COUNT) DX_DY = ((0,-1), (1,0), (0,1), (-1,0), (0,0)) PADDING_X = 0.2 # Amount of button width PADDING...
ajibawa-2023/Python-Code-Large/train/row_90271
113
190
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90271:ImportFrom_L1_C0", "label": "from math import float_ceil", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0053, 0.0053, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["floa...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90271:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90271:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90271:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90271:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Cod...
import gtk #=============================================================================== # Composite Constants #=============================================================================== POSITIONS_COUNT = 5 NORTH, EAST, SOUTH, WEST, CENTER = range(POSITIONS_COUNT) #===========================================...
ajibawa-2023/Python-Code-Large/train/row_90273
56
133
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90273:Import_L1_C0", "label": "gtk import gtk", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0075, 0.0075, 0, 0.66, 0.0, 166, 0, 1, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90273:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90273:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90273:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90273:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Cod...
import gtk, cairo import gobject from OverlayWindow import OverlayWindow from __init__ import NORTH, EAST, SOUTH, WEST class ArrowButton (OverlayWindow): """ Leafs will connect to the drag-drop signal """ __gsignals__ = { 'dropped' : (gobject.SIGNAL_RUN_FIRST, None, (object,)), 'hovered'...
ajibawa-2023/Python-Code-Large/train/row_90274
80
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_90274:Import_L1_C0", "label": "gtk import gtk, cairo", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0093, 0.0093, 0, 0.66, 0.0, 166, 0, 2, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk", "cairo"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90274:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90274:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90274:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90274:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
import os from xml.dom import minidom import gtk import gobject from pychess.System.prefix import addDataPrefix from PyDockLeaf import PyDockLeaf from PyDockComposite import PyDockComposite from ArrowButton import ArrowButton from HighlightArea import HighlightArea from __init__ import TopDock, DockLeaf, DockCompone...
ajibawa-2023/Python-Code-Large/train/row_90275
137
191
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90275:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0052, 0.0052, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90275:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90275:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90275:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90275:Expr_L18_C8"}, {"f": "ajibawa-2023/Python-Co...
import sys import gtk from __init__ import DockComposite from __init__ import NORTH, EAST, SOUTH, WEST, CENTER class PyDockComposite (gtk.Alignment, DockComposite): def __init__ (self, position): gtk.Alignment.__init__(self, xscale=1, yscale=1) if position == NORTH or position == SOUTH: ...
ajibawa-2023/Python-Code-Large/train/row_90276
69
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90276:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.012, 0.012, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90276:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90276:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90276:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90276:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
""" This module intends to work as glue between the gamemodel and the gamewidget taking care of stuff that is neither very offscreen nor very onscreen like bringing up dialogs and """ import math import gtk from pychess.Utils.Offer import Offer from pychess.Utils.const import * from pychess.Utils.repr import...
ajibawa-2023/Python-Code-Large/train/row_90277
186
293
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90277:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0068, 0.0102, 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_90277:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90277:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90277:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90277:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import re from pychess.Utils.const import * import time import math from pychess.System import conf elemExpr = re.compile(r"([a-zA-Z])\s*([0-9\.,\s]*)\s+") spaceExpr = re.compile(r"[\s,]+") l = [] def parse(n, psize): yield "def f(c):" s = psize/size for cmd, points in n: pstr = ",".join(str(p*s)...
ajibawa-2023/Python-Code-Large/train/row_90278
73
122
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90278:Import_L1_C0", "label": "re import re", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0082, 0.0082, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90278:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90278:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90278:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90278:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code...
from gtk import icon_theme_get_default, ICON_LOOKUP_USE_BUILTIN from pychess.System.Log import log it = icon_theme_get_default() def load_icon(size, *alternatives): alternatives = list(alternatives) name = alternatives.pop(0) try: return it.load_icon(name, size, ICON_LOOKUP_USE_BUILTIN) except:...
ajibawa-2023/Python-Code-Large/train/row_90280
11
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90280:ImportFrom_L1_C0", "label": "from gtk import icon_theme_get_default, ICON_LOOKUP_USE_BUILTIN", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0769, 0, 0.66, 0.0, 166, 0, 2, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90280:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90280:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90280:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90280:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from const import * import __builtin__ if '_' not in __builtin__.__dict__: __builtin__.__dict__['_'] = lambda s: s reprColor = [_("White"), _("Black")] reprPiece = ["Empty", _("Pawn"), _("Knight"), _("Bishop"), _("Rook"), _("Queen"), _("King"), "BPawn"] localReprSign = ["", _("P"), _("N"), _("B"), _("R"), _("Q...
ajibawa-2023/Python-Code-Large/train/row_90281
9
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90281:ImportFrom_L1_C0", "label": "from const import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0164, 0.0164, 0, 0.66, 0.0, 798, 0, 1, 0, 0, 798, 0, 0], "semantic": {"name": "const", "arg_names": [], "import_names": ["*"], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90281:If_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90281:Assign_L5_C4"}]
################################################################################ # This module is deprecated and uses no longer existing APIs. # After work has been made towards supporting general book formats, its # usefulness may also be disputed. #####################################################################...
ajibawa-2023/Python-Code-Large/train/row_90284
111
161
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90284:ImportFrom_L8_C0", "label": "from pychess.System import tsqlite", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0497, 0.0062, 0, 0.66, 0.0, 336, 0, 1, 0, 0, 336, 0, 0], "semantic": {"name": "pychess.System", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90284:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90284:Return_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90284:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90284:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Co...
""" This module contains chess logic functins for the pychess client. They are based upon the lutils modules, but supports standard object types and is therefore not as fast. """ from lutils import lmovegen from lutils.validator import validateMove from lutils.lmove import FCORD, TCORD from lutils import ldraw...
ajibawa-2023/Python-Code-Large/train/row_90285
97
137
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90285:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0146, 0.0219, 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_90285:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90285:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90285:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90285:For_L19_C4"}, {"f": "ajibawa-2023/Python-Code-...
from pychess.Utils.const import * import gobject class Rating (gobject.GObject): def __init__(self, ratingtype, elo, deviation=DEVIATION_NONE, wins=0, losses=0, draws=0, bestElo=0, bestTime=0): gobject.GObject.__init__(self) self.type = ratingtype for v in (elo, deviation, ...
ajibawa-2023/Python-Code-Large/train/row_90286
46
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_90286:ImportFrom_L1_C0", "label": "from pychess.Utils.const import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0161, 0.0161, 0, 0.66, 0.0, 297, 0, 1, 0, 0, 297, 0, 0], "semantic": {"name": "pychess.Utils.const", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90286:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90286:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90286:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90286:Expr_L7_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from pychess.Utils.const import ACTIONS class Offer: def __init__(self, type_, param=None, index=None): assert type_ in ACTIONS, "Offer.__init__(): type not in ACTIONS: %s" % repr(type_) assert index is None or type(index) is int, \ "Offer.__init__(): index not int: %s" % repr(index) ...
ajibawa-2023/Python-Code-Large/train/row_90287
15
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90287:ImportFrom_L1_C0", "label": "from pychess.Utils.const import ACTIONS", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.04, 0, 0.66, 0.0, 297, 0, 1, 0, 0, 297, 0, 0], "semantic": {"name": "pychess.Utils.const", "arg_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90287:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90287:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90287:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90287:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
from bitboard import * from attack import * from pychess.Utils.const import * from lmove import newMove ################################################################################ # Generate all moves # ####################################################...
ajibawa-2023/Python-Code-Large/train/row_90289
292
477
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90289:ImportFrom_L2_C0", "label": "from bitboard import *", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0042, 0.0021, 0, 0.66, 0.0, 866, 0, 1, 0, 0, 866, 0, 0], "semantic": {"name": "bitboard", "arg_names": [], "import_names": ["*"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90289:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90289:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90289:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90289:If_L13_C8"}, {"f": "ajibawa-2023/Python-C...
from attack import getAttacks, staticExchangeEvaluate from pychess.Utils.eval import pos as positionValues from sys import maxint from ldata import * def getCaptureValue (board, move): mpV = PIECE_VALUES[board.arBoard[move>>6 & 63]] cpV = PIECE_VALUES[board.arBoard[move & 63]] if mpV < cpV: retur...
ajibawa-2023/Python-Code-Large/train/row_90290
41
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90290:ImportFrom_L2_C0", "label": "from attack import getAttacks, staticExchangeEvaluate", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0132, 0, 0.66, 0.0, 424, 0, 2, 0, 0, 424, 0, 0], "semantic": {"name": "attack", "arg_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90290:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90290:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90290:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90290:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-...
from UserDict import UserDict from pychess.Utils.const import hashfALPHA, hashfBETA, hashfEXACT, hashfBAD, WHITE from ldata import MATE_VALUE from pychess.System.LimitedDict import LimitedDict from types import InstanceType from lmove import TCORD, FCORD class TranspositionTable: def __init__ (self, maxSize): ...
ajibawa-2023/Python-Code-Large/train/row_90292
62
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_90292:ImportFrom_L1_C0", "label": "from UserDict import UserDict", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0119, 0.0119, 0, 0.66, 0.0, 351, 0, 1, 0, 0, 351, 0, 0], "semantic": {"name": "UserDict", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90292:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90292:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90292:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90292:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
from pychess.Utils.const import * from pychess.Utils.lutils.attack import isAttacked from pychess.Utils.lutils.bitboard import bitPosArray, clearBit from pychess.Utils.lutils.ldata import moveArray, fromToRay ################################################################################ # Validate move ...
ajibawa-2023/Python-Code-Large/train/row_90293
95
200
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90293:ImportFrom_L1_C0", "label": "from pychess.Utils.const import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.005, 0.005, 0, 0.66, 0.0, 297, 0, 1, 0, 0, 297, 0, 0], "semantic": {"name": "pychess.Utils.const", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90293:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90293:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90293:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90293:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Co...
from array import array from operator import or_ from pychess.Utils.const import * #from pychess.Utils.lutils.lmove import RANK, FILE from bitboard import * def RANK (cord): return cord >> 3 def FILE (cord): return cord & 7 ################################################################################ ###############...
ajibawa-2023/Python-Code-Large/train/row_90294
208
601
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90294:ImportFrom_L1_C0", "label": "from array import array", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0017, 0.0017, 0, 0.66, 0.0, 80, 0, 1, 0, 0, 80, 0, 0], "semantic": {"name": "array", "arg_names": [], "import_names": ["array"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90294:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90294:Return_L6_C17"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90294:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90294:Return_L7_C17"}, {"f": "ajibawa-2023/Python-Code...
from time import time from random import random from heapq import heappush, heappop from lmovegen import genAllMoves, genCheckEvasions, genCaptures from pychess.Utils.const import * from leval import evaluateComplete from lsort import getCaptureValue, getMoveValue from lmove import toSAN from ldata import MATE_VALUE f...
ajibawa-2023/Python-Code-Large/train/row_90295
164
285
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90295:ImportFrom_L1_C0", "label": "from time import time", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0035, 0.0035, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90295:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90295:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90295:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90295:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
from bitboard import * from ldata import * from pychess.Utils.const import * # # Caveat: Many functions in this module has very similar code. If you fix a # bug, or write a perforance enchace, please update all functions. Apologies # for the inconvenience # def isAttacked (board, cord, color): """ To determine if...
ajibawa-2023/Python-Code-Large/train/row_90296
171
316
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90296:ImportFrom_L1_C0", "label": "from bitboard import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0032, 0.0032, 0, 0.66, 0.0, 866, 0, 1, 0, 0, 866, 0, 0], "semantic": {"name": "bitboard", "arg_names": [], "import_names": ["*"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90296:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90296:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90296:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90296:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code...
################################################################################ # The purpose of this module, is to give a certain position a score. The # # greater the score, the better the position # ############################################################################...
ajibawa-2023/Python-Code-Large/train/row_90297
271
600
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90297:ImportFrom_L7_C0", "label": "from pychess.Utils.const import *", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.0117, 0.0017, 0, 0.66, 0.0, 297, 0, 1, 0, 0, 297, 0, 0], "semantic": {"name": "pychess.Utils.const", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90297:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90297:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90297:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90297:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code...
""" This module differs from leval in that it is not optimized for speed. It checks differences between last and current board, and returns not scores, but strings describing the differences. Can be used for commenting on board changes. """ from gettext import ngettext from ldata import * from pychess....
ajibawa-2023/Python-Code-Large/train/row_90298
392
681
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90298:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0051, 0.0088, 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_90298:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90298:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90298:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90298:Return_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
from bitboard import bitLength from ldata import BLACK_SQUARES from pychess.Utils.const import * def repetitionCount (board, drawThreshold=3): rc = 1 for ply in xrange(4, 1+min(len(board.history), board.fifty), 2): if board.history[-ply] is None: break # Game started from a position; early ...
ajibawa-2023/Python-Code-Large/train/row_90299
44
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90299:ImportFrom_L1_C0", "label": "from bitboard import bitLength", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.011, 0.011, 0, 0.66, 0.0, 866, 0, 1, 0, 0, 866, 0, 0], "semantic": {"name": "bitboard", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90299:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90299:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90299:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90299:For_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
try: from gmpy import mpz uselp = False except ImportError: uselp = True from array import array #=============================================================================== # createBoard returns a new bitboard in the format preferred by this module #=====================================...
ajibawa-2023/Python-Code-Large/train/row_90301
88
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90301:Try_L2_C0", "label": "try", "type": "try", "loc": [2, 7], "level": 0, "parent": null, "vector": [7, 0, 0.0262, 0.0349, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90301:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90301:ImportFrom_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90301:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90301:Assign_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
### DEPRECATED ### SHOULD ONLY BE USED AS A REFERENCE TO MAKE leval pieceValues = [0, 900, 500, 350, 300, 100] from array import array from pychess.Utils.const import * # these tables will be used for positional bonuses: # whiteknight = array('b', [ -20, -35,-10, -10, -10,-10, -35, -20, -1...
ajibawa-2023/Python-Code-Large/train/row_90302
187
597
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90302:Assign_L5_C0", "label": "pieceValues =", "type": "assigned_variable", "loc": [5, 5], "level": 0, "parent": null, "vector": [14, 0, 0.0084, 0.0017, 0, 0.66, 0.0, 106, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "pieceValues", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90302:For_L267_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90302:For_L268_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90302:For_L268_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90302:For_L269_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
from copy import copy from lutils.LBoard import LBoard from lutils.bitboard import iterBits from lutils.lmove import RANK, FILE, FLAG, PROMOTE_PIECE, toAN from Piece import Piece from Cord import Cord from const import * class Board: """ Board is a thin layer above LBoard, adding the Piece objects, which are ...
ajibawa-2023/Python-Code-Large/train/row_90303
180
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_90303:ImportFrom_L1_C0", "label": "from copy import copy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0041, 0.0041, 0, 0.66, 0.0, 739, 0, 1, 0, 0, 739, 0, 0], "semantic": {"name": "copy", "arg_names": [], "import_names": ["copy"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90303:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90303:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90303:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90303:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: UTF-8 -*- ################################################################################ # PyChess information # ################################################################################ NAME = "PyChess" ENGINES_XML_API_VERSION = "0.10.1"...
ajibawa-2023/Python-Code-Large/train/row_90304
68
225
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90304:Assign_L7_C0", "label": "NAME =", "type": "assigned_variable", "loc": [7, 7], "level": 0, "parent": null, "vector": [14, 0, 0.0311, 0.0044, 0, 0.66, 0.0, 181, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "NAME", "arg_names": [], "import_names": [], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90304:For_L172_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90304:Assign_L173_C4"}]
from pychess.Utils.const import KING, QUEEN, ROOK, BISHOP, KNIGHT, PAWN from pychess.Utils.repr import reprSign, reprColor, reprPiece class Piece: def __init__ (self, color, piece): self.color = color self.piece = piece self.opacity = 1.0 self.x = None self.y = Non...
ajibawa-2023/Python-Code-Large/train/row_90305
21
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_90305:ImportFrom_L1_C0", "label": "from pychess.Utils.const import KING, QUEEN, ROOK\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 297, 0, 6, 0, 0, 297, 0, 0], "semantic": {"name": "pychess.Utils.cons...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90305:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90305:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90305:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90305:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
import heapq from time import time from gobject import SIGNAL_RUN_FIRST, TYPE_NONE, GObject from pychess.Utils.const import WHITE, BLACK from pychess.System import repeat from pychess.System.Log import log class TimeModel (GObject): __gsignals__ = { "player_changed": (SIGNAL_RUN_FIRST, TYPE_NONE, ()),...
ajibawa-2023/Python-Code-Large/train/row_90306
133
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_90306:Import_L1_C0", "label": "heapq import heapq", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0044, 0.0044, 0, 0.66, 0.0, 251, 0, 1, 0, 0, 251, 0, 0], "semantic": {"name": "heapq", "arg_names": [], "import_names": ["heapq"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90306:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90306:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90306:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90306:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-...
import datetime from pychess.Utils.const import RUNNING class LoadingError (Exception): pass class ChessFile: """ This class descripes an opened chessfile. It is lazy in the sense of not parsing any games, that the user don't request. It has no catching. """ def __init__ (self, ga...
ajibawa-2023/Python-Code-Large/train/row_90307
35
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90307:Import_L1_C0", "label": "datetime import datetime", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0149, 0.0149, 0, 0.66, 0.0, 426, 0, 1, 0, 0, 426, 0, 0], "semantic": {"name": "datetime", "arg_names": [], "import_names": ["datetim...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90307:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90307:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90307:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90307:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
__all__ = ["fen", "epd", "pgn",'chessalpha2']
ajibawa-2023/Python-Code-Large/train/row_90310
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90310:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_name": ...
[]
# -*- coding: utf-8 -*- from ChessFile import ChessFile, LoadingError from htmlentitydefs import entitydefs from pychess.Utils import Cord from pychess.Utils.GameModel import GameModel from pychess.Utils.Move import toFAN from pychess.Utils.Piece import Piece from pychess.Utils.const import * from pychess.Utils.logic ...
ajibawa-2023/Python-Code-Large/train/row_90311
100
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90311:ImportFrom_L3_C0", "label": "from ChessFile import ChessFile, LoadingError", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 326, 0, 2, 0, 0, 326, 0, 0], "semantic": {"name": "ChessFile", "arg_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90311:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90311:For_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90311:For_L41_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90311:Assign_L42_C8"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
from pychess.Utils.GameModel import GameModel from pychess.Utils.const import WAITING_TO_START from pychess.Utils.logic import getStatus __label__ = _("Simple Chess Position") __endings__ = "fen", __append__ = True def save (file, model): """Saves game to file in fen format""" print >> file, model.boards...
ajibawa-2023/Python-Code-Large/train/row_90312
22
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_90312:ImportFrom_L1_C0", "label": "from pychess.Utils.GameModel import GameModel", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "pychess.Utils.GameModel", "a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90312:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90312:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90312:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90312:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
VERSION = "0.10" VERSION_NAME = "Staunton"
ajibawa-2023/Python-Code-Large/train/row_90313
2
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90313:Assign_L1_C0", "label": "VERSION =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.5, 0.5, 0, 0.66, 0.0, 557, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "VERSION", "arg_names": [], "import_names": [], "rhs_call_name": ...
[]
import os import webbrowser import math import atexit import signal import gobject, gtk from gtk import DEST_DEFAULT_MOTION, DEST_DEFAULT_HIGHLIGHT, DEST_DEFAULT_DROP from pychess.System import conf, glock, uistuff, prefix, SubProcess, Log from pychess.System.uistuff import POSITION_NONE, POSITION_CENTER, POSITION_GO...
ajibawa-2023/Python-Code-Large/train/row_90314
200
320
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90314:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0031, 0.0031, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90314:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90314:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90314:FunctionDef_L37_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90314:If_L39_C8"}, {"f": "ajibawa-2023/Python-Code...
from gobject import GObject, SIGNAL_RUN_FIRST, TYPE_NONE class PlayerIsDead (Exception): """ Used instead of returning a move, when an engine crashes, or a nonlocal player disconnects """ pass class TurnInterrupt (Exception): """ Used instead of returning a move, when a players turn is interrupted...
ajibawa-2023/Python-Code-Large/train/row_90316
55
146
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90316:ImportFrom_L1_C0", "label": "from gobject import GObject, SIGNAL_RUN_FIRST, TYPE_NONE", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0068, 0.0068, 0, 0.66, 0.0, 90, 0, 3, 0, 0, 90, 0, 0], "semantic": {"name": "gobject", "arg_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90316:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90316:Expr_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90316:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90316:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
from gobject import SIGNAL_RUN_FIRST from threading import Condition from pychess.System.Log import log from pychess.Players.Engine import Engine from pychess.Utils.const import * from pychess.Utils.repr import reprColor class ProtocolEngine (Engine): __gsignals__ = { "readyForOptions": (SIGNAL_RUN_F...
ajibawa-2023/Python-Code-Large/train/row_90320
20
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_90320:ImportFrom_L1_C0", "label": "from gobject import SIGNAL_RUN_FIRST", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 0, 0.66, 0.0, 90, 0, 1, 0, 0, 90, 0, 0], "semantic": {"name": "gobject", "arg_names": [], "import_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90320:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90320:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90320:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90320:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-...
from Queue import Queue import gtk, gobject from pychess.Utils.const import * from pychess.Utils.Offer import Offer from pychess.System.Log import log from pychess.System import glock, conf from Player import Player, PlayerIsDead, TurnInterrupt OFFER_MESSAGES = { DRAW_OFFER: (_("Your opponent has offere...
ajibawa-2023/Python-Code-Large/train/row_90323
136
265
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90323:ImportFrom_L1_C0", "label": "from Queue import Queue", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0038, 0.0038, 0, 0.66, 0.0, 952, 0, 1, 0, 0, 952, 0, 0], "semantic": {"name": "Queue", "arg_names": [], "import_names": ["Queue"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90323:ClassDef_L69_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90323:Assign_L70_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90323:ClassDef_L69_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90323:Assign_L72_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90324
857
1,659
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90324:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 33], "level": 0, "parent": null, "vector": [8, 0, 0.0151, 0.0102, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90324:ClassDef_L146_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90324:FunctionDef_L147_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90324:FunctionDef_L147_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90324:Assign_L148_C8"}, {"f": "ajibawa-2023/Pyt...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90325
88
155
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90325:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0968, 0.0065, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90325:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90325:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90325:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90325:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90326
43
163
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90326:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1104, 0.0429, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90326:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90326:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90326:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90326:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90327
66
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90327:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1034, 0.0069, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90327:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90327:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90327:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90327:Expr_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90329
154
505
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90329:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0297, 0.002, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90329:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90329:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90329:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90329:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90330
181
447
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90330:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0336, 0.0022, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90330:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90330:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90330:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90330:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90331
40
134
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90331:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1119, 0.0075, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90331:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90331:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90331:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90331:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90332
6
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90332:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.2, 0.0133, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90333
212
383
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90333:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0392, 0.0026, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90333:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90333:Expr_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90333:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90333:FunctionDef_L45_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90335
389
769
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90335:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0195, 0.0013, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90335:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90335:Expr_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90335:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90335:Expr_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90336
141
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90336:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0495, 0.0033, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90336:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90336:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90336:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90336:Try_L57_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90337
101
264
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90337:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0568, 0.0038, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90337:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90337:Expr_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90337:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90337:FunctionDef_L47_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90338
29
86
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90338:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1744, 0.0116, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90338:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90338:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90338:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90338:FunctionDef_L48_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90339
164
242
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90339:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.062, 0.0041, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90339:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90339:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90339:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90339:FunctionDef_L47_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90340
14
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_90340:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.3409, 0.0227, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90340:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90340:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90340:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90340:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90341
349
716
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90341:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0209, 0.0014, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90341:FunctionDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90341:Expr_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90341:FunctionDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90341:If_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90342
195
397
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90342:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0378, 0.0025, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90342:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90342:Expr_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90342:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90342:FunctionDef_L64_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90343
56
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90343:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 66], "level": 0, "parent": null, "vector": [8, 0, 0.2015, 0.2587, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90343:ClassDef_L88_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90343:Expr_L89_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90343:ClassDef_L88_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90343:FunctionDef_L96_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90344
58
125
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90344:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.12, 0.008, 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_90344:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90344:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90344:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90344:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90346
65
148
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90346:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1014, 0.0068, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90346:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90346:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90346:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90346:FunctionDef_L36_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90347
44
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_90347:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1389, 0.0093, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90347:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90347:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90347:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90347:FunctionDef_L44_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90348
128
262
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90348:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0573, 0.0038, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90348:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90348:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90348:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90348:Expr_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90349
96
250
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90349:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 20], "level": 0, "parent": null, "vector": [8, 0, 0.07, 0.024, 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_90349:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90349:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90349:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90349:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90350
15
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_90350:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.2586, 0.0172, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90350:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90350:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90350:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90350:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90351
307
652
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90351:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.023, 0.0015, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90351:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90351:Return_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90351:FunctionDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90351:Try_L61_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90352
290
627
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90352:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0239, 0.0016, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90352:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90352:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90352:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90352:ClassDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90353
232
496
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90353:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0302, 0.002, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90353:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90353:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90353:FunctionDef_L37_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90353:Expr_L38_C8"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90354
157
329
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90354:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0456, 0.003, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90354:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90354:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90354:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90354:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90355
128
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_90355:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0658, 0.0044, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90355:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90355:Return_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90355:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90355:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90356
709
1,556
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90356:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0096, 0.0006, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90356:ClassDef_L75_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90356:Expr_L76_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90356:ClassDef_L75_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90356:FunctionDef_L79_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90357
360
821
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90357:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0183, 0.0012, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90357:ClassDef_L71_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90357:Expr_L75_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90357:ClassDef_L71_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90357:Assign_L77_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90358
49
192
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90358:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0781, 0.0052, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90358:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90358:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90358:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90358:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90359
108
217
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90359:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0691, 0.0046, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90359:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90359:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90359:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90359:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90360
87
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90360:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0802, 0.0053, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90360:ClassDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90360:FunctionDef_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90360:FunctionDef_L44_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90360:Assign_L45_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90361
44
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90361:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1648, 0.011, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90361:If_L69_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90361:Import_L71_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90361:If_L69_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90361:For_L75_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90362
122
268
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90362:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.056, 0.0037, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90362:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90362:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90362:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90362:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
ajibawa-2023/Python-Code-Large/train/row_90363
115
289
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90363:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0588, 0.0035, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90363:ClassDef_L119_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90363:Expr_L120_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90363:ClassDef_L119_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90363:Assign_L122_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90364
114
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90364:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0796, 0.005, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90364:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90364:Return_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90364:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90364:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90365
105
336
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90365:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0446, 0.003, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90365:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90365:Return_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90365:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90365:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-La...
"""Unit tests for the javascript code.""" __author__ = 'John Orr (jorr@google.com)' import os import subprocess import unittest class AllJavaScriptTests(unittest.TestCase): def karma_test(self, test_folder): karma_conf = os.path.join( 'experimental', 'coursebuilder', 'tests', 'unit', ...
ajibawa-2023/Python-Code-Large/train/row_90366
19
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_90366:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0312, 0.0312, 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_90366:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90366:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90366:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90366:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-...
"""Unit tests for the common.sanitize module.""" __author__ = 'John Orr (jorr@google.com)' import unittest from common import safe_dom class MockNode(safe_dom.Node): def __init__(self, value): self._value = value @property def sanitized(self): return self._value class NodeListTests(un...
ajibawa-2023/Python-Code-Large/train/row_90367
184
279
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90367:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 1], "level": 0, "parent": null, "vector": [8, 0, 0.0036, 0.0036, 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_90367:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90367:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90367:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90367:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-C...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90368
157
236
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90368:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0678, 0.0042, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90368:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90368:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90368:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90368:FunctionDef_L40_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90369
83
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90369:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1034, 0.0069, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90369:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90369:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90369:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90369:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90370
62
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90370:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1442, 0.0096, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90370:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90370:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90370:FunctionDef_L27_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90370:Assign_L28_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90371
424
664
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90371:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0226, 0.0015, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90371:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90371:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90371:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90371:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90372
248
478
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90372:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 34], "level": 0, "parent": null, "vector": [8, 0, 0.0513, 0.0418, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90372:FunctionDef_L74_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90372:If_L75_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90372:FunctionDef_L79_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90372:If_L80_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90373
141
300
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90373:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 35], "level": 0, "parent": null, "vector": [8, 0, 0.0833, 0.07, 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_90373:FunctionDef_L75_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90373:Assign_L76_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90373:FunctionDef_L75_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90373:Assign_L77_C4"}, {"f": "ajibawa-2023/Python-Co...
# coding: utf-8 # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
ajibawa-2023/Python-Code-Large/train/row_90374
180
485
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90374:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 16], "level": 0, "parent": null, "vector": [8, 0, 0.033, 0.0021, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90374:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90374:Expr_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90374:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90374:FunctionDef_L44_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90375
218
339
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90375:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0442, 0.0029, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90375:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90375:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90375:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90375:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90376
89
182
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90376:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0824, 0.0055, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90376:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90376:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90376:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_90376:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-...
# coding: utf-8 # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
ajibawa-2023/Python-Code-Large/train/row_90377
61
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90377:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 16], "level": 0, "parent": null, "vector": [8, 0, 0.1455, 0.0091, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90377:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90377:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90377:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90377:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2012 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90378
427
743
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90378:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 17], "level": 0, "parent": null, "vector": [8, 0, 0.0229, 0.0013, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90378:ClassDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90378:Expr_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90378:ClassDef_L65_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90378:Expr_L66_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# coding: utf-8 # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
ajibawa-2023/Python-Code-Large/train/row_90379
294
642
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90379:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 16], "level": 0, "parent": null, "vector": [8, 0, 0.0249, 0.0016, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90379:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90379:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90379:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90379:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90380
42
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_90380:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.1786, 0.0119, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90380:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90380:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90380:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90380:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
ajibawa-2023/Python-Code-Large/train/row_90381
79
166
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_90381:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0904, 0.006, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_90381:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90381:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_90381:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_90381:FunctionDef_L40_C4"}, {"f": "ajibawa-2023/Python-Code-...