code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
#! /usr/bin/python import roslib; roslib.load_manifest('rfid_people_following') roslib.load_manifest('std_srvs') roslib.load_manifest('explore_hrl') roslib.load_manifest('move_base_msgs') roslib.load_manifest('actionlib') roslib.load_manifest('geometry_msgs') roslib.load_manifest('tf') roslib.load_manifest('hrl_rfid'...
ajibawa-2023/Python-Code-Large/train/row_99753
196
289
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99753:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0104, 0.0035, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99753:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99753:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99753:FunctionDef_L41_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99753:Expr_L42_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import roslib roslib.load_manifest('explore_hrl') import rospy import actionlib import explore_hrl.msg def explore_client( radius ): client = actionlib.SimpleActionClient('explore', explore_hrl.msg.ExploreAction) # Waits until the action server has started up and started # listening fo...
ajibawa-2023/Python-Code-Large/train/row_99754
26
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99754:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0577, 0.0192, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99754:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99754:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99754:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99754:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/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_99755
112
277
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99755:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.065, 0.0036, 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_99755:FunctionDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99755:Expr_L61_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99755:FunctionDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99755:Assign_L71_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_99756
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_99756: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_99756:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99756:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99756:FunctionDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99756:For_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/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_99757
112
277
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99757:Expr_L18_C0", "label": "expression", "type": "expression", "loc": [18, 18], "level": 0, "parent": null, "vector": [8, 0, 0.065, 0.0036, 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_99757:FunctionDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99757:Expr_L61_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99757:FunctionDef_L60_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99757:Assign_L71_C2"}, {"f": "ajibawa-2023/Python-Code...
import os THIS_PATH = os.path.dirname(__file__) GOLDEN_OUTPUT = os.path.join(THIS_PATH, 'golden_suite', 'output.xml') GOLDEN_OUTPUT2 = os.path.join(THIS_PATH, 'golden_suite', 'output2.xml') GOLDEN_JS = os.path.join(THIS_PATH, 'golden_suite', 'expected.js')
ajibawa-2023/Python-Code-Large/train/row_99760
5
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99760:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.1429, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name": ""...
[]
#!/usr/bin/env python import fileinput import os import sys import robot from robot.result.jsparser import create_datamodel_from BASEDIR = os.path.dirname(__file__) def run_robot(outputdirectory, testdata, loglevel='INFO'): robot.run(testdata, log='NONE', report='NONE', tagstatlink=['force:http://g...
ajibawa-2023/Python-Code-Large/train/row_99761
29
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99761:Import_L3_C0", "label": "fileinput import fileinput", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0612, 0.0204, 0, 0.66, 0.0, 286, 0, 1, 0, 0, 286, 0, 0], "semantic": {"name": "fileinput", "arg_names": [], "import_names": ["file...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99761:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99761:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99761:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99761:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python import sys import os from distutils.core import setup import robot_postinstall execfile(os.path.join(os.path.dirname(__file__),'src','robot','version.py')) # Maximum width in Windows installer seems to be 70 characters -------| DESCRIPTION = """ Robot Framework is a generic test automation fra...
ajibawa-2023/Python-Code-Large/train/row_99763
31
78
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99763:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0128, 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_99763:If_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99763:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99763:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99763:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tr...
#!/usr/bin/env python """A script for running Robot Framework's acceptance tests. Usage: run_atests.py interpreter [options] datasource(s) Data sources are paths to directories or files under `robot` folder. Available options are the same that can be used with Robot Framework. See its help (e.g. `pybot --help`) fo...
ajibawa-2023/Python-Code-Large/train/row_99764
44
113
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99764:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 21], "level": 0, "parent": null, "vector": [8, 0, 0.1062, 0.1681, 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_99764:FunctionDef_L69_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99764:If_L70_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99764:If_L70_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99764:Expr_L71_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
import subprocess import os import signal import ctypes import time class ProcessManager(object): def __init__(self): self._process = None self._stdout = '' self._stderr = '' def start_process(self, *args): args = args[0].split() + list(args[1:]) self._process = subpr...
ajibawa-2023/Python-Code-Large/train/row_99765
52
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_99765:Import_L1_C0", "label": "subprocess import subprocess", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0137, 0, 0.66, 0.0, 394, 0, 1, 0, 0, 394, 0, 0], "semantic": {"name": "subprocess", "arg_names": [], "import_names": ["s...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99765:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99765:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99765:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99765:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-C...
from robot.libraries.BuiltIn import BuiltIn BIN = BuiltIn() def start_keyword(*args): if BIN.get_variables()['${TESTNAME}'] == 'Listener Using BuiltIn': BIN.set_test_variable('${SET BY LISTENER}', 'quux')
ajibawa-2023/Python-Code-Large/train/row_99766
5
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_99766:ImportFrom_L1_C0", "label": "from robot.libraries.BuiltIn import BuiltIn", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 588, 0, 1, 0, 0, 588, 0, 0], "semantic": {"name": "robot.libraries.BuiltIn", "arg...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99766:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99766:If_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99766:If_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99766:Expr_L8_C8"}]
import os import tempfile import time class ListenAll: ROBOT_LISTENER_API_VERSION = '2' def __init__(self, *path): if not path: path = os.path.join(tempfile.gettempdir(), 'listen_all.txt') else: path = ':'.join(path) self.outfile = open(path, 'w') def sta...
ajibawa-2023/Python-Code-Large/train/row_99767
54
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99767:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0122, 0.0122, 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_99767:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99767:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99767:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99767:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import tempfile class OldListenAll: def __init__(self, *path): if not path: path = os.path.join(tempfile.gettempdir(), 'listen_all.txt') else: path = ':'.join(path) self.outfile = open(path, 'w') def start_suite(self, name, doc): self.outfile...
ajibawa-2023/Python-Code-Large/train/row_99768
37
55
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99768:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0182, 0.0182, 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_99768:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99768:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99768:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99768:If_L8_C8"}, {"f": "ajibawa-2023/Python-Code-Lar...
import os import tempfile outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt') OUTFILE = open(outpath, 'w') ROBOT_LISTENER_API_VERSION = 2 def start_suite(name, attrs): metastr = ' '.join(['%s: %s' % (k, v) for k, v in attrs['metadata'].items()]) OUTFILE.write("SUITE ...
ajibawa-2023/Python-Code-Large/train/row_99769
43
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_99769:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0159, 0.0159, 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_99769:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99769:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99769:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99769:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import tempfile class ListenSome: def __init__(self): outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt') self.outfile = open(outpath, 'w') def startTest(self, name, doc, tags): self.outfile.write(name + '\n') def endSuite(self, stat, msg): ...
ajibawa-2023/Python-Code-Large/train/row_99770
21
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99770:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 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_99770:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99770:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99770:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99770:Assign_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
import os import tempfile from robot.libraries.BuiltIn import BuiltIn class ListenSome: ROBOT_LISTENER_API_VERSION = '2' def __init__(self): outpath = os.path.join(tempfile.gettempdir(), 'listen_some.txt') self.outfile = open(outpath, 'w') def startTest(self, name, attrs): self....
ajibawa-2023/Python-Code-Large/train/row_99771
54
99
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99771:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0101, 0.0101, 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_99771:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99771:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99771:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99771:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import tempfile outpath = os.path.join(tempfile.gettempdir(), 'listen_by_module.txt') OUTFILE = open(outpath, 'w') def start_suite(name, doc): OUTFILE.write("SUITE START: %s '%s'\n" % (name, doc)) def start_test(name, doc, tags): tags = [ str(tag) for tag in tags ] OUTFILE.write("TEST START: %...
ajibawa-2023/Python-Code-Large/train/row_99772
33
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99772:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0204, 0.0204, 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_99772:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99772:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99772:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99772:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import tempfile ROBOT_LISTENER_API_VERSION = '2' OUTFILE = open(os.path.join(tempfile.gettempdir(), 'listener_attrs.txt'), 'w') START_ATTRIBUTES = ['doc', 'starttime'] END_ATTRIBUTES = START_ATTRIBUTES + ['endtime', 'elapsedtime', 'status'] EXPECTED_TYPES = {'elapsedtime': (int, long), 'tags': list, 'args'...
ajibawa-2023/Python-Code-Large/train/row_99773
33
52
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99773:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0192, 0.0192, 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_99773:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99773:Expr_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99773:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99773:Expr_L21_C4"}, {"f": "ajibawa-2023/Python-Code-L...
def get_variables(*args): return { 'PPATH_VARFILE_2' : ' '.join(args), 'LIST__PPATH_VARFILE_2' : args }
ajibawa-2023/Python-Code-Large/train/row_99774
2
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99774:FunctionDef_L1_C0", "label": "get_variables", "type": "function", "loc": [1, 3], "level": 0, "parent": null, "vector": [2, 0, 0.5, 0.75, 0, 0.66, 0.0, 461, 0, 1, 1, 0, 0, 0, 1], "semantic": {"name": "get_variables", "arg_names": ["args"], "import_names": [], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99774:FunctionDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99774:Return_L2_C4"}]
PPATH_VARFILE = "Variable from varible file in PYTHONPATH"
ajibawa-2023/Python-Code-Large/train/row_99775
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_99775:Assign_L1_C0", "label": "PPATH_VARFILE =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 1.0, 1.0, 0, 0.66, 0.0, 799, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "PPATH_VARFILE", "arg_names": [], "import_names": [], "rhs_...
[]
list1 = [1, 2, 3, 4, 'foo', 'bar'] dictionary1 = {'a': 1} dictionary2 = {'a': 1, 'b': 2}
ajibawa-2023/Python-Code-Large/train/row_99776
3
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99776:Assign_L1_C0", "label": "list1 =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 150, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "list1", "arg_names": [], "import_names": [], "rhs_call_name"...
[]
class TraceLogArgsLibrary(object): def only_mandatory(self, mand1, mand2): pass def mandatory_and_default(self, mand, default="default value"): pass def multiple_default_values(self, a=1, a2=2, a3=3, a4=4): pass def mandatory_and_varargs(self, mand, *varargs): pass ...
ajibawa-2023/Python-Code-Large/train/row_99777
15
30
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99777:ClassDef_L1_C0", "label": "TraceLogArgsLibrary", "type": "class", "loc": [1, 19], "level": 0, "parent": null, "vector": [3, 0, 0.3333, 0.6333, 0, 0.66, 0.0, 552, 0, 6, 0, 0, 186, 0, 2], "semantic": {"name": "TraceLogArgsLibrary", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99777:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99777:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99777:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99777:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Co...
class FailUntilSucceeds: ROBOT_LIBRARY_SCOPE = 'TESTCASE' def __init__(self, times_to_fail=0): self.times_to_fail = int(times_to_fail) def fail_until_retried_often_enough(self, message="Hello"): self.times_to_fail -= 1 if self.times_to_fail >= 0: raise Exce...
ajibawa-2023/Python-Code-Large/train/row_99778
7
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99778:ClassDef_L1_C0", "label": "FailUntilSucceeds", "type": "class", "loc": [1, 12], "level": 0, "parent": null, "vector": [3, 0, 0.5417, 1.0, 0, 0.66, 0.0, 243, 0, 2, 0, 0, 0, 0, 2], "semantic": {"name": "FailUntilSucceeds", "arg_names": [], "import_names": [], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99778:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99778:Assign_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99778:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99778:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-La...
import exceptions class ObjectToReturn: def __init__(self, name): self.name = name def __str__(self): return self.name def exception(self, name, msg=""): exception = getattr(exceptions, name) raise exception, msg
ajibawa-2023/Python-Code-Large/train/row_99779
8
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99779:Import_L1_C0", "label": "exceptions import exceptions", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 63, 0, 1, 0, 0, 63, 0, 0], "semantic": {"name": "exceptions", "arg_names": [], "import_names": ["exc...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99779:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99779:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99779:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99779:Assign_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
class SameNamesAsInBuiltIn: def noop(self): """Using this keyword without libname causes an error"""
ajibawa-2023/Python-Code-Large/train/row_99780
3
4
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99780:ClassDef_L1_C0", "label": "SameNamesAsInBuiltIn", "type": "class", "loc": [1, 4], "level": 0, "parent": null, "vector": [3, 0, 0.625, 1.0, 0, 0.66, 0.0, 82, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "SameNamesAsInBuiltIn", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99780:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99780:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99780:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99780:Expr_L4_C8"}]
class ZipLib: def kw_from_zip(self, arg): print '*INFO*', arg return arg * 2
ajibawa-2023/Python-Code-Large/train/row_99781
4
7
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99781:ClassDef_L1_C0", "label": "ZipLib", "type": "class", "loc": [1, 5], "level": 0, "parent": null, "vector": [3, 0, 0.4286, 0.7143, 0, 0.66, 0.0, 240, 0, 1, 0, 0, 0, 0, 1], "semantic": {"name": "ZipLib", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99781:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99781:FunctionDef_L3_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99781:FunctionDef_L3_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99781:Expr_L4_C2"}, {"f": "ajibawa-2023/Python-Code-L...
class PythonVarArgsConstructor: def __init__(self, mandatory, *varargs): self.mandatory = mandatory self.varargs = varargs def get_args(self): return self.mandatory, ' '.join(self.varargs)
ajibawa-2023/Python-Code-Large/train/row_99782
6
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_99782:ClassDef_L1_C0", "label": "PythonVarArgsConstructor", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.5, 0.8889, 0, 0.66, 0.0, 282, 0, 2, 0, 0, 0, 0, 1], "semantic": {"name": "PythonVarArgsConstructor", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99782:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99782:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99782:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99782:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
import ExampleJavaLibrary import DefaultArgs class ExtendJavaLib(ExampleJavaLibrary): def kw_in_java_extender(self, arg): return arg*2 def javaSleep(self, secs): raise Exception('Overridden kw executed!') def using_method_from_java_parent(self): self.divByZero() class ExtendJa...
ajibawa-2023/Python-Code-Large/train/row_99784
21
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_99784:Import_L1_C0", "label": "ExampleJavaLibrary import ExampleJavaLibrary", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.027, 0, 0.66, 0.0, 716, 0, 1, 0, 0, 716, 0, 0], "semantic": {"name": "ExampleJavaLibrary", "arg_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99784:ClassDef_L5_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99784:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99784:FunctionDef_L7_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99784:Return_L8_C8"}, {"f": "ajibawa-2023/Python-Code...
class ArgumentsPython: # method docs are used in unit tests as expected min and max args def a_0(self): """(0,0)""" return 'a_0' def a_1(self, arg): """(1,1)""" return 'a_1: ' + arg def a_3(self, arg1, arg2, arg3): """(3,3)""" return ' ...
ajibawa-2023/Python-Code-Large/train/row_99786
25
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99786:ClassDef_L1_C0", "label": "ArgumentsPython", "type": "class", "loc": [1, 35], "level": 0, "parent": null, "vector": [3, 0, 0.5, 0.9722, 0, 0.66, 0.0, 360, 0, 8, 0, 0, 0, 0, 8], "semantic": {"name": "ArgumentsPython", "arg_names": [], "import_names": [], "rhs_call_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99786:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99786:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99786:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99786:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-L...
from robot import utils class RunKeywordLibrary: ROBOT_LIBRARY_SCOPE = 'TESTCASE' def __init__(self): self.kw_names = ['Run Keyword That Passes', 'Run Keyword That Fails'] def get_keyword_names(self): return self.kw_names def run_keyword(self, name, args): try: m...
ajibawa-2023/Python-Code-Large/train/row_99787
24
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_99787:ImportFrom_L1_C0", "label": "from robot import utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 0.0244, 0, 0.66, 0.0, 735, 0, 1, 0, 0, 735, 0, 0], "semantic": {"name": "robot", "arg_names": [], "import_names": ["utils"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99787:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99787:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99787:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99787:FunctionDef_L7_C4"}, {"f": "ajibawa-2023/Python-Code-La...
library = "It should be OK to have an attribute with same name as the module" def keyword_from_submodule(arg='World'): return "Hello, %s!" % arg
ajibawa-2023/Python-Code-Large/train/row_99788
3
5
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99788:Assign_L1_C0", "label": "library =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.2, 0.2, 0, 0.66, 0.0, 860, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "library", "arg_names": [], "import_names": [], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99788:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99788:Return_L5_C4"}]
some_string = 'Hello, World!' class _SomeObject: pass some_object = _SomeObject()
ajibawa-2023/Python-Code-Large/train/row_99789
3
6
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99789:Assign_L1_C0", "label": "some_string =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 913, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "some_string", "arg_names": [], "import_names": [], "rh...
[]
class KwargsLibrary(object): def __init__(self, arg1=None, arg2=None): self.arg1 = arg1 self.arg2 = arg2 def check_init_arguments(self, exp_arg1, exp_arg2): if self.arg1 != exp_arg1 or self.arg2 != exp_arg2: raise AssertionError('Wrong initialization values. Got (%s, %s), e...
ajibawa-2023/Python-Code-Large/train/row_99790
16
25
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99790:ClassDef_L1_C0", "label": "KwargsLibrary", "type": "class", "loc": [1, 25], "level": 0, "parent": null, "vector": [3, 0, 0.52, 1.0, 0, 0.66, 0.0, 328, 0, 7, 0, 0, 186, 0, 2], "semantic": {"name": "KwargsLibrary", "arg_names": [], "import_names": [], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99790:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99790:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99790:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99790:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
class ParameterLibrary: def __init__(self, host='localhost', port='8080'): self.host = host self.port = port def parameters(self): return self.host, self.port
ajibawa-2023/Python-Code-Large/train/row_99791
6
8
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99791:ClassDef_L1_C0", "label": "ParameterLibrary", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.5625, 1.0, 0, 0.66, 0.0, 341, 0, 2, 0, 0, 0, 0, 0], "semantic": {"name": "ParameterLibrary", "arg_names": [], "import_names": [], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99791:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99791:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99791:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99791:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
from robot import utils def passing_handler(*args): for arg in args: print arg, return ', '.join(args) def failing_handler(*args): if len(args) == 0: msg = 'Failure' else: msg = 'Failure: %s' % ' '.join(args) raise AssertionError(msg) class GetKeywordNamesLibrary: ...
ajibawa-2023/Python-Code-Large/train/row_99792
23
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_99792:ImportFrom_L1_C0", "label": "from robot import utils", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.027, 0, 0.66, 0.0, 735, 0, 1, 0, 0, 735, 0, 0], "semantic": {"name": "robot", "arg_names": [], "import_names": ["utils"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99792:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99792:For_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99792:For_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99792:Expr_L6_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
class Mandatory: def __init__(self, mandatory1, mandatory2): self.mandatory1 = mandatory1 self.mandatory2 = mandatory2 def get_args(self): return self.mandatory1, self.mandatory2 class Defaults(object): def __init__(self, mandatory, default1='value', default2=None): self...
ajibawa-2023/Python-Code-Large/train/row_99794
19
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_99794:ClassDef_L1_C0", "label": "Mandatory", "type": "class", "loc": [1, 8], "level": 0, "parent": null, "vector": [3, 0, 0.1406, 0.25, 0, 0.66, 0.0, 745, 0, 2, 0, 0, 0, 0, 0], "semantic": {"name": "Mandatory", "arg_names": [], "import_names": [], "rhs_call_name": "", "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99794:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99794:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99794:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99794:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
from ExampleLibrary import ExampleLibrary class ExtendPythonLib(ExampleLibrary): def kw_in_python_extender(self, arg): return arg/2 def print_many(self, *msgs): raise Exception('Overridden kw executed!') def using_method_from_python_parent(self): self.exception('Asser...
ajibawa-2023/Python-Code-Large/train/row_99796
7
12
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99796:ImportFrom_L1_C0", "label": "from ExampleLibrary import ExampleLibrary", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0833, 0.0833, 0, 0.66, 0.0, 472, 0, 1, 0, 0, 472, 0, 0], "semantic": {"name": "ExampleLibrary", "arg_names": []...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99796:ClassDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99796:FunctionDef_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99796:FunctionDef_L5_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99796:Return_L6_C8"}, {"f": "ajibawa-2023/Python-Code...
__version__ = 'N/A' # This should be ignored when version is parsed class NameLibrary: handler_count = 10 def simple1(self): """Simple 1""" def simple2___(self): """Simple 2""" def underscore_name(self): """Underscore Name""" def underscore_name2_(self): """Undersc...
ajibawa-2023/Python-Code-Large/train/row_99797
123
163
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99797:Assign_L1_C0", "label": "__version__ =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0061, 0.0061, 0, 0.66, 0.0, 162, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "__version__", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99797:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99797:Assign_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99797:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99797:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-La...
class NewStyleClassLibrary(object): def mirror(self, arg): arg = list(arg) arg.reverse() return ''.join(arg) def _property_getter(self): raise SystemExit('This should not be called, ever!!!') prop = property(_property_getter) class NewStyleClassArgsLibrar...
ajibawa-2023/Python-Code-Large/train/row_99798
19
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_99798:ClassDef_L1_C0", "label": "NewStyleClassLibrary", "type": "class", "loc": [1, 11], "level": 0, "parent": null, "vector": [3, 0, 0.1765, 0.3235, 0, 0.66, 0.0, 12, 0, 2, 0, 0, 186, 0, 5], "semantic": {"name": "NewStyleClassLibrary", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99798:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99798:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99798:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99798:Assign_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
class LibClass1: def verify_libclass1(self): return 'LibClass 1 works' class LibClass2: def verify_libclass2(self): return 'LibClass 2 works also'
ajibawa-2023/Python-Code-Large/train/row_99799
6
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_99799:ClassDef_L1_C0", "label": "LibClass1", "type": "class", "loc": [1, 4], "level": 0, "parent": null, "vector": [3, 0, 0.2273, 0.3636, 0, 0.66, 0.0, 529, 0, 1, 0, 0, 0, 0, 0], "semantic": {"name": "LibClass1", "arg_names": [], "import_names": [], "rhs_call_name": "",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99799:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99799:FunctionDef_L3_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99799:FunctionDef_L3_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99799:Return_L4_C8"}, {"f": "ajibawa-2023/Python-Code...
class FatalCatastrophyException(RuntimeError): ROBOT_EXIT_ON_FAILURE = True class ContinuableApocalypseException(RuntimeError): ROBOT_CONTINUE_ON_FAILURE = True def exit_on_failure(): raise FatalCatastrophyException() def raise_continuable_failure(msg='Can be continued'): raise ContinuableApocalypseE...
ajibawa-2023/Python-Code-Large/train/row_99800
6
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_99800:ClassDef_L1_C0", "label": "FatalCatastrophyException", "type": "class", "loc": [1, 2], "level": 0, "parent": null, "vector": [3, 0, 0.1364, 0.1818, 0, 0.66, 0.0, 572, 0, 0, 0, 0, 178, 0, 0], "semantic": {"name": "FatalCatastrophyException", "arg_names": [], "impor...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99800:ClassDef_L1_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99800:Assign_L2_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99800:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99800:Assign_L5_C4"}]
ROBOT_LIBRARY_SCOPE = 'Test Suite' # this should be ignored __version__ = 'test' # this should be used as version of this library def passing(): pass def failing(): raise AssertionError('This is a failing keyword from module library') def logging(): print 'Hello from module library' print '*WARN* ...
ajibawa-2023/Python-Code-Large/train/row_99801
27
54
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99801:Assign_L1_C0", "label": "ROBOT_LIBRARY_SCOPE =", "type": "assigned_variable", "loc": [1, 1], "level": 0, "parent": null, "vector": [14, 0, 0.0185, 0.0185, 0, 0.66, 0.0, 305, 1, 0, 0, 0, 0, 3, 0], "semantic": {"name": "ROBOT_LIBRARY_SCOPE", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99801:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99801:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99801:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99801:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import re from robot import utils from robot.output import readers from robot.common import Statistics from robot.libraries.BuiltIn import BuiltIn class TestCheckerLibrary: def process_output(self, path): path = path.replace('/', os.sep) try: print "Processing output '%s'" ...
ajibawa-2023/Python-Code-Large/train/row_99803
111
165
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99803:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0061, 0.0061, 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_99803:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99803:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99803:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99803:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-...
import os.path import robot import tempfile __all__ = ['robotpath', 'javatempdir', 'robotversion'] robotpath = os.path.abspath(os.path.dirname(robot.__file__)) javatempdir = tempfile.gettempdir() # Used to be different on OSX and elsewhere robotversion = robot.version.get_version()
ajibawa-2023/Python-Code-Large/train/row_99804
7
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99804:Import_L1_C0", "label": "os.path import os.path", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.1111, 0, 0.66, 0.0, 79, 0, 1, 0, 0, 79, 0, 0], "semantic": {"name": "os.path", "arg_names": [], "import_names": ["os.path"], "...
[]
message_list = [ u'Circle is 360\u00B0', u'Hyv\u00E4\u00E4 \u00FC\u00F6t\u00E4', u'\u0989\u09C4 \u09F0 \u09FA \u099F \u09EB \u09EA \u09B9' ] message1 = message_list[0] message2 = message_list[1] message3 = message_list[2] messages = ', '.join(message_list) sect = unichr(167) auml = unic...
ajibawa-2023/Python-Code-Large/train/row_99805
10
15
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99805:Assign_L1_C0", "label": "message_list =", "type": "assigned_variable", "loc": [1, 3], "level": 0, "parent": null, "vector": [14, 0, 0.1333, 0.2, 0, 0.66, 0.0, 656, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "message_list", "arg_names": [], "import_names": [], "rhs...
[]
from xml.dom.minidom import parse def parse_xunit(path): return parse(path) def get_root_element_name(dom): return dom.documentElement.tagName def get_element_count_by_name(dom, name): return len(get_elements_by_name(dom, name)) def get_elements_by_name(dom, name): return dom.getElementsByTagName(na...
ajibawa-2023/Python-Code-Large/train/row_99806
9
13
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99806:ImportFrom_L1_C0", "label": "from xml.dom.minidom import parse", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0769, 0, 0.66, 0.0, 770, 0, 1, 0, 0, 770, 0, 0], "semantic": {"name": "xml.dom.minidom", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99806:FunctionDef_L3_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99806:Return_L4_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99806:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99806:Return_L7_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import os import sys from stat import S_IREAD, S_IWRITE class TestHelper: def set_read_only(self, path): os.chmod(path, S_IREAD) def set_read_write(self, path): os.chmod(path, S_IREAD | S_IWRITE) def get_output_name(self, *datasources): if not datasources: raise ...
ajibawa-2023/Python-Code-Large/train/row_99807
29
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99807:Import_L1_C0", "label": "os import os", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0233, 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_99807:ClassDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99807:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99807:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99807:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/env python """Script to generate atest runners based on data files. Usage: %s path/to/data.file """ from __future__ import with_statement import sys, os if len(sys.argv) != 2: print __doc__ % os.path.basename(sys.argv[0]) sys.exit(1) inpath = os.path.abspath(sys.argv[1]) outpath = inpath.replac...
ajibawa-2023/Python-Code-Large/train/row_99808
25
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99808:Expr_L3_C0", "label": "expression", "type": "expression", "loc": [3, 6], "level": 0, "parent": null, "vector": [8, 0, 0.0957, 0.0851, 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_99808:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99808:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99808:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99808:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_998...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99810
183
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_99810:Import_L15_C0", "label": "inspect import inspect", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0514, 0.0034, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99810:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99810:ImportFrom_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99810:If_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99810:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99811
127
185
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99811:ClassDef_L15_C0", "label": "SuiteRunErrors", "type": "class", "loc": [15, 120], "level": 0, "parent": null, "vector": [3, 0, 0.3649, 0.573, 0, 0.66, 0.0, 239, 0, 17, 0, 0, 186, 0, 18], "semantic": {"name": "SuiteRunErrors", "arg_names": [], "import_names": [], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99811:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99811:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99811:ClassDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99811:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99813
56
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_99813:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1415, 0.0094, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99813:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99813:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99813:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99813:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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 la...
ajibawa-2023/Python-Code-Large/train/row_99814
37
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_99814:ImportFrom_L16_C0", "label": "from fixture import Setup, Teardown", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.254, 0.0159, 0, 0.66, 0.0, 458, 0, 2, 0, 0, 458, 0, 0], "semantic": {"name": "fixture", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99814:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99814:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99814:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99814:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99815
324
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_99815:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0311, 0.0021, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99815:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99815:ImportFrom_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99815:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99815:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99816
24
50
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99816:Import_L16_C0", "label": "inspect import inspect", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.32, 0.02, 0, 0.66, 0.0, 878, 0, 1, 0, 0, 878, 0, 0], "semantic": {"name": "inspect", "arg_names": [], "import_names": ["inspect"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99816:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99816:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99816:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99816:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99819
31
61
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99819:ImportFrom_L16_C0", "label": "from model import TestSuite", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2623, 0.0164, 0, 0.66, 0.0, 722, 0, 1, 0, 0, 722, 0, 0], "semantic": {"name": "model", "arg_names": [], "import_names": ["...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99819:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99819:Expr_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99819:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99819:ImportFrom_L27_C4"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99820
63
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_99820:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0095, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99820:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99820:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99820:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99820:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99821
58
102
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99821:ImportFrom_L15_C0", "label": "from robot.variables import GLOBAL_VARIABLES", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1471, 0.0098, 0, 0.66, 0.0, 595, 0, 1, 0, 0, 595, 0, 0], "semantic": {"name": "robot.variables", "arg_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99821:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99821:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99821:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99821:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99823
70
112
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99823:Import_L15_C0", "label": "os.path import os.path", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1339, 0.0089, 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_99823:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99823:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99823:FunctionDef_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99823:Assign_L29_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99824
221
334
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99824:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0449, 0.003, 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_99824:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99824:ImportFrom_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99824:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99824:ImportFrom_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99827
87
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_99827:ClassDef_L16_C0", "label": "VariableSplitter", "type": "class", "loc": [16, 134], "level": 0, "parent": null, "vector": [3, 0, 0.5597, 0.8881, 0, 0.66, 0.0, 73, 0, 15, 0, 0, 0, 0, 29], "semantic": {"name": "VariableSplitter", "arg_names": [], "import_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99827:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99827:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99827:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99827:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99829
9
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_99829:FunctionDef_L16_C0", "label": "is_var", "type": "function", "loc": [16, 21], "level": 0, "parent": null, "vector": [2, 0, 0.6379, 0.2069, 0, 0.66, 0.0, 481, 0, 1, 1, 0, 0, 0, 4], "semantic": {"name": "is_var", "arg_names": ["string"], "import_names": [], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99829:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99829:If_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99829:If_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99829:Return_L18_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99830
24
66
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99830:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2273, 0.0152, 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_99830:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99830:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99830:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99830:For_L31_C4"}, {"f": "ajibawa-2023/Python-Code-La...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99831
36
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_99831:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 16], "level": 0, "parent": null, "vector": [8, 0, 0.2162, 0.0135, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "anno...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99831:FunctionDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99831:If_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99831:If_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99831:If_L25_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99832
26
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_99832:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2542, 0.0169, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99832:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99832:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99832:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99832:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99833
121
209
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99833:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0718, 0.0048, 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_99833:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99833:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99833:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99833:Return_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99834
39
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_99834:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2027, 0.0135, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99834:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99834:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99834:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99834:If_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99835
25
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99835:ImportFrom_L16_C0", "label": "from java.io import FileOutputStream", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.0208, 0, 0.66, 0.0, 181, 0, 1, 0, 0, 181, 0, 0], "semantic": {"name": "java.io", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99835:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99835:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99835:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99835:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99836
103
179
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99836:Import_L16_C0", "label": "os.path import os.path", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.0894, 0.0056, 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_99836:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99836:ImportFrom_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99836:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99836:ImportFrom_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/t...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99837
35
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99837:ImportFrom_L15_C0", "label": "from unic import unic", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2174, 0.0145, 0, 0.66, 0.0, 992, 0, 1, 0, 0, 992, 0, 0], "semantic": {"name": "unic", "arg_names": [], "import_names": ["unic"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99837:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99837:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99837:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99837:Expr_L25_C8"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99838
70
138
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99838:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1087, 0.0072, 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_99838:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99838:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99838:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99838:If_L27_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99839
54
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_99839:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1415, 0.0094, 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_99839:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99839:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99839:If_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99839:Try_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99841
37
72
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99841:ImportFrom_L15_C0", "label": "from abstractxmlwriter import AbstractXmlWriter", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2083, 0.0139, 0, 0.66, 0.0, 993, 0, 1, 0, 0, 993, 0, 0], "semantic": {"name": "abstractxmlwriter", "ar...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99841:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99841:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99841:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99841:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99842
71
108
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99842:ImportFrom_L15_C0", "label": "from unic import unic", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1389, 0.0093, 0, 0.66, 0.0, 992, 0, 1, 0, 0, 992, 0, 0], "semantic": {"name": "unic", "arg_names": [], "import_names": ["unic"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99842:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99842:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99842:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99842:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99843
25
55
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99843:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2727, 0.0182, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99843:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99843:Import_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99843:Try_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99843:Try_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99845
12
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99845:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.4688, 0.0312, 0, 0.66, 0.0, 688, 0, 1, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99845:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99845:If_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99845:If_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99845:Return_L22_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99846
213
352
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99846:Import_L15_C0", "label": "time import time", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0426, 0.0028, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99846:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99846:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99846:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99846:Return_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99847
131
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99847:Import_L16_C0", "label": "os.path import os.path", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.0796, 0.005, 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_99847:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99847:FunctionDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99847:FunctionDef_L29_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99847:Expr_L30_C8"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99848
33
65
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99848:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.2308, 0.0154, 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_99848:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99848:If_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99848:If_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99848:Return_L24_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99849
47
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_99849:Import_L15_C0", "label": "etreewrapper import etreewrapper", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1429, 0.0095, 0, 0.66, 0.0, 651, 0, 1, 0, 0, 651, 0, 0], "semantic": {"name": "etreewrapper", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99849:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99849:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99849:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99849:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99851
48
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99851:ImportFrom_L15_C0", "label": "from unic import unic", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1613, 0.0108, 0, 0.66, 0.0, 992, 0, 1, 0, 0, 992, 0, 0], "semantic": {"name": "unic", "arg_names": [], "import_names": ["unic"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99851:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99851:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99851:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99851:If_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99852
16
116
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99852:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 29], "level": 0, "parent": null, "vector": [8, 0, 0.194, 0.1207, 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_99852:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99852:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99852:FunctionDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99852:If_L33_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99853
24
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99853:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.25, 0.0167, 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_99853:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99853:ImportFrom_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99853:If_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99853:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99854
76
131
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99854:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1145, 0.0076, 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_99854:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99854:Expr_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99854:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99854:If_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99855
19
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_99855:ImportFrom_L15_C0", "label": "from argumentparser import ArgumentParser", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.375, 0.025, 0, 0.66, 0.0, 215, 0, 1, 0, 0, 215, 0, 0], "semantic": {"name": "argumentparser", "arg_names": [...
[]
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99856
55
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99856:ImportFrom_L15_C0", "label": "from normalizing import NormalizedDict", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1261, 0.0084, 0, 0.66, 0.0, 901, 0, 1, 0, 0, 901, 0, 0], "semantic": {"name": "normalizing", "arg_names": [], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99856:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99856:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99856:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99856:FunctionDef_L30_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99857
32
60
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99857:Import_L16_C0", "label": "re import re", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.2667, 0.0167, 0, 0.66, 0.0, 540, 0, 1, 0, 0, 540, 0, 0], "semantic": {"name": "re", "arg_names": [], "import_names": ["re"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99857:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99857:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99857:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99857:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Co...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99858
20
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99858:Import_L15_C0", "label": "sys import sys", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.3488, 0.0233, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99858:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99858:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99858:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99858:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99860
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_99860:Assign_L16_C0", "label": "RESERVED_KEYWORDS =", "type": "assigned_variable", "loc": [16, 17], "level": 0, "parent": null, "vector": [14, 0, 0.569, 0.069, 0, 0.66, 0.0, 112, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "RESERVED_KEYWORDS", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99860:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99860:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99860:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99860:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Cod...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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 agr...
ajibawa-2023/Python-Code-Large/train/row_99861
3
19
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99861:FunctionDef_L16_C0", "label": "none_shall_pass", "type": "function", "loc": [16, 19], "level": 0, "parent": null, "vector": [2, 0, 0.9211, 0.2105, 0, 0.66, 0.0, 93, 0, 1, 0, 0, 0, 0, 2], "semantic": {"name": "none_shall_pass", "arg_names": ["who"], "import_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99861:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99861:If_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99861:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99861:Expr_L19_C4"}]
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99863
165
295
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99863:Expr_L16_C0", "label": "expression", "type": "expression", "loc": [16, 24], "level": 0, "parent": null, "vector": [8, 0, 0.0678, 0.0305, 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_99863:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99863:ImportFrom_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99863:Try_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99863:Assign_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99864
195
520
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99864:Import_L16_C0", "label": "telnetlib import telnetlib", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.0308, 0.0019, 0, 0.66, 0.0, 248, 0, 1, 0, 0, 248, 0, 0], "semantic": {"name": "telnetlib", "arg_names": [], "import_names": ["t...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99864:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99864:Expr_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99864:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99864:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99865
28
48
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99865:Import_L16_C0", "label": "OperatingSystem import OperatingSystem", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.0208, 0, 0.66, 0.0, 59, 0, 1, 0, 0, 59, 0, 0], "semantic": {"name": "OperatingSystem", "arg_names": [], "im...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99865:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99865:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99865:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99865:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99868
58
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_99868:Import_L16_C0", "label": "re import re", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.1798, 0.0112, 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_99868:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99868:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99868:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99868:Assign_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99869
118
416
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99869:Import_L16_C0", "label": "re import re", "type": "import", "loc": [16, 16], "level": 0, "parent": null, "vector": [1, 0, 0.0385, 0.0024, 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_99869:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99869:Expr_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99869:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99869:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99870
0
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"]
[]
[]
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99873
169
261
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99873:ClassDef_L16_C0", "label": "Populator", "type": "class", "loc": [16, 19], "level": 0, "parent": null, "vector": [3, 0, 0.067, 0.0153, 0, 0.66, 0.0, 532, 0, 2, 0, 0, 186, 0, 2], "semantic": {"name": "Populator", "arg_names": [], "import_names": [], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99873:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99873:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99873:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99873:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99874
342
575
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99874:Import_L15_C0", "label": "os import os", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0261, 0.0017, 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_99874:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99874:If_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99874:If_L28_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99874:Return_L29_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99875
15
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99875:Import_L15_C0", "label": "re import re", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.4167, 0.0278, 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_99875:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99875:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99875:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99875:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99876
20
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_99876:ImportFrom_L15_C0", "label": "from codecs import BOM_UTF8", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.3846, 0.0256, 0, 0.66, 0.0, 220, 0, 1, 0, 0, 220, 0, 0], "semantic": {"name": "codecs", "arg_names": [], "import_names": [...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99876:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99876:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99876:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99876:Assign_L21_C8"}, {"f": "ajibawa-2023/Python-...
# Copyright 2008-2011 Nokia Siemens Networks Oyj # # 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_99877
152
242
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99877:ClassDef_L16_C0", "label": "_Setting", "type": "class", "loc": [16, 70], "level": 0, "parent": null, "vector": [3, 0, 0.1777, 0.2273, 0, 0.66, 0.0, 307, 0, 13, 0, 0, 186, 0, 11], "semantic": {"name": "_Setting", "arg_names": [], "import_names": [], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99877:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99877:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99877:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99877:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-...