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
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82083
622
838
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82083:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0227, 0.0036, 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_82083:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82083:FunctionDef_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82083:FunctionDef_L50_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82083:Expr_L51_C8"}, {"f": "ajibawa-2023/Python-Co...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82084
17
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82084:ImportFrom_L18_C0", "label": "from twisted.cred import portal, checkers", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.4865, 0.027, 0, 0.66, 0.0, 847, 0, 2, 0, 0, 847, 0, 0], "semantic": {"name": "twisted.cred", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82084:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82084:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82084:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82084:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Pyth...
# Copyright (c) James W. Hofmann 2011. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later vers...
ajibawa-2023/Python-Code-Large/train/row_82085
26
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82085:ImportFrom_L18_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.375, 0.0208, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82085:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82085:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82085:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82085:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-...
from pyspades.server import grenade_packet from pyspades.collision import distance_3d_vector from twisted.internet import reactor from random import choice from commands import add, admin, name, get_player @admin def relink(connection): connection.protocol.drop_all_links() connection.protocol.send_cha...
ajibawa-2023/Python-Code-Large/train/row_82086
104
140
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82086:ImportFrom_L1_C0", "label": "from pyspades.server import grenade_packet", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0071, 0.0071, 0, 0.66, 0.0, 254, 0, 1, 0, 0, 254, 0, 0], "semantic": {"name": "pyspades.server", "arg_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82086:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82086:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82086:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82086:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
from commands import add, admin from pyspades.common import coordinates @admin def protect(connection, value = None): protocol = connection.protocol if value is None: protocol.protected = None protocol.send_chat('All areas unprotected', irc = True) else: if protocol.protec...
ajibawa-2023/Python-Code-Large/train/row_82087
45
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82087:ImportFrom_L1_C0", "label": "from commands import add, admin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0169, 0.0169, 0, 0.66, 0.0, 760, 0, 2, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82087:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82087:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82087:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82087:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
from twisted.internet import reactor import re deuce_name_pattern = re.compile("Deuce\d?\d?$") nick_chat_pattern = re.compile(".*how.*(set|change|choo?se|make|pick).*(name|nick)", re.IGNORECASE) airstrike_chat_pattern = re.compile(".*how.*(to|make|use|get).*(airstrike|killstreak|airsupport)", re.IGNORECASE) ...
ajibawa-2023/Python-Code-Large/train/row_82088
24
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82088:ImportFrom_L1_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0286, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82088:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82088:Return_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82088:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82088:Return_L14_C1"}, {"f": "ajibawa-2023/Python-Co...
from twisted.internet import reactor from pyspades.vxl import VXLData import os def get_name(name): return './maps/%s.saved.vxl' % name def apply_script(protocol, connection, config): class MapSaveProtocol(protocol): def __init__(self, *arg, **kw): protocol.__init__(self, *arg, **kw) ...
ajibawa-2023/Python-Code-Large/train/row_82089
20
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_82089:ImportFrom_L1_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.04, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82089:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82089:Return_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82089:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82089:ClassDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code...
from pyspades.server import block_action from pyspades.constants import * def apply_script(protocol, connection, config): def try_add_node(map, x, y, z, list): if x < 0 or x >= 512 or y < 0 or y >= 512 or z < 0 or z >= 62: return if map.get_solid(x, y, z): return ...
ajibawa-2023/Python-Code-Large/train/row_82090
43
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82090:ImportFrom_L1_C0", "label": "from pyspades.server import block_action", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0204, 0, 0.66, 0.0, 254, 0, 1, 0, 0, 254, 0, 0], "semantic": {"name": "pyspades.server", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82090:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82090:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82090:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82090:If_L6_C8"}, {"f": "ajibawa-2023/Python-Code-...
from pyspades.server import orientation_data, grenade_packet from pyspades.common import coordinates, Vertex3 from pyspades.collision import distance_3d_vector from pyspades.world import Grenade from twisted.internet import reactor import random import commands @commands.alias('a') def airstrike(connection, v...
ajibawa-2023/Python-Code-Large/train/row_82091
90
117
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82091:ImportFrom_L1_C0", "label": "from pyspades.server import orientation_data, grenade_packet", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 0, 0.66, 0.0, 254, 0, 2, 0, 0, 254, 0, 0], "semantic": {"name": "pyspades.serv...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82091:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82091:Return_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82091:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82091:ClassDef_L16_C4"}, {"f": "ajibawa-2023/Python-...
from commands import add, admin, get_player @admin def trust(connection, player): player = get_player(connection.protocol, player) player.trusted = True player.speedhack_detect = False player.send_chat("You're now a trusted user.") return '%s is now trusted' % player.name add(trust) d...
ajibawa-2023/Python-Code-Large/train/row_82092
27
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_82092:ImportFrom_L1_C0", "label": "from commands import add, admin, get_player", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 0, 0.66, 0.0, 760, 0, 3, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "i...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82092:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82092:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82092:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82092:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-L...
def apply_script(protocol, connection, config): class MapExtensionConnection(connection): def on_position_update(self): extensions = self.protocol.map_info.extensions if (extensions.has_key('water_damage') and self.world_object.position.z>=61): w...
ajibawa-2023/Python-Code-Large/train/row_82093
25
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82093:FunctionDef_L1_C0", "label": "apply_script", "type": "function", "loc": [1, 31], "level": 0, "parent": null, "vector": [2, 0, 0.5161, 1.0, 0, 0.66, 0.0, 415, 0, 3, 1, 0, 0, 0, 9], "semantic": {"name": "apply_script", "arg_names": ["protocol", "connection", "config...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82093:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82093:ClassDef_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82093:ClassDef_L2_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82093:FunctionDef_L3_C8"}, {"f": "ajibawa-2023/Python-Co...
from twisted.internet.task import LoopingCall from pyspades.constants import * BK_FREE, BK_FRIENDLY, BK_ENEMY_FAR, BK_ENEMY_NEAR, BK_UNDO = range(5) def apply_script(protocol, connection, config): class ZOCConnection(connection): """Zones of control: Dropped intel and tents exert influence ...
ajibawa-2023/Python-Code-Large/train/row_82094
100
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82094:ImportFrom_L1_C0", "label": "from twisted.internet.task import LoopingCall", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.007, 0.007, 0, 0.66, 0.0, 85, 0, 1, 0, 0, 85, 0, 0], "semantic": {"name": "twisted.internet.task", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82094:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82094:ClassDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82094:ClassDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82094:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Larg...
from commands import add, admin from pyspades.server import block_action, set_color from pyspades.common import make_color from twisted.internet import reactor from twisted.internet.task import LoopingCall from pyspades.constants import * @admin def platform(connection, *args): if connection.building_mode...
ajibawa-2023/Python-Code-Large/train/row_82095
290
357
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82095:ImportFrom_L1_C0", "label": "from commands import add, admin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0028, 0.0028, 0, 0.66, 0.0, 760, 0, 2, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82095:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82095:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82095:If_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82095:Return_L11_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train...
from pyspades.vxl import VXLData from pyspades.common import coordinates from pyspades.contained import BlockAction, SetColor from pyspades.constants import * from twisted.internet.task import LoopingCall from map import Map, MapNotFound from commands import add, admin import time import operator @admin def...
ajibawa-2023/Python-Code-Large/train/row_82096
155
203
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82096:ImportFrom_L1_C0", "label": "from pyspades.vxl import VXLData", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0049, 0.0049, 0, 0.66, 0.0, 194, 0, 1, 0, 0, 194, 0, 0], "semantic": {"name": "pyspades.vxl", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82096:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82096:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82096:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82096:If_L14_C4"}, {"f": "ajibawa-2023/Python-Code-L...
from pyspades.common import prettify_timespan from twisted.internet import reactor def apply_script(protocol, connection, config): spawn_protect_time = config.get('spawn_protect_time', 3.0) class SpawnProtectConnection(connection): spawn_timestamp = None def on_spawn(self, pos): ...
ajibawa-2023/Python-Code-Large/train/row_82097
17
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82097:ImportFrom_L1_C0", "label": "from pyspades.common import prettify_timespan", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 389, 0, 1, 0, 0, 389, 0, 0], "semantic": {"name": "pyspades.common", "arg_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82097:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82097:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82097:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82097:ClassDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code...
from pyspades.constants import * def apply_script(protocol, connection, config): class StrongBlockConnection(connection): def on_connect(self): self.strong_block_hits = 0 return connection.on_connect(self) def on_block_destroy(self, x, y, z, value): ...
ajibawa-2023/Python-Code-Large/train/row_82098
16
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82098:ImportFrom_L1_C0", "label": "from pyspades.constants import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0455, 0.0455, 0, 0.66, 0.0, 96, 0, 1, 0, 0, 96, 0, 0], "semantic": {"name": "pyspades.constants", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82098:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82098:ClassDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82098:ClassDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82098:FunctionDef_L6_C8"}, {"f": "ajibawa-2023/Python-Co...
from pyspades.collision import distance_3d_vector from pyspades.common import prettify_timespan from commands import add, admin, name, get_player, alias from twisted.internet import reactor @name('griefcheck') @alias('gc') @admin def grief_check(connection, player, time = None): player = get_player(connec...
ajibawa-2023/Python-Code-Large/train/row_82099
90
132
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82099:ImportFrom_L1_C0", "label": "from pyspades.collision import distance_3d_vector", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0076, 0.0076, 0, 0.66, 0.0, 869, 0, 1, 0, 0, 869, 0, 0], "semantic": {"name": "pyspades.collision", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82099:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82099:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82099:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82099:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code...
from commands import add, rights, admin, name, get_player import commands import random SQUAD_NAMES = set([ 'Alpha','Bravo','Charlie','Delta','Epsilon','Foxtrot','Gamma', 'Golf','Hotel','India','Juliet','Kilo','Lima','Mike', 'November','Oscar','Papa','Quebec','Romero','Sierra','Tango', 'Uniform','...
ajibawa-2023/Python-Code-Large/train/row_82100
172
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_82100:ImportFrom_L1_C0", "label": "from commands import add, rights, admin\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0038, 0.0038, 0, 0.66, 0.0, 760, 0, 5, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82100:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82100:If_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82100:If_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82100:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
from twisted.internet import reactor import re chat_pattern = re.compile(".*(airstrike).*(esc|escape|alt-f4|alt f4)", re.IGNORECASE) chat_pattern_2 = re.compile(".*(esc|escape|alt-f4|alt f4).*(airstrike)", re.IGNORECASE) admin_pattern = re.compile(".*(admin)", re.IGNORECASE) def antijerk_mat...
ajibawa-2023/Python-Code-Large/train/row_82101
23
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82101:ImportFrom_L1_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82101:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82101:If_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82101:If_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82101:Return_L13_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
from commands import add from array import array from pyspades.server import block_action, set_color from pyspades.common import make_color from pyspades.constants import * from twisted.internet.task import LoopingCall from twisted.internet import reactor def score(connection): connection.send_chat(co...
ajibawa-2023/Python-Code-Large/train/row_82102
261
380
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82102:ImportFrom_L1_C0", "label": "from commands import add", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0026, 0.0026, 0, 0.66, 0.0, 760, 0, 1, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "import_names": ["add...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82102:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82102:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82102:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82102:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code...
# KDR script because Enari said so --GM import commands def ratio(connection, user=None): has_msg = "You have" if user != None: connection = commands.get_player(connection.protocol, user) has_msg = "%s has" if connection not in connection.protocol.players: raise KeyError()...
ajibawa-2023/Python-Code-Large/train/row_82103
21
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82103:Import_L3_C0", "label": "commands import commands", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0882, 0.0294, 0, 0.66, 0.0, 760, 0, 1, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "import_names": ["command...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82103:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82103:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82103:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82103:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
from math import ceil from operator import attrgetter from twisted.internet import reactor from pyspades.common import prettify_timespan from commands import name, get_player, add, admin def afk(connection, player): player = get_player(connection.protocol, player) return '%s has been inactive for %s' %...
ajibawa-2023/Python-Code-Large/train/row_82104
73
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82104:ImportFrom_L1_C0", "label": "from math import ceil", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0108, 0.0108, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["ceil"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82104:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82104:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82104:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82104:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# contributed by Booboorocks998, fixed/maintained by mat^2 import commands from pyspades.constants import * @commands.alias('m') def medkit(connection): if connection.medkits and connection.hp < 100: connection.set_hp(connection.hp + connection.protocol.heal_amount, type = FALL_KILL) ...
ajibawa-2023/Python-Code-Large/train/row_82105
20
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82105:Import_L3_C0", "label": "commands import commands", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0968, 0.0323, 0, 0.66, 0.0, 760, 0, 1, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "import_names": ["command...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82105:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82105:If_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82105:If_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82105:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
from pyspades.constants import * from pyspades.server import Territory import random import math from math import pi CP_COUNT = 6 CP_EXTRA_COUNT = CP_COUNT + 2 # PLUS last 'spawn' ANGLE = 65 START_ANGLE = math.radians(-ANGLE) END_ANGLE = math.radians(ANGLE) DELTA_ANGLE = math.radians(30) FIX_ANGLE = math.r...
ajibawa-2023/Python-Code-Large/train/row_82106
123
178
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82106:ImportFrom_L1_C0", "label": "from pyspades.constants import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0056, 0.0056, 0, 0.66, 0.0, 96, 0, 1, 0, 0, 96, 0, 0], "semantic": {"name": "pyspades.constants", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82106:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82106:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82106:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82106:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Cod...
from pyspades.constants import * from math import sqrt def point_distance2(c1, c2): if c1.world_object is not None and c2.world_object is not None: p1 = c1.world_object.position p2 = c2.world_object.position return (p1.x - p2.x)**2 + (p1.y - p2.y)**2 + (p1.z - p2.z)**2 def apply_s...
ajibawa-2023/Python-Code-Large/train/row_82107
35
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_82107:ImportFrom_L1_C0", "label": "from pyspades.constants import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0227, 0.0227, 0, 0.66, 0.0, 96, 0, 1, 0, 0, 96, 0, 0], "semantic": {"name": "pyspades.constants", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82107:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82107:If_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82107:If_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82107:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
def apply_script(protocol, connection, config): welcomes = config.get('welcomes', {}) class EnterConnection(connection): def on_login(self, name): if name in welcomes: self.protocol.send_chat(welcomes[name]) connection.on_login(self, name) return protocol, Ent...
ajibawa-2023/Python-Code-Large/train/row_82108
8
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82108:FunctionDef_L1_C0", "label": "apply_script", "type": "function", "loc": [1, 8], "level": 0, "parent": null, "vector": [2, 0, 0.5625, 1.0, 0, 0.66, 0.0, 415, 0, 3, 1, 0, 0, 0, 3], "semantic": {"name": "apply_script", "arg_names": ["protocol", "connection", "config"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82108:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82108:Assign_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82108:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82108:ClassDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code...
from statistics import DEFAULT_PORT, connect_statistics import commands def sitelogin(connection, name, password): value = connection.site_login(name, password) connection.send_chat(value) # so it doesn't appear in the log return False commands.add(sitelogin) def apply_script(protocol, connectio...
ajibawa-2023/Python-Code-Large/train/row_82109
48
64
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82109:ImportFrom_L1_C0", "label": "from statistics import DEFAULT_PORT, connect_statistics", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0156, 0.0156, 0, 0.66, 0.0, 35, 0, 2, 0, 0, 35, 0, 0], "semantic": {"name": "statistics", "arg_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82109:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82109:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82109:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82109:Expr_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from twisted.internet import reactor from twisted.internet.task import LoopingCall import json import commands @commands.admin @commands.name('timer') def start_timer(connection, end): return connection.protocol.start_timer(int(end) * 60) @commands.admin @commands.name('stoptimer') def stop_timer(co...
ajibawa-2023/Python-Code-Large/train/row_82110
102
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82110:ImportFrom_L1_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0067, 0.0067, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82110:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82110:Return_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82110:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82110:Return_L15_C4"}, {"f": "ajibawa-2023/Python-Cod...
from pyspades.constants import * from commands import add def score(connection): return connection.protocol.get_kill_count() add(score) def apply_script(protocol, connection, config): class TDMConnection(connection): def on_spawn(self, pos): self.send_chat(self.explain_game_m...
ajibawa-2023/Python-Code-Large/train/row_82111
44
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82111:ImportFrom_L1_C0", "label": "from pyspades.constants import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0139, 0.0139, 0, 0.66, 0.0, 96, 0, 1, 0, 0, 96, 0, 0], "semantic": {"name": "pyspades.constants", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82111:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82111:Return_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82111:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82111:ClassDef_L11_C4"}, {"f": "ajibawa-2023/Python-Co...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82114
51
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82114:Import_L18_C0", "label": "sys import sys", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.2118, 0.0118, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82114:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82114:Import_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82114:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82114:ClassDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
from pyspades.ipaddr import IPNetwork cache = {} def get_network(cidr): try: return cache[cidr] except KeyError: network = IPNetwork(cidr) cache[cidr] = network return network def get_cidr(network): if network._prefixlen == 32: return str(network.ip) return str...
ajibawa-2023/Python-Code-Large/train/row_82115
60
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82115:ImportFrom_L1_C0", "label": "from pyspades.ipaddr import IPNetwork", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 0.0127, 0, 0.66, 0.0, 581, 0, 1, 0, 0, 581, 0, 0], "semantic": {"name": "pyspades.ipaddr", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82115:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82115:Try_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82115:Try_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82115:Return_L7_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# Copyright (c) James Hofmann 2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82116
211
299
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82116:ImportFrom_L18_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0602, 0.0033, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82116:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82116:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82116:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82116:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82117
639
1,014
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82117:Import_L18_C0", "label": "math import math", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0178, 0.001, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82117:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82117:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82117:FunctionDef_L38_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82117:Return_L39_C8"}, {"f": "ajibawa-2023/Pyth...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82118
104
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_82118:ImportFrom_L18_C0", "label": "from twisted.internet.protocol import Protocol, ReconnectingClientFactory, ServerFactory", "type": "import", "loc": [18, 19], "level": 0, "parent": null, "vector": [1, 0, 0.1135, 0.0123, 0, 0.66, 0.0, 959, 0, 3, 0, 0, 959, 0, 0], "sem...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82118:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82118:Return_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82118:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82118:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82119
78
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82119:ImportFrom_L18_C0", "label": "from pyspades.vxl import VXLData", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.1513, 0.0084, 0, 0.66, 0.0, 194, 0, 1, 0, 0, 194, 0, 0], "semantic": {"name": "pyspades.vxl", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82119:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82119:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82119:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82119:For_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
from twisted.internet import reactor class ScheduleTimer(object): """ A "safe" scheduler which allows multiple groups of timed events to queue and destroy themselves gracefully. """ def __init__(self, protocol): self.call_later = None self.schedules = [] self.pro...
ajibawa-2023/Python-Code-Large/train/row_82120
111
154
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82120:ImportFrom_L1_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0065, 0.0065, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82120:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82120:Expr_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82120:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82120:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# Copyright (c) junk/someonesomewhere 2011. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later...
ajibawa-2023/Python-Code-Large/train/row_82121
65
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82121:ImportFrom_L18_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.1593, 0.0088, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82121:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82121:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82121:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82121:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82122
14
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82122:ImportFrom_L18_C0", "label": "from pyspades.load import VXLData", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.4865, 0.027, 0, 0.66, 0.0, 11, 0, 1, 0, 0, 11, 0, 0], "semantic": {"name": "pyspades.load", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82122:For_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82122:For_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82122:For_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82122:For_L24_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_821...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82123
4
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82123:ImportFrom_L18_C0", "label": "from pyspades.load import VXLData", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.8182, 0.0455, 0, 0.66, 0.0, 11, 0, 1, 0, 0, 11, 0, 0], "semantic": {"name": "pyspades.load", "arg_names": [], "impor...
[]
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82124
10
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82124:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 22], "level": 0, "parent": null, "vector": [8, 0, 0.5263, 0.1316, 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_82124:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82124:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82124:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82124:Expr_L32_C4"}]
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82125
31
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82125:Import_L18_C0", "label": "struct import struct", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.3396, 0.0189, 0, 0.66, 0.0, 399, 0, 1, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names": ["struct"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82125:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82125:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82125:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82125:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Co...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82126
45
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82126:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 21], "level": 0, "parent": null, "vector": [8, 0, 0.2294, 0.0471, 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_82126:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82126:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82126:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82126:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82127
12
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_82127:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 20], "level": 0, "parent": null, "vector": [8, 0, 0.5278, 0.0833, 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_82127:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82127:FunctionDef_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82127:FunctionDef_L25_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82127:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-...
from twisted.internet import reactor from twisted.web.client import HTTPClientFactory, _parse def getPage(url, bindAddress = None, *arg, **kw): # reimplemented here to insert bindAddress scheme, host, port, path = _parse(url) factory = HTTPClientFactory(url, *arg, **kw) if scheme == 'https': ...
ajibawa-2023/Python-Code-Large/train/row_82128
11
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82128:ImportFrom_L1_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82128:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82128:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82128:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82128:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82129
14
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82129:Import_L18_C0", "label": "math import math", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.4615, 0.0256, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82129:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82129:Return_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82129:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82129:Return_L26_C4"}, {"f": "ajibawa-2023/Python-Co...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82130
99
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_82130:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 20], "level": 0, "parent": null, "vector": [8, 0, 0.1226, 0.0194, 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_82130:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82130:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82130:FunctionDef_L34_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82130:Assign_L35_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python # # Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. # # 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/LICE...
ajibawa-2023/Python-Code-Large/train/row_82131
772
1,960
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82131:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0105, 0.0031, 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_82131:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82131:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82131:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82131:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82132
39
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82132:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 20], "level": 0, "parent": null, "vector": [8, 0, 0.2714, 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_82132:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82132:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82132:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82132:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82133
34
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_82133:ClassDef_L18_C0", "label": "DictItem", "type": "class", "loc": [18, 30], "level": 0, "parent": null, "vector": [3, 0, 0.3934, 0.2131, 0, 0.66, 0.0, 172, 0, 3, 0, 0, 186, 0, 2], "semantic": {"name": "DictItem", "arg_names": [], "import_names": [], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82133:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82133:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82133:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82133:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82134
36
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_82134:Assign_L18_C0", "label": "MASTER_VERSION =", "type": "assigned_variable", "loc": [18, 18], "level": 0, "parent": null, "vector": [14, 0, 0.2535, 0.0141, 0, 0.66, 0.0, 603, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "MASTER_VERSION", "arg_names": [], "import_names"...
[]
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82136
99
154
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82136:ImportFrom_L18_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.1169, 0.0065, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82136:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82136:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82136:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82136:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82137
1,318
1,734
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82137:ImportFrom_L18_C0", "label": "from twisted.internet import reactor", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0104, 0.0006, 0, 0.66, 0.0, 937, 0, 1, 0, 0, 937, 0, 0], "semantic": {"name": "twisted.internet", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82137:FunctionDef_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82137:For_L81_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82137:For_L81_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82137:If_L82_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
import math from twisted.internet import reactor from pyspades.constants import * from pyspades.collision import distance_3d_vector class BaseWeapon(object): shoot = False reloading = False id = None shoot_time = None next_shot = None start = None def __init__(self, reload_callback): ...
ajibawa-2023/Python-Code-Large/train/row_82138
100
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_82138:Import_L1_C0", "label": "math import math", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0069, 0.0069, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82138:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82138:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82138:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82138:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
from twisted.web.client import getPage from twisted.internet.defer import Deferred from collections import namedtuple from pyspades.tools import get_server_details import json SERVER_LIST = 'http://ace-spades.com/serverlist.json' class ServerEntry(object): def __init__(self, value): for k, v in ...
ajibawa-2023/Python-Code-Large/train/row_82139
23
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82139:ImportFrom_L1_C0", "label": "from twisted.web.client import getPage", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.037, 0.037, 0, 0.66, 0.0, 462, 0, 1, 0, 0, 462, 0, 0], "semantic": {"name": "twisted.web.client", "arg_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82139:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82139:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82139:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82139:For_L11_C8"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version...
ajibawa-2023/Python-Code-Large/train/row_82140
71
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_82140:ImportFrom_L18_C0", "label": "from pyspades.loaders import Loader", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.1636, 0.0091, 0, 0.66, 0.0, 185, 0, 1, 0, 0, 185, 0, 0], "semantic": {"name": "pyspades.loaders", "arg_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82140:If_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82140:Assign_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82140:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82140:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
class InvalidData(Exception): pass
ajibawa-2023/Python-Code-Large/train/row_82141
1
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82141:ClassDef_L1_C0", "label": "InvalidData", "type": "class", "loc": [1, 2], "level": 0, "parent": null, "vector": [3, 0, 0.75, 1.0, 0, 0.66, 0.0, 485, 0, 0, 0, 0, 645, 0, 0], "semantic": {"name": "InvalidData", "arg_names": [], "import_names": [], "rhs_call_name": ""...
[]
# Copyright (c) Mathias Kaerlev 2011-2012. # This file is part of pyspades. # pyspades is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ...
ajibawa-2023/Python-Code-Large/train/row_82142
7
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82142:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 20], "level": 0, "parent": null, "vector": [8, 0, 0.6333, 0.1, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
#!/usr/bin/env python import codecs import re import jinja2 import markdown def process_slides(): with codecs.open('../../presentation-output.html', 'w', encoding='utf8') as outfile: md = codecs.open('slides.md', encoding='utf8').read() md_slides = md.split('\n---\n') print 'Compiled %s slides.' % len(m...
ajibawa-2023/Python-Code-Large/train/row_82143
41
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82143:Import_L3_C0", "label": "codecs import codecs", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0175, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": ["codecs"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82143:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82143:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82143:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82143:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_82144
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82144:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82144:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82144:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82144:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82144:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_82145
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82145:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 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_82145:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82145:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82145:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82145:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_82146
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82146:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 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_82146:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82146:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82146:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82146:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_82147
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82147:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 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_82147:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82147:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82147:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82147:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_82148
44
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82148:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82148:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82148:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82148:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82148:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python import re import os import sys import shutil PACKAGE_NAME = 'com.google.android.apps.dashclock.api' def main(): root = sys.argv[1] for path, _, files in os.walk(root): for f in [f for f in files if f.endswith('.html')]: fp = open(os.path.join(path, f), 'r') html = fp.read()...
ajibawa-2023/Python-Code-Large/train/row_82149
40
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82149:Import_L2_C0", "label": "re import re", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0333, 0.0167, 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_82149:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82149:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82149:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82149:For_L13_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
ajibawa-2023/Python-Code-Large/train/row_82150
63
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82150:Import_L5_C0", "label": "logging import logging", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0118, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82150:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82150:Expr_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82150:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82150:FunctionDef_L17_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
ajibawa-2023/Python-Code-Large/train/row_82151
42
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82151:Import_L3_C0", "label": "datetime import datetime", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0201, 0.0067, 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_82151:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82151:Assign_L83_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82151:FunctionDef_L82_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82151:Expr_L85_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
ajibawa-2023/Python-Code-Large/train/row_82152
50
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82152:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.0631, 0.0991, 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_82152:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82152:Return_L49_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82152:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82152:Assign_L57_C2"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
ajibawa-2023/Python-Code-Large/train/row_82153
20
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82153:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.037, 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_82153:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82153:Assign_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82153:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82153:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
ajibawa-2023/Python-Code-Large/train/row_82154
44
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82154:Import_L3_C0", "label": "logging import logging", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0088, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "logging", "arg_names": [], "import_names": ["logging"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82154:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82154:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82154:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82154:Assign_L71_C2"}, {"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_82155
858
1,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_82155:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 33], "level": 0, "parent": null, "vector": [8, 0, 0.015, 0.0102, 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_82155:ClassDef_L149_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82155:FunctionDef_L151_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82155:FunctionDef_L151_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82155:Assign_L152_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_82156
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_82156: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_82156:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82156:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82156:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82156: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_82157
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_82157: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_82157:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82157:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82157:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82157: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_82158
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_82158: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_82158:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82158:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82158:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82158:Expr_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# Copyright 2014 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_82160
37
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82160:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.2027, 0.0135, 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_82160:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82160:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82160:FunctionDef_L31_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82160:Expr_L32_C8"}, {"f": "ajibawa-2023/Python-Co...
# 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_82161
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_82161: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_82161:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82161:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82161:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82161: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_82162
181
445
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82162:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0337, 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_82162:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82162:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82162:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82162:Assign_L43_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_82163
82
224
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82163:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.067, 0.0045, 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_82163:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82163:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82163:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82163:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright 2014 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_82164
136
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_82164:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0469, 0.0031, 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_82164:FunctionDef_L64_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82164:If_L70_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82164:If_L70_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82164:Expr_L71_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# 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_82165
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_82165: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_82166
237
410
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82166:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0366, 0.0024, 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_82166:ClassDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82166:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82166:ClassDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82166:FunctionDef_L51_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_82168
407
808
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82168:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0186, 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_82168:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82168:Expr_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82168:ClassDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82168:Expr_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright 2014 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_82169
23
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_82169:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 26], "level": 0, "parent": null, "vector": [8, 0, 0.306, 0.1791, 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_82169:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82169:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82169:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82169:Expr_L41_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_82170
249
507
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82170:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0296, 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_82170:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82170:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82170:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82170:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2014 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_82171
207
513
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82171:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0292, 0.0019, 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_82171:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82171:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82171:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_82171:Return_L33_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2014 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_82172
211
472
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82172:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 34], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0424, 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_82172:FunctionDef_L79_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82172:Return_L83_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82172:ClassDef_L87_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82172:FunctionDef_L90_C4"}, {"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_82173
237
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_82173: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_82173:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82173:Expr_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82173:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82173:If_L41_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_82174
150
304
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82174:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0493, 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_82174:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82174:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82174:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82174: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_82175
127
332
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82175:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0452, 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_82175:ClassDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82175:Expr_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82175:ClassDef_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82175:Assign_L62_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_82176
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_82176: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_82176:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82176:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82176:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82176: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_82177
199
301
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82177:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0498, 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_82177:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82177:Expr_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82177:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82177:FunctionDef_L54_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2014 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_82179
110
247
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82179:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0931, 0.0688, 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_82179:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82179:Expr_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82179:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82179:Assign_L59_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_82180
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_82180: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_82180:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82180:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82180:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82180:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2015 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_82181
524
983
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82181:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0153, 0.001, 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_82181:FunctionDef_L66_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82181:Expr_L67_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82181:FunctionDef_L66_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82181:If_L68_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_82182
208
420
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82182:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0357, 0.0024, 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_82182:ClassDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82182:Expr_L64_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82182:ClassDef_L63_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82182:FunctionDef_L67_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2014 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_82184
137
323
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82184:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.0464, 0.0031, 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_82184:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82184:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82184:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82184:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2014 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_82186
60
219
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82186:Assign_L15_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [15, 15], "level": 0, "parent": null, "vector": [14, 0, 0.0685, 0.0046, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82186:ClassDef_L119_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82186:Expr_L120_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82186:ClassDef_L119_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82186: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_82187
62
213
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_82187:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 66], "level": 0, "parent": null, "vector": [8, 0, 0.1901, 0.2441, 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_82187:ClassDef_L90_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82187:Expr_L91_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82187:ClassDef_L90_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82187:FunctionDef_L98_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_82188
64
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_82188: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_82188:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82188:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82188:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82188:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2014 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_82189
49
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_82189:Assign_L15_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [15, 18], "level": 0, "parent": null, "vector": [14, 0, 0.1352, 0.0328, 0, 0.66, 0.0, 777, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_82189:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82189:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82189:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82189:Assign_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2015 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_82190
11
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_82190:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 15], "level": 0, "parent": null, "vector": [8, 0, 0.3659, 0.0244, 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_82190:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82190:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_82190:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_82190:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code...