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
property_table = { 'angle': { 'comment': 'select angle', 'get': True, 'max': None, 'min': 0.0, 'name': 'angle', 'set': True, 'step': True, 'type': 'int'}, 'aspect': { 'comment': '', ...
ajibawa-2023/Python-Code-Large/train/row_81233
1
560
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81233:Assign_L1_C0", "label": "property_table =", "type": "assigned_variable", "loc": [1, 560], "level": 0, "parent": null, "vector": [14, 0, 0.5009, 1.0, 0, 0.66, 0.0, 755, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "property_table", "arg_names": [], "import_names": []...
[]
from mpylayer.mpylayer_control import *
ajibawa-2023/Python-Code-Large/train/row_81234
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81234:ImportFrom_L1_C0", "label": "from mpylayer.mpylayer_control import *", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 1.0, 1.0, 0, 0.66, 0.0, 705, 0, 1, 0, 0, 705, 0, 0], "semantic": {"name": "mpylayer.mpylayer_control", "arg_names":...
[]
import os, subprocess class Player: def __init__(self, callback, exe): self.name = 'External' self.callback = callback self.exe = exe self.player = None self.error = False self.mprunning = False self.mp = None def play(self, url): self.player = subprocess.Popen([self.exe, url]) self.mprunning = ...
ajibawa-2023/Python-Code-Large/train/row_81235
50
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81235:Import_L1_C0", "label": "os import os, subprocess", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0154, 0.0154, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "subproc...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81235:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81235:FunctionDef_L4_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81235:FunctionDef_L4_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81235:Assign_L5_C2"}, {"f": "ajibawa-2023/Python-Code...
class Channel: def __init__(self, **args): self.id = args['id'] self.icon = args['icon'] self.name = args['name'] self.streamurls = args['streamurls'] self.source = args['source'] self.params = 'params' in args and args['params'] or {} self.guide = 'guide' in args and args['guide'] or '' self.audiochan...
ajibawa-2023/Python-Code-Large/train/row_81236
20
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_81236:ClassDef_L1_C0", "label": "Channel", "type": "class", "loc": [1, 25], "level": 0, "parent": null, "vector": [3, 0, 0.5, 0.9615, 0, 0.66, 0.0, 577, 0, 2, 0, 0, 0, 0, 3], "semantic": {"name": "Channel", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81236:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81236:FunctionDef_L2_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81236:FunctionDef_L2_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81236:Assign_L3_C2"}, {"f": "ajibawa-2023/Python-Code...
import gtk, gobject, StringIO, os, tempfile from PIL import Image, ImageDraw, ImageFont class StatusImage: def __init__(self): default = os.path.dirname(os.path.realpath(__file__)) + '/themes/default' self.themedata = {'loading' : default + '/incarca.jpg', 'error' : default + '/error.jpg', 'logo' : de...
ajibawa-2023/Python-Code-Large/train/row_81237
61
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81237:Import_L1_C0", "label": "gtk import gtk, gobject, StringIO\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0128, 0.0128, 0, 0.66, 0.0, 166, 0, 5, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81237:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81237:FunctionDef_L5_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81237:FunctionDef_L5_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81237:Assign_L6_C2"}, {"f": "ajibawa-2023/Python-Code...
# workerpool.py - Module for distributing jobs to a pool of worker threads. # Copyright (c) 2008 Andrey Petrov # # This module is part of workerpool and is released under # the MIT license: http://www.opensource.org/licenses/mit-license.php from Queue import Queue if not hasattr(Queue, 'task_done'): # Graft Pytho...
ajibawa-2023/Python-Code-Large/train/row_81238
47
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81238:ImportFrom_L8_C0", "label": "from Queue import Queue", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0755, 0.0094, 0, 0.66, 0.0, 952, 0, 1, 0, 0, 952, 0, 0], "semantic": {"name": "Queue", "arg_names": [], "import_names": ["Queue"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81238:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81238:ImportFrom_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81238:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81238:Return_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# exceptions.py - Exceptions used in the operation of a worker pool # Copyright (c) 2008 Andrey Petrov # # This module is part of workerpool and is released under # the MIT license: http://www.opensource.org/licenses/mit-license.php class TerminationNotice(Exception): "This exception is raised inside a thread when...
ajibawa-2023/Python-Code-Large/train/row_81239
2
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81239:ClassDef_L7_C0", "label": "TerminationNotice", "type": "class", "loc": [7, 9], "level": 0, "parent": null, "vector": [3, 0, 0.8889, 0.3333, 0, 0.66, 0.0, 228, 0, 0, 0, 0, 645, 0, 0], "semantic": {"name": "TerminationNotice", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81239:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81239:Expr_L8_C4"}]
# workers.py - Worker objects who become members of a worker pool # Copyright (c) 2008 Andrey Petrov # # This module is part of workerpool and is released under # the MIT license: http://www.opensource.org/licenses/mit-license.php from threading import Thread from jobs import Job, SimpleJob from exceptions import Term...
ajibawa-2023/Python-Code-Large/train/row_81240
30
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81240:ImportFrom_L7_C0", "label": "from threading import Thread", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1077, 0.0154, 0, 0.66, 0.0, 83, 0, 1, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81240:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81240:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81240:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81240:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-...
# __init__.py # Copyright (c) 2008 Andrey Petrov # # This module is part of workerpool and is released under # the MIT license: http://www.opensource.org/licenses/mit-license.php """ Workerpool module provides a threading framework for managing a constant pool of worker threads that perform arbitrary jobs. Tips: * W...
ajibawa-2023/Python-Code-Large/train/row_81241
5
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_81241:Expr_L7_C0", "label": "expression", "type": "expression", "loc": [7, 25], "level": 0, "parent": null, "vector": [8, 0, 0.5333, 0.6333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
# jobs.py - Generic jobs used with the worker pool # Copyright (c) 2008 Andrey Petrov # # This module is part of workerpool and is released under # the MIT license: http://www.opensource.org/licenses/mit-license.php from exceptions import TerminationNotice __all__ = ['Job', 'SuicideJob', 'SimpleJob'] class Job(objec...
ajibawa-2023/Python-Code-Large/train/row_81242
25
45
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81242:ImportFrom_L7_C0", "label": "from exceptions import TerminationNotice", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1556, 0.0222, 0, 0.66, 0.0, 63, 0, 1, 0, 0, 63, 0, 0], "semantic": {"name": "exceptions", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81242:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81242:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81242:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81242:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-...
# NewQueue.py - Implements Python 2.5 Queue functionality for Python 2.4 # Copyright (c) 2008 Andrey Petrov # # This module is part of workerpool and is released under # the MIT license: http://www.opensource.org/licenses/mit-license.php # TODO: The extra methods provided here do nothing for now. Add real functionalit...
ajibawa-2023/Python-Code-Large/train/row_81243
7
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81243:ImportFrom_L9_C0", "label": "from Queue import OldQueue", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.45, 0.05, 0, 0.66, 0.0, 952, 0, 1, 0, 0, 952, 0, 0], "semantic": {"name": "Queue", "arg_names": [], "import_names": ["OldQueue...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81243:ClassDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81243:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81243:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81243:Expr_L15_C8"}, {"f": "ajibawa-2023/Python-Co...
import sys, os, subprocess, gobject, gtk, tools, pickle, random, copy from daemon import TDaemon from channel import Channel from dateutil import parser orar_file = os.getenv("HOME") + '/.tvmaxe/schedule' class Scheduler: def __init__(self, tvmaxepy, tvmaxe): self.daemon = TDaemon(tvmaxepy) self.gui = tvmaxe.gui...
ajibawa-2023/Python-Code-Large/train/row_81244
101
124
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81244:Import_L1_C0", "label": "sys import sys, os, subprocess\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0081, 0.0081, 0, 0.66, 0.0, 509, 0, 9, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81244:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81244:FunctionDef_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81244:FunctionDef_L9_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81244:Assign_L10_C2"}, {"f": "ajibawa-2023/Python-Cod...
#! /usr/bin/python # Python ctypes bindings for VLC # # Copyright (C) 2009-2010 the VideoLAN team # $Id: $ # # Authors: Olivier Aubert <olivier.aubert at liris.cnrs.fr> # Jean Brouwers <MrJean1 at gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the G...
ajibawa-2023/Python-Code-Large/train/row_81246
2,716
6,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_81246:Expr_L25_C0", "label": "expression", "type": "expression", "loc": [25, 39], "level": 0, "parent": null, "vector": [8, 0, 0.0051, 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_81246:If_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81246:Assign_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81246:If_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81246:Try_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81...
#-*- coding: utf-8 -*- import threading, time, urllib2 class ListParser: def __init__(self): self.itm = False def getData(self, url): self.url = url if self.url.endswith('.pls'): self.getPLSitem() elif self.url.endswith('.m3u'): self.getM3Uitem() while not self.itm: time.sleep(0.1) return s...
ajibawa-2023/Python-Code-Large/train/row_81248
29
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_81248:Import_L2_C0", "label": "threading import threading, time, urllib2", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0513, 0.0256, 0, 0.66, 0.0, 83, 0, 3, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81248:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81248:FunctionDef_L5_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81248:FunctionDef_L5_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81248:Assign_L6_C2"}, {"f": "ajibawa-2023/Python-Code...
#-*- coding: utf-8 -*- import urllib, urllib2, threading, time, datetime, gobject class PBX: def __init__(self): self.working = False self.nrCanale = 0 self.nrIncarcate = 0 def signIn(self, username, password, callback): self.nrCanale = 0 self.nrIncarcate = 0 if self.working: return self.working = ...
ajibawa-2023/Python-Code-Large/train/row_81251
52
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81251:Import_L2_C0", "label": "urllib import urllib, urllib2, threading\u2026", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.029, 0.0145, 0, 0.66, 0.0, 614, 0, 6, 0, 0, 614, 0, 0], "semantic": {"name": "urllib", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81251:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81251:FunctionDef_L5_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81251:FunctionDef_L5_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81251:Assign_L6_C2"}, {"f": "ajibawa-2023/Python-Code...
""" Copyright (c) 2003-2005 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ from dateutil.tz import tzfile from tarfile import TarFile import os __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" __all__ = ["setca...
ajibawa-2023/Python-Code-Large/train/row_81254
62
87
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81254:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0402, 0.069, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81254:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81254:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81254:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81254:Return_L21_C8"}, {"f": "ajibawa-2023/Python-...
# This code was originally contributed by Jeffrey Harris. import datetime import struct import _winreg __author__ = "Jeffrey Harris & Gustavo Niemeyer <gustavo@niemeyer.net>" __all__ = ["tzwin", "tzwinlocal"] ONEWEEK = datetime.timedelta(7) TZKEYNAMENT = r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones" TZ...
ajibawa-2023/Python-Code-Large/train/row_81256
108
180
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81256:Import_L2_C0", "label": "datetime import datetime", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0111, 0.0056, 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_81256:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81256:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81256:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81256:Try_L19_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" Copyright (c) 2003-2010 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" __version__ = "1.5"
ajibawa-2023/Python-Code-Large/train/row_81257
4
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81257:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.3889, 0.6667, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
import sys, os, subprocess, time, datetime, pickle, socket from daemon import Daemon #workaround to import channel parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) os.sys.path.insert(0, parentdir) class TVMaxe_d(Daemon): def __init__(self, tvmaxepy): self.schedule = os.getenv("HOME") + '/.t...
ajibawa-2023/Python-Code-Large/train/row_81259
63
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_81259:Import_L1_C0", "label": "sys import sys, os, subprocess\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 0.0127, 0, 0.66, 0.0, 509, 0, 7, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81259:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81259:FunctionDef_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81259:FunctionDef_L9_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81259:Assign_L10_C2"}, {"f": "ajibawa-2023/Python-Cod...
from daemon import Daemon import inspect, os, subprocess, sys class TDaemon: def __init__(self, tvmaxe): """tvmaxe = path of tvmaxe script""" self.path = os.path.split(os.path.abspath(__file__))[0] + 'tvmaxed.py' self.python = sys.executable self.tvmaxepy = tvmaxe def start(self): p = subprocess.Popen([se...
ajibawa-2023/Python-Code-Large/train/row_81260
14
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81260:ImportFrom_L1_C0", "label": "from daemon import Daemon", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0556, 0.0556, 0, 0.66, 0.0, 982, 0, 1, 0, 0, 982, 0, 0], "semantic": {"name": "daemon", "arg_names": [], "import_names": ["Daem...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81260:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81260:FunctionDef_L5_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81260:FunctionDef_L5_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81260:Expr_L6_C2"}, {"f": "ajibawa-2023/Python-Code-L...
import gtk, gobject, os class Sleep: def __init__(self, main): self.gui = main.gui self.quit = main.quit self.OSD = main.OSD self.timer = None self.warning_timer = None self.endtime = 0 self.remoteiter = -1 # for IR remote self.remoteres = None # for IR, we want to initially show remaining time on...
ajibawa-2023/Python-Code-Large/train/row_81262
104
125
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81262:Import_L1_C0", "label": "gtk import gtk, gobject, os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.008, 0.008, 0, 0.66, 0.0, 166, 0, 3, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names": ["gtk", "gobj...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81262:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81262:FunctionDef_L4_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81262:FunctionDef_L4_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81262:Assign_L5_C2"}, {"f": "ajibawa-2023/Python-Code...
import gtk, gobject, threading, time class RadioWidget: def __init__(self, outer): self.gui = outer.gui self.tvmaxe = outer self.currentIter = None self.channels = outer.channels def modRadio(self, obj): self.tvmaxe.radioMode = True self.gui.get_object('notebook2').set_current_page(1) self.gui.get_o...
ajibawa-2023/Python-Code-Large/train/row_81263
41
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_81263:Import_L1_C0", "label": "gtk import gtk, gobject, threading\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0208, 0.0208, 0, 0.66, 0.0, 166, 0, 4, 0, 0, 166, 0, 0], "semantic": {"name": "gtk", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81263:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81263:FunctionDef_L4_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81263:FunctionDef_L4_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81263:Assign_L5_C2"}, {"f": "ajibawa-2023/Python-Code...
import os, subprocess, tempfile, threading, gobject, time, random import SocketServer, SimpleHTTPServer def which(program): def is_exe(fpath): return os.path.exists(fpath) and os.access(fpath, os.X_OK) fpath, fname = os.path.split(program) if fpath: if is_exe(program): return p...
ajibawa-2023/Python-Code-Large/train/row_81264
119
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_81264:Import_L1_C0", "label": "os import os, subprocess, tempfile\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.007, 0.007, 0, 0.66, 0.0, 688, 0, 7, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81264:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81264:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81264:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81264:Return_L6_C8"}, {"f": "ajibawa-2023/Python-C...
import os, subprocess, threading, urllib2, random, time, gobject def which(program): import os def is_exe(fpath): return os.path.exists(fpath) and os.access(fpath, os.X_OK) fpath, fname = os.path.split(program) if fpath: if is_exe(program): return program else: ...
ajibawa-2023/Python-Code-Large/train/row_81265
80
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81265:Import_L1_C0", "label": "os import os, subprocess, threading\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0095, 0.0095, 0, 0.66, 0.0, 688, 0, 7, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81265:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81265:Import_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81265:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81265:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-C...
import os, subprocess, threading, gobject, time, random, ctypes import SocketServer, SimpleHTTPServer from Queue import Queue, Empty def which(program): def is_exe(fpath): return os.path.exists(fpath) and os.access(fpath, os.X_OK) fpath, fname = os.path.split(program) if fpath: if is_exe(p...
ajibawa-2023/Python-Code-Large/train/row_81268
117
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_81268:Import_L1_C0", "label": "os import os, subprocess, threading\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.007, 0.007, 0, 0.66, 0.0, 688, 0, 7, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81268:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81268:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81268:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81268:Return_L7_C8"}, {"f": "ajibawa-2023/Python-C...
key = 127 class KeySim: def __init__(self): self.src = 0 try: import virtkey self.v = virtkey.virtkey() except: print 'virtkey module not available' def start(self): if hasattr(self, 'v'): self.v.press_keycode(key) self.v.release_keycode(key) self.v.release_keycode(key) return True ...
ajibawa-2023/Python-Code-Large/train/row_81270
15
19
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81270:Assign_L1_C0", "label": "key =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0526, 0.0526, 0, 0.66, 0.0, 230, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "key", "arg_names": [], "import_names": [], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81270:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81270:FunctionDef_L4_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81270:FunctionDef_L4_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81270:Assign_L5_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python2 import os import sys import threading import socket import gtk import gobject import subprocess import urllib2 import tools import ffmpegutils from time import strftime protocols_dir = os.getcwd() + '/protocols/' sys.path.append(protocols_dir) class Diagnostics: def __init__(self, gui): ...
ajibawa-2023/Python-Code-Large/train/row_81271
220
434
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81271:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0046, 0.0023, 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_81271:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81271:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81271:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81271:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-...
import socket, threading, time, gobject nrcon = 5 class SocketServer: def __init__(self, tvmaxe): self.tvmaxe = tvmaxe self.s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) for x in range(1, 100): try: self.s.bind('\0tvmaxe' + str(x)) break except: continue self.s.setblocking(1) self...
ajibawa-2023/Python-Code-Large/train/row_81272
27
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_81272:Import_L1_C0", "label": "socket import socket, threading, time\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0286, 0, 0.66, 0.0, 687, 0, 4, 0, 0, 687, 0, 0], "semantic": {"name": "socket", "arg_names": [], "import_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81272:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81272:FunctionDef_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81272:FunctionDef_L6_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81272:Assign_L7_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # 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 ...
ajibawa-2023/Python-Code-Large/train/row_81276
218
605
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81276:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0281, 0.0017, 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_81276:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81276:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81276:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81276:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # 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 ...
ajibawa-2023/Python-Code-Large/train/row_81277
133
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81277:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 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_81277:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81277:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81277:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81277:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_81279
8
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81279:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81279:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81279:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81279:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81279:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_81280
9
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81280:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81280:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81280:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81280:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81280:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_81281
10
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_81281:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81281:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81281:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81281:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81281:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
ajibawa-2023/Python-Code-Large/train/row_81283
155
378
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81283:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0741, 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_81283:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81283:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81283:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81283:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81284
396
1,139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81284:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0145, 0.0035, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81284:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81284:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81284:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81284:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81285
46
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81285:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 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_81285:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81285:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81285:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81285:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81286
63
124
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81286:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1371, 0.0403, 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_81286:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81286:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81286:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81286:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # 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 ...
ajibawa-2023/Python-Code-Large/train/row_81288
86
244
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81288:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0738, 0.0041, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81288:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81288:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81288:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81288:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81289
33
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81289:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 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_81289:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81289:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81289:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81289:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_81291
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81291:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81292
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81292:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 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_81292:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81292:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81292:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81292:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_81293
115
168
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81293:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81293:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81293:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81293:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_81293:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_81294
57
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81294:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 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_81294:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81294:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81294:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81294:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81296
201
483
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81296:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 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_81296:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81296:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81296:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81296:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # 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 l...
ajibawa-2023/Python-Code-Large/train/row_81297
154
385
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81297:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0182, 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_81297:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81297:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81297:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81297:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81299
28
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81299:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 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_81299:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81299:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81299:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81299:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81300
29
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81300:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81300:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81300:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81300:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81300:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81301
55
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81301:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 0.037, 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_81301:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81301:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81301:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81301:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # 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 l...
ajibawa-2023/Python-Code-Large/train/row_81303
56
123
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81303:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1545, 0.0407, 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_81303:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81303:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81303:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81303:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_81304
1
1
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81304:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81305
114
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81305:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 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_81305:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81305:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81305:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81305:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81306
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81306:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 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_81306:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81306:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81306:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81306:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_81307
112
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81307:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 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_81307:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81307:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81307:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_81307:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
ajibawa-2023/Python-Code-Large/train/row_81308
51
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81308:Expr_L32_C0", "label": "expression", "type": "expression", "loc": [32, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0267, 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_81308:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81308:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81308:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81308:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_81309
213
438
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81309:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 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_81309:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81309:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81309:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81309:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_81310
43
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_81310:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81310:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81310:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81310:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81310:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
from distutils.core import setup import py2exe #setup(console=['AlbumPathFromFile.py']) #setup(console=['AlbumPathFromDirectory.py']) setup( console = [ { "script" : "AlbumPathMp3tag.py", "icon_resources": [(0, "small.ico")] } ] )
ajibawa-2023/Python-Code-Large/train/row_81313
3
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81313:ImportFrom_L1_C0", "label": "from distutils.core import setup", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0769, 0, 0.66, 0.0, 152, 0, 1, 0, 0, 152, 0, 0], "semantic": {"name": "distutils.core", "arg_names": [], "import...
[]
import sys import os, glob, shutil import logging import easygui import path # has path.path import config DEFAULT_ALBUMS_DIR=r"D:\albums" class AlbumInfo: def __init__(self, artist, album, year, genre): self.artist = artist self.album = album self.year = year self.genre = genre def defaul...
ajibawa-2023/Python-Code-Large/train/row_81316
96
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_81316:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0069, 0.0069, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81316:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81316:FunctionDef_L12_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81316:FunctionDef_L12_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81316:Assign_L13_C2"}, {"f": "ajibawa-2023/Python-...
import sys import os import logging import AlbumPath def main(detailsStr): details = detailsStr.split("#") albumPath = details[0] artist = details[1] album = details[2] year = details[3] genre = details[4] albumInfo = AlbumPath.AlbumInfo(artist, album, year, genre) handler = AlbumPath.AlbumFile...
ajibawa-2023/Python-Code-Large/train/row_81319
26
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_81319:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 0.0244, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81319:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81319:Assign_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81319:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81319:Assign_L8_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env pypy import os, sys, logging, re import argparse import fnmatch configurations = {'lite', 'pro'} package_dirs = { 'lite': ('src/cx/hell/android/pdfview',), 'pro': ('src/cx/hell/android/pdfviewpro',) } file_replaces = { 'lite': ( 'cx.hell.android.pdfview.', '"cx.hell.an...
ajibawa-2023/Python-Code-Large/train/row_81320
133
214
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81320:Import_L3_C0", "label": "os import os, sys, logging\u2026", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.014, 0.0047, 0, 0.66, 0.0, 688, 0, 4, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81320:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81320:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81320:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81320:If_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/python # -*- coding: utf-8 -*- # # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2012 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are me...
ajibawa-2023/Python-Code-Large/train/row_81321
2
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81321:Import_L1_C0", "label": "dbus import dbus", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 551, 0, 1, 0, 0, 551, 0, 0], "semantic": {"name": "dbus", "arg_names": [], "import_names": ["dbus"], "rhs_call_n...
[]
# -*- coding: utf-8 -*- # # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redi...
ajibawa-2023/Python-Code-Large/train/row_81322
5
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_81322:ImportFrom_L33_C0", "label": "from gi.repository import PsMoveApi", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.8049, 0.0244, 0, 0.66, 0.0, 942, 0, 1, 0, 0, 942, 0, 0], "semantic": {"name": "gi.repository", "arg_names": [], "i...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81322:For_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81322:Assign_L40_C4"}]
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011, 2012 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of sou...
ajibawa-2023/Python-Code-Large/train/row_81323
23
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81323:Import_L30_C0", "label": "sys import sys", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.4615, 0.0154, 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_81323:While_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81323:For_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81323:For_L45_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81323:If_L46_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source co...
ajibawa-2023/Python-Code-Large/train/row_81324
14
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_81324:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.6327, 0.0204, 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_81324:While_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81324:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81324:While_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81324:For_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011, 2012 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of sou...
ajibawa-2023/Python-Code-Large/train/row_81326
24
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81326:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.4493, 0.0145, 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_81326:While_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81326:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81326:While_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81326:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011, 2012 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of sou...
ajibawa-2023/Python-Code-Large/train/row_81327
51
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81327:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.2627, 0.0085, 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_81327:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81327:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81327:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81327:Return_L47_C4"}, {"f": "ajibawa-2023/Python-Co...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source co...
ajibawa-2023/Python-Code-Large/train/row_81328
21
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81328:Import_L30_C0", "label": "sys import sys", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.5172, 0.0172, 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_81328:If_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81328:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81328:If_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81328:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_813...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011, 2012 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of sou...
ajibawa-2023/Python-Code-Large/train/row_81329
12
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81329:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.6596, 0.0213, 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_81329:For_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81329:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81329:While_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81329:For_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011, 2012 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of sou...
ajibawa-2023/Python-Code-Large/train/row_81330
24
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81330:Import_L30_C0", "label": "sys import sys", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.4348, 0.0145, 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_81330:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81330:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81330:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81330:Return_L40_C4"}, {"f": "ajibawa-2023/Python-Co...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source co...
ajibawa-2023/Python-Code-Large/train/row_81331
41
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81331:Expr_L30_C0", "label": "expression", "type": "expression", "loc": [30, 37], "level": 0, "parent": null, "vector": [8, 0, 0.3641, 0.087, 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_81331:While_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81331:While_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81331:While_L58_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81331:Assign_L59_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source co...
ajibawa-2023/Python-Code-Large/train/row_81332
16
55
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81332:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.5636, 0.0182, 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_81332:If_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81332:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81332:If_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81332:If_L41_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81332...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011, 2012 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of sou...
ajibawa-2023/Python-Code-Large/train/row_81333
15
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81333:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.5962, 0.0192, 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_81333:While_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81333:If_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81333:If_L41_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81333:Assign_L42_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source co...
ajibawa-2023/Python-Code-Large/train/row_81334
18
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81334:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.5536, 0.0179, 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_81334:While_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81334:If_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81334:If_L42_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_81334:Expr_L43_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source co...
ajibawa-2023/Python-Code-Large/train/row_81335
13
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_81335:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.6458, 0.0208, 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_81335:While_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81335:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81335:While_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81335:Expr_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011, 2012 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of sou...
ajibawa-2023/Python-Code-Large/train/row_81336
19
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81336:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.4921, 0.0159, 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_81336:While_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81336:Expr_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81336:While_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81336:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source co...
ajibawa-2023/Python-Code-Large/train/row_81337
31
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81337:Import_L31_C0", "label": "sys import sys", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.4247, 0.0137, 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_81337:If_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81337:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81337:If_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81337:If_L42_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81337...
# # PS Move API - An interface for the PS Move Motion Controller # Copyright (c) 2011 Thomas Perl <m@thp.io> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source co...
ajibawa-2023/Python-Code-Large/train/row_81338
13
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81338:Import_L30_C0", "label": "sys import sys", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.5172, 0.0172, 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_81338:For_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81338:Expr_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81338:For_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81338:Expr_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
# A simple disjoint set ADT which uses path compression on finds # to speed things up class DisjointSet: size = 0 def __init__(self): self.__items = {} def union(self, root1, root2): if self.__items[root2] < self.__items[root1]: self.__items[root1] = root2 else: if self.__items[root1] == self.__items[...
ajibawa-2023/Python-Code-Large/train/row_81339
29
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_81339:ClassDef_L4_C0", "label": "DisjointSet", "type": "class", "loc": [4, 48], "level": 0, "parent": null, "vector": [3, 0, 0.5417, 0.9375, 0, 0.66, 0.0, 58, 0, 5, 0, 0, 0, 0, 5], "semantic": {"name": "DisjointSet", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81339:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81339:Assign_L5_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81339:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81339:FunctionDef_L7_C1"}, {"f": "ajibawa-2023/Python-Code-La...
import curses import random def initMap(ysize, xsize, p): m = [[] for i in range(ysize)] for x in range(xsize): m[0].append(0) for y in range(1,ysize-1): m[y].append(0) for x in range(1,xsize-1): m[y].append(random.random() < p) m[y].append(0) for x in range(xsize): m[ysize-1].append(0) return m ...
ajibawa-2023/Python-Code-Large/train/row_81340
64
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_81340:Import_L1_C0", "label": "curses import curses", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0149, 0.0149, 0, 0.66, 0.0, 480, 0, 1, 0, 0, 480, 0, 0], "semantic": {"name": "curses", "arg_names": [], "import_names": ["curses"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81340:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81340:Assign_L5_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81340:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81340:For_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
from random import randrange from DisjointSet import DisjointSet PERM_WALL = 0 WALL = 1 FLOOR = 2 class CA_CaveFactory: def __init__(self,length,width,initial_open=0.40): self.__length = length self.__width = width self.__area = length * width self.__map = [] self.__ds = DisjointSet() self.__up_loc = 0 ...
ajibawa-2023/Python-Code-Large/train/row_81341
116
166
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81341:ImportFrom_L1_C0", "label": "from random import randrange", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 715, 0, 1, 0, 0, 715, 0, 0], "semantic": {"name": "random", "arg_names": [], "import_names": ["ran...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81341:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81341:FunctionDef_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81341:FunctionDef_L9_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_81341:Assign_L10_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # 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 ...
ajibawa-2023/Python-Code-Large/train/row_81342
133
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81342:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 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_81342:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81342:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81342:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81342:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # 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 ...
ajibawa-2023/Python-Code-Large/train/row_81343
189
572
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81343:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0297, 0.0017, 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_81343:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81343:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81343:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81343:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
ajibawa-2023/Python-Code-Large/train/row_81345
51
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81345:Expr_L32_C0", "label": "expression", "type": "expression", "loc": [32, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0267, 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_81345:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81345:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81345:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81345:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81346
214
544
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81346:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0303, 0.0074, 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_81346:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81346:Import_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81346:Try_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81346:Try_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # 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 ...
ajibawa-2023/Python-Code-Large/train/row_81347
90
253
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81347:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0711, 0.004, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81347:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81347:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81347:Try_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81347:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
ajibawa-2023/Python-Code-Large/train/row_81348
155
366
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81348:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0451, 0.0765, 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_81348:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81348:Import_L41_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81348:Try_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81348:Try_L43_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81350
348
953
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81350:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0173, 0.0042, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81350:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81350:ImportFrom_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81350:Try_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81350:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81351
37
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_81351:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1504, 0.0442, 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_81351:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81351:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81351:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81351:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81352
38
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81352:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1848, 0.0543, 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_81352:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81352:Import_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81352:Try_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81352:Try_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81353
55
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_81353:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1491, 0.0439, 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_81353:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81353:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81353:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81353:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81354
374
940
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81354:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 20], "level": 0, "parent": null, "vector": [8, 0, 0.0186, 0.0064, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81354:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81354:Expr_L52_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81354:ClassDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81354:FunctionDef_L54_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_81355
57
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81355:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 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_81355:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81355:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81355:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81355:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81356
114
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81356:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 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_81356:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81356:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81356:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81356:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81357
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81357:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 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_81357:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81357:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81357:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81357:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81358
201
483
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81358:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 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_81358:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81358:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81358:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81358:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81360
55
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81360:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 0.037, 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_81360:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81360:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81360:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81360:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81362
28
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81362:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 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_81362:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81362:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81362:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81362:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_81363
29
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81363:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_81363:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81363:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81363:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81363:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # 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 l...
ajibawa-2023/Python-Code-Large/train/row_81364
145
366
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_81364:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0546, 0.0191, 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_81364:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81364:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81364:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81364:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # 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 l...
ajibawa-2023/Python-Code-Large/train/row_81365
49
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_81365:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.0439, 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_81365:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81365:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_81365:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_81365:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...