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
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99523
53
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_99523:Import_L32_C0", "label": "mekabot.hrl_robot import hr", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.2963, 0.0093, 0, 0.66, 0.0, 4, 0, 1, 0, 0, 4, 0, 0], "semantic": {"name": "mekabot.hrl_robot", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99523:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99523:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99523:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99523:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Co...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99524
39
95
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99524:Import_L32_C0", "label": "hrl_lib.util import ut", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.3368, 0.0105, 0, 0.66, 0.0, 775, 0, 1, 0, 0, 775, 0, 0], "semantic": {"name": "hrl_lib.util", "arg_names": [], "import_names": ["ut...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99524:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99524:If_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99524:If_L38_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99524:Return_L39_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99525
15
64
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99525:Import_L31_C0", "label": "numpy import np", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.4844, 0.0156, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99525:For_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99525:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99525:For_L55_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99525:Assign_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99526
45
100
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99526:Import_L31_C0", "label": "m3.toolbox import m3t", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.31, 0.01, 0, 0.66, 0.0, 478, 0, 1, 0, 0, 478, 0, 0], "semantic": {"name": "m3.toolbox", "arg_names": [], "import_names": ["m3t"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99526:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99526:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99526:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99526:For_L39_C4"}, {"f": "ajibawa-2023/Python-Code-...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99527
556
921
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99527:Import_L32_C0", "label": "scipy.optimize import so", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.0347, 0.0011, 0, 0.66, 0.0, 359, 0, 1, 0, 0, 359, 0, 0], "semantic": {"name": "scipy.optimize", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99527:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99527:Expr_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99527:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99527:FunctionDef_L56_C4"}, {"f": "ajibawa-2023/Python-Code-...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99528
146
246
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99528:Import_L32_C0", "label": "sys import sys, time, os\u2026", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.1301, 0.0041, 0, 0.66, 0.0, 509, 0, 4, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99528:If_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99528:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99528:If_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99528:Expr_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99529
194
403
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99529:Import_L32_C0", "label": "roslib import roslib", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.0794, 0.0025, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99529:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99529:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99529:FunctionDef_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99529:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-Co...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99530
55
117
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99530:Import_L32_C0", "label": "roslib import roslib", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.2735, 0.0085, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99530:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99530:Expr_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99530:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99530:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99531
53
103
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99531:Import_L31_C0", "label": "sys import sys, os", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.301, 0.0097, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "os"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99531:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99531:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99531:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99531:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import sys, os sys.path.append(os.environ['HRLBASEPATH']+'/src/libraries/') import cameras.dragonfly as dr import roslib; roslib.load_manifest('modeling_forces') import rospy import cv from collections import deque import time import math, numpy as np import glob import hrl_lib.util as ut import hr...
ajibawa-2023/Python-Code-Large/train/row_99533
188
291
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99533:Import_L3_C0", "label": "sys import sys, os", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0103, 0.0034, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "os"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99533:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99533:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99533:If_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99533:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# # Assumes that all the logs are in one folder with the file names # giving the different mechanisms, trial number, open or close etc. # import commands import os import os.path as pt import glob import math, numpy as np import scipy.signal as ss import scipy.cluster as clus import roslib; roslib.load_manifest('mode...
ajibawa-2023/Python-Code-Large/train/row_99534
1,027
1,641
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99534:Import_L6_C0", "label": "commands import commands", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.0037, 0.0006, 0, 0.66, 0.0, 760, 0, 1, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "import_names": ["command...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99534:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99534:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99534:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99534:Assign_L27_C8"}, {"f": "ajibawa-2023/Python-...
import roslib; roslib.load_manifest('modeling_forces') import rospy import hrl_lib.util as ut import hrl_lib.transforms as tr import matplotlib_util.util as mpu import hrl_tilting_hokuyo.display_3d_mayavi as d3m import modeling_forces.smooth as mfs import kinematics_estimation as ke import glob import math, numpy a...
ajibawa-2023/Python-Code-Large/train/row_99535
599
994
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99535:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.002, 0.001, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99535:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99535:Expr_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99535:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99535:Expr_L25_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# # Subscribe to ObjectDetection message and convert a pickle. # # # import roslib; roslib.load_manifest('modeling_forces') import rospy from checkerboard_detector.msg import ObjectDetection import hrl_lib.util as ut import hrl_lib.transforms as tr from std_msgs.msg import Empty import numpy as np import time def ...
ajibawa-2023/Python-Code-Large/train/row_99536
41
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_99536:Import_L8_C0", "label": "roslib import roslib", "type": "import", "loc": [8, 8], "level": 0, "parent": null, "vector": [1, 0, 0.1096, 0.0137, 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_99536:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99536:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99536:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99536:For_L23_C4"}, {"f": "ajibawa-2023/Python-Code-...
import roslib; roslib.load_manifest('modeling_forces') import rospy from geometry_msgs.msg import Point32 from articulation_msgs.msg import ModelMsg from articulation_msgs.msg import TrackMsg from geometry_msgs.msg import Pose, Point, Quaternion from threading import RLock import numpy as np import time def model_c...
ajibawa-2023/Python-Code-Large/train/row_99537
67
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99537:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0119, 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_99537:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99537:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99537:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99537:If_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
import math, numpy as np import glob import roslib; roslib.load_manifest('hrl_tilting_hokuyo') import hrl_tilting_hokuyo.display_3d_mayavi as d3m import matplotlib_util.util as mpu import hrl_lib.util as ut if __name__ == '__main__': import optparse p = optparse.OptionParser() p.add_option('-f', '--fn...
ajibawa-2023/Python-Code-Large/train/row_99538
40
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99538:Import_L2_C0", "label": "math import math, np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0143, 0, 0.66, 0.0, 526, 0, 2, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math", "np"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99538:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99538:Import_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99538:If_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99538:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
import commands import os def aggregate_plots(dir, name_list, extension_list): n = len(name_list) for i in range(n): #for nm in name_list: nm = name_list[i] ex = extension_list[i] pngs_list = commands.getoutput('find %s/0* -name "*%s.%s"'%(dir, nm, ex)) pngs_list = pngs_li...
ajibawa-2023/Python-Code-Large/train/row_99539
28
47
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99539:Import_L2_C0", "label": "commands import commands", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0426, 0.0213, 0, 0.66, 0.0, 760, 0, 1, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "import_names": ["command...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99539:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99539:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99539:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99539:For_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Larg...
# print 'Following are the key that you can use:' # print '1. Hit ESC to end' # print '2. Hit - to decrease the size of the image' # print '3. Hit + (without the shift key) to increase the image size' # print '4. Hit c to detect chessboard corners' import sys, time import numpy as np, math import glob, ...
ajibawa-2023/Python-Code-Large/train/row_99540
145
206
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99540:Import_L7_C0", "label": "sys import sys, time", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.034, 0.0049, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys", "time"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99540:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99540:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99540:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99540:Expr_L20_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import csv import numpy as np import pylab as pb import matplotlib_util.util as mpu def load_data(): mk = csv.reader(open('Mechanism Kinematics.csv', 'U')) data = [] for r in mk: data.append(r) return data ## # Deal with repetition def expand(data, keys): repetition_idx = np.where(np.arra...
ajibawa-2023/Python-Code-Large/train/row_99541
191
269
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99541:Import_L1_C0", "label": "csv import csv", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0037, 0.0037, 0, 0.66, 0.0, 312, 0, 1, 0, 0, 312, 0, 0], "semantic": {"name": "csv", "arg_names": [], "import_names": ["csv"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99541:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99541:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99541:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99541:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/python import roslib; roslib.load_manifest('modeling_forces') import rospy import force_torque.FTClient as ftc import hrl_lib.util as ut from std_msgs.msg import Empty import time import numpy as np import glob ## # make an appropriate plot. # @param d - dictionary saved in the pkl def plot_ft(d): f...
ajibawa-2023/Python-Code-Large/train/row_99542
82
129
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99542:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0078, 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_99542:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99542:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99542:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99542:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Co...
import commands import sys, os import glob l1 = glob.glob('data_1tb/*/mechanism_info.pkl') l2 = [] for d in l1: l2.append('/'.join(['aggregated_pkls_Feb11']+d.split('/')[1:])) for d1,d2 in zip(l1,l2): os.system('cp %s %s'%(d1, d2))
ajibawa-2023/Python-Code-Large/train/row_99544
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_99544:Import_L2_C0", "label": "commands import commands", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.1538, 0.0769, 0, 0.66, 0.0, 760, 0, 1, 0, 0, 760, 0, 0], "semantic": {"name": "commands", "arg_names": [], "import_names": ["command...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99544:For_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99544:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99544:For_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99544:Expr_L12_C4"}]
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, th...
ajibawa-2023/Python-Code-Large/train/row_99547
582
904
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99547:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0332, 0.0011, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99547:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99547:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99547:ClassDef_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99547:FunctionDef_L53_C4"}, {"f": "ajibawa-2023/Python-Code-...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, th...
ajibawa-2023/Python-Code-Large/train/row_99548
415
676
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99548:Import_L30_C0", "label": "m3.toolbox import m3t", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0444, 0.0015, 0, 0.66, 0.0, 478, 0, 1, 0, 0, 478, 0, 0], "semantic": {"name": "m3.toolbox", "arg_names": [], "import_names": ["m3t"]...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99548:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99548:Expr_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99548:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99548:FunctionDef_L58_C4"}, {"f": "ajibawa-2023/Python-Code-...
import roslib roslib.load_manifest("phantom_omni") import rospy import tf import math from geometry_msgs.msg import PoseStamped import pdb rospy.init_node("long_tip_pose_publisher") pub = rospy.Publisher('pr2_right', PoseStamped) r = rospy.Rate(60) while not rospy.is_shutdown(): ps = PoseStamped() ps.header....
ajibawa-2023/Python-Code-Large/train/row_99549
24
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_99549:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0333, 0.0333, 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_99549:While_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99549:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99549:While_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99549:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
import roslib roslib.load_manifest("phantom_omni") import rospy import tf import tf.transformations as tr from geometry_msgs.msg import PoseStamped from geometry_msgs.msg import Pose from geometry_msgs.msg import Wrench import math import numpy as np def tf2mat(tf_trans): (trans, rot) = tf_trans return np.ma...
ajibawa-2023/Python-Code-Large/train/row_99550
53
141
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99550:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0071, 0.0071, 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_99550:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99550:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99550:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99550:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib roslib.load_manifest("phantom_omni") import rospy import tf import tf.transformations as tr from geometry_msgs.msg import PoseStamped from geometry_msgs.msg import Pose from geometry_msgs.msg import Wrench import math import numpy as np def tf2mat(tf_trans): (trans, rot) = tf_trans return np.ma...
ajibawa-2023/Python-Code-Large/train/row_99551
40
169
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99551:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0059, 0.0059, 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_99551:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99551:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99551:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99551:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib roslib.load_manifest("phantom_omni") import rospy import tf import tf.transformations as tr from geometry_msgs.msg import PoseStamped from geometry_msgs.msg import Pose from geometry_msgs.msg import Wrench import math import numpy as np def tf2mat(tf_trans): (trans, rot) = tf_trans return np.ma...
ajibawa-2023/Python-Code-Large/train/row_99552
49
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99552:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0147, 0.0147, 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_99552:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99552:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99552:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99552:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib roslib.load_manifest("phantom_omni") import rospy import tf import tf.transformations as tr import hrl_lib.tf_utils as tfu from geometry_msgs.msg import PoseStamped from geometry_msgs.msg import Pose from geometry_msgs.msg import Wrench import math import numpy as np rospy.init_node("omni_potential_wel...
ajibawa-2023/Python-Code-Large/train/row_99553
36
111
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99553:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.009, 0.009, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99553:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99553:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99553:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99553:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Co...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99554
73
192
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99554:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.1562, 0.0052, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99554:FunctionDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99554:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99554:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99554:Expr_L55_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99555
94
191
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99555:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.1571, 0.0052, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99555:ClassDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99555:FunctionDef_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99555:FunctionDef_L43_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99555:Expr_L44_C8"}, {"f": "ajibawa-2023/Python-Co...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99556
654
1,148
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99556:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0261, 0.0009, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99556:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99556:Assign_L57_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99556:FunctionDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99556:If_L58_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99557
334
613
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99557:Import_L30_C0", "label": "sys import sys, optparse, os", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0489, 0.0016, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99557:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99557:If_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99557:If_L55_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99557:Expr_L56_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
# Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this...
ajibawa-2023/Python-Code-Large/train/row_99558
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_99558:Import_L28_C0", "label": "roslib import roslib", "type": "import", "loc": [28, 28], "level": 0, "parent": null, "vector": [1, 0, 0.4746, 0.0169, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99558:ClassDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99558:FunctionDef_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99558:FunctionDef_L34_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99558:If_L36_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # ...
ajibawa-2023/Python-Code-Large/train/row_99559
55
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_99559:ImportFrom_L33_C0", "label": "from threading import RLock", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.2845, 0.0086, 0, 0.66, 0.0, 83, 0, 1, 0, 0, 83, 0, 0], "semantic": {"name": "threading", "arg_names": [], "import_names": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99559:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99559:FunctionDef_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99559:FunctionDef_L45_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99559:Try_L46_C8"}, {"f": "ajibawa-2023/Python-Cod...
calib = { 'El-E': { 'robot': 'El-E', 'pos_factor': 0.9144 / (183897 - 1250), 'vel_factor': 0.9144 / (183897 - 1250) / 20, 'acc_factor': 0.9144 / (183897 - 1250), 'POS_MAX': 0.9, 'VEL_DEFAULT': 1.5, 'VEL_MAX': 4.0, 'ACC_DEFAULT':0.0002, 'ACC_MA...
ajibawa-2023/Python-Code-Large/train/row_99560
1
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99560:Assign_L2_C0", "label": "calib =", "type": "assigned_variable", "loc": [2, 82], "level": 0, "parent": null, "vector": [14, 0, 0.5, 0.9643, 0, 0.66, 0.0, 147, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "calib", "arg_names": [], "import_names": [], "rhs_call_name": ...
[]
__all__ = [ 'zenither', 'lib_zenither', 'ros_zenither_server', 'ros_zenither_client' ]
ajibawa-2023/Python-Code-Large/train/row_99561
1
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_99561:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 6], "level": 0, "parent": null, "vector": [14, 0, 0.5833, 1.0, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_name...
[]
#!/usr/bin/python # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # ...
ajibawa-2023/Python-Code-Large/train/row_99563
33
85
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99563:Import_L33_C0", "label": "roslib import roslib", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.3882, 0.0118, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99563:ClassDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99563:FunctionDef_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99563:FunctionDef_L43_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99563:Try_L44_C8"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright #...
ajibawa-2023/Python-Code-Large/train/row_99564
78
164
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99564:Import_L32_C0", "label": "pygame import pygame", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.1951, 0.0061, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "r...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99564:If_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99564:Assign_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99564:If_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99564:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
# Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this ...
ajibawa-2023/Python-Code-Large/train/row_99565
275
464
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99565:Import_L29_C0", "label": "usb import usb", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0022, 0, 0.66, 0.0, 856, 0, 1, 0, 0, 856, 0, 0], "semantic": {"name": "usb", "arg_names": [], "import_names": ["usb"], "rhs_call_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99565:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99565:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99565:FunctionDef_L38_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99565:Assign_L39_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # ...
ajibawa-2023/Python-Code-Large/train/row_99567
18
53
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99567:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.566, 0.0189, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99567:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99567:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99567:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99567:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright #...
ajibawa-2023/Python-Code-Large/train/row_99568
31
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99568:Import_L33_C0", "label": "roslib import roslib", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.3929, 0.0119, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99568:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99568:FunctionDef_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99568:FunctionDef_L46_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99568:Expr_L47_C8"}, {"f": "ajibawa-2023/Python-Co...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99569
77
130
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99569:Import_L32_C0", "label": "time import time, os, copy", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.2462, 0.0077, 0, 0.66, 0.0, 654, 0, 3, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99569:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99569:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99569:FunctionDef_L38_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99569:Assign_L39_C8"}, {"f": "ajibawa-2023/Python-...
import roslib; roslib.load_manifest('hrl_lib') import rospy import std_srvs.srv as srv from hrl_msgs.msg import FloatArray import time def cb( msg ): print 'Received msg: ', msg, '\n\tType: ', msg.__class__ return x = 3.0 rospy.init_node('trial_subscriber') sub = rospy.Subscriber('trial_pub', FloatArray, cb)...
ajibawa-2023/Python-Code-Large/train/row_99570
14
17
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99570:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0588, 0.0588, 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_99570:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99570:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99570:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99570:Return_L10_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/python import roslib roslib.load_manifest('force_torque') import rospy from geometry_msgs.msg import Vector3Stamped from threading import RLock ## 1D kalman filter update. def kalman_update(xhat, P, Q, R, z): #time update xhatminus = xhat Pminus = P + Q #measurement update K = Pminus...
ajibawa-2023/Python-Code-Large/train/row_99571
82
126
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99571:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0159, 0.0079, 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_99571:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99571:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99571:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99571:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright #...
ajibawa-2023/Python-Code-Large/train/row_99572
70
148
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99572:Import_L32_C0", "label": "roslib import roslib", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.2162, 0.0068, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99572:ClassDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99572:FunctionDef_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99572:FunctionDef_L43_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99572:If_L44_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright #...
ajibawa-2023/Python-Code-Large/train/row_99573
31
84
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99573:Import_L33_C0", "label": "roslib import roslib", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.3929, 0.0119, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99573:ClassDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99573:FunctionDef_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99573:FunctionDef_L46_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99573:Expr_L47_C8"}, {"f": "ajibawa-2023/Python-Co...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99575
0
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"]
[]
[]
import roslib; roslib.load_manifest('hrl_lib') import rospy import std_srvs.srv as srv from hrl_msgs.msg import FloatArray import time x = 3.0 rospy.init_node('trial_publisher') pub = rospy.Publisher( 'trial_pub', FloatArray) while not rospy.is_shutdown(): x += 0.1 fa = FloatArray() fa.data = [ x, x+1.0, ...
ajibawa-2023/Python-Code-Large/train/row_99576
14
16
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99576:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0625, 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_99576:While_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99576:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99576:While_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99576:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright #...
ajibawa-2023/Python-Code-Large/train/row_99577
70
148
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99577:Import_L32_C0", "label": "roslib import roslib", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.2162, 0.0068, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99577:ClassDef_L42_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99577:FunctionDef_L43_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99577:FunctionDef_L43_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99577:If_L44_C8"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import roslib roslib.load_manifest('force_torque') import rospy from geometry_msgs.msg import Vector3Stamped from threading import RLock ## 1D kalman filter update. def kalman_update(xhat, P, Q, R, z): #time update xhatminus = xhat Pminus = P + Q #measurement update K = Pminus...
ajibawa-2023/Python-Code-Large/train/row_99579
82
126
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99579:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0159, 0.0079, 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_99579:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99579:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99579:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99579:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Co...
import pygame import pygame.locals import numpy as np import time import copy #------ Slider class is code copied from the internet. (http://www.pygame.org/project/668/) class Slider(object): #Constructs the object def __init__(self, pos, value=0): self.pos = pos self.size = (275,15) ...
ajibawa-2023/Python-Code-Large/train/row_99580
45
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_99580:Import_L1_C0", "label": "pygame import pygame", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0169, 0.0169, 0, 0.66, 0.0, 87, 0, 1, 0, 0, 87, 0, 0], "semantic": {"name": "pygame", "arg_names": [], "import_names": ["pygame"], "rhs_...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99580:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99580:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99580:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99580:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-C...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99581
406
713
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99581:Import_L34_C0", "label": "roslib import roslib", "type": "import", "loc": [34, 34], "level": 0, "parent": null, "vector": [1, 0, 0.0477, 0.0014, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99581:FunctionDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99581:Expr_L71_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99581:FunctionDef_L70_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99581:Return_L73_C4"}, {"f": "ajibawa-2023/Python-Code...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99582
113
182
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99582:Import_L1_C0", "label": "math import math, np", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0055, 0.0055, 0, 0.66, 0.0, 526, 0, 2, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math", "np"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99582:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99582:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99582:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99582:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-...
import math # home position in encoder ticks for the servo. servo_param = { # 1: { # Default for new servo. Please issue 'new_servo.write_id(new_id)' and setup your own home position! # 'home_encoder': 351 # }, 2: { # Tilting Hokuyo on El-E '...
ajibawa-2023/Python-Code-Large/train/row_99585
2
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99585:Import_L1_C0", "label": "math import math", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0092, 0.0092, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call_n...
[]
__all__ = [ 'robotis_servo', 'lib_robotis', 'ros_robotis', 'servo_config' ]
ajibawa-2023/Python-Code-Large/train/row_99586
1
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_99586:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 6], "level": 0, "parent": null, "vector": [14, 0, 0.5833, 1.0, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_name...
[]
#!/usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright ...
ajibawa-2023/Python-Code-Large/train/row_99587
98
221
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99587:Import_L36_C0", "label": "roslib import roslib", "type": "import", "loc": [36, 36], "level": 0, "parent": null, "vector": [1, 0, 0.1629, 0.0045, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99587:ClassDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99587:FunctionDef_L56_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99587:FunctionDef_L56_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99587:If_L57_C8"}, {"f": "ajibawa-2023/Python-Code...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99589
70
156
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99589:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.1923, 0.0064, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99589:ClassDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99589:FunctionDef_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99589:FunctionDef_L51_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99589:Assign_L54_C8"}, {"f": "ajibawa-2023/Python-...
import time import sys, os, copy import numpy as np, math import scipy.ndimage as ni class occupancy_grid_3d(): ## # @param resolution - 3x1 matrix. size of each cell (in meters) along # the different directions. def __init__(self, center, size, resolution, data, ...
ajibawa-2023/Python-Code-Large/train/row_99590
55
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_99590:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0225, 0.0112, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99590:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99590:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99590:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99590:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-C...
import sys import numpy as np, math import add_cylinder as ac import online_collision_detection as ocd import roslib; roslib.load_manifest('arm_navigation_tutorials') import rospy from mapping_msgs.msg import CollisionObject from visualization_msgs.msg import Marker import hrl_lib.transforms as tr import hrl_lib.vi...
ajibawa-2023/Python-Code-Large/train/row_99591
55
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_99591:Import_L2_C0", "label": "sys import sys", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0225, 0.0112, 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_99591:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99591:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99591:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99591:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-...
import roslib; roslib.load_manifest('arm_navigation_tutorials') import sys import rospy from planning_environment_msgs.srv import GetStateValidity from planning_environment_msgs.srv import GetStateValidityRequest if __name__ == '__main__': rospy.init_node('get_state_validity_python') srv_nm = 'environment_...
ajibawa-2023/Python-Code-Large/train/row_99592
22
40
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99592:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.025, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rhs_c...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99592:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99592:Expr_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99592:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99592:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
import sys import numpy as np, math import add_cylinder as ac import online_collision_detection as ocd import force_visualize_test as fvt import roslib; roslib.load_manifest('arm_navigation_tutorials') import rospy from mapping_msgs.msg import CollisionObject from visualization_msgs.msg import Marker import hrl_lib...
ajibawa-2023/Python-Code-Large/train/row_99593
84
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_99593:Import_L2_C0", "label": "sys import sys", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0172, 0.0086, 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_99593:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99593:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99593:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99593:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib; roslib.load_manifest('arm_navigation_tutorials') import sys import rospy from mapping_msgs.msg import CollisionObject from mapping_msgs.msg import CollisionObjectOperation from geometric_shapes_msgs.msg import Shape from geometry_msgs.msg import Pose def add_cylinder(id, bottom, radius, height, frame...
ajibawa-2023/Python-Code-Large/train/row_99594
37
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_99594:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.02, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99594:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99594:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99594:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99594:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib; roslib.load_manifest('arm_navigation_tutorials') import sys import rospy import hrl_lib.transforms as tr from planning_environment_msgs.srv import GetStateValidity from planning_environment_msgs.srv import GetStateValidityRequest from sensor_msgs.msg import JointState roslib.load_manifest('hrl_pr2_li...
ajibawa-2023/Python-Code-Large/train/row_99595
37
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_99595:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0333, 0.0167, 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_99595:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99595:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99595:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99595:Assign_L19_C8"}, {"f": "ajibawa-2023/Python-...
# # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, th...
ajibawa-2023/Python-Code-Large/train/row_99596
22
68
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99596:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.4412, 0.0147, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99596:If_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99596:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99596:If_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99596:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
# # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, th...
ajibawa-2023/Python-Code-Large/train/row_99597
37
79
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99597:Import_L31_C0", "label": "roslib import roslib", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.3924, 0.0127, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99597:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99597:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99597:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99597:Assign_L43_C4"}, {"f": "ajibawa-2023/Python-Co...
import PyKDL as kdl import numpy as np, math import roslib; roslib.load_manifest('pr2_arms_kdl') import rospy import hrl_lib.kdl_utils as ku class PR2_arm_kdl(): def __init__(self): self.right_chain = self.create_right_chain() fk, ik_v, ik_p = self.create_solvers(self.right_chain) self....
ajibawa-2023/Python-Code-Large/train/row_99598
87
118
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99598:Import_L1_C0", "label": "PyKDL import kdl", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 0, 0.66, 0.0, 198, 0, 1, 0, 0, 198, 0, 0], "semantic": {"name": "PyKDL", "arg_names": [], "import_names": ["kdl"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99598:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99598:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99598:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99598:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-...
import numpy as np, math import roslib; roslib.load_manifest('point_cloud_ros') import rospy import hrl_tilting_hokuyo.display_3d_mayavi as d3m from point_cloud_ros.msg import OccupancyGrid import point_cloud_ros.occupancy_grid as pog ## convert OccupancyGrid message to the occupancy_grid_3d object. # @param to_bi...
ajibawa-2023/Python-Code-Large/train/row_99599
58
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99599:Import_L2_C0", "label": "numpy import np, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0217, 0.0109, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99599:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99599:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99599:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99599:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright ...
ajibawa-2023/Python-Code-Large/train/row_99600
113
190
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99600:Import_L33_C0", "label": "roslib import roslib", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.1737, 0.0053, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99600:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99600:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99600:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99600:Assign_L53_C4"}, {"f": "ajibawa-2023/Python-Co...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99601
334
613
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99601:Import_L30_C0", "label": "sys import sys, optparse, os", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0489, 0.0016, 0, 0.66, 0.0, 509, 0, 3, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys",...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99601:FunctionDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99601:If_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99601:If_L55_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99601:Expr_L56_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/...
import roslib; roslib.load_manifest('point_cloud_ros') from sensor_msgs.msg import PointCloud from geometry_msgs.msg import Point32 from sensor_msgs.msg import ChannelFloat32 import numpy as np import time ## PointCloud -> 3xN np matrix # @param ros_pointcloud - robot_msgs/PointCloud # @return 3xN np matrix def ros_p...
ajibawa-2023/Python-Code-Large/train/row_99602
26
45
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99602:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0222, 0.0222, 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_99602:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99602:Expr_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99602:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99602:Return_L14_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import numpy as np, math import scipy.ndimage as ni import roslib; roslib.load_manifest('point_cloud_ros') import rospy import hrl_lib.util as ut import point_cloud_ros.occupancy_grid as pog import point_cloud_ros.ros_occupancy_grid as rog from point_cloud_ros.msg import OccupancyGrid def og_cb(...
ajibawa-2023/Python-Code-Large/train/row_99603
36
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_99603:Import_L3_C0", "label": "numpy import np, math", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0508, 0.0169, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99603:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99603:Expr_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99603:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99603:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code...
import time import sys, os, copy import numpy as np, math import scipy.ndimage as ni class occupancy_grid_3d(): ## # @param resolution - 3x1 matrix. size of each cell (in meters) along # the different directions. def __init__(self, center, size, resolution, data, ...
ajibawa-2023/Python-Code-Large/train/row_99604
63
109
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99604:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0183, 0.0092, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99604:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99604:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99604:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99604:Assign_L14_C8"}, {"f": "ajibawa-2023/Python-C...
#!/usr/bin/python import numpy as np, math import time import roslib; roslib.load_manifest('point_cloud_ros') import rospy from point_cloud_ros.msg import OccupancyGrid import hrl_tilting_hokuyo.display_3d_mayavi as d3m import point_cloud_ros.ros_occupancy_grid as rog def mayavi_cb(og, param_list): og3d = rog....
ajibawa-2023/Python-Code-Large/train/row_99605
51
80
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99605:Import_L3_C0", "label": "numpy import np, math", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0375, 0.0125, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99605:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99605:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99605:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99605:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import numpy as np, math import roslib; roslib.load_manifest('point_cloud_ros') import rospy import point_cloud_ros.ros_occupancy_grid as rog from point_cloud_ros.msg import OccupancyGrid from visualization_msgs.msg import Marker ## return a Marker message object # @param loc - (x,y,z) # @param sc...
ajibawa-2023/Python-Code-Large/train/row_99606
53
75
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99606:Import_L3_C0", "label": "numpy import np, math", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.04, 0.0133, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"], "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99606:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99606:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99606:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99606:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Co...
# # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, th...
ajibawa-2023/Python-Code-Large/train/row_99607
76
136
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99607:Import_L32_C0", "label": "roslib import roslib", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.2353, 0.0074, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99607:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99607:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99607:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99607:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Co...
# # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, th...
ajibawa-2023/Python-Code-Large/train/row_99608
47
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_99608:Import_L32_C0", "label": "roslib import roslib", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.3137, 0.0098, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99608:If_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99608:Import_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99608:If_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99608:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials') import rospy import numpy as np, math ## Class defining the core EPC function and a few simple examples. # More complex behaviors that use EPC should have their own ROS # packages. class EPC(): def __init__(self, robot): self.robot = rob...
ajibawa-2023/Python-Code-Large/train/row_99609
75
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_99609:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0145, 0.0072, 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_99609:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99609:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99609:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99609:Assign_L12_C8"}, {"f": "ajibawa-2023/Python-...
import numpy as np, math from threading import RLock import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials') import rospy import actionlib from kinematics_msgs.srv import GetPositionFK, GetPositionFKRequest, GetPositionFKResponse from kinematics_msgs.srv import GetPositionIK, GetPositionIKRequest, GetPo...
ajibawa-2023/Python-Code-Large/train/row_99610
153
225
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99610:Import_L2_C0", "label": "numpy import np, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0089, 0.0044, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99610:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99610:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99610:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99610:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-...
import roslib; roslib.load_manifest('pr2_doors_epc') import rospy import hrl_lib.transforms as tr import force_torque.FTClient as ftc import math, numpy as np from rviz_marker_test import * from hrl_msgs.msg import FloatArray if __name__ == '__main__': ft_client = ftc.FTClient('force_torque_ft2') ft_client.b...
ajibawa-2023/Python-Code-Large/train/row_99611
29
38
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99611:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0526, 0.0263, 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_99611:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99611:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99611:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99611:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
import roslib; roslib.load_manifest('hrl_pr2_kinematics') import rospy from equilibrium_point_control.msg import MechanismKinematicsRot from equilibrium_point_control.msg import MechanismKinematicsJac import epc from threading import RLock ## # compute the end effector rotation matrix. # @param hook - hook angle. ...
ajibawa-2023/Python-Code-Large/train/row_99612
232
386
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99612:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0052, 0.0026, 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_99612:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99612:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99612:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99612:Return_L20_C4"}, {"f": "ajibawa-2023/Python-Co...
__all__ = [ 'door_epc', 'epc', 'hrl_pr2', ]
ajibawa-2023/Python-Code-Large/train/row_99613
1
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_99613:Assign_L3_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [3, 7], "level": 0, "parent": null, "vector": [14, 0, 0.625, 0.625, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_nam...
[]
import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials') import rospy from visualization_msgs.msg import Marker from geometry_msgs.msg import Point import hrl_lib.transforms as tr import math, numpy as np def get_marker_arrow(p_st, p_end, frame_id): m = Marker() m.header.stamp = rospy.rostime.get_...
ajibawa-2023/Python-Code-Large/train/row_99614
37
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_99614:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0408, 0.0204, 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_99614:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99614:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99614:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99614:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Co...
# # # Copyright (c) 2010, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, ...
ajibawa-2023/Python-Code-Large/train/row_99615
54
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_99615:Import_L32_C0", "label": "roslib import roslib", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.3048, 0.0095, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99615:If_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99615:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99615:If_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99615:Assign_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
import matplotlib.pyplot as pp import numpy as np import roslib; roslib.load_manifest('hrl_pr2_door_opening') roslib.load_manifest('equilibrium_point_control') import hrl_lib.util as ut import equilibrium_point_control.arm_trajectories_ram as atr d = ut.load_pickle('pkls/ikea_cabinet_log.pkl') #d = ut.load_pickle('...
ajibawa-2023/Python-Code-Large/train/row_99616
22
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_99616:Import_L2_C0", "label": "matplotlib.pyplot import pp", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0513, 0.0256, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99616:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99616:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99616:If_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99616:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
import numpy as np, math from threading import RLock, Timer import sys, copy import roslib; roslib.load_manifest('hrl_pr2_lib') roslib.load_manifest('force_torque') # hack by Advait import force_torque.FTClient as ftc import tf import hrl_lib.transforms as tr import hrl_lib.viz as hv import rospy import PyKDL as ...
ajibawa-2023/Python-Code-Large/train/row_99617
412
694
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99617:Import_L3_C0", "label": "numpy import np, math", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0043, 0.0014, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99617:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99617:Expr_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99617:FunctionDef_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99617:If_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# # Temoprarily in this package. Advait needs to move it to a better # location. # import numpy as np, math import copy import roslib; roslib.load_manifest('hrl_pr2_door_opening') import rospy import hrl_lib.util as ut ## Class defining the core EPC function and a few simple examples. # More complex behaviors that...
ajibawa-2023/Python-Code-Large/train/row_99618
110
205
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99618:Import_L7_C0", "label": "numpy import np, math", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.0341, 0.0049, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99618:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99618:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99618:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99618:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-...
import numpy as np, math import copy from threading import RLock import roslib; roslib.load_manifest('hrl_pr2_door_opening') roslib.load_manifest('equilibrium_point_control') import rospy from equilibrium_point_control.msg import MechanismKinematicsRot from equilibrium_point_control.msg import MechanismKinematicsJac...
ajibawa-2023/Python-Code-Large/train/row_99619
235
384
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99619:Import_L2_C0", "label": "numpy import np, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0052, 0.0026, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99619:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99619:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99619:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99619:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python import numpy as np, math import copy from threading import RLock import roslib; roslib.load_manifest('hrl_pr2_door_opening') import rospy from hrl_msgs.msg import FloatArray from geometry_msgs.msg import Twist def ft_cb(data): lock.acquire() ft_val[0] = data.linear.x ft_val[1] = data.l...
ajibawa-2023/Python-Code-Large/train/row_99620
32
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_99620:Import_L3_C0", "label": "numpy import np, math", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0256, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99620:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99620:Expr_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99620:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99620:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code...
import roslib roslib.load_manifest('rospy') roslib.load_manifest('visualization_msgs') import rospy from visualization_msgs.msg import Marker import numpy as np class SceneDraw: def __init__(self, topic='contact_visualization', node='contact_sim', frame='/world_frame'): self.pub = rospy.Publisher(topic+'_m...
ajibawa-2023/Python-Code-Large/train/row_99623
39
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_99623:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.02, 0.02, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99623:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99623:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99623:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99623:Assign_L10_C8"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/env python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyrig...
ajibawa-2023/Python-Code-Large/train/row_99624
34
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_99624:Import_L32_C0", "label": "roslib import roslib", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.4444, 0.0139, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99624:ClassDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99624:FunctionDef_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99624:FunctionDef_L40_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99624:Assign_L41_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyr...
ajibawa-2023/Python-Code-Large/train/row_99625
44
87
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99625:Import_L31_C0", "label": "os import os", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.3563, 0.0115, 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_99625:If_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99625:Expr_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99625:If_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99625:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
#!/usr/bin/env python import roslib roslib.load_manifest('pr2_playpen') import rospy import hrl_pr2_lib.pressure_listener as pl import cPickle class PressureWriter: def __init__(self): rospy.init_node('pressure_writer') self.r_grip_press = pl.PressureListener(topic='/pressure/r_gripper_motor') ...
ajibawa-2023/Python-Code-Large/train/row_99627
39
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_99627:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.037, 0.0185, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99627:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99627:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99627:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99627:Expr_L11_C8"}, {"f": "ajibawa-2023/Python-Cod...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99628
39
57
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99628:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0175, 0.0175, 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_99628:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99628:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99628:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99628:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright ...
ajibawa-2023/Python-Code-Large/train/row_99629
85
120
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99629:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0083, 0.0083, 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_99629:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99629:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99629:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99629:Expr_L22_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # Calculating and displaying 2D Hue-Saturation histogram of a color image import roslib roslib.load_manifest('opencv2') import sys import cv cv.NamedWindow("back_projection", cv.CV_WINDOW_AUTOSIZE) cv.NamedWindow("back_modified", cv.CV_WINDOW_AUTOSIZE) cv.NamedWindow("back_modified2", cv.CV_WIN...
ajibawa-2023/Python-Code-Large/train/row_99630
106
239
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99630:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0126, 0.0042, 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_99630:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99630:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99630:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99630:Expr_L15_C4"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/env python # Calculating and displaying 2D Hue-Saturation histogram of a color image import roslib roslib.load_manifest('opencv2') import sys import cv import numpy as np from collections import deque cv.NamedWindow("avg_noise", cv.CV_WINDOW_AUTOSIZE) cv.NamedWindow("back_modified", cv.CV_WINDOW_AUTOSIZE)...
ajibawa-2023/Python-Code-Large/train/row_99631
112
161
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99631:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0186, 0.0062, 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_99631:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99631:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99631:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99631:Assign_L17_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/env python import roslib roslib.load_manifest('pr2_playpen') import rospy import math import tf import numpy as np import os import sys import cPickle as pkl def is_topic_pub(topic): flag = False for item in rospy.get_published_topics(): for thing in item: if topic in thing: ...
ajibawa-2023/Python-Code-Large/train/row_99632
61
83
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99632:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0241, 0.012, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99632:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99632:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99632:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99632:For_L14_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/env python import roslib roslib.load_manifest('pr2_playpen') import rospy from sensor_msgs.msg import PointCloud2 import point_cloud_python as pc2py import numpy as np from matplotlib import pylab as pl import draw_scene as ds import math from pr2_playpen.srv import * #this is for Train and Check import thre...
ajibawa-2023/Python-Code-Large/train/row_99633
139
262
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99633:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0076, 0.0038, 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_99633:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99633:FunctionDef_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99633:FunctionDef_L16_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99633:Expr_L17_C8"}, {"f": "ajibawa-2023/Python-Co...
import roslib roslib.load_manifest('opencv2') import cv a = cv.LoadImage('/home/mkillpack/hrl_file_server/playpen_data_sets/2011-06-30_19-01-02/object000_try011_before_pr2.png', 0) b = cv.LoadImage('/home/mkillpack/hrl_file_server/playpen_data_sets/2011-06-30_19-01-02/object000_try011_after_pr2.png', 0) foreground = c...
ajibawa-2023/Python-Code-Large/train/row_99634
85
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_99634:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0093, 0.0093, 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_99634:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99634:Expr_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99634:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99634:If_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
####################################################################### # # USE pr2_object_manipulation/pr2_gripper_reactive_approach/controller_manager.py # That code has much of the ideas at the bottom, with more. # ####################################################################### # TODO Update code t...
ajibawa-2023/Python-Code-Large/train/row_99636
122
236
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99636:Import_L15_C0", "label": "numpy import np, math", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.0636, 0.0042, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99636:FunctionDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99636:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99636:ClassDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99636:FunctionDef_L61_C4"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/env python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyrig...
ajibawa-2023/Python-Code-Large/train/row_99637
17
51
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99637:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.5882, 0.0196, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99637:While_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99637:Expr_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99637:While_L49_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99637:Expr_L51_C4"}]