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 sys import numpy as np import copy import roslib roslib.load_manifest("hrl_pr2_arms") roslib.load_manifest("kelsey_sandbox") import rospy from visualization_msgs.msg import Marker, MarkerArray from geometry_msgs.msg import Point, Quaternion, Vector3, PoseStamped from std_msgs.msg import Colo...
ajibawa-2023/Python-Code-Large/train/row_99288
58
80
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99288:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0375, 0.0125, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99288:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99288:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99288:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99288:Assign_L25_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import sys from PyQt4 import QtCore, QtGui, uic import roslib roslib.load_manifest("std_msgs") roslib.load_manifest("rospy") roslib.load_manifest("smach_ros") import rospy from std_msgs.msg import Bool from smach_msgs.msg import SmachContainerStatus from servoing_ui import Ui_Frame as QTServoingF...
ajibawa-2023/Python-Code-Large/train/row_99289
66
91
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99289:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.033, 0.011, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99289:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99289:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99289:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99289:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import sys from PyQt4 import QtCore, QtGui, uic import roslib roslib.load_manifest("rospy") roslib.load_manifest("std_msgs") import rospy from std_msgs.msg import String from arm_cart_control_gui import Ui_Frame as QTArmControlGUIFrame from arm_cart_control_backend import MOVE_BUTTONS, MONITOR_RAT...
ajibawa-2023/Python-Code-Large/train/row_99290
55
71
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99290:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0423, 0.0141, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99290:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99290:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99290:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99290:Expr_L20_C8"}, {"f": "ajibawa-2023/Python-Co...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'servoing_ui.ui' # # Created: Fri Jan 27 04:16:54 2012 # by: PyQt4 UI code generator 4.7.2 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_Frame(object): def setupUi(self, Frame): ...
ajibawa-2023/Python-Code-Large/train/row_99291
97
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_99291:ImportFrom_L10_C0", "label": "from PyQt4 import QtCore, QtGui", "type": "import", "loc": [10, 10], "level": 0, "parent": null, "vector": [1, 0, 0.0855, 0.0085, 0, 0.66, 0.0, 154, 0, 2, 0, 0, 154, 0, 0], "semantic": {"name": "PyQt4", "arg_names": [], "import_names"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99291:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99291:FunctionDef_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99291:FunctionDef_L13_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99291:Expr_L14_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import sys import numpy as np import roslib roslib.load_manifest("hrl_pr2_arms") roslib.load_manifest("kelsey_sandbox") import rospy from visualization_msgs.msg import Marker from geometry_msgs.msg import Point, Quaternion, Vector3 from std_msgs.msg import ColorRGBA from sensor_msgs.msg import Join...
ajibawa-2023/Python-Code-Large/train/row_99292
66
92
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99292:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0326, 0.0109, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99292:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99292:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99292:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99292:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import sys import numpy as np import roslib roslib.load_manifest("hrl_pr2_arms") roslib.load_manifest("kelsey_sandbox") import rospy from visualization_msgs.msg import Marker from geometry_msgs.msg import Point, Quaternion, Vector3 from std_msgs.msg import ColorRGBA from sensor_msgs.msg import Join...
ajibawa-2023/Python-Code-Large/train/row_99293
58
74
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99293:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0405, 0.0135, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99293:ClassDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99293:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99293:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99293:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import numpy as np, math import sys import os from threading import RLock import threading import roslib; roslib.load_manifest('hrl_pr2_lib') import rospy import actionlib from std_msgs.msg import String from geometry_msgs.msg import Point, Pose, Quaternion, PoseStamped, PointStamped import rand...
ajibawa-2023/Python-Code-Large/train/row_99294
959
1,752
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99294:Import_L2_C0", "label": "numpy import np, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0011, 0.0006, 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_99294:If_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99294:Assign_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99294:If_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99294:Assign_L55_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#! /usr/bin/python import numpy as np, math import scipy.stats as stats from threading import RLock import roslib; roslib.load_manifest('hrl_pr2_lib') import rospy from hrl_lib.util import save_pickle, load_pickle from hrl_lib.msg import FloatArray from hrl_lib.rutils import GenericListener, ros_to_dict, RateCaller ...
ajibawa-2023/Python-Code-Large/train/row_99296
599
1,278
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99296:Import_L3_C0", "label": "numpy import np, math", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0023, 0.0008, 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_99296:FunctionDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99296:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99296:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99296:Assign_L38_C4"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/python import numpy as np import sys import cPickle as pickle import roslib roslib.load_manifest('kelsey_sandbox') roslib.load_manifest('hrl_generic_arms') import rospy import rosparam import tf import tf.transformations as tf_trans from hrl_generic_arms.pose_converter import PoseConverter #from umeyama_m...
ajibawa-2023/Python-Code-Large/train/row_99297
104
142
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99297:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0211, 0.007, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99297:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99297:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99297:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99297:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import numpy as np from collections import deque from threading import Lock import roslib roslib.load_manifest("hrl_pr2_arms") import tf.transformations as tf_trans import rospy from hrl_pr2_arms.pr2_controller_switcher import ControllerSwitcher from hrl_pr2_arms.pr2_arm import create_pr2_arm, PR2...
ajibawa-2023/Python-Code-Large/train/row_99298
94
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_99298:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.021, 0.007, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99298:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99298:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99298:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99298:Assign_L33_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python import numpy as np import functools import roslib roslib.load_manifest('hrl_pr2_arms') roslib.load_manifest('smach_ros') roslib.load_manifest('costmap_services') import rospy import smach import smach_ros from std_msgs.msg import Bool, Int8 from hrl_pr2_arms.pr2_arm import create_pr2_arm, PR2ArmJoi...
ajibawa-2023/Python-Code-Large/train/row_99299
222
362
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99299:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0083, 0.0028, 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_99299:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99299:Assign_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99299:ClassDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99299:Assign_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#! /usr/bin/python import sys import numpy as np import roslib; roslib.load_manifest("hrl_pr2_arms") import rospy import tf.transformations as tf_trans from hrl_pr2_arms.pr2_arm import PR2Arm, create_pr2_arm from hrl_pr2_arms.pr2_arm import PR2ArmJointTrajectory, PR2ArmJTranspose from hrl_pr2_arms.pr2_arm import PR2...
ajibawa-2023/Python-Code-Large/train/row_99300
27
39
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99300:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0769, 0.0256, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99300:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99300:Expr_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99300:FunctionDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99300:Assign_L18_C4"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/python import numpy as np import roslib roslib.load_manifest("rospy") roslib.load_manifest("std_msgs") roslib.load_manifest("hrl_pr2_arms") import rospy from std_msgs.msg import String import tf.transformations as tf_trans from hrl_pr2_arms.pr2_arm import create_pr2_arm, PR2ArmJointTrajectory, PR2ArmCart...
ajibawa-2023/Python-Code-Large/train/row_99301
90
132
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99301:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0227, 0.0076, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_nam...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99301:ClassDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99301:FunctionDef_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99301:FunctionDef_L35_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99301:Assign_L36_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import sys import numpy as np import roslib roslib.load_manifest('hrl_pr2_arms') roslib.load_manifest('smach_ros') roslib.load_manifest('actionlib') import rospy import rosbag import smach from smach_ros import SimpleActionState, ServiceState, IntrospectionServer import actionlib import tf import ...
ajibawa-2023/Python-Code-Large/train/row_99302
122
189
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99302:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0159, 0.0053, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name"...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99302:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99302:Expr_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99302:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99302:ImportFrom_L30_C4"}, {"f": "ajibawa-2023/Python-...
import rospy import hrl_lib import yaml import os node_name = "overhead_grasping" ARM = 0 # right arm PRESSURE_LIST =["r_finger_periph_pressure", "r_finger_pad_pressure", "l_finger_periph_pressure", "l_finger_pad_pressure"] class FileOperations(): def __init__(se...
ajibawa-2023/Python-Code-Large/train/row_99304
65
103
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99304:Import_L1_C0", "label": "rospy import rospy", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0097, 0.0097, 0, 0.66, 0.0, 164, 0, 1, 0, 0, 164, 0, 0], "semantic": {"name": "rospy", "arg_names": [], "import_names": ["rospy"], "rhs_ca...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99304:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99304:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99304:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99304:Assign_L16_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python # # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright ...
ajibawa-2023/Python-Code-Large/train/row_99306
56
163
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99306:Import_L31_C0", "label": "roslib import roslib", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.1902, 0.0061, 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_99306:ClassDef_L53_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99306:FunctionDef_L54_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99306:FunctionDef_L54_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99306:Expr_L55_C8"}, {"f": "ajibawa-2023/Python-Co...
import svm labels = [0, 1] samples = [[0, 0], [0, 1]] labels = [0, 1, 1, 2] samples = [[0, 0], [0, 1], [1, 0], [1, 1]] import svm labels = [0, 0, 1, 1] samples = [[1, 1], [1, -1], [-1, 1], [-1, -1]] param = svm.svm_parameter('-c 1') problem = svm.svm_problem(labels, samples) model = svm.libsvm.svm_train(problem,...
ajibawa-2023/Python-Code-Large/train/row_99307
17
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_99307:Import_L1_C0", "label": "svm import svm", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0357, 0, 0.66, 0.0, 75, 0, 1, 0, 0, 75, 0, 0], "semantic": {"name": "svm", "arg_names": [], "import_names": ["svm"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99307:For_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99307:Expr_L22_C4"}]
#!/usr/bin/env python import pdb from svm import * def svm_read_problem(data_file_name): """ svm_read_problem(data_file_name) -> [y, x] Read LIBSVM-format data from data_file_name and return labels y and data instances x. """ prob_y = [] prob_x = [] for line in open(data_file_name): line = line.split(None,...
ajibawa-2023/Python-Code-Large/train/row_99308
118
245
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99308:Import_L3_C0", "label": "pdb import pdb", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0122, 0.0041, 0, 0.66, 0.0, 91, 0, 1, 0, 0, 91, 0, 0], "semantic": {"name": "pdb", "arg_names": [], "import_names": ["pdb"], "rhs_call_name": ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99308:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99308:Expr_L7_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99308:FunctionDef_L6_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99308:Assign_L13_C1"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/env python from ctypes import * from ctypes.util import find_library import sys import subprocess as sb # For unix the prefix 'lib' is not considered. if find_library('svm'): libsvm = CDLL(find_library('svm')) elif find_library('libsvm'): libsvm = CDLL(find_library('libsvm')) else: if sys.platform == 'w...
ajibawa-2023/Python-Code-Large/train/row_99309
206
302
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99309:ImportFrom_L3_C0", "label": "from ctypes import *", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0099, 0.0033, 0, 0.66, 0.0, 182, 0, 1, 0, 0, 182, 0, 0], "semantic": {"name": "ctypes", "arg_names": [], "import_names": ["*"], "rhs...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99309:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99309:Assign_L10_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99309:If_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99309:If_L11_C0"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99309...
#!/usr/bin/env python import sys import os from subprocess import * if len(sys.argv) <= 1: print('Usage: %s training_file [testing_file]' % sys.argv[0]) raise SystemExit # svm, grid, and gnuplot executable files is_win32 = (sys.platform == 'win32') if not is_win32: svmscale_exe = "../svm-scale" svmtrain_exe = "...
ajibawa-2023/Python-Code-Large/train/row_99310
52
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_99310:Import_L3_C0", "label": "sys import sys", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.038, 0.0127, 0, 0.66, 0.0, 509, 0, 1, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["sys"], "rhs_call_name":...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99310:If_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99310:Expr_L8_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99310:If_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99310:Assign_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_993...
#!/usr/bin/env python import os, sys, traceback import getpass from threading import Thread from subprocess import * if(sys.hexversion < 0x03000000): import Queue else: import queue as Queue # svmtrain and gnuplot executable is_win32 = (sys.platform == 'win32') if not is_win32: svmtrain_exe = "../svm-tr...
ajibawa-2023/Python-Code-Large/train/row_99311
245
359
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99311:Import_L5_C0", "label": "os import os, sys, traceback", "type": "import", "loc": [5, 5], "level": 0, "parent": null, "vector": [1, 0, 0.0139, 0.0028, 0, 0.66, 0.0, 688, 0, 3, 0, 0, 688, 0, 0], "semantic": {"name": "os", "arg_names": [], "import_names": ["os", "sys...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99311:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99311:Import_L11_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99311:If_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99311:Import_L13_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/env python # # A format checker for LIBSVM # # # Copyright (c) 2007, Rong-En Fan # # All rights reserved. # # This program is distributed under the same license of the LIBSVM package. # from sys import argv, exit import os.path def err(line_no, msg): print("line %d: %s" % (line_no, msg)) # works like ...
ajibawa-2023/Python-Code-Large/train/row_99312
60
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_99312:ImportFrom_L15_C0", "label": "from sys import argv, exit", "type": "import", "loc": [15, 15], "level": 0, "parent": null, "vector": [1, 0, 0.1389, 0.0093, 0, 0.66, 0.0, 509, 0, 2, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_names": ["arg...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99312:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99312:Expr_L19_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99312:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99312:If_L23_C1"}, {"f": "ajibawa-2023/Python-Code-Lar...
#!/usr/bin/env python from sys import argv, exit, stdout, stderr from random import randint method = 0 global n global dataset_filename subset_filename = "" rest_filename = "" def exit_with_help(): print("""\ Usage: %s [options] dataset number [output1] [output2] This script selects a subset of the given dataset. ...
ajibawa-2023/Python-Code-Large/train/row_99313
95
146
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99313:ImportFrom_L2_C0", "label": "from sys import argv, exit, stdout\u2026", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0137, 0.0068, 0, 0.66, 0.0, 509, 0, 4, 0, 0, 509, 0, 0], "semantic": {"name": "sys", "arg_names": [], "import_na...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99313:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99313:Expr_L12_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99313:FunctionDef_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99313:Expr_L25_C1"}, {"f": "ajibawa-2023/Python-Code-L...
import numpy as np import roslib roslib.load_manifest('hrl_generic_arms') import rospy from equilibrium_point_control.ep_control import EPGenerator, EPC, EPStopConditions ## # Returns a minimum jerk trajectory from x=0..1 given # the number of samples in the trajectory. Assumes # x_i = 0, x_f = 1, v_i = 0, v_f = 0...
ajibawa-2023/Python-Code-Large/train/row_99314
38
62
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99314:Import_L2_C0", "label": "numpy import np", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0323, 0.0161, 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_99314:FunctionDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99314:Return_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99314:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99314:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-...
import numpy as np import copy import roslib; roslib.load_manifest('hrl_generic_arms') import rospy from std_msgs.msg import Header from geometry_msgs.msg import PoseStamped, Pose, Point, Quaternion, PointStamped from geometry_msgs.msg import Transform, TransformStamped, Vector3 from geometry_msgs.msg import Twist, Tw...
ajibawa-2023/Python-Code-Large/train/row_99315
214
296
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99315:Import_L1_C0", "label": "numpy import np", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0034, 0.0034, 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_99315:ClassDef_L12_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99315:FunctionDef_L14_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99315:FunctionDef_L14_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99315:If_L15_C8"}, {"f": "ajibawa-2023/Python-Code...
# # Any robot that wants to use EPC should implement the functions # sketched out in the HRLArm and HRLArmKinematics # # Standards: # pos is a 3x1 numpy matrix representing a position # rot is a 3x3 numpy matrix represetning a rotation # All values are computed in the arm's reference frame (frame 0) # import num...
ajibawa-2023/Python-Code-Large/train/row_99316
60
193
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99316:Import_L11_C0", "label": "numpy import np, math", "type": "import", "loc": [11, 11], "level": 0, "parent": null, "vector": [1, 0, 0.057, 0.0052, 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_99316:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99316:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99316:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99316:Assign_L26_C8"}, {"f": "ajibawa-2023/Python-...
import numpy as np, math import roslib; roslib.load_manifest('hrl_generic_arms') import rospy from std_msgs.msg import Float64, Float64MultiArray ## # Classic PID controller with maximum integral thresholding to # prevent windup. class PIDController(object): def __init__(self, rate=100., k_p=0., k_i=0., k_d=0., i...
ajibawa-2023/Python-Code-Large/train/row_99318
48
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99318:Import_L1_C0", "label": "numpy import np, math", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0172, 0.0172, 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_99318:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99318:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99318:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99318:Assign_L13_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, th...
ajibawa-2023/Python-Code-Large/train/row_99319
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_99319: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_99319:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99319:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99319:FunctionDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99319:Assign_L42_C4"}, {"f": "ajibawa-2023/Python-Co...
# # 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_99320
227
413
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99320:Import_L33_C0", "label": "math import math", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.0799, 0.0024, 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_99320:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99320:If_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99320:If_L53_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99320:Return_L54_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_99321
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_99321: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_99321:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99321:Expr_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99321:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99321:Expr_L48_C4"}, {"f": "ajibawa-2023/Python-Code-L...
# # Copyright (c) 2009, Georgia Tech Research Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, th...
ajibawa-2023/Python-Code-Large/train/row_99322
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_99322: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_99322:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99322:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99322:FunctionDef_L45_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99322: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_99323
216
348
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99323:Import_L31_C0", "label": "math import math", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.0891, 0.0029, 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_99323:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99323:If_L47_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99323:If_L47_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99323:Assign_L48_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
# # 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_99324
350
575
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99324:Import_L33_C0", "label": "math import math", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.0574, 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_99324:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99324:Assign_L53_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99324:FunctionDef_L52_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99324:Assign_L54_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_99325
178
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_99325:Import_L31_C0", "label": "numpy import np, math", "type": "import", "loc": [31, 31], "level": 0, "parent": null, "vector": [1, 0, 0.1037, 0.0033, 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_99325:ClassDef_L47_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99325:FunctionDef_L49_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99325:FunctionDef_L49_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99325:Expr_L50_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_99326
463
752
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99326:Import_L33_C0", "label": "roslib import roslib", "type": "import", "loc": [33, 33], "level": 0, "parent": null, "vector": [1, 0, 0.0439, 0.0013, 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_99326:FunctionDef_L69_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99326:Assign_L71_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99326:FunctionDef_L69_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99326:Assign_L72_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_99327
79
135
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99327:Import_L30_C0", "label": "cody_arm_kinematics import cak", "type": "import", "loc": [30, 30], "level": 0, "parent": null, "vector": [1, 0, 0.2222, 0.0074, 0, 0.66, 0.0, 201, 0, 1, 0, 0, 201, 0, 0], "semantic": {"name": "cody_arm_kinematics", "arg_names": [], "impo...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99327:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99327:Expr_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99327:FunctionDef_L38_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99327:Assign_L41_C4"}, {"f": "ajibawa-2023/Python-Code...
import numpy as np, math import copy import roslib; roslib.load_manifest('equilibrium_point_control') import rospy from std_msgs.msg import Bool class EP_Generator(): # @param ep_gen_func: function that returns stop, ea where ea is the param to the control_function and stop: string which is '' for epc motion t...
ajibawa-2023/Python-Code-Large/train/row_99328
77
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_99328:Import_L2_C0", "label": "numpy import np, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0171, 0.0085, 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_99328:ClassDef_L9_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99328:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99328:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99328:Assign_L13_C8"}, {"f": "ajibawa-2023/Python-C...
import numpy as np, math import copy import roslib; roslib.load_manifest('equilibrium_point_control') import rospy from std_msgs.msg import Bool ## # Abstract class to be implemented when using equilibrium point control. # If generate_ep produces equilibrium points which are used by control_ep # to move the arm, this...
ajibawa-2023/Python-Code-Large/train/row_99330
56
139
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99330:Import_L2_C0", "label": "numpy import np, math", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0144, 0.0072, 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_99330:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99330:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99330:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99330:FunctionDef_L27_C4"}, {"f": "ajibawa-2023/Pytho...
#!/usr/bin/python import roslib roslib.load_manifest('room_explore') import rospy from geometry_msgs.msg import PoseWithCovarianceStamped # header: # seq: 7 # stamp: # secs: 0 # nsecs: 0 # frame_id: /map # pose: # pose: # position: # x: -0.324687451124 # y: 0.183924600482 # ...
ajibawa-2023/Python-Code-Large/train/row_99332
15
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99332:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0612, 0.0204, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99332:If_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99332:Expr_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99332:If_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99332:Assign_L31_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_9...
__all__ = [ 'room_explore' ]
ajibawa-2023/Python-Code-Large/train/row_99333
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_99333: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...
[]
#!/usr/bin/python import roslib roslib.load_manifest('room_explore') import rospy import tf from threading import Thread import actionlib from move_base_msgs.msg import MoveBaseGoal, MoveBaseAction from visualization_msgs.msg import MarkerArray from visualization_msgs.msg import Marker from geometry_msgs.msg import ...
ajibawa-2023/Python-Code-Large/train/row_99334
192
335
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99334:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.009, 0.003, 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_99334:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99334:Return_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99334:ClassDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99334:FunctionDef_L28_C4"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import roslib; roslib.load_manifest('pr2_omni_teleop') import rospy import hrl_camera.ros_camera as rc import cv import hrl_lib.rutils as ru import hrl_lib.util as ut import math #TF import tf import hrl_lib.tf_utils as tfu import tf.transformations as tr if __name__ == '__main__': import sys ...
ajibawa-2023/Python-Code-Large/train/row_99336
37
56
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99336:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0357, 0.0179, 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_99336:If_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99336:Import_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99336:If_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99336:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
import numpy as np coefficients = np.matrix([0.00957324711798050, -0.00204106308185305, -0.0217944712296340, -0.0386045234368094, -0.0240699173047884, 0.0411301337058247, 0.144943252298100, 0.242605833505432, 0.282695778236683, 0.242605833505432, 0.144943252298100, 0.0411301337058247, -0.0240699173047884, -0.0386045234...
ajibawa-2023/Python-Code-Large/train/row_99338
4
6
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99338:Import_L1_C0", "label": "numpy import np", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.1667, 0.1667, 0, 0.66, 0.0, 954, 0, 1, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np"], "rhs_call_nam...
[]
#! /usr/bin/python import numpy as np import roslib; roslib.load_manifest('hrl_clickable_world') import rospy import std_msgs.msg from hrl_clickable_world.srv import PerceiveButtons, ButtonAction, DisplayButtons from hrl_clickable_world.srv import ButtonActionRequest from hrl_clickable_world.srv import PerceiveButto...
ajibawa-2023/Python-Code-Large/train/row_99341
69
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99341:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0306, 0.0102, 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_99341:ClassDef_L16_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99341:FunctionDef_L17_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99341:FunctionDef_L17_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99341:Assign_L18_C8"}, {"f": "ajibawa-2023/Python-...
import numpy as np import roslib; roslib.load_manifest('pr2_grasp_behaviors') import rospy from std_msgs.msg import String, Bool import std_srvs.srv from tf.transformations import * import object_manipulator.convert_functions as cf from hrl_pr2_lib.hrl_controller_manager import HRLControllerManager as ControllerManag...
ajibawa-2023/Python-Code-Large/train/row_99342
179
298
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99342:Import_L1_C0", "label": "numpy import np", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0034, 0.0034, 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_99342:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99342:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99342:FunctionDef_L19_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99342:Assign_L20_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import numpy as np, math import sys import roslib; roslib.load_manifest('pr2_grasp_behaviors') import rospy import actionlib from tf.transformations import * from std_msgs.msg import String from geometry_msgs.msg import PointStamped import object_manipulator.convert_functions as cf from object_man...
ajibawa-2023/Python-Code-Large/train/row_99343
163
242
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99343:Import_L3_C0", "label": "numpy import np, math", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0124, 0.0041, 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_99343:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99343:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99343:ClassDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99343:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Lar...
#! /usr/bin/python import numpy as np, math import random import roslib; roslib.load_manifest('pr2_grasp_behaviors') import rospy from grasp_manager import GraspBehavior class SidewaysGrasp(GraspBehavior): def __init__(self, arm, use_coll_detection=False): super(OverheadGrasp, self).__init__(arm, use_col...
ajibawa-2023/Python-Code-Large/train/row_99344
36
59
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99344:Import_L3_C0", "label": "numpy import np, math", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0508, 0.0169, 0, 0.66, 0.0, 954, 0, 2, 0, 0, 954, 0, 0], "semantic": {"name": "numpy", "arg_names": [], "import_names": ["np", "math"],...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99344:ClassDef_L10_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99344:FunctionDef_L11_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99344:FunctionDef_L11_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99344:Expr_L12_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('pr2_approach_table') import rospy from geometry_msgs.msg import Twist import actionlib import costmap_services.python_client as costmap from pr2_approach_table.srv import ApproachSrv from pr2_approach_table.msg import ApproachAction, ApproachResult, ApproachGoal ...
ajibawa-2023/Python-Code-Large/train/row_99347
71
149
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99347:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0134, 0.0067, 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_99347:FunctionDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99347:Return_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99347:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99347:Return_L22_C4"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('pr2_approach_table') roslib.load_manifest('rfid_behaviors') import rospy import tf import tf.transformations as tft import smach from smach_ros import SimpleActionState, ServiceState, IntrospectionServer import actionlib from geometry_msgs.msg import PoseStamped, ...
ajibawa-2023/Python-Code-Large/train/row_99348
127
303
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99348:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0066, 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_99348:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99348:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99348:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99348:Expr_L23_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import numpy as np import roslib; roslib.load_manifest('hrl_clickable_behaviors') import rospy import std_srvs.srv import actionlib import tf.transformations as tf_trans from tf.listener import TransformListener from geometry_msgs.msg import Quaternion from hrl_clickable_world.srv import PerceiveB...
ajibawa-2023/Python-Code-Large/train/row_99349
62
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99349:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0366, 0.0122, 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_99349:ClassDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99349:FunctionDef_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99349:FunctionDef_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99349:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import numpy as np import roslib; roslib.load_manifest('hrl_clickable_behaviors') import rospy import std_srvs.srv import actionlib from tf.listener import TransformListener from hrl_clickable_world.srv import PerceiveButtons, ButtonAction, DisplayButtons from hrl_clickable_world.srv import Percei...
ajibawa-2023/Python-Code-Large/train/row_99350
74
106
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99350:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0283, 0.0094, 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_99350:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99350:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99350:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99350:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import numpy as np import roslib; roslib.load_manifest('hrl_clickable_behaviors') import rospy import std_srvs.srv import actionlib from hrl_clickable_world.srv import PerceiveButtons, ButtonAction, DisplayButtons from hrl_clickable_world.srv import PerceiveButtonsResponse, ButtonActionResponse fr...
ajibawa-2023/Python-Code-Large/train/row_99351
66
93
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99351:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0323, 0.0108, 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_99351:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99351:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99351:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99351:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import numpy as np import roslib; roslib.load_manifest('hrl_clickable_behaviors') import rospy import std_srvs.srv import actionlib from tf.listener import TransformListener from hrl_clickable_world.srv import PerceiveButtons, ButtonAction, DisplayButtons from hrl_clickable_world.srv import Percei...
ajibawa-2023/Python-Code-Large/train/row_99352
69
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_99352:Import_L3_C0", "label": "numpy import np", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0303, 0.0101, 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_99352:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99352:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99352:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99352:Assign_L22_C8"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python import roslib roslib.load_manifest('rfid_people_following') import rospy from std_msgs.msg import Float64 import tf import time import numpy as np, math import functools class tf_updater(): def __init__(self, name, right_pan = '/robotis/servo_right_pan', righ...
ajibawa-2023/Python-Code-Large/train/row_99353
27
82
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99353:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0366, 0.0122, 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_99353:ClassDef_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99353:FunctionDef_L15_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99353:FunctionDef_L15_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99353:Try_L20_C8"}, {"f": "ajibawa-2023/Python-Cod...
#!/usr/bin/python import roslib roslib.load_manifest( 'rfid_people_following' ) import rospy from scipy.spatial import KDTree import numpy as np, math import pickle as pkl import markers import point_cloud_utils as pcu import time rospy.init_node( 'traj_pub' ) print 'Loading data' f = open( 'trajectory_caps/resutl...
ajibawa-2023/Python-Code-Large/train/row_99354
48
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_99354:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0312, 0.0104, 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_99354:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99354:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99354:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99354:Return_L28_C4"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials') roslib.load_manifest('rfid_people_following') roslib.load_manifest('std_srvs') roslib.load_manifest('joy') import rospy from rfid_people_following.srv import StringInt32_Int32 from rfid_people_following.srv import String_Int32 fro...
ajibawa-2023/Python-Code-Large/train/row_99355
90
121
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99355:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0248, 0.0083, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99355:ClassDef_L23_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99355:FunctionDef_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99355:FunctionDef_L24_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99355:Expr_L25_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import time import roslib roslib.load_manifest('rospy') roslib.load_manifest('tf') roslib.load_manifest('geometry_msgs') roslib.load_manifest('std_msgs') roslib.load_manifest('hrl_rfid') roslib.load_manifest('robotis') roslib.load_manifest('rfid_people_following') import rospy import tf import tf.tr...
ajibawa-2023/Python-Code-Large/train/row_99356
158
234
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99356:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0085, 0.0043, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99356:FunctionDef_L43_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99356:Return_L44_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99356:FunctionDef_L46_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99356:If_L47_C4"}, {"f": "ajibawa-2023/Python-Code-L...
#! /usr/bin/python import time import roslib roslib.load_manifest('rospy') roslib.load_manifest('actionlib') roslib.load_manifest( 'move_base_msgs' ) roslib.load_manifest('tf') roslib.load_manifest('std_srvs') roslib.load_manifest('geometry_msgs') roslib.load_manifest('std_msgs') roslib.load_manifest('hrl_rfid') roslib...
ajibawa-2023/Python-Code-Large/train/row_99357
135
201
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99357:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.01, 0.005, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_name...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99357:ClassDef_L39_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99357:FunctionDef_L40_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99357:FunctionDef_L40_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99357:Assign_L41_C8"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import time import roslib roslib.load_manifest('rospy') roslib.load_manifest('actionlib') roslib.load_manifest( 'move_base_msgs' ) roslib.load_manifest('tf') roslib.load_manifest('geometry_msgs') roslib.load_manifest('std_msgs') roslib.load_manifest('hrl_rfid') roslib.load_manifest('robotis') roslib....
ajibawa-2023/Python-Code-Large/train/row_99358
119
217
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99358:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0092, 0.0046, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99358:FunctionDef_L36_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99358:If_L37_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99358:If_L37_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99358:Return_L38_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
db = { 'person ': { 'humanread': 'Person', 'img': 'person.jpg' }, 'LightSwitch1': { 'humanread': 'Light Switch', 'img': 'LightSwitch1.jpg' } }
ajibawa-2023/Python-Code-Large/train/row_99359
1
6
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99359:Assign_L1_C0", "label": "db =", "type": "assigned_variable", "loc": [1, 6], "level": 0, "parent": null, "vector": [14, 0, 0.5833, 1.0, 0, 0.66, 0.0, 761, 0, 0, 0, 0, 0, 6, 0], "semantic": {"name": "db", "arg_names": [], "import_names": [], "rhs_call_name": "", "an...
[]
import roslib roslib.load_manifest( 'rfid_people_following' ) roslib.load_manifest( 'tf' ) roslib.load_manifest( 'geometry_msgs' ) roslib.load_manifest('hrl_rfid') import rospy from hrl_rfid.msg import RFIDread from hrl_rfid.msg import RFIDreadArr from hrl_rfid.srv import RfidSrv import tf from geometry_msgs.msg impor...
ajibawa-2023/Python-Code-Large/train/row_99360
198
304
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99360:Import_L1_C0", "label": "roslib import roslib", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0033, 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_99360:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99360:Return_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99360:ClassDef_L29_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99360:Expr_L30_C4"}, {"f": "ajibawa-2023/Python-Code-La...
#!/usr/bin/python import roslib roslib.load_manifest( 'robotis' ) import rospy import robotis.ros_robotis as rr import time import math if __name__ == '__main__': p_left = rr.ROS_Robotis_Client( 'left_pan' ) t_left = rr.ROS_Robotis_Client( 'left_tilt' ) p_left.move_angle( -1.370, math.radians(10), b...
ajibawa-2023/Python-Code-Large/train/row_99361
15
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_99361:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.125, 0.0417, 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_99361:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99361:Assign_L12_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99361:If_L11_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99361:Assign_L13_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_people_following') roslib.load_manifest('pr2_msgs') roslib.load_manifest('std_msgs') import rospy from pr2_msgs.msg import PressureState from std_msgs.msg import Float64 from rfid_people_following.srv import FloatFloat_Int32 import numpy as np, math import t...
ajibawa-2023/Python-Code-Large/train/row_99362
84
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_99362:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0147, 0.0074, 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_99362:FunctionDef_L15_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99362:Return_L16_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99362:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99362:FunctionDef_L19_C4"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python import time import roslib roslib.load_manifest('rospy') roslib.load_manifest('geometry_msgs') roslib.load_manifest('hrl_rfid') roslib.load_manifest('robotis') import time import rospy from geometry_msgs.msg import Twist import numpy as np, math import hrl_rfid.ros_M5e_client as rmc import robotis.ro...
ajibawa-2023/Python-Code-Large/train/row_99363
96
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_99363:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0132, 0.0066, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99363:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99363:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99363:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99363:Expr_L19_C8"}, {"f": "ajibawa-2023/Python-Co...
#!/usr/bin/python # Merges functionality from ros_M5e in hrl_rfid package. # if opt.device == 'ears': # print 'Starting Ears RFID Services' # ros_rfid = ROS_M5e( name = 'ears', readPwr = opt.power, # portStr = '/dev/robot/RFIDreader', # antFun...
ajibawa-2023/Python-Code-Large/train/row_99364
21
51
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99364:Import_L14_C0", "label": "roslib import roslib", "type": "import", "loc": [14, 14], "level": 0, "parent": null, "vector": [1, 0, 0.2745, 0.0196, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], ...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99364:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99364:Import_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99364:If_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99364:Import_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row...
#!/usr/bin/python import roslib roslib.load_manifest('rfid_people_following') roslib.load_manifest('geometry_msgs') import rospy import tf from geometry_msgs.msg import PointStamped import time rospy.init_node('ground_truth_tag_pose') listener = tf.TransformListener() # listener.waitForTransform('/l_gripper_tool_f...
ajibawa-2023/Python-Code-Large/train/row_99365
19
31
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99365:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0968, 0.0323, 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_99365:While_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99365:Assign_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99365:While_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99365:Assign_L24_C4"}, {"f": "ajibawa-2023/Python-Code-Large/tra...
#!/usr/bin/python import roslib roslib.load_manifest( 'robotis' ) roslib.load_manifest( 'hrl_rfid' ) roslib.load_manifest( 'geometry_msgs' ) import rospy import robotis.ros_robotis as rr import hrl_rfid.ros_M5e_client as rmc from geometry_msgs.msg import PointStamped import time import math from threading import Thre...
ajibawa-2023/Python-Code-Large/train/row_99366
69
98
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99366:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0306, 0.0102, 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_99366:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99366:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99366:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99366:Expr_L19_C8"}, {"f": "ajibawa-2023/Python-Co...
import time import roslib roslib.load_manifest('rospy') roslib.load_manifest('actionlib') roslib.load_manifest( 'move_base_msgs' ) roslib.load_manifest('tf') roslib.load_manifest('std_srvs') roslib.load_manifest('geometry_msgs') roslib.load_manifest('std_msgs') roslib.load_manifest('hrl_rfid') roslib.load_manifest('ro...
ajibawa-2023/Python-Code-Large/train/row_99367
28
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_99367:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0377, 0.0189, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[]
#!/usr/bin/python import roslib roslib.load_manifest('rfid_people_following') import rospy import rfid_people_following.db_rfid as db_rfid from rfid_people_following.srv import rfid_gui as gui_srv import time import string import pygame import pygame.display import pygame.locals import pygame.transform import numpy ...
ajibawa-2023/Python-Code-Large/train/row_99368
172
280
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99368:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0107, 0.0036, 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_99368:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99368:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99368:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99368:If_L21_C8"}, {"f": "ajibawa-2023/Python-Code...
import subprocess as sb import os class CmdProcess: def __init__(self, cmd_list): self.cmd_list= cmd_list self.process = None def run(self): self.process = sb.Popen(self.cmd_list) def kill(self): os.system('kill -2 %d' % self.process.pid)
ajibawa-2023/Python-Code-Large/train/row_99369
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99369:Import_L1_C0", "label": "subprocess import sb", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0714, 0, 0.66, 0.0, 394, 0, 1, 0, 0, 394, 0, 0], "semantic": {"name": "subprocess", "arg_names": [], "import_names": ["sb"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99369:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99369:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99369:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99369:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/python # Taken from Tiffany & Kelsey and readapted to my needs. import roslib roslib.load_manifest('hrl_pr2_lib') roslib.load_manifest('ar_pose') roslib.load_manifest('rfid_people_following') import rospy import tf import actionlib from actionlib_msgs.msg import GoalStatus from pr2_controllers_msgs.msg imp...
ajibawa-2023/Python-Code-Large/train/row_99370
149
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_99370:Import_L4_C0", "label": "roslib import roslib", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.0175, 0.0044, 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_99370:FunctionDef_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99370:Return_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99370:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99370:Assign_L25_C4"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python # Directly stolen from Tiffany. Thanks! ;-) import roslib roslib.load_manifest('hrl_pr2_lib') import rospy import actionlib from actionlib_msgs.msg import * from pr2_controllers_msgs.msg import * from geometry_msgs.msg import * import numpy as np import dynamic_reconfigure.client #to turn on/off ...
ajibawa-2023/Python-Code-Large/train/row_99371
39
58
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99371:Import_L4_C0", "label": "roslib import roslib", "type": "import", "loc": [4, 4], "level": 0, "parent": null, "vector": [1, 0, 0.069, 0.0172, 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_99371:Try_L14_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99371:Expr_L15_C1"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99371:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99371:FunctionDef_L20_C1"}, {"f": "ajibawa-2023/Python-Code-Large...
#! /usr/bin/python import time import roslib roslib.load_manifest('rospy') roslib.load_manifest('geometry_msgs') roslib.load_manifest('std_msgs') roslib.load_manifest('hrl_rfid') roslib.load_manifest('robotis') roslib.load_manifest('rfid_people_following') import time import rospy from geometry_msgs.msg import Twist f...
ajibawa-2023/Python-Code-Large/train/row_99372
151
219
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99372:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0091, 0.0046, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99372:FunctionDef_L34_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99372:Return_L35_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99372:ClassDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99372:FunctionDef_L38_C4"}, {"f": "ajibawa-2023/Python-...
# ROS imports import roslib roslib.load_manifest('rfid_people_following') roslib.load_manifest('robotis') import rospy from std_msgs.msg import Float64 from robotis.srv import None_Float from robotis.srv import None_FloatResponse from robotis.srv import MoveAng from robotis.srv import MoveAngResponse from robotis.srv...
ajibawa-2023/Python-Code-Large/train/row_99373
127
207
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99373:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0145, 0.0048, 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_99373:FunctionDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99373:If_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99373:If_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99373:Return_L22_C8"}, {"f": "ajibawa-2023/Python-Code-Large/trai...
#! /usr/bin/python import roslib; roslib.load_manifest('hrl_pr2_kinematics_tutorials') roslib.load_manifest('rfid_people_following') roslib.load_manifest('hrl_lib') roslib.load_manifest('std_srvs') import rospy import hrl_pr2_kinematics_tutorials.hrl_pr2 as hrl_pr2 import hrl_lib.transforms as tr import rfid_people_...
ajibawa-2023/Python-Code-Large/train/row_99374
91
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_99374:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0207, 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_99374:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99374:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99374:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99374:Expr_L22_C8"}, {"f": "ajibawa-2023/Python-Co...
import numpy as np,math import sim_capture import glob import pickle as pkl import time class request(): def __init__( self, x, y, ang ): self.x = x self.y = y self.z = 0 self.ang = ang def has_item( lst, item ): try: lst.index( item ) return True except: ...
ajibawa-2023/Python-Code-Large/train/row_99375
47
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_99375:Import_L1_C0", "label": "numpy import np, math", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0149, 0.0149, 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_99375:ClassDef_L7_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99375:FunctionDef_L8_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99375:FunctionDef_L8_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99375:Assign_L9_C8"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/python import time import roslib roslib.load_manifest('hrl_rfid') roslib.load_manifest('sound_play') import rospy import time import numpy as np, math import hrl_rfid.ros_M5e_client as rmc import sound_play.libsoundplay as lsp r = rmc.ROS_M5e_Client('ears') r.query_mode() speaker = lsp.SoundClient() i =...
ajibawa-2023/Python-Code-Large/train/row_99376
28
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_99376:Import_L2_C0", "label": "time import time", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0476, 0.0238, 0, 0.66, 0.0, 654, 0, 1, 0, 0, 654, 0, 0], "semantic": {"name": "time", "arg_names": [], "import_names": ["time"], "rhs_call_n...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99376:While_L21_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99376:If_L22_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99376:If_L22_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99376:Assign_L23_C8"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_...
#!/usr/bin/python import roslib roslib.load_manifest('room_explore') import rospy import tf from nav_msgs.srv import GetPlan, GetPlanRequest from geometry_msgs.msg import PoseStamped import util as ut import time #srv_name = '/move_base_node/NavfnROS/make_plan' srv_name = '/move_base_node/make_plan' rospy.init_no...
ajibawa-2023/Python-Code-Large/train/row_99377
31
49
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99377:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0612, 0.0204, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99377:For_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99377:Assign_L45_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99377:For_L44_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99377:Assign_L46_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/r...
#!/usr/bin/python import roslib roslib.load_manifest('rfid_explore_room') roslib.load_manifest('explore_hrl') import rospy import tf import tf.transformations as tft import actionlib import rfid_explore_room.util as ut from actionlib.simple_action_client import SimpleGoalState from move_base_msgs.msg import MoveBase...
ajibawa-2023/Python-Code-Large/train/row_99378
218
380
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99378:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0079, 0.0026, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99378:FunctionDef_L26_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99378:Return_L27_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99378:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99378:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-...
#!/usr/bin/python import roslib roslib.load_manifest('room_explore') import rospy import tf from geometry_msgs.msg import PoseStamped from visualization_msgs.msg import Marker, MarkerArray from geometry_msgs.msg import Vector3, PoseStamped, Quaternion from std_msgs.msg import ColorRGBA from threading import Thread ...
ajibawa-2023/Python-Code-Large/train/row_99379
96
152
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99379:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0197, 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_99379:ClassDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99379:FunctionDef_L18_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99379:FunctionDef_L18_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99379:Expr_L19_C8"}, {"f": "ajibawa-2023/Python-Co...
__all__ = [ 'snaking_room_explore' ]
ajibawa-2023/Python-Code-Large/train/row_99380
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_99380: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...
[]
#!/usr/bin/python import roslib roslib.load_manifest('rfid_explore_room') import rospy import tf from threading import Thread import actionlib from move_base_msgs.msg import MoveBaseGoal, MoveBaseAction from visualization_msgs.msg import MarkerArray from visualization_msgs.msg import Marker from geometry_msgs.msg im...
ajibawa-2023/Python-Code-Large/train/row_99381
200
346
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99381:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0087, 0.0029, 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_99381:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99381:Return_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99381:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99381:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-...
#! /usr/bin/python # Without the in-hand RFID reader, use ARToolKit instead for upclose # (nearfield) validation import roslib roslib.load_manifest('rfid_artoolkit') import rospy import rfid_servoing.servo as servo import costmap_services.python_client as costmap import artoolkit_detector as artag import actionlib ...
ajibawa-2023/Python-Code-Large/train/row_99382
94
193
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99382:Import_L6_C0", "label": "roslib import roslib", "type": "import", "loc": [6, 6], "level": 0, "parent": null, "vector": [1, 0, 0.0311, 0.0052, 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_99382:ClassDef_L18_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99382:FunctionDef_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99382:FunctionDef_L23_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99382:Try_L24_C8"}, {"f": "ajibawa-2023/Python-Cod...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_artoolkit') import rospy import tf import actionlib from actionlib_msgs.msg import GoalStatus from pr2_controllers_msgs.msg import PointHeadAction, PointHeadGoal from geometry_msgs.msg import PointStamped from ar_pose.msg import ARMarkers import time from t...
ajibawa-2023/Python-Code-Large/train/row_99383
146
221
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99383:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0136, 0.0045, 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_99383:FunctionDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99383:Return_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99383:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99383:Return_L23_C4"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_servoing') import rospy import hrl_rfid.ros_M5e_client as rmc from hrl_rfid.msg import RFIDread import robotis.ros_robotis as rr import costmap_services.python_client as costmap from geometry_msgs.msg import Twist import actionlib from rfid_servoing.srv impo...
ajibawa-2023/Python-Code-Large/train/row_99384
124
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_99384:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0088, 0.0044, 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_99384:FunctionDef_L22_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99384:Return_L23_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99384:FunctionDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99384:Return_L26_C4"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_servoing') import rospy from geometry_msgs.msg import Twist from std_msgs.msg import Float64 from rfid_people_following.srv import StringInt32_Int32 from rfid_people_following.srv import Int32_Int32 from rfid_people_following.srv import StringInt32_Int32Respo...
ajibawa-2023/Python-Code-Large/train/row_99385
144
212
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99385:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0094, 0.0047, 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_99385:FunctionDef_L27_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99385:Return_L28_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99385:ClassDef_L30_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99385:FunctionDef_L31_C4"}, {"f": "ajibawa-2023/Python-...
__all__ = [ 'servo' ]
ajibawa-2023/Python-Code-Large/train/row_99386
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_99386: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...
[]
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') roslib.load_manifest('rfid_behaviors') roslib.load_manifest('pr2_grasp_behaviors') roslib.load_manifest('hrl_trajectory_playback') roslib.load_manifest('pr2_controllers_msgs') roslib.load_manifest('robotis') import rospy import smach import actionlib ...
ajibawa-2023/Python-Code-Large/train/row_99387
85
192
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99387:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0104, 0.0052, 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_99387:ClassDef_L31_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99387:FunctionDef_L32_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99387:FunctionDef_L32_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99387:Expr_L33_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib; roslib.load_manifest('rfid_demos') roslib.load_manifest('hrl_pr2_kinematics_tutorials') # roslib.load_manifest('rfid_people_following') roslib.load_manifest('std_srvs') roslib.load_manifest('joy') import rospy from smach_ros import IntrospectionServer from rfid_servoing.srv import Se...
ajibawa-2023/Python-Code-Large/train/row_99388
84
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_99388:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0244, 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_99388:ClassDef_L25_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99388:FunctionDef_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99388:FunctionDef_L26_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99388:Expr_L27_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') roslib.load_manifest('rfid_explore_room') import rospy import smach import tf from smach_ros import SimpleActionState, ServiceState, IntrospectionServer import actionlib from rfid_behaviors.srv import FlapperSrv, FlapperSrvRequest from rfid_behaviors...
ajibawa-2023/Python-Code-Large/train/row_99389
41
214
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99389:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0093, 0.0047, 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_99389:ClassDef_L20_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99389:FunctionDef_L21_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99389:FunctionDef_L21_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99389:Expr_L22_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib; roslib.load_manifest('rfid_people_following') roslib.load_manifest('std_srvs') roslib.load_manifest('explore_hrl') roslib.load_manifest('move_base_msgs') roslib.load_manifest('actionlib') roslib.load_manifest('geometry_msgs') roslib.load_manifest('tf') roslib.load_manifest('hrl_rfid'...
ajibawa-2023/Python-Code-Large/train/row_99390
193
302
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99390:Import_L3_C0", "label": "roslib import roslib", "type": "import", "loc": [3, 3], "level": 0, "parent": null, "vector": [1, 0, 0.0099, 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_99390:ClassDef_L40_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99390:FunctionDef_L41_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99390:FunctionDef_L41_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99390:Expr_L42_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') import rospy import smach from smach_ros import SimpleActionState, ServiceState, IntrospectionServer import actionlib from rfid_servoing.msg import ServoAction, ServoGoal from rfid_artoolkit.msg import UpCloseAction, UpCloseGoal from pr2_controllers_...
ajibawa-2023/Python-Code-Large/train/row_99391
33
153
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99391:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0131, 0.0065, 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_99391:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99391:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99391:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99391:Expr_L45_C8"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') roslib.load_manifest('hrl_object_fetching') roslib.load_manifest('hrl_table_detect') roslib.load_manifest('hrl_trajectory_playback') roslib.load_manifest('pr2_overhead_grasping') import rospy import smach import actionlib from smach_ros import Simple...
ajibawa-2023/Python-Code-Large/train/row_99392
60
204
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99392:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0098, 0.0049, 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_99392:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99392:Assign_L39_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99392:FunctionDef_L37_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99392:Assign_L44_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') roslib.load_manifest('robotis') import rospy import smach from smach_ros import SimpleActionState, ServiceState, IntrospectionServer import actionlib from rfid_servoing.msg import ServoAction, ServoGoal from rfid_artoolkit.msg import UpCloseAction, U...
ajibawa-2023/Python-Code-Large/train/row_99393
38
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_99393:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0208, 0.0104, 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_99393:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99393:Assign_L26_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99393:FunctionDef_L24_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99393:Expr_L32_C8"}, {"f": "ajibawa-2023/Python-Code...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') import rospy import smach from smach_ros import SimpleActionState, ServiceState, IntrospectionServer import actionlib import sm_rfid_explore import sm_next_best_vantage import sm_rfid_delivery from geometry_msgs.msg import PoseStamped from move_base_...
ajibawa-2023/Python-Code-Large/train/row_99394
31
70
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99394:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0286, 0.0143, 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_99394:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99394:Assign_L19_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99394:FunctionDef_L17_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99394:Assign_L24_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') roslib.load_manifest('rfid_behaviors') roslib.load_manifest('hrl_object_fetching') roslib.load_manifest('hrl_trajectory_playback') roslib.load_manifest('pr2_overhead_grasping') roslib.load_manifest('pr2_controllers_msgs') import rospy import smach imp...
ajibawa-2023/Python-Code-Large/train/row_99395
63
175
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99395:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0114, 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_99395:ClassDef_L28_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99395:FunctionDef_L29_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99395:FunctionDef_L29_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99395:Expr_L30_C8"}, {"f": "ajibawa-2023/Python-Co...
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') import rospy import smach import tf from smach_ros import SimpleActionState, ServiceState, IntrospectionServer import actionlib from geometry_msgs.msg import PoseStamped from move_base_msgs.msg import MoveBaseAction from rfid_behaviors.srv import Rec...
ajibawa-2023/Python-Code-Large/train/row_99396
65
141
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99396:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0142, 0.0071, 0, 0.66, 0.0, 796, 0, 1, 0, 0, 796, 0, 0], "semantic": {"name": "roslib", "arg_names": [], "import_names": ["roslib"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99396:ClassDef_L19_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99396:FunctionDef_L20_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99396:FunctionDef_L20_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99396:Expr_L21_C8"}, {"f": "ajibawa-2023/Python-Co...
import subprocess as sb import os class CmdProcess: def __init__(self, cmd_list): self.cmd_list= cmd_list self.process = None def run(self): self.process = sb.Popen(self.cmd_list) def kill(self): os.system('kill -2 %d' % self.process.pid)
ajibawa-2023/Python-Code-Large/train/row_99397
10
14
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99397:Import_L1_C0", "label": "subprocess import sb", "type": "import", "loc": [1, 1], "level": 0, "parent": null, "vector": [1, 0, 0.0714, 0.0714, 0, 0.66, 0.0, 394, 0, 1, 0, 0, 394, 0, 0], "semantic": {"name": "subprocess", "arg_names": [], "import_names": ["sb"], "rh...
[{"f": "ajibawa-2023/Python-Code-Large/train/row_99397:ClassDef_L4_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99397:FunctionDef_L6_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99397:FunctionDef_L6_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99397:Assign_L7_C8"}, {"f": "ajibawa-2023/Python-Code...
__all__ = [ 'demo_node', 'rfid_delivery', 'sm_test', 'rfid_search' ]
ajibawa-2023/Python-Code-Large/train/row_99398
1
9
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99398:Assign_L3_C0", "label": "__all__ =", "type": "assigned_variable", "loc": [3, 8], "level": 0, "parent": null, "vector": [14, 0, 0.6111, 0.6667, 0, 0.66, 0.0, 272, 0, 0, 0, 0, 0, 5, 0], "semantic": {"name": "__all__", "arg_names": [], "import_names": [], "rhs_call_n...
[]
#! /usr/bin/python import roslib roslib.load_manifest('rfid_demos') roslib.load_manifest('rfid_behaviors') roslib.load_manifest('pr2_grasp_behaviors') roslib.load_manifest('hrl_trajectory_playback') roslib.load_manifest('pr2_controllers_msgs') roslib.load_manifest('robotis') import rospy import smach import actionlib ...
ajibawa-2023/Python-Code-Large/train/row_99399
122
305
15
["cat_id", "level", "center", "span", "parent_depth", "parent_weight", "sibling_index", "name_hash", "rhs_type", "arg_count", "return_type", "is_async", "module_hash", "value_type", "calls_count"]
[{"id": "ajibawa-2023/Python-Code-Large/train/row_99399:Import_L2_C0", "label": "roslib import roslib", "type": "import", "loc": [2, 2], "level": 0, "parent": null, "vector": [1, 0, 0.0066, 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_99399:ClassDef_L32_C0", "t": "ajibawa-2023/Python-Code-Large/train/row_99399:FunctionDef_L33_C4"}, {"f": "ajibawa-2023/Python-Code-Large/train/row_99399:FunctionDef_L33_C4", "t": "ajibawa-2023/Python-Code-Large/train/row_99399:Expr_L34_C8"}, {"f": "ajibawa-2023/Python-Co...