code stringlengths 1 1.49M | file_id stringlengths 42 46 | node_count int64 0 7.38k | total_lines int64 1 20.9k | vector_dim int64 15 15 | vector_labels stringclasses 1
value | nodes stringlengths 2 3.75M | connections stringlengths 2 964k |
|---|---|---|---|---|---|---|---|
#!/usr/bin/python
import sys, os, gzip, StringIO
def dump_binary(fn, data):
f = open(fn, "wb")
f.write(data)
f.close()
def dec_prx(fn):
f = open(fn, "rb")
f.seek(0x150)
dat = f.read()
f.close()
temp=StringIO.StringIO(dat)
f=gzip.GzipFile(fileobj=temp, mode='rb')
dec = f.read(f)
f.close()
fn = "%s.dec.p... | ajibawa-2023/Python-Code-Large/train/row_5174 | 24 | 33 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5174:Import_L3_C0", "label": "sys import sys, os, gzip\u2026", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0303, 0, 0.66, 0.0, 509, 0, 4, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5174:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5174:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5174:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5174:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | ajibawa-2023/Python-Code-Large/train/row_5175 | 56 | 82 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5175:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0488, 0.0366, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5175:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5175:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5175:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_5175:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | ajibawa-2023/Python-Code-Large/train/row_5176 | 7 | 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_5176:Import_L3_C0", "label": "sys import sys, hashlib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0769, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "hashlib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5176:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5176:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5176:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5176:Return_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | ajibawa-2023/Python-Code-Large/train/row_5177 | 31 | 46 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5177:ImportFrom_L3_C0", "label": "from hashlib import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0652, 0.0217, 0, 0.66, 0.0, 154, 0, 1, 0, 0, 154, 0, 0], "semantic": {"name": "hashlib", "arg_names": [], "import_names": ["*"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5177:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5177:If_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5177:If_L7_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_5177:Return_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_51... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | ajibawa-2023/Python-Code-Large/train/row_5178 | 107 | 182 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5178:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.022, 0.0165, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5178:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5178:Expr_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5178:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5178:Assign_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/March33/march33_660.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.... | ajibawa-2023/Python-Code-Large/train/row_5179 | 10 | 29 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5179:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1034, 0.0345, 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_5179:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5179:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5179:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5179:For_L21_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | ajibawa-2023/Python-Code-Large/train/row_5180 | 30 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5180:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0909, 0.0682, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5180:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5180:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5180:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_5180:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
import os, sys, getopt
def usage():
print ("Usage: %s [-l size ] basefile input output" % (sys.argv[0]))
def write_file(fn, buf):
fp = open(fn, "wb")
fp.write(buf)
fp.close()
def main():
inputsize = 0
try:
optlist, args = getopt.getopt(sys.argv[1:], 'l:h')
except getopt.GetoptError:
us... | ajibawa-2023/Python-Code-Large/train/row_5181 | 37 | 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_5181:Import_L3_C0", "label": "os import os, sys, getopt", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0536, 0.0179, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys", "... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5181:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5181:Expr_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5181:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5181:Assign_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
from sys import stdin
a, b, c = map(int, stdin.readline().strip().split())
print "%.3lf" % ((a+b+c)/3.0)
| ajibawa-2023/Python-Code-Large/train/row_5182 | 3 | 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_5182:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
from math import *
r, h = map(float, stdin.readline().strip().split())
print "Area = %.3lf" % (pi*r*r*2 + 2*pi*r*h)
| ajibawa-2023/Python-Code-Large/train/row_5183 | 4 | 4 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5183:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_ca... | [] |
from sys import stdin
from math import *
n, = map(int, stdin.readline().strip().split())
rad = radians(n)
print "%.3lf %.3lf" % (sin(rad), cos(rad))
| ajibawa-2023/Python-Code-Large/train/row_5184 | 5 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5184:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
from sys import stdin
n, = map(int, stdin.readline().strip().split())
print n*(n+1)/2
| ajibawa-2023/Python-Code-Large/train/row_5185 | 3 | 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_5185:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
a, b = map(int, stdin.readline().strip().split())
print b, a
| ajibawa-2023/Python-Code-Large/train/row_5186 | 3 | 4 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5186:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_ca... | [] |
from sys import stdin
n, m = map(int, stdin.readline().strip().split())
a = (4*n-m)/2
b = n-a
if m % 2 == 1 or a < 0 or b < 0: print "No answer"
else: print a, b
| ajibawa-2023/Python-Code-Large/train/row_5187 | 4 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5187:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
from sys import stdin
n, = map(int, stdin.readline().strip().split())
money = n * 95
if money >= 300: money *= 0.85
print "%.2lf" % money
| ajibawa-2023/Python-Code-Large/train/row_5188 | 5 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5188:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
from sys import stdin
n, = map(int, stdin.readline().strip().split())
print ["yes", "no"][n % 2]
| ajibawa-2023/Python-Code-Large/train/row_5189 | 3 | 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_5189:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
from math import *
x1, y1, x2, y2 = map(float, stdin.readline().strip().split())
print "%.3lf" % hypot((x1-x2), (y1-y2))
| ajibawa-2023/Python-Code-Large/train/row_5190 | 4 | 4 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5190:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_ca... | [] |
from sys import stdin
n = stdin.readline().strip().split()[0]
print '%c%c%c' % (n[2], n[1], n[0])
| ajibawa-2023/Python-Code-Large/train/row_5191 | 3 | 4 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5191:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.25, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_ca... | [] |
from sys import stdin
x, = map(float, stdin.readline().strip().split())
print abs(x)
| ajibawa-2023/Python-Code-Large/train/row_5192 | 3 | 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_5192:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
from calendar import isleap
year, = map(int, stdin.readline().strip().split())
if isleap(year): print "yes"
else: print "no"
| ajibawa-2023/Python-Code-Large/train/row_5193 | 3 | 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_5193:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
f, = map(float, stdin.readline().strip().split())
print "%.3lf" % (5*(f-32)/9)
| ajibawa-2023/Python-Code-Large/train/row_5194 | 3 | 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_5194:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
a, b, c = map(int, stdin.readline().strip().split())
if a*a + b*b == c*c or a*a + c*c == b*b or b*b + c*c == a*a: print "yes"
elif a + b <= c or a + c <= b or b + c <= a: print "not a triangle"
else: print "no"
| ajibawa-2023/Python-Code-Large/train/row_5195 | 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_5195:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 1.0, 1.0, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
from sys import stdin
a = map(int, stdin.readline().strip().split())
a.sort()
print a[0], a[1], a[2]
| ajibawa-2023/Python-Code-Large/train/row_5196 | 4 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5196:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
s = i = 0
while True:
term = 1.0 / (i*2+1)
s += term * ((-1)**i)
if term < 1e-6: break
i += 1
print "%.6lf" % s
| ajibawa-2023/Python-Code-Large/train/row_5197 | 5 | 7 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5197:Assign_L1_C0", "label": "s =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.1429, 0.1429, 0, 0.66, 0.0, 553, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "s", "arg_names": [], "import_names": [], "rhs_call_name": "", "an... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5197:While_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5197:Assign_L3_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5197:While_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5197:If_L5_C2"}] |
from sys import stdin
from decimal import *
a, b, c = map(int, stdin.readline().strip().split())
getcontext().prec = c
print Decimal(a) / Decimal(b)
| ajibawa-2023/Python-Code-Large/train/row_5198 | 5 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5198:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
from sys import stdin
n = int(stdin.readline().strip())
print "%.3lf" % sum([1.0/x for x in range(1,n+1)])
| ajibawa-2023/Python-Code-Large/train/row_5199 | 3 | 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_5199:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
print len(stdin.readline().strip())
| ajibawa-2023/Python-Code-Large/train/row_5200 | 2 | 2 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5200:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.5, 0.5, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
from itertools import product
from math import *
def issqrt(n):
s = int(floor(sqrt(n)))
return s*s == n
aabb = [a*1100+b*11 for a,b in product(range(1,10),range(10))]
print ' '.join(map(str, filter(issqrt, aabb)))
| ajibawa-2023/Python-Code-Large/train/row_5201 | 7 | 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_5201:ImportFrom_L1_C0", "label": "from itertools import product", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 808, 0, 1, 0, 0, 808, 0, 0], "semantic": {"name": "itertools", "arg_names": [], "import_names": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5201:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5201:Assign_L5_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5201:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5201:Return_L6_C2"}] |
from sys import stdin
a = map(int, stdin.readline().strip().split())
print "%d %d %.3lf" % (min(a), max(a), float(sum(a)) / len(a))
| ajibawa-2023/Python-Code-Large/train/row_5202 | 3 | 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_5202:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
def cycle(n):
if n == 1: return 0
elif n % 2 == 1: return cycle(n*3+1) + 1
else: return cycle(n/2) + 1
n = int(stdin.readline().strip())
print cycle(n)
| ajibawa-2023/Python-Code-Large/train/row_5203 | 9 | 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_5203:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5203:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5203:If_L4_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5203:If_L4_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_5203:Return_L4_C13"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5... |
from sys import stdin
n = int(stdin.readline().strip())
count = n*2-1
for i in range(n):
print ' '*i + '#'*count
count -= 2
| ajibawa-2023/Python-Code-Large/train/row_5204 | 5 | 6 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5204:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5204:For_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5204:Expr_L5_C2"}] |
for abc in range(123, 329):
big = str(abc) + str(abc*2) + str(abc*3)
if(''.join(sorted(big)) == '123456789'): print abc, abc*2, abc*3
| ajibawa-2023/Python-Code-Large/train/row_5205 | 2 | 2 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5205:For_L1_C0", "label": "for abc", "type": "for", "loc": [1, 2], "level": 0, "parent": null, "vector": [6, 0, 0.75, 1.0, 0, 0.66, 0.0, 38, 3, 0, 0, 0, 0, 0, 4], "semantic": {"name": "abc", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "s... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5205:For_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5205:Assign_L2_C2"}] |
from sys import stdin
n, m = map(int, stdin.readline().strip().split())
print "%.5lf" % sum([1.0/i/i for i in range(n,m+1)])
| ajibawa-2023/Python-Code-Large/train/row_5206 | 3 | 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_5206:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [] |
from sys import stdin
data = map(int, stdin.readline().strip().split())
n, m = data[0], data[-1]
data = data[1:-1]
print len(filter(lambda x: x < m, data))
| ajibawa-2023/Python-Code-Large/train/row_5207 | 5 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5207:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
from sys import stdin
def solve(a, b, c):
for i in range(10, 101):
if i % 3 == a and i % 5 == b and i % 7 == c:
print i
return
print 'No answer'
a, b, c = map(int, stdin.readline().strip().split())
solve(a, b, c)
| ajibawa-2023/Python-Code-Large/train/row_5208 | 9 | 11 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5208:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0909, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5208:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5208:For_L4_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5208:For_L4_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_5208:If_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5208... |
from itertools import product
sol = [a*100+b*10+c for a,b,c in product(range(1,10), range(10), range(10)) if a**3+b**3+c**3 == a*100+b*10+c]
print '\n'.join(map(str, sol))
| ajibawa-2023/Python-Code-Large/train/row_5209 | 3 | 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_5209:ImportFrom_L1_C0", "label": "from itertools import product", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 808, 0, 1, 0, 0, 808, 0, 0], "semantic": {"name": "itertools", "arg_names": [], "import_names": ... | [] |
from sys import stdin
from math import *
n = int(stdin.readline().strip())
print sum(map(factorial, range(1,n+1))) % (10**6)
| ajibawa-2023/Python-Code-Large/train/row_5210 | 4 | 5 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5210:ImportFrom_L1_C0", "label": "from sys import stdin", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.2, 0.2, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["stdin"], "rhs_call... | [] |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import serial
import time
import sys
import os
if len(sys.argv) == 3:
avrdude_parameter1 = "-c stk500v2 -p m8 -v -v -P "+sys.argv[1]
avrdude_parameter2 = " -e -U "+sys.argv[2]
avrdude_command = "avrdude "+avrdude_parameter1+avrdude_parameter2
os.system('cls')
pri... | ajibawa-2023/Python-Code-Large/train/row_5211 | 4 | 7 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5211:Import_L1_C0", "label": "serial import serial", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.1429, 0, 0.66, 0.0, 601, 0, 1, 0, 0, 601, 0, 0], "semantic": {"name": "serial", "arg_names": [], "import_names": ["serial"], "rhs... | [] |
#!/usr/bin/python
import os
def main():
lists = [
"ISODrivers/Galaxy/galaxy.prx",
"ISODrivers/March33/march33.prx",
"ISODrivers/March33/march33_620.prx",
"ISODrivers/Inferno/inferno.prx",
"Popcorn/popcorn.prx",
"Satelite/satelite.prx",
"Stargate/stargate.prx",
"SystemControl/systemctrl.prx",
... | ajibawa-2023/Python-Code-Large/train/row_5212 | 10 | 28 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5212:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1071, 0.0357, 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_5212:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5212:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5212:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5212:For_L20_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import os, gzip, StringIO
gzip.time = FakeTime()
def create_gzip(input, output):
f_in=open(input, 'rb')
temp=StringIO.StringIO()
f=gzip.GzipFile(fileobj=temp, mode='wb')
f.writelines(f_in)
f.close()
f_in.close()
fout=open(out... | ajibawa-2023/Python-Code-Large/train/row_5213 | 30 | 44 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5213:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0909, 0.0682, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5213:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5213:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5213:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_5213:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
from hashlib import *
import sys, struct
def sha512(psid):
if len(psid) != 16:
return "".encode()
for i in range(512):
psid = sha1(psid).digest()
return psid
def get_psid(str):
if len(str) != 32:
return "".encode()
b = "".encode()
for i in range(0, len(str), 2):
b += struct.pack('B... | ajibawa-2023/Python-Code-Large/train/row_5214 | 31 | 46 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5214:ImportFrom_L3_C0", "label": "from hashlib import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0652, 0.0217, 0, 0.66, 0.0, 154, 0, 1, 0, 0, 154, 0, 0], "semantic": {"name": "hashlib", "arg_names": [], "import_names": ["*"], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5214:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5214:If_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5214:If_L7_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_5214:Return_L8_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_52... |
#!/usr/bin/python
import sys, hashlib
def toNID(name):
hashstr = hashlib.sha1(name.encode()).hexdigest().upper()
return "0x" + hashstr[6:8] + hashstr[4:6] + hashstr[2:4] + hashstr[0:2]
if __name__ == "__main__":
assert(toNID("sceKernelCpuSuspendIntr") == "0x092968F4")
for name in sys.argv[1:]:
print ("%s: %s"... | ajibawa-2023/Python-Code-Large/train/row_5215 | 7 | 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_5215:Import_L3_C0", "label": "sys import sys, hashlib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0769, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "hashlib... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5215:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5215:Assign_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5215:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5215:Return_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large... |
#!/usr/bin/python
"""
pspbtcnf_editor: An script that add modules from pspbtcnf
"""
import sys, os, re
from getopt import *
from struct import *
BTCNF_MAGIC=0x0F803001
verbose = False
def print_usage():
print ("%s: pspbtcnf.bin [-o output.bin] [-a add_module_name:before_module_name:flag]" %(os.path... | ajibawa-2023/Python-Code-Large/train/row_5216 | 107 | 182 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5216:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 5], "level": 0, "parent": null, "vector": [8, 0, 0.022, 0.0165, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5216:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5216:Expr_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5216:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5216:Assign_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/usr/bin/python
class FakeTime:
def time(self):
return 1225856967.109
import sys, os, struct, gzip, hashlib, StringIO
gzip.time = FakeTime()
def binary_replace(data, newdata, offset):
return data[0:offset] + newdata + data[offset+len(newdata):]
def prx_compress(output, hdr, input, mod_name="", mod_a... | ajibawa-2023/Python-Code-Large/train/row_5217 | 56 | 82 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5217:ClassDef_L3_C0", "label": "FakeTime", "type": "class", "loc": [3, 5], "level": 0, "parent": null, "vector": [3, 0, 0.0488, 0.0366, 0, 0.66, 0.0, 425, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "FakeTime", "arg_names": [], "import_names": [], "rhs_call_name": "", "a... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5217:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5217:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5217:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_5217:Return_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#coding:utf8
'''
google appengine album
author: smallfish <smallfish.xy@gmail.com>
create: 2009-08-04
'''
import os
import wsgiref.handlers
import logging
import web
from mako.template import Template
from mako.lookup import TemplateLookup
import google.appengine.ext import db
import google.appengine.api impor... | ajibawa-2023/Python-Code-Large/train/row_5218 | 17 | 29 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5218:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 7], "level": 0, "parent": null, "vector": [8, 0, 0.1552, 0.2069, 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_5218:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5218:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5218:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5218:Return_L24_C4"}, {"f": "ajibawa-2023/Python-Code-L... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _checkconn.py: Check connect to a specified server.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a cop... | ajibawa-2023/Python-Code-Large/train/row_5219 | 17 | 72 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5219:Assign_L13_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.1806, 0.0139, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5219:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5219:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5219:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5219:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _update.py: Fetch the latest data file.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU... | ajibawa-2023/Python-Code-Large/train/row_5220 | 47 | 150 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5220:Assign_L13_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.0867, 0.0067, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5220:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5220:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5220:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5220:Assign_L82_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# language.py : Language utilities used in GUI module.
#
# Copyleft (C) 2013 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have... | ajibawa-2023/Python-Code-Large/train/row_5221 | 22 | 108 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5221:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.1574, 0.0093, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5221:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5221:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5221:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5221:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '../pyqt\util_ui.ui'
#
# Created: Wed Jan 22 13:03:09 2014
# by: PyQt4 UI code generator 4.10.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
excep... | ajibawa-2023/Python-Code-Large/train/row_5222 | 318 | 337 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5222:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0297, 0.003, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5222:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5222:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5222:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5222:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/... |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created: 周三 1月 22 13:03:07 2014
# by: The Resource Compiler for PyQt (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x04\xf8\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48... | ajibawa-2023/Python-Code-Large/train/row_5223 | 9 | 3,576 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5223:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0028, 0.0003, 0, 0.66, 0.0, 154, 0, 1, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names": ["QtCo... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5223:FunctionDef_L3570_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5223:Expr_L3571_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5223:FunctionDef_L3573_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5223:Expr_L3574_C4"}] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# qdialog_slots.py : Qt slots response to signals on the main dialog.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. Yo... | ajibawa-2023/Python-Code-Large/train/row_5224 | 137 | 346 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5224:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0491, 0.0029, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5224:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5224:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5224:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5224:Assign_L60_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __list_trans.py : Name of items from the function list to be localized
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3.... | ajibawa-2023/Python-Code-Large/train/row_5225 | 3 | 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_5225:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.3617, 0.0213, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [] |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# _pyuic4.py : Tools update the UI code from UI design
#
# Copyleft (C) 2013 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have rec... | ajibawa-2023/Python-Code-Large/train/row_5226 | 12 | 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_5226:Import_L17_C0", "label": "os import os", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.5312, 0.0312, 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_5226:For_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5226:For_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5226:For_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_5226:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5226... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _pylupdate4.py : Tools to update the language files for UI
#
# Copyleft (C) 2013 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
... | ajibawa-2023/Python-Code-Large/train/row_5227 | 5 | 22 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5227:Import_L17_C0", "label": "os import os", "type": "import", "loc": [17, 17], "level": 0, "parent": null, "vector": [1, 0, 0.7727, 0.0455, 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_5227:For_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5227:For_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5227:For_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_5227:If_L21_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5227:If_... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# qdialog_d.py : Operations on the main dialog.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have receiv... | ajibawa-2023/Python-Code-Large/train/row_5228 | 181 | 440 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5228:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0386, 0.0023, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5228:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5228:Expr_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5228:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5228:Assign_L92_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __doc__.py : Document in reST format of gui module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a cop... | ajibawa-2023/Python-Code-Large/train/row_5229 | 1 | 218 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5229:Expr_L12_C0", "label": "expression", "type": "expression", "loc": [12, 218], "level": 0, "parent": null, "vector": [8, 0, 0.5275, 0.9495, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno... | [] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# hostsutil.py : Main entrance to GUI module of Hosts Setup Utility.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You... | ajibawa-2023/Python-Code-Large/train/row_5230 | 42 | 128 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5230:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.1328, 0.0078, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5230:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5230:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5230:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5230:Assign_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# qdialog_ui.py : Draw the Graphical User Interface.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have r... | ajibawa-2023/Python-Code-Large/train/row_5231 | 284 | 577 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5231:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0295, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5231:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5231:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5231:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5231:Assign_L67_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __init__.py : Declare modules to be called in gui module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received... | ajibawa-2023/Python-Code-Large/train/row_5232 | 2 | 15 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5232:ImportFrom_L13_C0", "label": "from hostsutil import HostsUtil", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.8667, 0.0667, 0, 0.66, 0.0, 195, 0, 1, 0, 0, 195, 0, 0], "semantic": {"name": "hostsutil", "arg_names": [], "import_nam... | [] |
# -*- coding: utf-8 -*-
# Resource object code
#
# Created: 周三 1月 22 13:03:07 2014
# by: The Resource Compiler for PyQt (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x01\x57\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48... | ajibawa-2023/Python-Code-Large/train/row_5233 | 9 | 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_5233:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.068, 0.0068, 0, 0.66, 0.0, 154, 0, 1, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names": ["QtCor... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5233:FunctionDef_L141_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5233:Expr_L142_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5233:FunctionDef_L144_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5233:Expr_L145_C4"}] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _checkupdate.py: Check update info of the latest data file.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have receiv... | ajibawa-2023/Python-Code-Large/train/row_5234 | 24 | 77 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5234:Assign_L13_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.1688, 0.013, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5234:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5234:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5234:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5234:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _make.py: Make a new hosts file.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU Genera... | ajibawa-2023/Python-Code-Large/train/row_5235 | 40 | 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_5235:Assign_L13_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.0963, 0.0074, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5235:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5235:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5235:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5235:Assign_L79_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# _build.py : Tools to make packages for different platforms
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
... | ajibawa-2023/Python-Code-Large/train/row_5236 | 152 | 344 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5236:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0494, 0.0029, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5236:If_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5236:Assign_L81_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5236:If_L80_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5236:Assign_L82_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_523... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# retrievedata.py : Retrieve data from the hosts data file.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# ... | ajibawa-2023/Python-Code-Large/train/row_5237 | 91 | 317 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5237:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0536, 0.0032, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5237:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5237:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5237:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5237:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# makehosts.py: Make a hosts file.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU Genera... | ajibawa-2023/Python-Code-Large/train/row_5238 | 102 | 208 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5238:Assign_L13_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.0625, 0.0048, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5238:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5238:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5238:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5238:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __doc__.py : Document in reST format of util module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a co... | ajibawa-2023/Python-Code-Large/train/row_5239 | 1 | 38 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5239:Expr_L12_C0", "label": "expression", "type": "expression", "loc": [12, 38], "level": 0, "parent": null, "vector": [8, 0, 0.6579, 0.7105, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot... | [] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __init__.py: Declare modules to be called in util module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received... | ajibawa-2023/Python-Code-Large/train/row_5240 | 4 | 17 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5240:ImportFrom_L13_C0", "label": "from common import CommonUtil", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.7647, 0.0588, 0, 0.66, 0.0, 718, 0, 1, 0, 0, 718, 0, 0], "semantic": {"name": "common", "arg_names": [], "import_names": ... | [] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# common.py : Basic utilities used by Hosts Setup Utility.
#
# Copyleft (C) 2013 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# h... | ajibawa-2023/Python-Code-Large/train/row_5241 | 92 | 256 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5241:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0664, 0.0039, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5241:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5241:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5241:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5241:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __doc__.py Document in reST format of tui module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy ... | ajibawa-2023/Python-Code-Large/train/row_5243 | 1 | 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_5243:Expr_L12_C0", "label": "expression", "type": "expression", "loc": [12, 55], "level": 0, "parent": null, "vector": [8, 0, 0.6091, 0.8, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotati... | [] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# hostsutil.py: Start a TUI session of `Hosts Setup Utility`.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have receiv... | ajibawa-2023/Python-Code-Large/train/row_5244 | 74 | 177 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5244:Assign_L13_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.0734, 0.0056, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5244:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5244:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5244:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5244:Assign_L61_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# curses_d.py: Operations for TUI window.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU... | ajibawa-2023/Python-Code-Large/train/row_5245 | 221 | 511 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5245:Assign_L13_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.0254, 0.002, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rhs... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5245:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5245:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5245:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5245:Assign_L127_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __init__.py: Declare modules to be called in tui module.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received ... | ajibawa-2023/Python-Code-Large/train/row_5246 | 2 | 15 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5246:ImportFrom_L13_C0", "label": "from hostsutil import HostsUtil", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.8667, 0.0667, 0, 0.66, 0.0, 195, 0, 1, 0, 0, 195, 0, 0], "semantic": {"name": "hostsutil", "arg_names": [], "import_nam... | [] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# curses_ui.py: Draw TUI using curses.
#
# Copyleft (C) 2014 - huhamhire <me@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy of the GNU Ge... | ajibawa-2023/Python-Code-Large/train/row_5247 | 267 | 584 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5247:Assign_L13_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [13, 13], "level": 0, "parent": null, "vector": [14, 0, 0.0223, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5247:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5247:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5247:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5247:Assign_L122_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# __version__.py : Version info for Hosts Setup Tool.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have ... | ajibawa-2023/Python-Code-Large/train/row_5248 | 3 | 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_5248:Assign_L17_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.8947, 0.0526, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "... | [] |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# hoststool.py : Launch the utility.
#
# Copyleft (C) 2014 - huhamhire hosts team <hosts@huhamhire.com>
# =====================================================================
# Licensed under the GNU General Public License, version 3. You should
# have received a copy o... | ajibawa-2023/Python-Code-Large/train/row_5249 | 55 | 155 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5249:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.1097, 0.0065, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5249:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5249:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5249:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5249:FunctionDef_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
#! /usr/local/bin/python
import os
import sys
#BASIC SCRIPT PRESETS
width = 320 # Width of your game in 'true' pixels (ignoring zoom)
height = 240 # Height of your game in 'true' pixels
zoom = 2 # How chunky you want your pixels
src = 'src/' # Name of the source folder under the project folder (if there ... | ajibawa-2023/Python-Code-Large/train/row_5250 | 125 | 146 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5250:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0068, 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_5250:If_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5250:Expr_L17_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5250:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5250:Assign_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5250... |
#! /usr/local/bin/python
import os
import sys
#BASIC SCRIPT PRESETS
width = 320 # Width of your game in 'true' pixels (ignoring zoom)
height = 240 # Height of your game in 'true' pixels
zoom = 2 # How chunky you want your pixels
src = 'src/' # Name of the source folder under the project folder (if there ... | ajibawa-2023/Python-Code-Large/train/row_5251 | 125 | 146 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5251:Import_L2_C0", "label": "os import os", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0068, 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_5251:If_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5251:Expr_L17_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5251:Try_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5251:Assign_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5251... |
#====================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you ... | ajibawa-2023/Python-Code-Large/train/row_5252 | 38 | 74 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5252:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5252:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5252:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5252:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5252:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
#!/usr/bin/env python
# -*- encoding:utf8 -*-
# protoc-gen-erl
# Google's Protocol Buffers project, ported to lua.
# https://code.google.com/p/protoc-gen-lua/
#
# Copyright (c) 2010 , 林卓毅 (Zhuoyi Lin) netsnail@gmail.com
# All rights reserved.
#
# Use, modification and distribution are subject to the "New BSD License"
#... | ajibawa-2023/Python-Code-Large/train/row_5253 | 295 | 450 | 15 | ["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"] | [{"id": "ajibawa-2023/Python-Code-Large/train/row_5253:Import_L13_C0", "label": "sys import sys", "type": "import", "loc": [13, 13], "level": 0, "parent": null, "vector": [1, 0, 0.0289, 0.0022, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_nam... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5253:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5253:Import_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5253:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5253:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5253:... |
#!/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_5254 | 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_5254: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": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5254:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5254:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5254:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5254:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code-Lar... |
#!/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_5255 | 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_5255: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": [], "rh... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5255:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5255:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5255:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5255:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
# 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_5257 | 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_5257: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_5257:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5257:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5257:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5257:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r... |
"""
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_5258 | 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_5258: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_5258:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5258:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5258:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5258:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
"""
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_5259 | 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_5259: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": "", "annotati... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5259:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5259:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5259:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5259:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Larg... |
# 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_5261 | 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_5261: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": "", "annotat... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5261:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5261:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5261:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5261:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train... |
# 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_5262 | 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_5262: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5262:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5262:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5262:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5262:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
# 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_5263 | 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_5263: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5263:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5263:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5263:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5263:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Larg... |
# 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_5264 | 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_5264: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5264:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5264:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5264:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5264:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Code-La... |
#!/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_5266 | 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_5266: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_5266:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5266:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5266:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5266:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Larg... |
# 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_5267 | 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_5267: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5267:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5267:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5267:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5267:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train... |
__version__ = "1.0c2"
| ajibawa-2023/Python-Code-Large/train/row_5269 | 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_5269: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_5270 | 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_5270: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5270:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5270:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5270:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5270:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5270... |
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_5271 | 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_5271: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_cal... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5271:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5271:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5271:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_5271:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
# 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_5272 | 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_5272: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": "", "annotat... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5272:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5272:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5272:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5272:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Lar... |
# 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_5274 | 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_5274: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5274:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5274:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5274:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5274:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/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_5275 | 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_5275: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5275:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5275:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5275:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5275:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Larg... |
# 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_5277 | 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_5277: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5277:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5277:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5277:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5277:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Larg... |
# 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_5278 | 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_5278: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": ["ap... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5278:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5278:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5278:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5278:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-La... |
# 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_5279 | 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_5279: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": "", "annota... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5279:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5279:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5279:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5279:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large/tra... |
#!/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_5281 | 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_5281: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": "", "annot... | [{"f": "ajibawa-2023/Python-Code-Large/train/row_5281:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5281:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_5281:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_5281:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.