<commit_before>#!/usr/bin/env python3
import sys
import rospy
from robotiq_3f_gripper_articulated_msgs.msg import Robotiq3FGripperRobotOutput


def publisher(input_command):
    rospy.init_node('OpenGripper')
    pub = rospy.Publisher('Robotiq3FGripperRobotOutput', Robotiq3FGripperRobotOutput, queue_size=1)
    command = Robotiq3FGripperRobotOutput()
    command.rACT = 1
    command.rGTO = 1
    command.rSPA = 255
    command.rFRA = 150
    if input_command == "o":
        command.rPRA = 0
    elif input_command == "c":
        command.rPRA = 255
    else:
        raise NotImplementedError
    rospy.sleep(1)
    pub.publish(command)


if __name__ == '__main__':
    publisher(input_command=sys.argv[1])<commit_msg>add readme<commit_after>#!/usr/bin/env python3
import sys
import rospy
from robotiq_3f_gripper_articulated_msgs.msg import Robotiq3FGripperRobotOutput


def publisher(input_command):
    rospy.init_node('OpenGripper')
    pub = rospy.Publisher('Robotiq3FGripperRobotOutput', Robotiq3FGripperRobotOutput, queue_size=1)
    command = Robotiq3FGripperRobotOutput()
    command.rACT = 1
    command.rGTO = 1
    command.rSPA = 255
    command.rFRA = 150
    if input_command == "o":
        command.rPRA = 0
    elif input_command == "c":
        command.rPRA = 255
    else:
        rospy.logwarn("use o or c to control the hand open or close")
        raise NotImplementedError
    rospy.sleep(1)
    pub.publish(command)


if __name__ == '__main__':
    publisher(input_command=sys.argv[1])
{'fraction_non_alphanumeric': 0.09463931171409662, 'fraction_numerical': 0.027796161482461945, 'mean_word_length': 3.6666666666666665, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4003057', 'n_tokens_mistral': 588, 'n_tokens_neox': 545, 'n_words': 103}