code
stringlengths
1
1.49M
file_id
stringlengths
42
46
node_count
int64
0
7.38k
total_lines
int64
1
20.9k
vector_dim
int64
15
15
vector_labels
stringclasses
1 value
nodes
stringlengths
2
3.75M
connections
stringlengths
2
964k
#!/usr/bin/python import roslib roslib.load_manifest("hrl_pr2_arms") roslib.load_manifest("hrl_generic_arms") roslib.load_manifest("hrl_lib") roslib.load_manifest("hrl_msgs") roslib.load_manifest("ar_pose") import math, time, copy import numpy as np import tf, rospy, actionlib import hrl_lib.transforms as hrl_tr impor...
ajibawa-2023/Python-Code-Large/train/row_99639
206
299
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99639:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0067, 0.0033, 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_99639:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99639:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99639:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99639:Assign_L28_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python import roslib roslib.load_manifest('tf') roslib.load_manifest('rospy') roslib.load_manifest('geometry_msgs') roslib.load_manifest('hrl_lib') import rospy, optparse, math, time import numpy as np import tf import tf.transformations as tr import cPickle as pkl import hrl_lib.transforms as hrl_tr import...
ajibawa-2023/Python-Code-Large/train/row_99640
50
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_99640:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0441, 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_99640:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99640:Assign_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99640:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99640:Expr_L22_C1"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import roslib roslib.load_manifest('tf') roslib.load_manifest('rospy') roslib.load_manifest('adl_pr2_log') roslib.load_manifest('geometry_msgs') import rospy, optparse, math, time import numpy as np import tf from hrl_lib.msg import WrenchPoseArrayStamped from geometry_msgs.msg import WrenchStamped f...
ajibawa-2023/Python-Code-Large/train/row_99641
72
104
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99641:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0288, 0.0096, 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_99641:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99641:Assign_L18_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99641:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99641:Expr_L21_C1"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import roslib roslib.load_manifest('rospy') roslib.load_manifest('std_msgs') import rospy, optparse, math, time import numpy as np import serial from std_msgs.msg import Bool class shaver_pub(): def __init__(self): self.pub = rospy.Publisher('/ros_switch', Bool) rospy.init_node('shaver_pwr_pub...
ajibawa-2023/Python-Code-Large/train/row_99642
26
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99642:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0857, 0.0286, 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_99642:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99642:FunctionDef_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99642:FunctionDef_L13_C1", "t": "ajibawa-2023/Python-Code-Large/train/row_99642:Assign_L14_C2"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python import roslib roslib.load_manifest('tf') roslib.load_manifest('hrl_lib') import math, time, optparse import numpy as np import tf.transformations as tr import cPickle as pkl import scipy.stats as st import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import scipy.optimize as so i...
ajibawa-2023/Python-Code-Large/train/row_99644
30
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_99644:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 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_99644:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99644:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99644:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99644:Expr_L16_C1"}, {"f": "ajibawa-2023/Python-Code...
#!/usr/bin/python import roslib roslib.load_manifest('stereo_anaglyph') import rospy import hrl_camera.ros_camera as rc import cv def add_alpha_channel(bgr, alpha_val): w, h = cv.GetSize(bgr) bgra = cv.CreateImage((w, h), cv.IPL_DEPTH_8U, 4) alpha = cv.CreateImage((w, h), cv.IPL_DEPTH_8U, 1) chan1 = c...
ajibawa-2023/Python-Code-Large/train/row_99645
88
202
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99645:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0099, 0.005, 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_99645:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99645:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99645:FunctionDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99645:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import roslib roslib.load_manifest('stereo_anaglyph') import rospy import hrl_camera.ros_camera as rc import cv def anaglyph(left_color, right_color): left_mono = cv.CreateImage(cv.GetSize(left_color), cv.IPL_DEPTH_8U, 1) right_mono = cv.CreateImage(cv.GetSize(right_color), cv.IPL_DEPTH_8U, ...
ajibawa-2023/Python-Code-Large/train/row_99646
23
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_99646:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0185, 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_99646:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99646:Assign_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99646:FunctionDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99646:Assign_L11_C4"}, {"f": "ajibawa-2023/Python-Code...
#Particle filter imports import pfilter as pf import robot_motion as rm import object_motion as om import detection_appearance as da #Others import nodes as nd import transforms2d as t2d import numpy as np import math as mt import opencv.cv as cv import types import functools as ft velocity = np.matrix([0.01, 0.0...
ajibawa-2023/Python-Code-Large/train/row_99647
29
119
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99647:Import_L2_C0", "label": "pfilter import pf", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0168, 0.0084, 0, 0.66, 0.0, 180, 0, 1, 0, 0, 180, 0, 0], "semantic": {"name": "pfilter", "arg_names": [], "import_names": ["pf"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99647:For_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99647:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99647:For_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99647:Assign_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/python import numpy as np import random as rd ############################################################################ ### Functions implementing a particle filter ############################################################################ # Note: # To instantiate a particle filter you...
ajibawa-2023/Python-Code-Large/train/row_99648
102
179
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99648:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0112, 0.0056, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99648:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99648:Return_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99648:FunctionDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99648:Return_L30_C4"}, {"f": "ajibawa-2023/Python-Co...
__all__ = [ 'pfilter' ]
ajibawa-2023/Python-Code-Large/train/row_99649
1
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99649:Assign_L1_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [1, 3], "level": 0, "parent": null, "vector": [14, 0, 0.6667, 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...
[]
import numpy as np import util as ut import prob as pr import itertools as it import types import opencv.cv as cv class DetectionAppearance: def __init__(self, cov): """ Appearance model for tracking when there is a detector available that gives 2d poses of objects. ...
ajibawa-2023/Python-Code-Large/train/row_99651
43
96
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99651:Import_L1_C0", "label": "numpy import np", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0104, 0.0104, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99651:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99651:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99651:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99651:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
import util as ut import math as mt import numpy as np from StringIO import StringIO import transforms2d as t2d import opencv.cv as cv import types class RobotMotion: """ Generates sample from robot motion model, has methods used in particle filter Use: motion_var- motion_var object ...
ajibawa-2023/Python-Code-Large/train/row_99652
132
250
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99652:Import_L1_C0", "label": "util import ut", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.004, 0.004, 0, 0.66, 0.0, 811, 0, 1, 0, 0, 811, 0, 0], "semantic": {"name": "util", "arg_names": [], "import_names": ["ut"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99652:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99652:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99652:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99652:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/python import roslib roslib.load_manifest("pr2_laser_follow_behavior") import rospy import numpy as np import math from actionlib_msgs.msg import * from pr2_controllers_msgs.msg import * from geometry_msgs.msg import * from std_msgs.msg import String from move_base_msgs.msg import * import actionlib impor...
ajibawa-2023/Python-Code-Large/train/row_99653
114
167
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99653:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.012, 0.006, 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_99653:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99653:Return_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99653:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99653:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-...
import roslib roslib.load_manifest('pr2_laser_follow_behavior') import rospy from geometry_msgs.msg import PointStamped from geometry_msgs.msg import PoseStamped import hrl_lib.tf_utils as tfu import tf class FollowPointBehavior: def __init__(self): rospy.Subscriber('cursor3dcentered', PointStamped, follo...
ajibawa-2023/Python-Code-Large/train/row_99654
37
66
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99654:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0152, 0.0152, 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_99654:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99654:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99654:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99654:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Cod...
#! /usr/bin/python import roslib roslib.load_manifest('pr2_follow_laser_behavior') import rospy import actionlib from actionlib_msgs.msg import * from pr2_controllers_msgs.msg import * from geometry_msgs.msg import * rospy.init_node('move_the_head', anonymous=True) client = actionlib.SimpleActionClient( '/head_t...
ajibawa-2023/Python-Code-Large/train/row_99655
21
32
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99655:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0625, 0.0312, 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_99655:If_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99655:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99655:If_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99655:Expr_L31_C4"}]
#!/usr/bin/python import roslib roslib.load_manifest("pr2_laser_follow_behavior") import rospy import numpy as np import math from actionlib_msgs.msg import * from pr2_controllers_msgs.msg import * from geometry_msgs.msg import * from std_msgs.msg import String from move_base_msgs.msg import * import actionlib impor...
ajibawa-2023/Python-Code-Large/train/row_99656
129
177
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99656:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0113, 0.0056, 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_99656:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99656:Return_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99656:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99656:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-...
import roslib; roslib.load_manifest('hai_sandbox') from cv_bridge.cv_bridge import CvBridge, CvBridgeError import rospy import cv import sys import hrl_lib.tf_utils as tfu import tf.transformations as tr import tf import hrl_camera.ros_camera as cam from sensor_msgs.msg import CameraInfo import numpy as np import hai_...
ajibawa-2023/Python-Code-Large/train/row_99657
64
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_99657: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_99657:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99657:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99657:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99657:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib; roslib.load_manifest('hai_sandbox') import hrl_camera.ros_camera as rc import hrl_lib.rutils as ru import hrl_lib.util as ut import rospy import math import cv #TF import tf import hrl_lib.tf_utils as tfu import tf.transformations as tr if __name__ == '__main__': ls = ru.LaserSca...
ajibawa-2023/Python-Code-Large/train/row_99658
40
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_99658: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_99658:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99658:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99658:If_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99658:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
import csv import roslib; roslib.load_manifest('hai_sandbox') from cv_bridge.cv_bridge import CvBridge, CvBridgeError import rospy import cv import sys import hrl_lib.rutils as ru import hrl_lib.tf_utils as tfu import tf.transformations as tr import tf import hrl_camera.ros_camera as cam from sensor_msgs.msg import Ca...
ajibawa-2023/Python-Code-Large/train/row_99659
31
34
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99659:Import_L1_C0", "label": "csv import csv", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0294, 0.0294, 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_99659:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99659:Assign_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99659:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99659:For_L23_C4"}, {"f": "ajibawa-2023/Python-Code-...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import tf.transformations as tr import hrl_lib.tf_utils as tfu import hrl_lib.util as ut import tf import geometry_msgs.msg as gm import trigger_msgs.msg as trm import sys import math import numpy as np class MoveBase: def __init__(self): ros...
ajibawa-2023/Python-Code-Large/train/row_99660
70
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_99660:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0112, 0.0112, 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_99660:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99660:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99660:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99660:Expr_L16_C8"}, {"f": "ajibawa-2023/Python-Co...
import csv import roslib; roslib.load_manifest('hai_sandbox') from cv_bridge.cv_bridge import CvBridge, CvBridgeError import rospy import cv import sys import hrl_lib.rutils as ru import hrl_lib.tf_utils as tfu import tf.transformations as tr import tf import hrl_camera.ros_camera as cam from sensor_msgs.msg import Ca...
ajibawa-2023/Python-Code-Large/train/row_99662
55
114
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99662:Import_L1_C0", "label": "csv import csv", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0088, 0.0088, 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_99662:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99662:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99662:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99662:For_L22_C4"}, {"f": "ajibawa-2023/Python-Code-...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import glob import hrl_lib.rutils as ru import hrl_pr2_lib.devices as hpr2 import hai_sandbox.bag_processor as bp import hrl_lib.util as ut import visualization_msgs.msg as vm import numpy as np import hrl_lib.viz as viz import hai_sandbox.dimreduce as dim...
ajibawa-2023/Python-Code-Large/train/row_99663
490
858
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99663:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0012, 0.0012, 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_99663:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99663:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99663:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99663:For_L27_C4"}, {"f": "ajibawa-2023/Python-Code-...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import rosrecord import sys f = open(sys.argv[1]) i = 0 for topic, message, time in rosrecord.logplayer(f): i = i + 1 print topic, time if i > 10: break f.close() ## # In this bag, give me messages from these topics # @param file_name...
ajibawa-2023/Python-Code-Large/train/row_99666
21
28
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99666:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0357, 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_99666:For_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99666:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99666:For_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99666:Expr_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import feature_extractor_fpfh.msg as fmsg import hrl_lib.rutils as ru from cv_bridge import CvBridge, CvBridgeError import numpy as np class KinectListener: def __init__(self, topic=None): if topic == None: topic = 'fpfh_hist' ...
ajibawa-2023/Python-Code-Large/train/row_99667
28
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99667:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0286, 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_99667:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99667:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99667:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99667:If_L12_C8"}, {"f": "ajibawa-2023/Python-Code...
import roslib; roslib.load_manifest('hai_sandbox') from cv_bridge.cv_bridge import CvBridge, CvBridgeError import cv import sys import hrl_lib.rutils as ru import hai_sandbox.features as fea forearm_cam_l = '/l_forearm_cam/image_rect_color' ws_l = '/wide_stereo/left/image_rect_color' ws_r = '/wide_stereo/right/image_r...
ajibawa-2023/Python-Code-Large/train/row_99668
23
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_99668: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_99668:For_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99668:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99668:For_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99668:Assign_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
import roslib; roslib.load_manifest('hai_sandbox') import cv import sys import hai_sandbox.features as fea if __name__ == '__main__': fname = sys.argv[1] image = cv.LoadImage(fname) image_gray = cv.CreateImage((640,480), cv.IPL_DEPTH_8U,1) cv.CvtColor(image, image_gray, cv.CV_BGR2GRAY) star_keypoi...
ajibawa-2023/Python-Code-Large/train/row_99669
22
27
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99669:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.037, 0.037, 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_99669:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99669:Assign_L7_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99669:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99669:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_996...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import hrl_lib.util as ut import csv import scipy.spatial as sp import hrl_camera.ros_camera as cam import hai_sandbox.features as fea import numpy as np import cv import hrl_lib.rutils as ru from cv_bridge.cv_bridge import CvBridge, CvBridgeError import s...
ajibawa-2023/Python-Code-Large/train/row_99670
48
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_99670:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0139, 0.0139, 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_99670:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99670:Assign_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99670:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99670:For_L16_C4"}, {"f": "ajibawa-2023/Python-Code-...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import hrl_lib.util as ut import sys if __name__ == '__main__': p = ut.load_pickle(sys.argv[1])
ajibawa-2023/Python-Code-Large/train/row_99671
7
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_99671:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.125, 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_99671:If_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99671:Assign_L7_C4"}]
import roslib; roslib.load_manifest('hai_sandbox') import cv import numpy as np import scipy.spatial as sp import math class SURFMatcher: def __init__(self): self.model_images = {} self.model_fea = {} def add_file(self, model_name, label): model_img = cv.LoadImage(model_name) ...
ajibawa-2023/Python-Code-Large/train/row_99672
110
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99672:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.007, 0.007, 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_99672:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99672:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99672:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99672:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code...
import roslib; roslib.load_manifest('hai_sandbox') import cv import sys import os.path as pt img_path = sys.argv[1] print 'loading', img_path img = cv.LoadImageM(img_path) dst = cv.CloneMat(img) dif = cv.CloneMat(img) cv.Smooth(img, dst, cv.CV_GAUSSIAN, 91) cv.Sub(img, dst, dif) cv.SaveImage(img_path, dif) #orig_path...
ajibawa-2023/Python-Code-Large/train/row_99673
13
20
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99673:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.05, 0.05, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rhs_ca...
[]
import roslib; roslib.load_manifest('hai_sandbox') import hrl_lib.util as ut import pylab as pb import numpy as np import pdb def conf_to_percent(rec): conf = rec['mat'] conf[0,:] = conf[0,:] / rec['neg'] conf[1,:] = conf[1,:] / rec['pos'] return conf[0,0], conf[1,1] def plot_classifier_performance(fn...
ajibawa-2023/Python-Code-Large/train/row_99675
125
174
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99675:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0057, 0.0057, 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_99675:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99675:Assign_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99675:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99675:Assign_L9_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import hrl_lib.util as hru import pylab as pb import numpy as np import itertools as it import hrl_lib.rutils as ru import sys from cv_bridge.cv_bridge import CvBridge, CvBridgeError import scipy.spatial as sp import cv ## # @return mat, mat, array def co...
ajibawa-2023/Python-Code-Large/train/row_99676
86
123
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99676:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0081, 0.0081, 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_99676:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99676:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99676:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99676:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import sensor_msgs.msg as sm import hrl_lib.rutils as ru import numpy as np import pr2_msgs.msg as pm import geometry_msgs.msg as gm import tf import hrl_lib.tf_utils as tfu import tf.transformations as tr import time import hrl_lib.util as ut import pdb ...
ajibawa-2023/Python-Code-Large/train/row_99677
46
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_99677:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.01, 0.01, 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_99677:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99677:Assign_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99677:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99677:Assign_L17_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import actionlib import pr2_controllers_msgs.msg as pr2m import trajectory_msgs.msg as tm import sensor_msgs.msg as sm import cv class Arm: def __init__(self, name): self.joint_names = rospy.get_param('/%s/joints' % name) self.client =...
ajibawa-2023/Python-Code-Large/train/row_99679
76
133
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99679:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0075, 0.0075, 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_99679:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99679:FunctionDef_L10_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99679:FunctionDef_L10_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99679:Assign_L11_C8"}, {"f": "ajibawa-2023/Python-C...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import message_filters from sensor_msgs.msg import Image from sensor_msgs.msg import PointCloud2 import feature_extractor_fpfh.msg as fmsg import pdb def callback(image, fpfh_hist): print "got messages!" #print image.header.frame_id, fpfh_hist.header...
ajibawa-2023/Python-Code-Large/train/row_99680
23
36
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99680:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0278, 0.0278, 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_99680:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99680:Expr_L11_C2"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99680:FunctionDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99680:Expr_L13_C2"}, {"f": "ajibawa-2023/Python-Code-L...
import numpy as np import pdb def max_wrt_constrain(a, b, constraint_f, toler): return find_split(a, None, b, None, constraint_f, toler) def min_wrt_constrain(a, b, constraint_f, toler): return find_split(b, None, a, None, constraint_f, toler) def find_split(a, qa, b, qb, constraint_f, toler): #pdb.set...
ajibawa-2023/Python-Code-Large/train/row_99681
26
42
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99681:Import_L1_C0", "label": "numpy import np", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0238, 0.0238, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99681:FunctionDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99681:Return_L5_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99681:FunctionDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99681:Return_L8_C4"}, {"f": "ajibawa-2023/Python-Code-L...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import pr2_msgs.msg as pm import time import hrl_lib.util as hru class DataAccumulate: def __init__(self, topic, type): rospy.Subscriber(topic, type, self.callback) self.data = [] self.headers = [] self.t = None d...
ajibawa-2023/Python-Code-Large/train/row_99684
29
94
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99684:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0106, 0.0106, 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_99684:ClassDef_L8_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99684:FunctionDef_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99684:FunctionDef_L9_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99684:Expr_L10_C8"}, {"f": "ajibawa-2023/Python-Code-...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import hrl_lib.util as ut import hai_sandbox.pr2 as pr2 import numpy as np import time import pdb import sys def dict_to_ps(d): ps = gm.PoseStamped() ps.pose.position.x = d['pose']['position']['x'] ps.pose.position.y = d['pose']['position'][...
ajibawa-2023/Python-Code-Large/train/row_99685
99
151
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99685:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0066, 0.0066, 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_99685:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99685:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99685:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99685:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib; roslib.load_manifest('hai_sandbox') import cv import hai_sandbox.features as fea import hrl_camera.ros_camera as rc import rospy #prosilica = rc.Prosilica('prosilica', 'streaming') #prosilica = rc.ROSCamera('/narrow_stereo/right/image_rect') prosilica = rc.ROSCamera('/wide_stereo/right/image_rect_color'...
ajibawa-2023/Python-Code-Large/train/row_99687
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_99687: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_99687:While_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99687:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99687:While_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99687:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import sensor_msgs.msg as sm import hrl_lib.rutils as ru import numpy as np import pr2_msgs.msg as pm import tf import hrl_lib.tf_utils as tfu import tf.transformations as tr import time import hrl_lib.util as ut def pointcloud_to_np(pc): ...
ajibawa-2023/Python-Code-Large/train/row_99688
71
144
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99688:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0069, 0.0069, 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_99688:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99688:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99688:FunctionDef_L13_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99688:For_L15_C4"}, {"f": "ajibawa-2023/Python-Code-...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import hrl_lib.util as ut import sensor_msgs.msg as sm import sys class CamInfoCB: def __init__(self, topic): rospy.init_node('grab_cam_info') rospy.Subscriber(topic, sm.CameraInfo, self.cb) self.msg = None def cb(self, ms...
ajibawa-2023/Python-Code-Large/train/row_99689
20
24
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99689:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0417, 0.0417, 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_99689:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99689:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99689:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99689:Expr_L9_C8"}, {"f": "ajibawa-2023/Python-Code-L...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import kinematics_msgs.srv as ks import hrl_lib.tf_utils as tfu import tf import hai_sandbox.pr2_kinematics as pr2k import sensor_msgs.msg as sm import hrl_lib.rutils as ru import numpy as np import hrl_lib.util as ut def script(): rospy.init_node('fo...
ajibawa-2023/Python-Code-Large/train/row_99690
77
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_99690:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0085, 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_99690:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99690:Expr_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99690:FunctionDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99690:Assign_L14_C4"}, {"f": "ajibawa-2023/Python-Code...
import roslib; roslib.load_manifest('hai_sandbox') import rospy rospy.init_node('param_saver') import hrl_lib.util as ut joint_groups = {} joint_groups['rarm'] = rospy.get_param('/r_arm_controller/joints') joint_groups['larm'] = rospy.get_param('/l_arm_controller/joints') joint_groups['head_traj'] = rospy.ge...
ajibawa-2023/Python-Code-Large/train/row_99691
11
11
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99691:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0909, 0.0909, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[]
import roslib; roslib.load_manifest('hai_sandbox') import rospy import actionlib import hrl_lib.tf_utils as tfu import hrl_lib.util as ut import hrl_pr2_lib.devices as hd import hrl_camera.ros_camera as rc import hai_sandbox.recognize_3d as r3d #import hai_sandbox.msg as hmsg import geometry_msgs.msg as gmsg import t...
ajibawa-2023/Python-Code-Large/train/row_99692
74
283
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99692:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0035, 0.0035, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99692:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99692:Return_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99692:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99692:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Python-...
import numpy as np camera_t = np.matrix([1299102299.98, 1299102300.04, 1299102300.09, 1299102300.11, 1299102300.16, 1299102300.21, 1299102300.26, 1299102300.28, 1299102300.33, 1299102300.38, 1299102300.43, 1299102300.45, 1299102300.5, 1299102300.55, 1299102300.6, 1299102300.63, 1299102300.73, 1299102300.79, 1299102300....
ajibawa-2023/Python-Code-Large/train/row_99693
3
3
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99693:Import_L1_C0", "label": "numpy import np", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.3333, 0.3333, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_nam...
[]
import roslib; roslib.load_manifest('hai_sandbox') import rospy import hrl_camera.ros_camera as rc import cv import hai_sandbox.features as fea import sys import threading as thr import scipy.spatial as sp import numpy as np import pdb class ShowImage(thr.Thread): def __init__(self, name): thr.Thread.__ini...
ajibawa-2023/Python-Code-Large/train/row_99694
103
199
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99694:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.005, 0.005, 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_99694:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99694:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99694:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99694:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Co...
import csv import roslib; roslib.load_manifest('hai_sandbox') from cv_bridge.cv_bridge import CvBridge, CvBridgeError import rospy import cv import sys import hrl_lib.rutils as ru import hrl_lib.tf_utils as tfu import tf.transformations as tr import tf import hrl_camera.ros_camera as cam from sensor_msgs.msg import Ca...
ajibawa-2023/Python-Code-Large/train/row_99695
30
37
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99695:Import_L1_C0", "label": "csv import csv", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.027, 0.027, 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_99695:For_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99695:Assign_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99695:For_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99695:Assign_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import cv import numpy as np import feature_extractor_fpfh.srv as fsrv import hrl_lib.image3d as i3d import hrl_lib.rutils as ru import hrl_lib.prob as pr import hrl_lib.tf_utils as tfu import pdb ## # Generalized from Probabilistic robotics for N != wei...
ajibawa-2023/Python-Code-Large/train/row_99696
125
183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99696:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0055, 0.0055, 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_99696:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99696:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99696:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99696:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Co...
import csv import roslib; roslib.load_manifest('hai_sandbox') from cv_bridge.cv_bridge import CvBridge, CvBridgeError import rospy import cv import sys import hrl_lib.rutils as ru import hrl_lib.tf_utils as tfu import tf.transformations as tr import tf import hrl_camera.ros_camera as cam from sensor_msgs.msg import Ca...
ajibawa-2023/Python-Code-Large/train/row_99697
49
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_99697:Import_L1_C0", "label": "csv import csv", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0133, 0.0133, 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_99697:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99697:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99697:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99697:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Co...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import sys import hrl_lib.util as ut import hrl_lib.rutils as ru import tf import hrl_lib.transforms as htf import hrl_lib.tf_utils as tfu import tf.transformations as tr import pr2_msgs.msg as pm import scipy.spatial as sp from multiprocessing import Pr...
ajibawa-2023/Python-Code-Large/train/row_99698
320
797
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99698:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0013, 0.0013, 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_99698:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99698:Assign_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99698:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99698:For_L30_C4"}, {"f": "ajibawa-2023/Python-Code-...
import roslib; roslib.load_manifest('hai_sandbox') import rospy import hai_sandbox.recognize_3d as r3d import hrl_lib.util as ut import cv import sys fname = sys.argv[1] pkl = ut.load_pickle(fname) image_name = pkl['image'] img = cv.LoadImageM(image_name) #Draw the center r3d.draw_points(img, pkl['center'], [255, 0,...
ajibawa-2023/Python-Code-Large/train/row_99699
31
43
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99699:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0233, 0.0233, 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_99699:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99699:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99699:If_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99699:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
import roslib roslib.load_manifest('trigger_msgs') import sys import rospy import trigger_msgs.msg rospy.init_node("trigger", anonymous=True) head_up = rospy.Publisher("head_up", trigger_msgs.msg.Trigger, latch = True) head_down = rospy.Publisher("head_down", trigger_msgs.msg.Trigger, latch = True) arm_on = rospy.Pub...
ajibawa-2023/Python-Code-Large/train/row_99700
27
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_99700:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 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_99700:While_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99700:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99700:While_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99700:If_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
import roslib roslib.load_manifest('trigger_msgs') import sys import rospy import cv import trigger_msgs.msg rospy.init_node("trigger", anonymous=True) arm_trigger = rospy.Publisher("arm_trigger", trigger_msgs.msg.Trigger, latch = True) head_trigger = rospy.Publisher("head_trigger", trigger_msgs.msg.Trigger, latch = ...
ajibawa-2023/Python-Code-Large/train/row_99701
22
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99701:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0286, 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_99701:While_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99701:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99701:While_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99701:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
import roslib roslib.load_manifest('trigger_msgs') import sys import rospy import trigger_msgs.msg rospy.init_node("trigger", anonymous=True) left_initial_pose00 = rospy.Publisher("left_initial_pose00", trigger_msgs.msg.Trigger, latch = True) right_initial_pose00 = rospy.Publisher("right_initial_pose00", trigger_msg...
ajibawa-2023/Python-Code-Large/train/row_99702
16
22
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99702:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0455, 0.0455, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[]
import roslib roslib.load_manifest('trigger_msgs') import sys import rospy import trigger_msgs.msg import dynamic_reconfigure.client import threading import time import geometry_msgs.msg as gm rospy.init_node("wake_up", anonymous=True) projector_on = {'camera_reset': False, 'forearm_l_rate': 30.0, ...
ajibawa-2023/Python-Code-Large/train/row_99703
35
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_99703:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0074, 0.0074, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[]
import roslib roslib.load_manifest('trigger_msgs') import sys import rospy import dynamic_reconfigure.client import time import trigger_msgs.msg import geometry_msgs.msg as gm import time import sys dist = float(sys.argv[1]) print dist rospy.init_node("move_back", anonymous=True) move_base = rospy.Publisher('simple_mo...
ajibawa-2023/Python-Code-Large/train/row_99704
26
258
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99704:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0039, 0.0039, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[]
import roslib roslib.load_manifest('trigger_msgs') import sys import rospy import dynamic_reconfigure.client import time import trigger_msgs.msg import geometry_msgs.msg as gm #import threading as tr #class ProjectorWakeUp(threading.Thread): # # def __init__(self): # threading.Thread.__init__(self) # ...
ajibawa-2023/Python-Code-Large/train/row_99705
107
240
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99705:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0042, 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_99705:While_L97_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99705:Expr_L99_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99705:While_L97_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99705:If_L100_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/ro...
import roslib roslib.load_manifest('trigger_msgs') import sys import rospy import cv import trigger_msgs.msg rospy.init_node("trigger", anonymous=True) arm_trigger = rospy.Publisher("arm_trigger", trigger_msgs.msg.Trigger, latch = True) head_trigger = rospy.Publisher("head_trigger", trigger_msgs.msg.Trigger, latch = ...
ajibawa-2023/Python-Code-Large/train/row_99706
22
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99706:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0286, 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_99706:While_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99706:Expr_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99706:While_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99706:Assign_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train...
#!/usr/bin/env 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 copyrig...
ajibawa-2023/Python-Code-Large/train/row_99708
48
99
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99708:Import_L31_C0", "label": "roslib import roslib", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.3131, 0.0101, 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_99708:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99708:Assign_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99708:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99708:Assign_L48_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, thi...
ajibawa-2023/Python-Code-Large/train/row_99709
23
67
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99709:ClassDef_L29_C0", "label": "label_object", "type": "class", "loc": [29, 67], "level": 0, "parent": null, "vector": [3, 0, 0.7164, 0.5821, 0, 0.66, 0.0, 589, 0, 9, 0, 0, 186, 0, 3], "semantic": {"name": "label_object", "arg_names": [], "import_names": [], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99709:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99709:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99709:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99709:Expr_L33_C8"}, {"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, thi...
ajibawa-2023/Python-Code-Large/train/row_99710
71
145
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99710:ImportFrom_L30_C0", "label": "from labeling import label_object, scan_dataset", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.2069, 0.0069, 0, 0.66, 0.0, 948, 0, 2, 0, 0, 948, 0, 0], "semantic": {"name": "labeling", "arg_names":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99710:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99710:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99710:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99710:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/python import roslib; roslib.load_manifest('laser_camera_segmentation') print 'TEST script!!!' # Import Psyco if available try: import psyco psyco.full() print "Psyco loaded" except ImportError: pass import laser_camera_segmentation.processor as processor import laser_camera_segmentation.c...
ajibawa-2023/Python-Code-Large/train/row_99711
29
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_99711:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0274, 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_99711:Try_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99711:Import_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99711:Try_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99711:Expr_L9_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_997...
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99712
30
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_99712:ImportFrom_L29_C0", "label": "from labeling import label_object", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.3973, 0.0137, 0, 0.66, 0.0, 948, 0, 1, 0, 0, 948, 0, 0], "semantic": {"name": "labeling", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99712:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99712:Expr_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99712:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99712:FunctionDef_L37_C4"}, {"f": "ajibawa-2023/Python-Code-...
#!/usr/bin/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 #...
ajibawa-2023/Python-Code-Large/train/row_99713
671
993
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99713:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0302, 0.001, 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_99713:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99713:Assign_L58_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99713:ClassDef_L56_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99713:Assign_L59_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99714
20
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_99714:Import_L29_C0", "label": "roslib import roslib", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.4915, 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_99714:While_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99714:If_L50_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99714:If_L50_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99714:Expr_L51_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99...
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99715
9
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_99715:Import_L29_C0", "label": "roslib import roslib", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.617, 0.0213, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "...
[]
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99716
14
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_99716:Import_L29_C0", "label": "roslib import roslib", "type": "import", "loc": [29, 29], "level": 0, "parent": null, "vector": [1, 0, 0.5472, 0.0189, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[]
## Copyright (c) 2004-2007, Andrew D. Straw. 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 list o...
ajibawa-2023/Python-Code-Large/train/row_99717
141
324
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99717:Import_L36_C0", "label": "numpy import numpy", "type": "import", "loc": [36, 36], "level": 0, "parent": null, "vector": [1, 0, 0.1111, 0.0031, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["numpy"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99717:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99717:Expr_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99717:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99717:Expr_L43_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/usr/bin/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 #...
ajibawa-2023/Python-Code-Large/train/row_99718
141
249
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99718:Import_L33_C0", "label": "time import time", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.1325, 0.004, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99718:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99718:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99718:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99718:Expr_L45_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, thi...
ajibawa-2023/Python-Code-Large/train/row_99719
52
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_99719:ImportFrom_L30_C0", "label": "from classifier import classifier", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.2752, 0.0092, 0, 0.66, 0.0, 71, 0, 1, 0, 0, 71, 0, 0], "semantic": {"name": "classifier", "arg_names": [], "import_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99719:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99719:Expr_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99719:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99719:FunctionDef_L51_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, thi...
ajibawa-2023/Python-Code-Large/train/row_99720
12
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_99720:ClassDef_L29_C0", "label": "features", "type": "class", "loc": [29, 53], "level": 0, "parent": null, "vector": [3, 0, 0.7593, 0.463, 0, 0.66, 0.0, 479, 0, 4, 0, 0, 186, 0, 0], "semantic": {"name": "features", "arg_names": [], "import_names": [], "rhs_call_name": "...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99720:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99720:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99720:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99720:Assign_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
#! /usr/bin/env 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 copyri...
ajibawa-2023/Python-Code-Large/train/row_99721
14
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_99721:Import_L31_C0", "label": "scanner import scanner", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.4559, 0.0147, 0, 0.66, 0.0, 802, 0, 1, 0, 0, 802, 0, 0], "semantic": {"name": "scanner", "arg_names": [], "import_names": ["scanner...
[]
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99722
48
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_99722:Import_L28_C0", "label": "numpy import np, math", "type": "import", "loc": [28, 28], "level": 0, "parent": null, "vector": [1, 0, 0.2569, 0.0092, 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_99722:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99722:Expr_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99722:FunctionDef_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99722:Assign_L38_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, thi...
ajibawa-2023/Python-Code-Large/train/row_99723
128
228
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99723:Expr_L28_C0", "label": "expression", "type": "expression", "loc": [28, 29], "level": 0, "parent": null, "vector": [8, 0, 0.125, 0.0088, 0, 0.66, 0.0, 0, 1, 0, 0, 0, 0, 0, 0], "semantic": {"name": "", "arg_names": [], "import_names": [], "rhs_call_name": "", "annot...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99723:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99723:Expr_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99723:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99723:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#! /usr/bin/env 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 copyri...
ajibawa-2023/Python-Code-Large/train/row_99724
7
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_99724:Import_L32_C0", "label": "scanner import scanner", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.1684, 0.0053, 0, 0.66, 0.0, 802, 0, 1, 0, 0, 802, 0, 0], "semantic": {"name": "scanner", "arg_names": [], "import_names": ["scanner...
[]
#!/usr/bin/env 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 copyrig...
ajibawa-2023/Python-Code-Large/train/row_99725
21
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_99725:Import_L39_C0", "label": "hrl_tilting_hokuyo.processing_3d import p3d", "type": "import", "loc": [39, 39], "level": 0, "parent": null, "vector": [1, 0, 0.4937, 0.0127, 0, 0.66, 0.0, 307, 0, 1, 0, 0, 307, 0, 0], "semantic": {"name": "hrl_tilting_hokuyo.processing_3...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99725:If_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99725:Assign_L58_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99725:If_L51_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99725:Assign_L59_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99726
64
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_99726:Import_L31_C0", "label": "numpy import np, math", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.189, 0.0061, 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_99726:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99726:Expr_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99726:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99726:FunctionDef_L40_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, thi...
ajibawa-2023/Python-Code-Large/train/row_99727
152
319
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99727:ImportFrom_L30_C0", "label": "from classifier import classifier", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.094, 0.0031, 0, 0.66, 0.0, 71, 0, 1, 0, 0, 71, 0, 0], "semantic": {"name": "classifier", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99727:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99727:Expr_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99727:ClassDef_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99727:Assign_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99728
3
35
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99728:Import_L30_C0", "label": "numpy import np", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.8571, 0.0286, 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_99728:FunctionDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99728:Expr_L34_C4"}]
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99730
52
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_99730:ImportFrom_L30_C0", "label": "from laser_camera_segmentation.srv._Segmentation import *", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.2703, 0.009, 0, 0.66, 0.0, 322, 0, 1, 0, 0, 322, 0, 0], "semantic": {"name": "laser_camera_s...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99730:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99730:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99730:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99730:Assign_L43_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, thi...
ajibawa-2023/Python-Code-Large/train/row_99731
52
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_99731:ImportFrom_L31_C0", "label": "from hrl_lib.util import getTime", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.265, 0.0085, 0, 0.66, 0.0, 775, 0, 1, 0, 0, 775, 0, 0], "semantic": {"name": "hrl_lib.util", "arg_names": [], "import...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99731:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99731:Expr_L36_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99731:ClassDef_L35_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99731:Assign_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large...
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99732
42
157
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99732:Import_L31_C0", "label": "hrl_lib.util import ut", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.1975, 0.0064, 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_99732:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99732:Assign_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99732:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99732:Assign_L45_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, thi...
ajibawa-2023/Python-Code-Large/train/row_99733
38
112
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99733:Import_L31_C0", "label": "roslib import roslib", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.2768, 0.0089, 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_99733:If_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99733:Import_L34_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99733:If_L33_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99733:Import_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
# # 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, thi...
ajibawa-2023/Python-Code-Large/train/row_99735
226
434
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99735:ImportFrom_L30_C0", "label": "from features import features", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0691, 0.0023, 0, 0.66, 0.0, 479, 0, 1, 0, 0, 479, 0, 0], "semantic": {"name": "features", "arg_names": [], "import_names...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99735:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99735:Expr_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99735:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99735:FunctionDef_L52_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, thi...
ajibawa-2023/Python-Code-Large/train/row_99736
87
183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99736:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.1639, 0.0055, 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_99736:ClassDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99736:FunctionDef_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99736:FunctionDef_L44_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99736:Assign_L46_C8"}, {"f": "ajibawa-2023/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 # notice, thi...
ajibawa-2023/Python-Code-Large/train/row_99737
26
69
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99737:Import_L30_C0", "label": "roslib import roslib", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.4348, 0.0145, 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_99737:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99737:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99737:FunctionDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99737:Assign_L42_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, th...
ajibawa-2023/Python-Code-Large/train/row_99738
21
66
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99738:Import_L30_C0", "label": "matplotlib.pyplot import pp", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.4545, 0.0152, 0, 0.66, 0.0, 596, 0, 1, 0, 0, 596, 0, 0], "semantic": {"name": "matplotlib.pyplot", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99738:If_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99738:Assign_L51_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99738:If_L50_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99738:Assign_L52_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/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 copyri...
ajibawa-2023/Python-Code-Large/train/row_99739
54
122
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99739:Import_L31_C0", "label": "roslib import roslib", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.2541, 0.0082, 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_99739:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99739:Expr_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99739:FunctionDef_L48_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99739:Assign_L50_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_99740
238
420
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99740:Import_L30_C0", "label": "numpy import np, math", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0024, 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_99740:ClassDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99740:FunctionDef_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99740:FunctionDef_L47_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99740:Expr_L48_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_99741
38
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_99741:Import_L31_C0", "label": "numpy import np, math", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.3924, 0.0127, 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_99741:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99741:Expr_L42_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99741:FunctionDef_L41_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99741:Assign_L43_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_99742
50
147
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99742:Import_L31_C0", "label": "math import math, np", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.2109, 0.0068, 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_99742:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99742:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99742:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99742:Assign_L42_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, th...
ajibawa-2023/Python-Code-Large/train/row_99743
127
229
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99743:Import_L31_C0", "label": "numpy import np, math", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.1354, 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_99743:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99743:Expr_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99743:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99743:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#!/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_99744
350
573
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99744:Import_L32_C0", "label": "m3.rt_proxy import m3p", "type": "import", "loc": [32, 32], "level": 0, "parent": null, "vector": [1, 0, 0.0558, 0.0017, 0, 0.66, 0.0, 826, 0, 1, 0, 0, 826, 0, 0], "semantic": {"name": "m3.rt_proxy", "arg_names": [], "import_names": ["m3p...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99744:FunctionDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99744:Assign_L70_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99744:FunctionDef_L68_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99744:Assign_L71_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, th...
ajibawa-2023/Python-Code-Large/train/row_99745
117
183
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99745:Import_L31_C0", "label": "math import math, np", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.1694, 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_99745:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99745:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99745:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99745:Assign_L47_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, th...
ajibawa-2023/Python-Code-Large/train/row_99746
207
332
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99746:Import_L31_C0", "label": "math import math", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.0934, 0.003, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_call...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99746:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99746:If_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99746:If_L47_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99746:Assign_L48_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# # 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_99747
83
143
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99747:Import_L30_C0", "label": "arms import ar", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.2098, 0.007, 0, 0.66, 0.0, 375, 0, 1, 0, 0, 375, 0, 0], "semantic": {"name": "arms", "arg_names": [], "import_names": ["ar"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99747:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99747:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99747:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99747:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code...
# # subscribe to thw joint angles and raw forces topics, and provide FK # etc. # # 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: # * R...
ajibawa-2023/Python-Code-Large/train/row_99748
352
577
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99748:Import_L33_C0", "label": "math import math", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.0572, 0.0017, 0, 0.66, 0.0, 526, 0, 1, 0, 0, 526, 0, 0], "semantic": {"name": "math", "arg_names": [], "import_names": ["math"], "rhs_cal...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99748:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99748:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99748:FunctionDef_L54_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99748:Assign_L56_C4"}, {"f": "ajibawa-2023/Python-Co...
import numpy as np, math import roslib; roslib.load_manifest('epc_core') import rospy from std_msgs.msg import Bool ## 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, epc_name = 'epc'): ...
ajibawa-2023/Python-Code-Large/train/row_99749
44
76
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99749:Import_L2_C0", "label": "numpy import np, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0263, 0.0132, 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_99749:ClassDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99749:FunctionDef_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99749:FunctionDef_L12_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99749:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-...
# # Any robot that wants to use EPC should implement the functions # sketched out in the HRLArm and HRLArmKinematics # import numpy as np, math class HRLArm(): def __init__(self, kinematics): # object of class derived from HRLArmKinematics self.kinematics = kinematics self.ep = None # eq...
ajibawa-2023/Python-Code-Large/train/row_99750
24
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_99750:Import_L7_C0", "label": "numpy import np, math", "type": "import", "loc": [7, 7], "level": 0, "parent": null, "vector": [1, 0, 0.1094, 0.0156, 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_99750:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99750:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99750:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99750:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-...
# # subscribe to thw joint angles and raw forces topics, and provide FK # etc. # # 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: # * R...
ajibawa-2023/Python-Code-Large/train/row_99752
478
740
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99752:Import_L33_C0", "label": "numpy import np, math", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.0446, 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_99752:FunctionDef_L74_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99752:Expr_L75_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99752:ClassDef_L77_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99752:FunctionDef_L78_C4"}, {"f": "ajibawa-2023/Python-Co...