<commit_before># Under MIT License, see LICENSE.txt
import time
import logging
from multiprocessing import Process, Queue, Event

try:
    from pyhermes import McuCommunicator
except ImportError:
    print("Couldn't find the pyhermes package. Cannot send command to physical robots.",
          "\nTo remedy please run the command pip install -r requirements.txt")

from RULEngine.Command.command import *

COMMUNICATION_SLEEP = 0.001
MOVE_COMMAND_SLEEP = 0.05


class SerialCommandSender(Process):
    def __init__(self, robot_cmds_queue: Queue, stop_event: Event):
        super(SerialCommandSender, self).__init__()
        self.logger = logging.getLogger("SerialCommandSender")

        self.mcu_com = McuCommunicator(timeout=0.1)


    def _initialize(self):
        pass

    def run(self):
        pass

    def serve(self):

    def _stop(self):
        pass



    def send_loop(self):
        def loop_send_packets(sc):
            if not self.terminate.is_set():
                sc.enter(MOVE_COMMAND_SLEEP, 1, loop_send_packets, (sc,))<commit_msg>testing webhook!<commit_after># Under MIT License, see LICENSE.txt
import time
import logging
from multiprocessing import Process, Queue, Event

try:
    from pyhermes import McuCommunicator
except ImportError:
    print("Couldn't find the pyhermes package. Cannot send command to physical robots.",
          "\nTo remedy please run the command pip install -r requirements.txt")

from RULEngine.Command.command import *

COMMUNICATION_SLEEP = 0.001
MOVE_COMMAND_SLEEP = 0.05


class SerialCommandSender(Process):
    def __init__(self, robot_cmds_queue: Queue, stop_event: Event):
        super(SerialCommandSender, self).__init__()
        self.logger = logging.getLogger("SerialCommandSender")

        self.mcu_com = McuCommunicator(timeout=0.1)


    def _initialize(self):
        pass

    def run(self):
        pass

    def serve(self):

    def _stop(self):
        pass

    # TODO HERHE

    def send_loop(self):
        def loop_send_packets(sc):
            if not self.terminate.is_set():
                sc.enter(MOVE_COMMAND_SLEEP, 1, loop_send_packets, (sc,))
{'fraction_non_alphanumeric': 0.08610201216658868, 'fraction_numerical': 0.009358914365933552, 'mean_word_length': 3.225296442687747, 'pattern_counts': {'":': 0, '<': 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': '1688801', 'n_tokens_mistral': 686, 'n_tokens_neox': 647, 'n_words': 178}