code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
import bpy data_dictionary = '/mnt/storage/Projects/3dconomy/data/' datafile = 'us_data.txt' # datafile = 'cdn_data.txt' # datafile = 'eu_data.txt' def InitFunction(): line_data_list = [] dataset = open(data_dictionary + datafile) for line in dataset: items = line.split(",") line_data_list.append(items) dat...
ajibawa-2023/Python-Code-Large/train/row_4595
39
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4595:Import_L1_C0", "label": "bpy import bpy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 0.0127, 0, 0.66, 0.0, 573, 0, 1, 0, 0, 573, 0, 0], "semantic": {"name": "bpy", "arg_names": [], "import_names": ["bpy"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4595:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4595:Assign_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4595:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4595:Assign_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
import os, sys import OpenEXR import Imath import math import time import numpy as np from numpy import array import myextension from readEXR import * from writeEXR import * from MRF_Utils import * # this function will return the indices of the new localImage, whose area is 1.5 times bigger than the bounding box of...
ajibawa-2023/Python-Code-Large/train/row_4596
65
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4596:Import_L1_C0", "label": "os import os, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0069, 0.0069, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4596:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4596:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4596:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4596:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import numpy as np def positionFeature(labels, Nth): tmp = np.where(labels == Nth) return np.mean(tmp[0]),np.std(tmp[0]),np.mean(tmp[1]),np.std(tmp[1]) def colorFeature(L,labels, Nth): tmp = np.where(labels == Nth, L) return np.mean(tmp),np.std(tmp) def features( L,labels, Nth )...
ajibawa-2023/Python-Code-Large/train/row_4597
61
100
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4597:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.02, 0.01, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4597:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4597:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4597:FunctionDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4597:Return_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
import myextension import numpy as np import ctypes a = np.arange(4*3*2).reshape(4,3,2) * 5.0 b = np.arange(4*3*2).reshape(4,3,2) * 1.0 # double array ! #print myextension.MRF(a,b) a = np.arange(4*3).reshape(4,3) * 1.1 b = np.arange(4*3).reshape(4,3) * 5.2 # double array ! c = np.arange(4*3).reshape(4,3) *...
ajibawa-2023/Python-Code-Large/train/row_4598
9
21
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4598:Import_L1_C0", "label": "myextension import myextension", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0476, 0, 0.66, 0.0, 54, 0, 1, 0, 0, 54, 0, 0], "semantic": {"name": "myextension", "arg_names": [], "import_names": ["m...
[]
import numpy as N from numpy.ctypeslib import load_library from numpyctypes import c_ndarray import ctypes as C mylib = load_library('libMRF', '../cpp/') # '.' is the directory of the C++ lib def MRF(array1, array2): arg1 = c_ndarray(array1, dtype=N.double, ndim = 3) arg2 = c_ndarray(array2, dtype=N.d...
ajibawa-2023/Python-Code-Large/train/row_4599
48
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_4599:Import_L1_C0", "label": "numpy import N", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.013, 0.013, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["N"], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4599:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4599:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4599:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4599:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
#! /opt/local/bin/python2.6 import numpy as np import time import sys from rwEXR import * # 3744 23.9 # 5616 35.8 # distortion correction parameters in rad # 0.207029529537 0.0422547753997 entrancePixel = (2323,5615-2427) #5 entrancePixel = (2622,5615-1935) #6 entrancePixel = (3123,5615-1859) #7 entrancePixel = (...
ajibawa-2023/Python-Code-Large/train/row_4600
60
154
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4600:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.013, 0.0065, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4600:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4600:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4600:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4600:Return_L39_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#! /opt/local/bin/python2.6 import numpy as np import time import sys from rwEXR import * # 3744 23.9 # 5616 35.8 # distortion correction parameters in rad # 0.207029529537 0.0422547753997 entrancePixel = (3473,5615-3043) #entrancePixel = (1848,5615-2341) #center = (1867.5,5616-2979.5) #center = (1884.18,2834.89...
ajibawa-2023/Python-Code-Large/train/row_4601
44
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4601:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.018, 0.009, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4601:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4601:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4601:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4601:Return_L30_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#! /opt/local/bin/python2.6 import numpy as np import time import sys from rwEXR import * # 3744 23.9 # 5616 35.8 # distortion correction parameters in rad # 0.207029529537 0.0422547753997 entrancePixel = (3479,5615-2224) #1 entrancePixel = (3341,5615-2345) #2 #entrancePixel = (3127,5615-2538) #3 physicCenter = (...
ajibawa-2023/Python-Code-Large/train/row_4602
52
144
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4602:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0139, 0.0069, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4602:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4602:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4602:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4602:Return_L32_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#! /opt/local/bin/python2.6 import numpy as np import time import sys from rwEXR import * # 3744 23.9 # 5616 35.8 # distortion correction parameters in rad # 0.207029529537 0.0422547753997 entrancePixel = (3341,5615-2345) #entrancePixel = (1867.5 + 300,2979.5) center = (1867.5,2979,5) f = 8 d = 89+79 T1 = np....
ajibawa-2023/Python-Code-Large/train/row_4603
39
95
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4603:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0211, 0.0105, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4603:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4603:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4603:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4603:Return_L35_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#! /opt/local/bin/python2.6 import numpy as np import time import sys from rwEXR import * # 3744 23.9 # 5616 35.8 # distortion correction parameters in rad # 0.207029529537 0.0422547753997 entrancePixel = (2323,5615-2427) #5 entrancePixel = (2622,5615-1935) #6 entrancePixel = (3123,5615-1859) #7 entrancePixel = (...
ajibawa-2023/Python-Code-Large/train/row_4604
60
154
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4604:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.013, 0.0065, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4604:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4604:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4604:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4604:Return_L39_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#! /opt/local/bin/python2.6 import numpy as np import time import sys from rwEXR import * # 3744 23.9 # 5616 35.8 # distortion correction parameters in rad # 0.207029529537 0.0422547753997 entrancePixel = (3341,5615-2345) #entrancePixel = (1848,5615-2341) physicCenter = (1867.5,5615-2979.5) #center = (1884.18,28...
ajibawa-2023/Python-Code-Large/train/row_4605
50
131
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4605:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0153, 0.0076, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4605:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4605:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4605:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4605:Return_L30_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import OpenEXR import Imath import math import numpy as np def readExr(exrfile): exrfile = str(exrfile) file = OpenEXR.InputFile(exrfile) pt = Imath.PixelType(Imath.PixelType.FLOAT) dw = file.header()['dataWindow'] size = (dw.max.x - dw.min.x + 1, dw.max.y - dw....
ajibawa-2023/Python-Code-Large/train/row_4606
16
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4606:Import_L1_C0", "label": "OpenEXR import OpenEXR", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0323, 0.0323, 0, 0.66, 0.0, 661, 0, 1, 0, 0, 661, 0, 0], "semantic": {"name": "OpenEXR", "arg_names": [], "import_names": ["OpenEXR"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4606:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4606:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4606:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4606:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import OpenEXR import Imath import math import time import numpy as np def writeEXR(fileName,outputR,outputG,outputB, sz): print "Writing "+fileName (strR, strG, strB) = [Channel.tostring() for Channel in (outputR, outputG, outputB)] patchOut = OpenEXR.OutputFile(fileName, OpenEXR.Header(sz[...
ajibawa-2023/Python-Code-Large/train/row_4607
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4607:Import_L1_C0", "label": "OpenEXR import OpenEXR", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0714, 0, 0.66, 0.0, 661, 0, 1, 0, 0, 661, 0, 0], "semantic": {"name": "OpenEXR", "arg_names": [], "import_names": ["OpenEXR"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4607:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4607:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4607:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4607:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
import os, sys import OpenEXR import Imath import math import time import numpy from numpy import array np = numpy import myextension def readExr(exrfile): exrfile = str(exrfile) file = OpenEXR.InputFile(exrfile) pt = Imath.PixelType(Imath.PixelType.FLOAT) dw = file.header()['dataWindo...
ajibawa-2023/Python-Code-Large/train/row_4608
194
412
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4608:Import_L1_C0", "label": "os import os, sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0024, 0.0024, 0, 0.66, 0.0, 688, 0, 2, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4608:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4608:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4608:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4608:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-L...
env = Environment() DEBUG = ARGUMENTS.get('DEBUG','0') #env.Replace(CFLAGS=['-O2','-Wall','-ansi','-pedantic']) #env.Replace(CFLAGS=['-O2','-Wall','-ansi','-pedantic']) env.Replace(CPPPATH=['/opt/local/Library/Frameworks/Python.framework/Versions/2.6/include','/opt/local/include']) if DEBUG=='1': print "DEBUG" ...
ajibawa-2023/Python-Code-Large/train/row_4610
9
23
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4610:Assign_L1_C0", "label": "env = Environment()", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0435, 0.0435, 0, 0.66, 0.0, 803, 3, 0, 0, 0, 947, 10, 1], "semantic": {"name": "env", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4610:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4610:Expr_L12_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4610:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4610:Expr_L13_C3"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4610:If...
""" Basic functions and utilities """ class RepoConfig(object): def __init__(self): self.repos = {} self.defaults = {} self.autoUpdatePath = True def get3(self, opt, repo, path): if not (repo, opt) in self.repos: return self.defaults.get(opt) keys, map = self.repos[repo, opt] for k...
ajibawa-2023/Python-Code-Large/train/row_4611
67
99
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4611:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 3], "level": 0, "parent": null, "vector": [8, 0, 0.0202, 0.0303, 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_4611:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4611:FunctionDef_L6_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4611:FunctionDef_L6_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4611:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import os, sys, unittest import pysvn from mock import Mock from svncommitchecker import CommitContext from svncommitchecker import CommitChecker from scmtools import RepoConfig class DummyClass(object): pass class CommitContextTests(unittest.TestCase): def testBase0(self): ctx = CommitContext() ctx.d('deb...
ajibawa-2023/Python-Code-Large/train/row_4612
79
142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4612:Import_L1_C0", "label": "os import os, sys, unittest", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.007, 0.007, 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_4612:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4612:FunctionDef_L12_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4612:FunctionDef_L12_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4612:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code...
import os, sys, unittest, inspect from scmtools import RepoConfig, LoadRepoConfig from scmtools import VersionString, FileExtMatch from scmtools import FileExt class SCMToolsTests(unittest.TestCase): def testFileExtMatch(self): assert FileExtMatch(None, 'java') assert FileExtMatch('', 'java') assert File...
ajibawa-2023/Python-Code-Large/train/row_4613
76
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_4613:Import_L1_C0", "label": "os import os, sys, unittest\u2026", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0055, 0.0055, 0, 0.66, 0.0, 688, 0, 4, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4613:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4613:FunctionDef_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4613:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4613:FunctionDef_L28_C2"}, {"f": "ajibawa-2023/Python-Code-...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Utility # import os, time, sys import socket from cStringIO import StringIO from traceback import print_tb, print_stack def mkdir_p(dir): if os.path.isdir(dir): pass elif os.path.isfile(dir): raise OSError("a file with same name as the desired " \ ...
ajibawa-2023/Python-Code-Large/train/row_4616
96
153
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4616:Import_L9_C0", "label": "os import os, time, sys", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0065, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "time", "s...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4616:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4616:If_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4616:If_L16_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4616:If_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_46...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Debug info # __all__ = ( 'errorInfo', 'svcInfo', 'returnInfo',) import constants as CC errorInfo = {} svcInfo = {} returnInfo = {} def I(d, id): d[getattr(CC, id)] = id def EI(id): I(errorInfo, id) def SI(id): I(svcInfo, id) def RI(id): I(returnInf...
ajibawa-2023/Python-Code-Large/train/row_4617
33
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4617:Assign_L9_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [9, 10], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0351, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 8, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4617:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4617:Assign_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4617:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4617:Expr_L22_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Protocol # #from cPickle import loads, dumps, HIGHEST_PROTOCOL from fastmap import _loads as loads, _dumps as dumps from struct import pack, unpack from zlib import compress as _compress, decompress as _dcompress import socket from o3grid import constants a...
ajibawa-2023/Python-Code-Large/train/row_4619
135
205
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4619:ImportFrom_L10_C0", "label": "from fastmap import loads, dumps", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0488, 0.0049, 0, 0.66, 0.0, 960, 0, 2, 0, 0, 960, 0, 0], "semantic": {"name": "fastmap", "arg_names": [], "import_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4619:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4619:Assign_L20_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4619:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4619:Assign_L21_C1"}, {"f": "ajibawa-2023/Python-Code-L...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Mission and Job # import threading, time import constants as CC class MissionBase(object): pass class SJobBase(object): pass # ------ # mid - Mission id # jid - Job ID # jobid - Full job ID # mname - Mission name # jname - Job name # ------ class Mission(M...
ajibawa-2023/Python-Code-Large/train/row_4620
75
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4620:Import_L9_C0", "label": "threading import threading, time", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0811, 0.009, 0, 0.66, 0.0, 83, 0, 2, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_names": ["th...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4620:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4620:FunctionDef_L24_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4620:FunctionDef_L24_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4620:Assign_L25_C2"}, {"f": "ajibawa-2023/Python-Code...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # HUB Service # import os import sys import constants as CC from service import ServiceBase from protocol import O3Channel, O3Call from utility import D as _D class HubService(ServiceBase): SVCID = CC.SVC_HUB svcDescription = "HUB Service" svcName = 'HUB' ...
ajibawa-2023/Python-Code-Large/train/row_4621
95
152
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4621:Import_L8_C0", "label": "os import os", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0066, 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_4621:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4621:Assign_L17_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4621:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4621:Assign_L18_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Base service module # import threading import socket import cPickle as pickle import struct import os import constants as CC from protocol import CreateMessage0, GetMessageFromSocket, CreateMessage class ServiceException(Exception): def __init__(self, *pa...
ajibawa-2023/Python-Code-Large/train/row_4622
48
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4622:Import_L9_C0", "label": "threading import threading", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1154, 0.0128, 0, 0.66, 0.0, 83, 0, 1, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_names": ["threadi...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4622:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4622:FunctionDef_L20_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4622:FunctionDef_L20_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4622:Expr_L21_C2"}, {"f": "ajibawa-2023/Python-Code-L...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Auto Configure Policy # import socket import constants as CC class AutoConfigPolicy(object): def __init__(self, service): self.service = service self.storageGroup = ['z01', 'z03', 'z15', 'z26'] def autoConfig0(self, channel, group, hostid): #if not ...
ajibawa-2023/Python-Code-Large/train/row_4624
21
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4624:Import_L9_C0", "label": "socket import socket", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.12, 0.0133, 0, 0.66, 0.0, 687, 0, 1, 0, 0, 687, 0, 0], "semantic": {"name": "socket", "arg_names": [], "import_names": ["socket"], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4624:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4624:FunctionDef_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4624:FunctionDef_L13_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4624:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-Code...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Autoconfig server in O3 grids # import threading import sys from service import ServiceBase import constants as CC class AutoConfigService(ServiceBase): SVCID = CC.SVC_AUTOCONFIG svcDescription = "Auto config service" svcName = 'AUTOCONFIG' svcVersion =...
ajibawa-2023/Python-Code-Large/train/row_4625
22
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_4625:Import_L9_C0", "label": "threading import threading", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.225, 0.025, 0, 0.66, 0.0, 83, 0, 1, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_names": ["threading...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4625:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4625:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4625:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4625:Assign_L17_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Name server in O3 grids # import threading from service import ServiceBase import constants as CC class NameService(ServiceBase): SVCID = CC.SVC_NAMES svcDescription = "Name service" svcName = 'NAMES' svcVersion = '0.0.1.0' def __init__(self, server):...
ajibawa-2023/Python-Code-Large/train/row_4627
53
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4627:Import_L9_C0", "label": "threading import threading", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.1154, 0.0128, 0, 0.66, 0.0, 83, 0, 1, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_names": ["threadi...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4627:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4627:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4627:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4627:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Warehouse server in O3 grids # from __future__ import with_statement WAREHOUSE_VERSION = '0.0.0.28' import sys, os, time import threading from random import choice, random import constants as CC from service import ServiceBase from protocol import O3Channe...
ajibawa-2023/Python-Code-Large/train/row_4628
458
795
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4628:ImportFrom_L9_C0", "label": "from __future__ import with_statement", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.0113, 0.0013, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4628:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4628:FunctionDef_L27_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4628:FunctionDef_L27_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4628:Assign_L28_C2"}, {"f": "ajibawa-2023/Python-Code...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Constants # DEFAULT_PORT = 50333 DEFAULT_LOG_PORT = 50332 DEFAULT_WAREHOUSE_PORT = 50333 DEFAULT_BASE = '/is/app/o3' # ==== SVC_SYSTEM = 1 SVC_BASE = 2 SVC_SCHEDULE = 1003 SVC_SCHE = SVC_SCHEDULE SVC_WORKSPACE = 1004 SVC_WS = SVC_WORKSPACE SVC_FILESYSTEM =...
ajibawa-2023/Python-Code-Large/train/row_4629
77
112
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4629:Assign_L9_C0", "label": "DEFAULT_PORT =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.0804, 0.0089, 0, 0.66, 0.0, 924, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "DEFAULT_PORT", "arg_names": [], "import_names": [], "r...
[]
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # DB Layer for Warehouse # __all__ = [ 'WarehouseDB', 'Entity', 'Room', ] from sqlalchemy import * import time import constants as CC from utility import appendinmap, removeinmap from utility import sizeK class Room(object): pass class Entity(object): pa...
ajibawa-2023/Python-Code-Large/train/row_4630
164
243
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4630:Assign_L9_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [9, 13], "level": 0, "parent": null, "vector": [14, 0, 0.0453, 0.0206, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4630:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4630:FunctionDef_L28_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4630:FunctionDef_L28_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4630:Assign_L29_C2"}, {"f": "ajibawa-2023/Python-Code...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Config # import os def GetConfigCode(name): paths = [ '%s/%s' % ('/is/app/o3/etc', name), name ] for fn in paths: if os.path.isfile(fn): break fin = file(fn, 'r') configcode = fin.read() fin.close() return configcode def Load(name): confi...
ajibawa-2023/Python-Code-Large/train/row_4631
13
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_4631:Import_L9_C0", "label": "os import os", "type": "import", "loc": [9, 9], "level": 0, "parent": null, "vector": [1, 0, 0.3214, 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_4631:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4631:Assign_L12_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4631:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4631:For_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # SNIP # # ==Description # Simple space stroage client # import socket import constants as CC import cStringIO as StringIO from protocol import CreateMessage, GetMessageFromSocket, O3Space, O3Call class RemoteSnipClient(object): def __init__(self, space): ...
ajibawa-2023/Python-Code-Large/train/row_4632
64
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4632:Import_L12_C0", "label": "socket import socket", "type": "import", "loc": [12, 12], "level": 0, "parent": null, "vector": [1, 0, 0.1319, 0.011, 0, 0.66, 0.0, 687, 0, 1, 0, 0, 687, 0, 0], "semantic": {"name": "socket", "arg_names": [], "import_names": ["socket"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4632:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4632:FunctionDef_L18_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4632:FunctionDef_L18_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4632:Assign_L19_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python from o3grid import constants as CC BASE = '/is/app/o3' def B(p, b = BASE): return '%s/%s' % (b, p) common = { 'name': 'z00', 'id': 'z00', 'zone': 'o3dev', 'entry': ('10.6.32.197', CC.DEFAULT_PORT), 'base': BASE, 'names': { 'HUB': ('10.6.32.197', CC.DEFAULT_PORT), 'NAMES': ('10.6.32.197',...
ajibawa-2023/Python-Code-Large/train/row_4633
12
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4633:ImportFrom_L3_C0", "label": "from o3grid import CC", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0145, 0, 0.66, 0.0, 791, 0, 1, 0, 0, 791, 0, 0], "semantic": {"name": "o3grid", "arg_names": [], "import_names": ["CC"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4633:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4633:Return_L7_C1"}]
#!python2.5 import os from o3grid.service import BaseService, EchoService from o3grid.hub import HubService from o3grid.baseserver import ServerBase from o3grid import config from o3grid.utility import D from o3grid.protocol import O3Channel from o3grid import constants as CC def readfile(fn): fin = file(fn, 'r') ...
ajibawa-2023/Python-Code-Large/train/row_4634
28
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_4634:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0789, 0.0263, 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_4634:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4634:Assign_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4634:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4634:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code-L...
import socket import time fout = file('/is/app/o3/log/o3.log', 'a') sin = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0) sin.bind(('0.0.0.0', 50332)) while True: try: buf = sin.recv(300) log = '%s %s' % (time.strftime('%m%d %H:%M:%S'), buf) fout.write(log) fout.write('\n') fout.flush() print log...
ajibawa-2023/Python-Code-Large/train/row_4635
15
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4635:Import_L1_C0", "label": "socket import socket", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0385, 0, 0.66, 0.0, 687, 0, 1, 0, 0, 687, 0, 0], "semantic": {"name": "socket", "arg_names": [], "import_names": ["socket"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4635:While_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4635:Try_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4635:Try_L10_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4635:Assign_L11_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_463...
#!/usr/bin/python import pprint from o3grid import constants as CC from o3grid.protocol import O3Call, O3Channel import time res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'FLUSHDB') pprint.pprint(res)
ajibawa-2023/Python-Code-Large/train/row_4636
6
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4636:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.3, 0.1, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs_call_...
[]
from o3lib import fs import Queue queue = Queue.Queue() fs.O3EntityReader(queue, label = '0', node = 'p-dx69', name = 'test/TEST.iz0', addr = '10.6.39.218', entityid = 4498) fout = file('/tmp/TEST_ER01', 'wb') while True: c = queue.get() if not c: break print len(c) fout.write(c) fout.close()
ajibawa-2023/Python-Code-Large/train/row_4637
11
23
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4637:ImportFrom_L1_C0", "label": "from o3lib import fs", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0435, 0, 0.66, 0.0, 816, 0, 1, 0, 0, 816, 0, 0], "semantic": {"name": "o3lib", "arg_names": [], "import_names": ["fs"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4637:While_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4637:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4637:While_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4637:If_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4...
#!/usr/bin/python import pprint,sys from o3grid import constants as CC from o3grid.protocol import O3Call res = O3Call(('127.0.0.1', CC.DEFAULT_PORT), CC.SVC_HUB, 'UNLOADO3LIB')
ajibawa-2023/Python-Code-Large/train/row_4638
4
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4638:Import_L3_C0", "label": "pprint import pprint, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.375, 0.125, 0, 0.66, 0.0, 276, 0, 2, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint", "s...
[]
#!/usr/bin/python import pprint,sys import time from o3grid import constants as CC from o3grid.protocol import O3Call import o3testmisc #S = O3Channel() #S.connect(('127.0.0.1', CC.DEFAULT_PORT)) #res = S(CC.SVC_SCHEDULE, 'SUBMITMISSION', # 'ls01', { # 'module': 'logsplit01.logsplit01', # 'missionclass': 'O3Missio...
ajibawa-2023/Python-Code-Large/train/row_4639
12
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4639:Import_L3_C0", "label": "pprint import pprint, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0638, 0.0213, 0, 0.66, 0.0, 276, 0, 2, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4639:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4639:Assign_L18_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4639:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4639:Assign_L20_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_463...
#!/usr/bin/python import pprint import sys from o3grid import constants as CC from o3grid.protocol import O3Channel import time entitys = ['1'] if len(sys.argv) > 1: entitys = [] for x in sys.argv[1:]: try: entitys.append(int(x)) except ValueError: entitys.append(x) S = O3Channel().connect(('localhost'...
ajibawa-2023/Python-Code-Large/train/row_4640
17
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4640:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0882, 0.0294, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4640:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4640:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4640:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4640:For_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4640:F...
#!/usr/bin/python import pprint,sys import time from o3grid import constants as CC from o3grid.protocol import O3Call import o3testmisc if len(sys.argv) >= 2: prefix = sys.argv[1] else: prefix = 'uume/2007/01/18' logname, sep, datename = prefix.partition('/') mid = 'ODT1-%s-%s' % (logname, datename.replace('/', ...
ajibawa-2023/Python-Code-Large/train/row_4641
16
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4641:Import_L3_C0", "label": "pprint import pprint, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0882, 0.0294, 0, 0.66, 0.0, 276, 0, 2, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4641:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4641:Assign_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4641:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4641:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_464...
#!/usr/bin/python import pprint import socket from o3grid import constants as CC from o3grid.protocol import O3Channel, O3Call, GetMessageFromSocket import time #res = O3Call(('p-dx59-in', CC.DEFAULT_PORT), # CC.SVC_SPACE, 'ROOMENTITYSPLIT0', '0', 'plog/uume/2006/12/26/2100', 1024 * 1024 * 256) #pprint.pprint(res) S ...
ajibawa-2023/Python-Code-Large/train/row_4642
12
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4642:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1154, 0.0385, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs...
[]
#!/usr/bin/python import pprint from o3grid import constants as CC from o3grid.protocol import O3Call, O3Channel import time res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'FLUSHDB') pprint.pprint(res)
ajibawa-2023/Python-Code-Large/train/row_4643
6
10
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4643:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.3, 0.1, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs_call_...
[]
#!/usr/bin/python import pprint,sys import time from o3grid import constants as CC from o3grid.protocol import O3Call import o3testmisc #S = O3Channel() #S.connect(('127.0.0.1', CC.DEFAULT_PORT)) #res = S(CC.SVC_SCHEDULE, 'SUBMITMISSION', # 'ls01', { # 'module': 'logsplit01.logsplit01', # 'missionclass': 'O3Missio...
ajibawa-2023/Python-Code-Large/train/row_4644
12
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4644:Import_L3_C0", "label": "pprint import pprint, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0638, 0.0213, 0, 0.66, 0.0, 276, 0, 2, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4644:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4644:Assign_L18_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4644:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4644:Assign_L20_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_464...
#!/usr/bin/python import pprint,sys import time from o3grid import constants as CC from o3grid.protocol import O3Call import o3testmisc if len(sys.argv) >= 2: prefix = sys.argv[1] else: prefix = 'uume/2007/01/18' logname, sep, datename = prefix.partition('/') mid = 'ODT1-%s-%s' % (logname, datename.replace('/', ...
ajibawa-2023/Python-Code-Large/train/row_4645
16
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4645:Import_L3_C0", "label": "pprint import pprint, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0882, 0.0294, 0, 0.66, 0.0, 276, 0, 2, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint", ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4645:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4645:Assign_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4645:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4645:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_464...
#!/usr/bin/python import pprint,sys from o3grid import constants as CC from o3grid.protocol import O3Call res = O3Call(('127.0.0.1', CC.DEFAULT_PORT), CC.SVC_SCHEDULE, 'CLEANMISSION', 'uume02')
ajibawa-2023/Python-Code-Large/train/row_4646
4
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4646:Import_L3_C0", "label": "pprint import pprint, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.375, 0.125, 0, 0.66, 0.0, 276, 0, 2, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint", "s...
[]
#!/usr/bin/python import pprint import sys from o3grid import constants as CC from o3grid.protocol import O3Channel import time entitys = ['1'] if len(sys.argv) > 1: entitys = [] for x in sys.argv[1:]: try: entitys.append(int(x)) except ValueError: entitys.append(x) S = O3Channel().connect(('localhost'...
ajibawa-2023/Python-Code-Large/train/row_4647
17
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4647:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0882, 0.0294, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4647:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4647:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4647:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4647:For_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4647:F...
#!/usr/bin/python import pprint import sys, os from o3grid import constants as CC from o3grid.protocol import O3Call, O3Channel import time if len(sys.argv) >= 2: name = sys.argv[1] else: name = 'plog/uume/2006/12/31/' res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'LISTENTITY0', name) pprint.ppri...
ajibawa-2023/Python-Code-Large/train/row_4648
10
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4648:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0625, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4648:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4648:Assign_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4648:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4648:Assign_L12_C1"}]
#!/usr/bin/python import pprint, sys, time from o3grid import constants as CC from o3grid.protocol import O3Call #S = O3Channel() #S.connect(('127.0.0.1', CC.DEFAULT_PORT)) #res = S(CC.SVC_SCHEDULE, 'SUBMITMISSION', # 'ls01', { # 'module': 'logsplit01.logsplit01', # 'missionclass': 'O3Mission', # }) if len(sys.ar...
ajibawa-2023/Python-Code-Large/train/row_4649
9
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4649:Import_L3_C0", "label": "pprint import pprint, sys, time", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0968, 0.0323, 0, 0.66, 0.0, 276, 0, 3, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["ppr...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4649:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4649:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4649:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4649:Assign_L18_C1"}]
#!/usr/bin/python import pprint import sys, os from o3grid import constants as CC from o3grid.protocol import O3Call, O3Channel import time if len(sys.argv) >= 2: name = sys.argv[1] else: name = 'plog/uume/2006/12/31/' res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'LISTENTITY0', name) pprint.pprin...
ajibawa-2023/Python-Code-Large/train/row_4650
12
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_4650:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4650:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4650:Assign_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4650:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4650:Assign_L12_C1"}]
#!/usr/bin/python import pprint from o3grid import constants as CC from o3grid.protocol import O3Channel import time S = O3Channel().connect(('localhost', CC.DEFAULT_PORT)) res = S(CC.SVC_WAREHOUSE, 'LISTROOM') pprint.pprint(res[2]) for r in res[2]: res = S(CC.SVC_WAREHOUSE, 'CLEANROOM', r[0]) pprint.pprint(res) #...
ajibawa-2023/Python-Code-Large/train/row_4651
11
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4651:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.12, 0.04, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4651:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4651:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4651:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4651:Expr_L14_C1"}]
#!/usr/bin/python import pprint,sys from o3grid import constants as CC from o3grid.protocol import O3Call res = O3Call(('127.0.0.1', CC.DEFAULT_PORT), CC.SVC_HUB, 'UNLOADO3LIB')
ajibawa-2023/Python-Code-Large/train/row_4652
4
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4652:Import_L3_C0", "label": "pprint import pprint, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.375, 0.125, 0, 0.66, 0.0, 276, 0, 2, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint", "s...
[]
import os HOME = os.environ.get('HOME', '/root') O3PROFILEDIR = HOME + '/.o3' def IsDebugMission(missionname): m1 = O3PROFILEDIR + '/_debug/all' m2 = O3PROFILEDIR + '/_debug/' + missionname if os.path.exists(m1): return True if os.path.exists(m2): return True return False
ajibawa-2023/Python-Code-Large/train/row_4653
11
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4653:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0769, 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_4653:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4653:Assign_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4653:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4653:Assign_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python import pprint, sys, time from o3grid import constants as CC from o3grid.protocol import O3Call #S = O3Channel() #S.connect(('127.0.0.1', CC.DEFAULT_PORT)) #res = S(CC.SVC_SCHEDULE, 'SUBMITMISSION', # 'ls01', { # 'module': 'logsplit01.logsplit01', # 'missionclass': 'O3Mission', # }) if len(sys.ar...
ajibawa-2023/Python-Code-Large/train/row_4654
9
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4654:Import_L3_C0", "label": "pprint import pprint, sys, time", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0968, 0.0323, 0, 0.66, 0.0, 276, 0, 3, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["ppr...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4654:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4654:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4654:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4654:Assign_L18_C1"}]
#!/usr/bin/python import pprint import sys, os from o3grid import constants as CC from o3grid.protocol import O3Call, O3Channel import time if len(sys.argv) >= 2: name = sys.argv[1] else: name = 'plog/uume/2006/12/31/' res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'LISTENTITY0', name) pprint.pprin...
ajibawa-2023/Python-Code-Large/train/row_4655
12
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_4655:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4655:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4655:Assign_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4655:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4655:Assign_L12_C1"}]
#!/usr/bin/python import pprint,sys from o3grid import constants as CC from o3grid.protocol import O3Call res = O3Call(('127.0.0.1', CC.DEFAULT_PORT), CC.SVC_SCHEDULE, 'CLEANMISSION', 'uume02')
ajibawa-2023/Python-Code-Large/train/row_4656
4
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4656:Import_L3_C0", "label": "pprint import pprint, sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.375, 0.125, 0, 0.66, 0.0, 276, 0, 2, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint", "s...
[]
#!/usr/bin/python import pprint from o3grid import constants as CC from o3grid.protocol import O3Channel import time S = O3Channel().connect(('localhost', CC.DEFAULT_PORT)) res = S(CC.SVC_WAREHOUSE, 'LISTROOM') pprint.pprint(res[2]) for r in res[2]: res = S(CC.SVC_WAREHOUSE, 'CLEANROOM', r[0]) pprint.pprint(res) #...
ajibawa-2023/Python-Code-Large/train/row_4657
11
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4657:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.12, 0.04, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4657:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4657:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4657:For_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4657:Expr_L14_C1"}]
#!/usr/bin/python import pprint import socket from o3grid import constants as CC from o3grid.protocol import O3Channel, O3Call, GetMessageFromSocket import time #res = O3Call(('p-dx59-in', CC.DEFAULT_PORT), # CC.SVC_SPACE, 'ROOMENTITYSPLIT0', '0', 'plog/uume/2006/12/26/2100', 1024 * 1024 * 256) #pprint.pprint(res) S ...
ajibawa-2023/Python-Code-Large/train/row_4658
12
26
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4658:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1154, 0.0385, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs...
[]
#!/usr/bin/python import pprint import sys, os from o3grid import constants as CC from o3grid.protocol import O3Call, O3Channel import time if len(sys.argv) >= 2: name = sys.argv[1] else: name = 'plog/uume/2006/12/31/' res = O3Call(('p-dx44-in', CC.DEFAULT_PORT), CC.SVC_WAREHOUSE, 'LISTENTITY0', name) pprint.ppri...
ajibawa-2023/Python-Code-Large/train/row_4659
10
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4659:Import_L3_C0", "label": "pprint import pprint", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.1875, 0.0625, 0, 0.66, 0.0, 276, 0, 1, 0, 0, 276, 0, 0], "semantic": {"name": "pprint", "arg_names": [], "import_names": ["pprint"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4659:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4659:Assign_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4659:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4659:Assign_L12_C1"}]
# # O3 base library entry # from o3grid import constants as CC from o3grid.protocol import O3Call, O3Channel __VERSION__ = '0.0.0.2' class O3(object): def __init__(self, workspace): self.ws = workspace self.localnames = {} def saveResult(self, name, value, resnodename = 'RESULT'): respoint = self.localna...
ajibawa-2023/Python-Code-Large/train/row_4660
19
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4660:ImportFrom_L5_C0", "label": "from o3grid import CC", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0286, 0, 0.66, 0.0, 791, 0, 1, 0, 0, 791, 0, 0], "semantic": {"name": "o3grid", "arg_names": [], "import_names": ["CC"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4660:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4660:FunctionDef_L12_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4660:FunctionDef_L12_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4660:Assign_L13_C2"}, {"f": "ajibawa-2023/Python-Code...
from struct import pack as ipack, unpack as iunpack from zlib import decompress as _decompress, MAX_WBITS from o3grid import constants as CC from o3grid.protocol import O3Call, O3Channel import threading import Queue # ------ # File services ... # ------ def O3EntityReader0(queue, **P): try: node = P['node'] ad...
ajibawa-2023/Python-Code-Large/train/row_4661
50
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_4661:ImportFrom_L1_C0", "label": "from struct import ipack, iunpack", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.013, 0.013, 0, 0.66, 0.0, 399, 0, 2, 0, 0, 399, 0, 0], "semantic": {"name": "struct", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4661:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4661:Try_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4661:Try_L14_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4661:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# # Special compress file format for O3 warehouse # # File Structure # Offset Length # 0 4B "ISZ0" (4char) # 4B FLAGS (dowrd) # 4B VERSION (dword) # 4B NOUSED, 0 # 16 4B "HD01" (4char) # 4B NOUSED, 0 # 4B FILE BLOCKS # ...
ajibawa-2023/Python-Code-Large/train/row_4662
56
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4662:Import_L31_C0", "label": "os import os, sys, zlib", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.2627, 0.0085, 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_4662:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4662:Assign_L40_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4662:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4662:Assign_L41_C1"}, {"f": "ajibawa-2023/Python-Code-L...
O3LIB_VERSION = '0.0.0.1'
ajibawa-2023/Python-Code-Large/train/row_4663
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_4663:Assign_L1_C0", "label": "O3LIB_VERSION =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 493, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "O3LIB_VERSION", "arg_names": [], "import_names": [], "rhs_c...
[]
#!python2.5 import os from o3grid.service import BaseService, EchoService from o3grid.hub import HubService from o3grid.baseserver import ServerBase from o3grid import config from o3grid.utility import D CONFIG = 'config.o3' def main(): global CONFIG if os.environ.has_key('O3_CONFIG'): CONFIG = os.environ['O3_C...
ajibawa-2023/Python-Code-Large/train/row_4664
20
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4664:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0968, 0.0323, 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_4664:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4664:If_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4664:If_L15_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4664:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!python2.5 import os from o3grid.service import BaseService, EchoService from o3grid.hub import HubService from o3grid.baseserver import ServerBase from o3grid import config from o3grid.utility import D from o3grid.protocol import O3Channel from o3grid import constants as CC def readfile(fn): fin = file(fn, 'r') ...
ajibawa-2023/Python-Code-Large/train/row_4665
28
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_4665:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0789, 0.0263, 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_4665:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4665:Assign_L14_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4665:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4665:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python from o3grid import constants as CC BASE = '/is/app/o3' def B(p, b = BASE): return '%s/%s' % (b, p) common = { 'name': 'z00', 'id': 'z00', 'zone': 'o3dev', 'entry': ('10.6.32.197', CC.DEFAULT_PORT), 'base': BASE, 'names': { 'HUB': ('10.6.32.197', CC.DEFAULT_PORT), 'NAMES': ('10.6.32.197',...
ajibawa-2023/Python-Code-Large/train/row_4666
12
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4666:ImportFrom_L3_C0", "label": "from o3grid import CC", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0145, 0, 0.66, 0.0, 791, 0, 1, 0, 0, 791, 0, 0], "semantic": {"name": "o3grid", "arg_names": [], "import_names": ["CC"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4666:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4666:Return_L7_C1"}]
#!python2.5 import os from o3grid.service import BaseService, EchoService from o3grid.hub import HubService from o3grid.baseserver import ServerBase from o3grid import config from o3grid.utility import D CONFIG = 'config.o3' def main(): global CONFIG if os.environ.has_key('O3_CONFIG'): CONFIG = os.environ['O3_C...
ajibawa-2023/Python-Code-Large/train/row_4667
20
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4667:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0968, 0.0323, 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_4667:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4667:If_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4667:If_L15_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4667:Assign_L16_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python import os SOURCE='/is/app/o3/base' TARGET='/is/app/o3/o3svn' def GetINodeNumber(path1): try: return os.stat(path1)[1] except: return -1 def IsSameFile(path1, path2): return GetINodeNumber(path1) == GetINodeNumber(path2) def L(str, chr = '|'): print '%s %s' % (chr, str) # === def ScanDir...
ajibawa-2023/Python-Code-Large/train/row_4668
56
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4668:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0333, 0.0111, 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_4668:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4668:Try_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4668:Try_L9_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4668:Return_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# # ==AUTHOR # Sin Yu <scaner@gmail.com> # # ==MODULE # Create WareHouse Index DB # DBURL = 'mysql://o3:o3indexdb@p-dx44-in/o3' import sys sys.path.append('/is/app/o3/lib/o3') from sqlalchemy import * def CreateO3WarehouseDatabase(url): engine = create_engine(url) metadata = BoundMetaData(engine) engine.ech...
ajibawa-2023/Python-Code-Large/train/row_4669
23
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4669:Assign_L9_C0", "label": "DBURL =", "type": "assigned_variable", "loc": [9, 9], "level": 0, "parent": null, "vector": [14, 0, 0.0865, 0.0096, 0, 0.66, 0.0, 354, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "DBURL", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4669:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4669:Assign_L17_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4669:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4669:Assign_L18_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python import os SOURCE='/is/app/o3/base' TARGET='/is/app/o3/o3svn' def GetINodeNumber(path1): try: return os.stat(path1)[1] except: return -1 def IsSameFile(path1, path2): return GetINodeNumber(path1) == GetINodeNumber(path2) def L(str, chr = '|'): print '%s %s' % (chr, str) # === def ScanDir...
ajibawa-2023/Python-Code-Large/train/row_4670
56
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4670:Import_L3_C0", "label": "os import os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0333, 0.0111, 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_4670:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4670:Try_L9_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4670:Try_L9_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4670:Return_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
import os, sys, time import socket import random O3_BASE_PATH = '/is/app/o3' O3_LIB_PATH = ['base', 'lib/o3'] sys.path.extend([ '%s/%s' % (O3_BASE_PATH, lib) for lib in O3_LIB_PATH]) from o3grid import constants as CC from o3grid.protocol import O3Channel, O3Call # ----- def ReadConfigStrFromFile(fn): fin = file(f...
ajibawa-2023/Python-Code-Large/train/row_4671
58
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4671:Import_L1_C0", "label": "os import os, sys, time", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0108, 0.0108, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys", "ti...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4671:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4671:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4671:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4671:Assign_L16_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python codebase = { 'name': 'isgrid0', 'version': '0.0.0.1', 'files': [ 'isgrid0/__init__.py', 'isgrid0/isgrid0.py', ], 'modules': [ 'isgrid0.isgrid0', 'isgrid0', ], }
ajibawa-2023/Python-Code-Large/train/row_4673
1
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4673:Assign_L3_C0", "label": "codebase =", "type": "assigned_variable", "loc": [3, 16], "level": 0, "parent": null, "vector": [14, 0, 0.5938, 0.875, 0, 0.66, 0.0, 227, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "codebase", "arg_names": [], "import_names": [], "rhs_call_...
[]
#!/usr/bin/python codebase = { 'name': 'oneday01', 'version': '0.0.0.1', 'files': [ 'oneday01/__init__.py', 'oneday01/oneday01.py', ], 'modules': [ 'oneday01.oneday01', 'oneday01', ], }
ajibawa-2023/Python-Code-Large/train/row_4675
1
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4675:Assign_L3_C0", "label": "codebase =", "type": "assigned_variable", "loc": [3, 16], "level": 0, "parent": null, "vector": [14, 0, 0.5938, 0.875, 0, 0.66, 0.0, 227, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "codebase", "arg_names": [], "import_names": [], "rhs_call_...
[]
#!/usr/bin/python codebase = { 'name': 'oneday02', 'version': '0.0.0.1', 'files': [ 'oneday02/__init__.py', 'oneday02/oneday02.py', ], 'modules': [ 'oneday02.oneday02', 'oneday02', ], }
ajibawa-2023/Python-Code-Large/train/row_4676
1
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4676:Assign_L3_C0", "label": "codebase =", "type": "assigned_variable", "loc": [3, 16], "level": 0, "parent": null, "vector": [14, 0, 0.5938, 0.875, 0, 0.66, 0.0, 227, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "codebase", "arg_names": [], "import_names": [], "rhs_call_...
[]
#!/usr/bin/python codebase = { 'name': 'isgrid0', 'version': '0.0.0.1', 'files': [ 'isgrid0/__init__.py', 'isgrid0/isgrid0.py', ], 'modules': [ 'isgrid0.isgrid0', 'isgrid0', ], }
ajibawa-2023/Python-Code-Large/train/row_4677
1
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4677:Assign_L3_C0", "label": "codebase =", "type": "assigned_variable", "loc": [3, 16], "level": 0, "parent": null, "vector": [14, 0, 0.5938, 0.875, 0, 0.66, 0.0, 227, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "codebase", "arg_names": [], "import_names": [], "rhs_call_...
[]
#!/usr/bin/python codebase = { 'name': 'uipreducer01', 'version': '0.0.0.1', 'files': [ 'uipreducer01/__init__.py', 'uipreducer01/uipreducer01.py', ], 'modules': [ 'uipreducer01.uipreducer01', 'uipreducer01', ], }
ajibawa-2023/Python-Code-Large/train/row_4678
1
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4678:Assign_L3_C0", "label": "codebase =", "type": "assigned_variable", "loc": [3, 16], "level": 0, "parent": null, "vector": [14, 0, 0.5938, 0.875, 0, 0.66, 0.0, 227, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "codebase", "arg_names": [], "import_names": [], "rhs_call_...
[]
#!/usr/bin/python codebase = { 'name': 'uipreducer01', 'version': '0.0.0.1', 'files': [ 'uipreducer01/__init__.py', 'uipreducer01/uipreducer01.py', ], 'modules': [ 'uipreducer01.uipreducer01', 'uipreducer01', ], }
ajibawa-2023/Python-Code-Large/train/row_4680
1
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4680:Assign_L3_C0", "label": "codebase =", "type": "assigned_variable", "loc": [3, 16], "level": 0, "parent": null, "vector": [14, 0, 0.5938, 0.875, 0, 0.66, 0.0, 227, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "codebase", "arg_names": [], "import_names": [], "rhs_call_...
[]
#!/usr/bin/python codebase = { 'name': 'oneday01', 'version': '0.0.0.1', 'files': [ 'oneday01/__init__.py', 'oneday01/oneday01.py', ], 'modules': [ 'oneday01.oneday01', 'oneday01', ], }
ajibawa-2023/Python-Code-Large/train/row_4681
1
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4681:Assign_L3_C0", "label": "codebase =", "type": "assigned_variable", "loc": [3, 16], "level": 0, "parent": null, "vector": [14, 0, 0.5938, 0.875, 0, 0.66, 0.0, 227, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "codebase", "arg_names": [], "import_names": [], "rhs_call_...
[]
#!/usr/bin/python from o3grid.utility import cout class IsGrid0Job(object): def run(self): cout("I'm iSGrid0.Job") cout("Load IsGrid0.IsGrid0") def generateJob(jobinfo, workspace): return IsGrid0Job()
ajibawa-2023/Python-Code-Large/train/row_4682
7
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4682:ImportFrom_L3_C0", "label": "from o3grid.utility import cout", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.0833, 0, 0.66, 0.0, 120, 0, 1, 0, 0, 120, 0, 0], "semantic": {"name": "o3grid.utility", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4682:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4682:FunctionDef_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4682:FunctionDef_L6_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4682:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python from o3grid.utility import cout class IsGrid0Job(object): def run(self): cout("I'm iSGrid0.Job") cout("Load IsGrid0.IsGrid0") def generateJob(jobinfo, workspace): return IsGrid0Job()
ajibawa-2023/Python-Code-Large/train/row_4683
7
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4683:ImportFrom_L3_C0", "label": "from o3grid.utility import cout", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.0833, 0, 0.66, 0.0, 120, 0, 1, 0, 0, 120, 0, 0], "semantic": {"name": "o3grid.utility", "arg_names": [], "import_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4683:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4683:FunctionDef_L6_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4683:FunctionDef_L6_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4683:Expr_L7_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
import threading, Queue import os, random, time import struct, zlib import cPickle as pickle, cStringIO as StringIO import operator, heapq from o3grid import constants as CC from o3grid.utility import cout, D as _D, D2 as _D2, DE as _E from o3grid.protocol import O3Call, O3Channel, O3Space from o3grid import job impo...
ajibawa-2023/Python-Code-Large/train/row_4684
243
407
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4684:Import_L1_C0", "label": "threading import threading, Queue", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0025, 0.0025, 0, 0.66, 0.0, 83, 0, 2, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4684:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4684:Assign_L28_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4684:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4684:Assign_L29_C1"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python codebase = { 'name': 'oneday02', 'version': '0.0.0.1', 'files': [ 'oneday02/__init__.py', 'oneday02/oneday02.py', ], 'modules': [ 'oneday02.oneday02', 'oneday02', ], }
ajibawa-2023/Python-Code-Large/train/row_4685
1
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4685:Assign_L3_C0", "label": "codebase =", "type": "assigned_variable", "loc": [3, 16], "level": 0, "parent": null, "vector": [14, 0, 0.5938, 0.875, 0, 0.66, 0.0, 227, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "codebase", "arg_names": [], "import_names": [], "rhs_call_...
[]
import wx class MainFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self,None) self.menubar = wx.MenuBar() self.file = wx.Menu() self.file.Append(wx.ID_ANY,'&Test') self.menubar.Append(self.file,'File') self.SetMenuBar(self.menubar) self.Show...
ajibawa-2023/Python-Code-Large/train/row_4686
13
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_4686:Import_L1_C0", "label": "wx import wx", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0667, 0.0667, 0, 0.66, 0.0, 666, 0, 1, 0, 0, 666, 0, 0], "semantic": {"name": "wx", "arg_names": [], "import_names": ["wx"], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4686:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4686:FunctionDef_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4686:FunctionDef_L4_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4686:Expr_L5_C8"}, {"f": "ajibawa-2023/Python-Code-Large...
import MySQLdb import time import random import operator db=MySQLdb.connect(host="localhost",user="root", passwd="",db="phone_tracker") c=db.cursor() c.executemany(""" TRUNCATE TABLE `resultset-location`""",[()]) long = 1 lat = 1 x = 3 y = 4 i = 0 for y in range(1,y+1): for x in range(1,x+1): ...
ajibawa-2023/Python-Code-Large/train/row_4687
20
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_4687:Import_L1_C0", "label": "MySQLdb import MySQLdb", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0345, 0.0345, 0, 0.66, 0.0, 838, 0, 1, 0, 0, 838, 0, 0], "semantic": {"name": "MySQLdb", "arg_names": [], "import_names": ["MySQLdb"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4687:For_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4687:For_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4687:For_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4687:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4687...
import MySQLdb import time import random import operator class sniffer: def __init__(self): self.db=MySQLdb.connect(host="localhost",user="root", passwd="",db="phone_tracker") self.db.query("""SELECT * FROM `resultset-location`""") r=self.db.use_result() self.sniffer = [] ...
ajibawa-2023/Python-Code-Large/train/row_4688
90
131
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4688:Import_L1_C0", "label": "MySQLdb import MySQLdb", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0076, 0.0076, 0, 0.66, 0.0, 838, 0, 1, 0, 0, 838, 0, 0], "semantic": {"name": "MySQLdb", "arg_names": [], "import_names": ["MySQLdb"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4688:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4688:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4688:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_4688:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright (c) 2012 eagleonhill(qiuc12@gmail.com). All rights reserved. # Use of this source code is governed by a Mozilla-1.1 license that can be # found in the LICENSE file. import googlecode_upload import tempfile import urllib2 import optparse import os extensionid = 'lgllffgicojgllpmdbemgglaponefajn' ...
ajibawa-2023/Python-Code-Large/train/row_4691
31
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4691:Import_L4_C0", "label": "googlecode_upload import googlecode_upload", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.093, 0.0233, 0, 0.66, 0.0, 481, 0, 1, 0, 0, 481, 0, 0], "semantic": {"name": "googlecode_upload", "arg_names": [], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4691:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4691:Assign_L13_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4691:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4691:Assign_L15_C2"}, {"f": "ajibawa-2023/Python-Code-L...
import subprocess import tempfile import shutil import os import codecs import json import zipfile class Packer: def __init__(self, input_path, outputfile): self.input_path = os.path.abspath(input_path) self.outputfile = os.path.abspath(outputfile) self.tmppath = None def pack(self): ...
ajibawa-2023/Python-Code-Large/train/row_4692
69
86
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4692:Import_L1_C0", "label": "subprocess import subprocess", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0116, 0.0116, 0, 0.66, 0.0, 394, 0, 1, 0, 0, 394, 0, 0], "semantic": {"name": "subprocess", "arg_names": [], "import_names": ["su...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4692:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4692:FunctionDef_L10_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4692:FunctionDef_L10_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_4692:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python # # Copyright 2006, 2007 Google Inc. All Rights Reserved. # Author: danderson@google.com (David Anderson) # # Script for uploading files to a Google Code project. # # This is intended to be both a useful script for people who want to # streamline project uploads and a reference implementation for ...
ajibawa-2023/Python-Code-Large/train/row_4693
98
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_4693:Expr_L46_C0", "label": "expression", "type": "expression", "loc": [46, 47], "level": 0, "parent": null, "vector": [8, 0, 0.1816, 0.0078, 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_4693:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4693:Expr_L60_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4693:FunctionDef_L59_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4693:If_L80_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
maxVf = 200 # Generating the header head = """// Copyright qiuc12@gmail.com // This file is generated autmatically by python. DONT MODIFY IT! #pragma once #include <OleAuto.h> class FakeDispatcher; HRESULT DualProcessCommand(int commandId, FakeDispatcher *disp, ...); extern "C" void DualProcessCommandWrap()...
ajibawa-2023/Python-Code-Large/train/row_4694
28
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4694:Assign_L1_C0", "label": "maxVf =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0172, 0.0172, 0, 0.66, 0.0, 302, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "maxVf", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_4694:For_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4694:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4694:For_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4694:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4694:...
""" FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http://www.gnu.org/license...
ajibawa-2023/Python-Code-Large/train/row_4695
80
160
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4695:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 22], "level": 0, "parent": null, "vector": [8, 0, 0.0719, 0.1375, 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_4695:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4695:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4695:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4695:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
ajibawa-2023/Python-Code-Large/train/row_4699
23
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4699:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 27], "level": 0, "parent": null, "vector": [8, 0, 0.2586, 0.431, 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_4699:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4699:Expr_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4699:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4699:If_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
ajibawa-2023/Python-Code-Large/train/row_4701
28
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_4701:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0213, 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_4701:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4701:FunctionDef_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4701:FunctionDef_L11_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4701:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
ajibawa-2023/Python-Code-Large/train/row_4702
41
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4702:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 27], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.2778, 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_4702:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4702:Expr_L36_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4702:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4702:FunctionDef_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
ajibawa-2023/Python-Code-Large/train/row_4703
43
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4703:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 0.0127, 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_4703:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4703:Expr_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4703:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4703:FunctionDef_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
ajibawa-2023/Python-Code-Large/train/row_4705
48
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4705:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.1933, 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_4705:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4705:Expr_L31_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4705:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4705:Assign_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
ajibawa-2023/Python-Code-Large/train/row_4707
41
90
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4707:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 27], "level": 0, "parent": null, "vector": [8, 0, 0.1667, 0.2778, 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_4707:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4707:Expr_L36_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4707:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4707:FunctionDef_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Larg...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
ajibawa-2023/Python-Code-Large/train/row_4708
43
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4708:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0127, 0.0127, 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_4708:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4708:Expr_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4708:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4708:FunctionDef_L16_C1"}, {"f": "ajibawa-2023/Python-Code-Large/...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
ajibawa-2023/Python-Code-Large/train/row_4710
48
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4710:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 25], "level": 0, "parent": null, "vector": [8, 0, 0.1176, 0.1933, 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_4710:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4710:Expr_L31_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4710:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4710:Assign_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") h...
ajibawa-2023/Python-Code-Large/train/row_4711
23
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_4711:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 27], "level": 0, "parent": null, "vector": [8, 0, 0.2586, 0.431, 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_4711:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4711:Expr_L37_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4711:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4711:If_L38_C1"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2010 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
ajibawa-2023/Python-Code-Large/train/row_4712
28
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_4712:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0213, 0.0213, 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_4712:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_4712:FunctionDef_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_4712:FunctionDef_L11_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_4712:Expr_L12_C2"}, {"f": "ajibawa-2023/Python-Code-La...