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 os.path try: from setuptools import setup, Extension except ImportError: from distutils.core import setup, Extension VERSION = "0.2" setup( name = "python-recsys", version = VERSION, description="A simple recommender system in python", author='Oscar Celma', author_email='ocelma@bmat...
ajibawa-2023/Python-Code-Large/train/row_88223
6
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_88223:Import_L1_C0", "label": "os.path import os.path", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0435, 0.0435, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["os.path"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88223:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88223:ImportFrom_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88223:Try_L2_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88223:ImportFrom_L5_C4"}]
import os import warnings warnings.simplefilter('ignore') TEST_DATA_PATH = os.path.join(os.path.dirname(__file__), 'data') MOVIELENS_DATA_PATH = os.path.join(TEST_DATA_PATH, 'movielens') def skip(x): x.__test__ = False return x
ajibawa-2023/Python-Code-Large/train/row_88224
8
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88224:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0909, 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_88224:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88224:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88224:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88224:Return_L11_C4"}]
import sys #To show some messages: import recsys.algorithm recsys.algorithm.VERBOSE = True from recsys.algorithm.factorize import SVD from recsys.datamodel.data import Data from recsys.evaluation.prediction import RMSE, MAE #Dataset PERCENT_TRAIN = int(sys.argv[2]) data = Data() data.load(sys.argv[1], sep='::', form...
ajibawa-2023/Python-Code-Large/train/row_88225
26
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88225:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0256, 0.0256, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88225:If_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88225:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88225:For_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88225:Try_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_8...
import sys import recsys.algorithm recsys.algorithm.VERBOSE = True from recsys.utils.svdlibc import SVDLIBC movielens = sys.argv[1] #ratings.dat movielens file path here svdlibc = SVDLIBC(movielens) svdlibc.to_sparse_matrix(sep='::', format={'col':0, 'row':1, 'value':2, 'ids': int}) svdlibc.compute() svd = svdlibc.exp...
ajibawa-2023/Python-Code-Large/train/row_88226
13
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_88226:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0714, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[]
from numpy import mean from operator import itemgetter from recsys.algorithm.baseclass import Algorithm from recsys.algorithm import VERBOSE class Baseline(Algorithm): def __init__(self): #Call parent constructor super(Baseline, self).__init__() # 'Cache' for user avg. rating self...
ajibawa-2023/Python-Code-Large/train/row_88227
23
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88227:ImportFrom_L1_C0", "label": "from numpy import mean", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["mean"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88227:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88227:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88227:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88227:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
class Item: """ An item, with its related metadata information :param id: item id :type id: string or int :returns: an item instance """ def __init__(self, id): self._id = id self._data = None def __repr__(self): return str(self._id) def get_id(self): ...
ajibawa-2023/Python-Code-Large/train/row_88229
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_88229:ClassDef_L1_C0", "label": "Item", "type": "class", "loc": [1, 34], "level": 0, "parent": null, "vector": [3, 0, 0.5147, 1.0, 0, 0.66, 0.0, 592, 0, 5, 0, 0, 0, 0, 1], "semantic": {"name": "Item", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88229:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88229:Expr_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88229:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88229:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
__all__ = ['data', 'item', 'user']
ajibawa-2023/Python-Code-Large/train/row_88230
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_88230:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_name": ...
[]
class User: """ User information, including her interaction with the items :param id: user id :type id: string or int :returns: a user instance """ def __init__(self, id): self._id = id self._items = [] def __repr__(self): return str(self._id) def get_id(s...
ajibawa-2023/Python-Code-Large/train/row_88231
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_88231:ClassDef_L1_C0", "label": "User", "type": "class", "loc": [1, 34], "level": 0, "parent": null, "vector": [3, 0, 0.5147, 1.0, 0, 0.66, 0.0, 61, 0, 5, 0, 0, 0, 0, 2], "semantic": {"name": "User", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88231:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88231:Expr_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88231:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88231:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
try: from divisi2.sparse import SparseMatrix as divisiSparseMatrix from divisi2 import reconstruct_similarity except: from csc.divisi2.sparse import SparseMatrix as divisiSparseMatrix from csc.divisi2 import reconstruct_similarity from operator import itemgetter class Matrix(object): def __init__(...
ajibawa-2023/Python-Code-Large/train/row_88232
64
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88232:Try_L1_C0", "label": "try", "type": "try", "loc": [1, 6], "level": 0, "parent": null, "vector": [7, 0, 0.0357, 0.0612, 0, 0.66, 0.0, 0, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation": ""}, "sni...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88232:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88232:ImportFrom_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88232:Try_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88232:ImportFrom_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" .. module:: algorithm :synopsis: Base class Algorithm .. moduleauthor:: Oscar Celma <ocelma@bmat.com> """ import sys from scipy.cluster.vq import kmeans2 #for kmeans method from random import randint #for kmeans++ (_kinit method) #from scipy.linalg import norm #for kmeans++ (_kinit method) from scipy import ar...
ajibawa-2023/Python-Code-Large/train/row_88233
148
262
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88233:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 7], "level": 0, "parent": null, "vector": [8, 0, 0.0153, 0.0267, 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_88233:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88233:Import_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88233:Try_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88233:ImportFrom_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
VERBOSE = False #Set to True to get some messages __all__ = ['matrix', 'factorize']
ajibawa-2023/Python-Code-Large/train/row_88234
2
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88234:Assign_L1_C0", "label": "VERBOSE =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.5, 0.5, 0, 0.66, 0.0, 721, 1, 0, 0, 0, 0, 4, 0], "semantic": {"name": "VERBOSE", "arg_names": [], "import_names": [], "rhs_call_name": ...
[]
# -*- coding: utf-8 -*- """ .. module:: algorithm :synopsis: Factorization recsys algorithms .. moduleauthor:: Oscar Celma <ocelma@bmat.com> """ import os import sys import zipfile try: import divisi2 except: from csc import divisi2 from numpy import loads, mean, sum, nan from operator import itemgetter f...
ajibawa-2023/Python-Code-Large/train/row_88235
467
1,006
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88235:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 8], "level": 0, "parent": null, "vector": [8, 0, 0.005, 0.007, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88235:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88235:Import_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88235:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88235:ImportFrom_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
from math import sqrt from scipy.stats import pearsonr from recsys.evaluation import ROUND_FLOAT from recsys.evaluation.baseclass import Evaluation #Predictive-Based Metrics class MAE(Evaluation): """ Mean Absolute Error :param data: a tuple containing the Ground Truth data, and the Test data :type d...
ajibawa-2023/Python-Code-Large/train/row_88236
39
73
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88236:ImportFrom_L1_C0", "label": "from math import sqrt", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["sqrt"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88236:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88236:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88236:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88236:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
from recsys.evaluation.baseclass import Evaluation from recsys.evaluation import ROUND_FLOAT # Decision-Based Metrics. Evaluating Top-N recommendations class PrecisionRecallF1(Evaluation): def __init__(self): super(PrecisionRecallF1, self).__init__() def add_predicted_value(self, rating_pred): # Synon...
ajibawa-2023/Python-Code-Large/train/row_88237
17
33
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88237:ImportFrom_L1_C0", "label": "from recsys.evaluation.baseclass import Evaluation", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0303, 0, 0.66, 0.0, 724, 0, 1, 0, 0, 724, 0, 0], "semantic": {"name": "recsys.evaluation.basec...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88237:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88237:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88237:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88237:Expr_L7_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from operator import itemgetter from numpy import nan class Evaluation(object): """ Base class for Evaluation It has the basic methods to load ground truth and test data. Any other Evaluation class derives from this base class. :param data: A list of tuples, containing the real and the predicted ...
ajibawa-2023/Python-Code-Large/train/row_88238
46
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_88238:ImportFrom_L1_C0", "label": "from operator import itemgetter", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0096, 0.0096, 0, 0.66, 0.0, 616, 0, 1, 0, 0, 616, 0, 0], "semantic": {"name": "operator", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88238:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88238:Expr_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88238:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88238:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
ROUND_FLOAT=6 __all__ = ['decision', 'prediction', 'ranking']
ajibawa-2023/Python-Code-Large/train/row_88239
2
2
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88239:Assign_L1_C0", "label": "ROUND_FLOAT =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.5, 0.5, 0, 0.66, 0.0, 672, 1, 0, 0, 0, 0, 1, 0], "semantic": {"name": "ROUND_FLOAT", "arg_names": [], "import_names": [], "rhs_call...
[]
from numpy import mean from scipy.stats import kendalltau, spearmanr, rankdata from operator import itemgetter from recsys.evaluation import ROUND_FLOAT from recsys.evaluation.baseclass import Evaluation def _compute(f, ground_truth, test): elems = len(list(set(map(itemgetter(0), ground_truth)) & set(map(itemgett...
ajibawa-2023/Python-Code-Large/train/row_88240
116
184
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88240:ImportFrom_L1_C0", "label": "from numpy import mean", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0054, 0.0054, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["mean"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88240:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88240:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88240:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88240:If_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
''' Created on Jul 7, 2012 @author: alex ''' class Matrix(dict): ''' Base Class of Matrix ''' def __init__(self): ''' Constructor ''' self = dict() def addToMat(self, row, col, value): if self.has_key(row): if self[row].has_key(col): ...
ajibawa-2023/Python-Code-Large/train/row_88241
34
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88241:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0508, 0.0847, 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_88241:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88241:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88241:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88241:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import sys import codecs import os from operator import itemgetter import csv from numpy import array from divisi2.ordered_set import OrderedSet from csc.divisi2.dense import DenseMatrix from recsys.algorithm.factorize import SVD from recsys.datamodel.data import Data from recsys.algorithm import VERBOSE # Path to 'sv...
ajibawa-2023/Python-Code-Large/train/row_88242
151
206
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88242:Import_L1_C0", "label": "sys import sys", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0049, 0.0049, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88242:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88242:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88242:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88242:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-...
''' Created on Jul 7, 2012 @author: alex ''' class Vector(dict): ''' classdocs ''' def __init__(self): ''' Constructor ''' self = dict() def getItem(self, key): if self.has_key(key): return float(self[key]) return None...
ajibawa-2023/Python-Code-Large/train/row_88243
17
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88243:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 5], "level": 0, "parent": null, "vector": [8, 0, 0.0811, 0.1351, 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_88243:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88243:Expr_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88243:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88243:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# recsys.utils module
ajibawa-2023/Python-Code-Large/train/row_88244
0
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"]
[]
[]
__name__ = "recsys" __doc__ = "python-recsys: A simple python recommender system" __author__ = "Oscar Celma" __version__ = "0.1" __license__ = "GPL" __maintainer__ = "Oscar Celma" __email__ = "ocelma@gmail.com" __status__ = "Beta" __all__ = ['algorithm', 'datamodel', 'evaluation', 'utils']
ajibawa-2023/Python-Code-Large/train/row_88245
9
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88245:Assign_L1_C0", "label": "__name__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 136, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__name__", "arg_names": [], "import_names": [], "rhs_call...
[]
""" tipfy.ext.auth ============== This extension provides authentication utilities for `tipfy <http://www.tipfy.org/>`_. It allows users to authenticate using own users, OpenId, Oauth, Facebook, Google, FriendFeed, Twitter or App Engine's built-in users API. Try a multi-authentication working example at `http://tipfy...
ajibawa-2023/Python-Code-Large/train/row_88247
3
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88247:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.1935, 0.371, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[]
# -*- coding: utf-8 -*- """ tipfy.ext.auth.model ~~~~~~~~~~~~~~~~~~~~ Base model for authenticated users. This module derives from `Zine`_. :copyright: 2010 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from __future__ import absolute_import import datetime import string ...
ajibawa-2023/Python-Code-Large/train/row_88248
111
292
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88248:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 12], "level": 0, "parent": null, "vector": [8, 0, 0.024, 0.0377, 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_88248:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88248:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88248:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88248:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# -*- coding: utf-8 -*- """ tipfy.ext.auth ~~~~~~~~~~~~~~ User authentication extension. :copyright: 2010 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from __future__ import absolute_import from google.appengine.api import users from tipfy import abort, cached_property, imp...
ajibawa-2023/Python-Code-Large/train/row_88249
157
473
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88249:ImportFrom_L1_C0", "label": "from __future__ import absolute_import", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0021, 0.0021, 0, 0.66, 0.0, 777, 0, 1, 0, 0, 777, 0, 0], "semantic": {"name": "__future__", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88249:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88249:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88249:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88249:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# -*- coding: utf-8 -*- """ To run the tests, first install the following packages: nose nosegae==0.1.7 webtest gaetestbed coverage Then build the project: cd project python2.5 bootstrap.py bin/buildout Then run from the tests dir: python2.5 run_tests.py """ import os import sys...
ajibawa-2023/Python-Code-Large/train/row_88252
12
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_88252:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 20], "level": 0, "parent": null, "vector": [8, 0, 0.3235, 0.5588, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88252:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88252:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88252:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88252:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
from tipfy import RequestHandler, Response from tipfy.ext import auth class AuthHandler(RequestHandler): middleware = [auth.AuthMiddleware] def get(self, **kwargs): return Response('Hello, World!') class SignupHandler(RequestHandler): middleware = [auth.AuthMiddleware] def get(self, **kwar...
ajibawa-2023/Python-Code-Large/train/row_88253
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_88253:ImportFrom_L1_C0", "label": "from tipfy import RequestHandler, Response", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 0, 0.66, 0.0, 748, 0, 2, 0, 0, 748, 0, 0], "semantic": {"name": "tipfy", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88253:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88253:Assign_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88253:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88253:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# -*- coding: utf-8 -*- """ main ~~~~ Run Tipfy apps. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ import sys if 'lib' not in sys.path: # Add /lib as primary libraries directory, with fallback to /distlib # and optionally to distlib loaded using zipimpor...
ajibawa-2023/Python-Code-Large/train/row_88254
11
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_88254:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1935, 0.2903, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88254:If_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88254:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88254:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88254:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule, import_string def get_rules(app): """Returns a list of URL rules for the application. The list can be defined entirely here o...
ajibawa-2023/Python-Code-Large/train/row_88255
10
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_88255:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1714, 0.2571, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88255:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88255:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88255:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88255:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- """ config ~~~~~~ Configuration settings. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ config = {} # Configurations for the 'tipfy' module. config['tipfy'] = { # Enable debugger. It will be loaded only in development. 'middleware'...
ajibawa-2023/Python-Code-Large/train/row_88256
3
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_88256:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.2609, 0.3913, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
# -*- coding: utf-8 -*- """ handlers ~~~~~~~~ Hello, World!: the simplest tipfy app. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ from tipfy import RequestHandler, Response from tipfy.ext.jinja2 import render_response class HelloWorldHandler(RequestHandler): ...
ajibawa-2023/Python-Code-Large/train/row_88257
11
24
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88257:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.25, 0.375, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotatio...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88257:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88257:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88257:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_88257:Expr_L17_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule def get_rules(app): """Returns a list of URL rules for the Hello, World! application. :param app: The WSGI applicatio...
ajibawa-2023/Python-Code-Large/train/row_88258
6
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88258:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.2222, 0.3333, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88258:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88258:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88258:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88258:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code...
############################################################################## # # Copyright (c) 2006 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SO...
ajibawa-2023/Python-Code-Large/train/row_88259
49
121
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88259:Expr_L14_C0", "label": "expression", "type": "expression", "loc": [14, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1446, 0.0661, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88259:If_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88259:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88259:If_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88259:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
from django.utils import simplejson from tipfy import (RequestHandler, RequestRedirect, Response, abort, cached_property, redirect, url_for) from tipfy.ext.auth import MultiAuthMixin, login_required, user_required from tipfy.ext.auth.facebook import FacebookMixin from tipfy.ext.auth.friendfeed import FriendFeedMix...
ajibawa-2023/Python-Code-Large/train/row_88260
198
337
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88260:ImportFrom_L1_C0", "label": "from django.utils import simplejson", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.003, 0.003, 0, 0.66, 0.0, 944, 0, 1, 0, 0, 944, 0, 0], "semantic": {"name": "django.utils", "arg_names": [], "import_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88260:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88260:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88260:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88260:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule, import_string def get_rules(app): """Returns a list of URL rules for the application. The list can be defined entirely here o...
ajibawa-2023/Python-Code-Large/train/row_88261
6
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88261:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1538, 0.2308, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88261:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88261:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88261:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88261:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- """ config ~~~~~~ Configuration settings. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ config = {} # Configurations for the 'tipfy' module. config['tipfy'] = { # Enable debugger. It will be loaded only in development. 'middleware'...
ajibawa-2023/Python-Code-Large/train/row_88262
7
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88262:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.1463, 0.2195, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
from django.utils import simplejson from tipfy import RequestHandler, RequestRedirect, cached_property, redirect from tipfy.ext.auth import AppEngineAuthMixin, login_required, user_required from tipfy.ext.jinja2 import Jinja2Mixin from tipfy.ext.session import AllSessionMixins, SessionMiddleware from tipfy.ext.wtforms...
ajibawa-2023/Python-Code-Large/train/row_88263
48
89
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88263:ImportFrom_L1_C0", "label": "from django.utils import simplejson", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0112, 0.0112, 0, 0.66, 0.0, 944, 0, 1, 0, 0, 944, 0, 0], "semantic": {"name": "django.utils", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88263:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88263:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88263:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88263:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# -*- coding: utf-8 -*- """ urls ~~~~ URL definitions. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE.txt for more details. """ from tipfy import Rule, import_string def get_rules(app): """Returns a list of URL rules for the application. The list can be defined entirely here o...
ajibawa-2023/Python-Code-Large/train/row_88264
6
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_88264:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.2069, 0.3103, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88264:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88264:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88264:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88264:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code...
# -*- coding: utf-8 -*- """ config ~~~~~~ Configuration settings. :copyright: 2009 by tipfy.org. :license: BSD, see LICENSE for more details. """ config = {} # Configurations for the 'tipfy' module. config['tipfy'] = { # Enable debugger. It will be loaded only in development. 'middleware'...
ajibawa-2023/Python-Code-Large/train/row_88265
4
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_88265:Expr_L2_C0", "label": "expression", "type": "expression", "loc": [2, 10], "level": 0, "parent": null, "vector": [8, 0, 0.2308, 0.3462, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[]
# # Generate and deploy the jar and associated files to the Sonatype maven repository. # import os, re, tempfile, subprocess #, sys, datetime, zipfile # Location of the source file that defines the current version VERSION_FILE = '../src/com/caverock/androidsvg/SVG.java' # Version regex VERSION_RE = '\sVE...
ajibawa-2023/Python-Code-Large/train/row_88266
54
133
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88266:Import_L5_C0", "label": "os import os, re, tempfile\u2026", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0376, 0.0075, 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_88266:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88266:Assign_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88266:FunctionDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88266:Assign_L35_C2"}, {"f": "ajibawa-2023/Python-Co...
# # Build an Android .aar file suitable for including in projects in Android Studio # (c) 2014 Paul LeBeau paul@caverock.com # Released under the Apache v2 license # import sys, os, zipfile, StringIO, ConfigParser # Configration # The default locations assume that this script has been placed in a subfolder...
ajibawa-2023/Python-Code-Large/train/row_88267
69
134
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88267:Import_L7_C0", "label": "sys import sys, os, zipfile\u2026", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.0522, 0.0075, 0, 0.66, 0.0, 509, 0, 5, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88267:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88267:If_L20_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88267:If_L20_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_88267:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
#!/usr/bin/python2.6 # # Copyright 2011 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required...
ajibawa-2023/Python-Code-Large/train/row_88268
88
214
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88268:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0841, 0.0047, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88268:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88268:Expr_L57_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88268:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88268:Assign_L67_C2"}, {"f": "ajibawa-2023/Python-Code...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_88269
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88269:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88269:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88269:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88269:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88269:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#==================================================================== # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you ...
ajibawa-2023/Python-Code-Large/train/row_88270
38
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88270:Import_L26_C0", "label": "os import os", "type": "import", "loc": [26, 26], "level": 0, "parent": null, "vector": [1, 0, 0.3514, 0.0135, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88270:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88270:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88270:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88270:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_88271
133
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88271:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88271:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88271:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88271:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88271:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_88272
218
605
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88272:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0281, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88272:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88272:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88272:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88272:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
ajibawa-2023/Python-Code-Large/train/row_88274
51
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88274:Expr_L32_C0", "label": "expression", "type": "expression", "loc": [32, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0267, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88274:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88274:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88274:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88274:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_88276
86
244
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88276:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0738, 0.0041, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88276:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88276:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88276:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88276:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
ajibawa-2023/Python-Code-Large/train/row_88278
155
378
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88278:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0741, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88278:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88278:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88278:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88278:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88279
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88279:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88279:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88279:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88279:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88279:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88281
396
1,139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88281:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0145, 0.0035, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88281:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88281:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88281:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88281:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88282
33
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88282:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88282:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88282:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88282:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88282:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88283
46
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88283:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88283:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88283:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88283:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88283:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_88284
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_88284:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88285
63
124
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88285:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1371, 0.0403, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88285:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88285:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88285:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88285:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_88287
57
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88287:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88287:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88287:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88287:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88287:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88288
114
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88288:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88288:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88288:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88288:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88288:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88289
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88289:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88289:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88289:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88289:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88289:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88290
201
483
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88290:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88290:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88290:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88290:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88290:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88292
55
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88292:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 0.037, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88292:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88292:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88292:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88292:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88294
28
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88294:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88294:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88294:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88294:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88294:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88295
29
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88295:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88295:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88295:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88295:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88295:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_88296
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_88296:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_88297
154
385
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88297:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0182, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88297:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88297:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88297:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88297:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_88298
56
123
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88298:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1545, 0.0407, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88298:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88298:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88298:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88298:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_88299
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88299:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88299:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88299:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88299:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88299:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_88301
213
438
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88301:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88301:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88301:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88301:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88301:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_88302
115
168
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88302:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88302:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88302:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88302:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_88302:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_88303
8
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88303:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88303:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88303:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88303:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88303:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_88304
10
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88304:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88304:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88304:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88304:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88304:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_88305
9
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88305:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88305:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88305:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88305:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88305:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_88307
112
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88307:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88307:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88307:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88307:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_88307:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_88308
218
605
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88308:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0281, 0.0017, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88308:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88308:Expr_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88308:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88308:Return_L54_C2"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (C) 2012 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law ...
ajibawa-2023/Python-Code-Large/train/row_88309
133
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88309:Assign_L17_C0", "label": "__author__ =", "type": "assigned_variable", "loc": [17, 17], "level": 0, "parent": null, "vector": [14, 0, 0.0557, 0.0033, 0, 0.66, 0.0, 777, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__author__", "arg_names": [], "import_names": [], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88309:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88309:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88309:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88309:Assign_L47_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# This is the version of this source code. manual_verstr = "1.5" auto_build_num = "211" verstr = manual_verstr + "." + auto_build_num try: from pyutil.version_class import Version as pyutil_Version __version__ = pyutil_Version(verstr) except (ImportError, ValueError): # Maybe there is no pyutil insta...
ajibawa-2023/Python-Code-Large/train/row_88311
8
18
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88311:Assign_L3_C0", "label": "manual_verstr =", "type": "assigned_variable", "loc": [3, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.0556, 0, 0.66, 0.0, 189, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "manual_verstr", "arg_names": [], "import_names": [],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88311:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88311:ImportFrom_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88311:Try_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88311:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_88312
9
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88312:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.3, 0.575, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotation...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88312:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88312:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88312:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88312:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-...
""" The MIT License Copyright (c) 2007-2010 Leah Culver, Joe Stump, Mark Paschal, Vic Fryzel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the ...
ajibawa-2023/Python-Code-Large/train/row_88313
10
41
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88313:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 23], "level": 0, "parent": null, "vector": [8, 0, 0.2927, 0.561, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88313:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88313:Expr_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88313:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88313:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2011 Google Inc. All Rights Reserved. """Multi-credential file store with lock support. This module implements a JSON credential store where multiple credentials can be stored in one file. That file supports locking both in a single process and across processes. The credential themselves are keyed off o...
ajibawa-2023/Python-Code-Large/train/row_88315
155
378
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88315:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 30], "level": 0, "parent": null, "vector": [8, 0, 0.0437, 0.0741, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88315:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88315:Expr_L53_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88315:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88315:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88316
396
1,139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88316:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0145, 0.0035, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88316:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88316:ImportFrom_L38_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88316:Try_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88316:ImportFrom_L39_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88317
46
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88317:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1604, 0.0472, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88317:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88317:Expr_L33_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88317:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88317:FunctionDef_L35_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88318
63
124
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88318:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1371, 0.0403, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88318:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88318:Assign_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88318:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88318:FunctionDef_L34_C2"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python2.4 # -*- coding: utf-8 -*- # # Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
ajibawa-2023/Python-Code-Large/train/row_88320
86
244
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88320:Import_L18_C0", "label": "base64 import base64", "type": "import", "loc": [18, 18], "level": 0, "parent": null, "vector": [1, 0, 0.0738, 0.0041, 0, 0.66, 0.0, 177, 0, 1, 0, 0, 177, 0, 0], "semantic": {"name": "base64", "arg_names": [], "import_names": ["base64"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88320:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88320:Expr_L37_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88320:ClassDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88320:FunctionDef_L39_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2011 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88321
33
105
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88321:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1619, 0.0476, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88321:ClassDef_L57_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88321:Expr_L58_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88321:ClassDef_L62_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88321:Expr_L63_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_88323
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_88323:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88324
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88324:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88324:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88324:Import_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88324:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88324:Try_L28_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
import Cookie import datetime import time import email.utils import calendar import base64 import hashlib import hmac import re import logging # Ripped from the Tornado Framework's web.py # http://github.com/facebook/tornado/commit/39ac6d169a36a54bb1f6b9bf1fdebb5c9da96e09 # # Tornado is licensed under the Apache Licen...
ajibawa-2023/Python-Code-Large/train/row_88325
115
168
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88325:Import_L1_C0", "label": "Cookie import Cookie", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.006, 0.006, 0, 0.66, 0.0, 32, 0, 1, 0, 0, 32, 0, 0], "semantic": {"name": "Cookie", "arg_names": [], "import_names": ["Cookie"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88325:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88325:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88325:FunctionDef_L26_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_88325:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2007 Joe Gregorio # # Licensed under the MIT License """MIME-Type Parser This module provides basic functions for handling mime-types. It can handle matching mime-types against a list of media-ranges. See section 14.1 of the HTTP specification [RFC 2616] for a complete explanation. http://www.w3.o...
ajibawa-2023/Python-Code-Large/train/row_88326
57
172
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88326:Expr_L5_C0", "label": "expression", "type": "expression", "loc": [5, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0814, 0.1105, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88326:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88326:Expr_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88326:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88326:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88328
201
483
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88328:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.0342, 0.0083, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88328:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88328:ImportFrom_L32_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88328:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88328:ImportFrom_L34_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_88329
154
385
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88329:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 23], "level": 0, "parent": null, "vector": [8, 0, 0.0519, 0.0182, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88329:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88329:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88329:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88329:FunctionDef_L53_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88331
28
63
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88331:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 18], "level": 0, "parent": null, "vector": [8, 0, 0.2619, 0.0635, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88331:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88331:Expr_L29_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88331:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88331:FunctionDef_L31_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88332
29
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88332:Import_L15_C0", "label": "apiclient import apiclient", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2679, 0.0179, 0, 0.66, 0.0, 629, 0, 1, 0, 0, 629, 0, 0], "semantic": {"name": "apiclient", "arg_names": [], "import_names": ["a...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88332:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88332:Assign_L24_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88332:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88332:FunctionDef_L26_C2"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88333
55
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88333:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.1259, 0.037, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88333:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88333:Expr_L31_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88333:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88333:Assign_L36_C2"}, {"f": "ajibawa-2023/Python-Code-Large...
#!/usr/bin/python2.4 # # Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
ajibawa-2023/Python-Code-Large/train/row_88335
56
123
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88335:Expr_L17_C0", "label": "expression", "type": "expression", "loc": [17, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1545, 0.0407, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88335:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88335:Expr_L30_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88335:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88335:Expr_L35_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
__version__ = "1.0c2"
ajibawa-2023/Python-Code-Large/train/row_88336
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_88336:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rhs_call...
[]
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88337
114
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88337:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 58], "level": 0, "parent": null, "vector": [8, 0, 0.1205, 0.1452, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88337:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88337:Expr_L69_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88337:ClassDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88337:FunctionDef_L71_C2"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright (C) 2010 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
ajibawa-2023/Python-Code-Large/train/row_88338
7
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88338:Expr_L15_C0", "label": "expression", "type": "expression", "loc": [15, 19], "level": 0, "parent": null, "vector": [8, 0, 0.5312, 0.1562, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88338:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88338:Import_L25_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88338:Try_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88338:Try_L27_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Early, and incomplete implementation of -04. # import re import urllib RESERVED = ":/?#[]@!$&'()*+,;=" OPERATOR = "+./;?|!@" EXPLODE = "*+" MODIFIER = ":^" TEMPLATE = re.compile(r"{(?P<operator>[\+\./;\?|!@])?(?P<varlist>[^}]+)}", re.UNICODE) VAR = re.compile(r"^(?P<varname>[^=\+\*:\^]+)((?P<explode>[\+\*])|(?P<part...
ajibawa-2023/Python-Code-Large/train/row_88339
112
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88339:Import_L3_C0", "label": "re import re", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0068, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name": ""...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88339:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88339:If_L14_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88339:If_L14_C2", "t": "ajibawa-2023/Python-Code-Large/train/row_88339:If_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
#!/usr/bin/env python # Copyright (c) 2010, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this l...
ajibawa-2023/Python-Code-Large/train/row_88340
51
187
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88340:Expr_L32_C0", "label": "expression", "type": "expression", "loc": [32, 36], "level": 0, "parent": null, "vector": [8, 0, 0.1818, 0.0267, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88340:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88340:Expr_L42_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88340:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88340:Expr_L46_C2"}, {"f": "ajibawa-2023/Python-Code-Large/t...
"""SocksiPy - Python SOCKS module. Version 1.00 Copyright 2006 Dan-Haim. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this ...
ajibawa-2023/Python-Code-Large/train/row_88341
213
438
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88341:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 31], "level": 0, "parent": null, "vector": [8, 0, 0.0365, 0.0708, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annota...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88341:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88341:Expr_L97_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88341:FunctionDef_L96_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88341:Assign_L102_C4"}, {"f": "ajibawa-2023/Python-Cod...
""" iri2uri Converts an IRI to a URI. """ __author__ = "Joe Gregorio (joe@bitworking.org)" __copyright__ = "Copyright 2006, Joe Gregorio" __contributors__ = [] __version__ = "1.0.0" __license__ = "MIT" __history__ = """ """ import urlparse # Convert an IRI to a URI following the rules in RFC 3987 # # The characte...
ajibawa-2023/Python-Code-Large/train/row_88342
43
110
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_88342:Expr_L1_C0", "label": "expression", "type": "expression", "loc": [1, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0318, 0.0545, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annotat...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_88342:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88342:Assign_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_88342:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_88342:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Co...