<commit_before>#!/usr/bin/env python
# coding=utf-8
import rospy
from pydoc import locate
from std_msgs.msg import String
import interpreter_callback


class key_interpreter():
    def __init__(self):
        self.cmd = Command()

    def keys_cb(self, msg, twist_pub):
            val = interpreter_callback.get_val(msg, topic_name, key_map)
            if val is 'switch_teleop':
                self.cmd.send = not self.cmd.send
            elif val is not None:
                self.cmd.val = process_key(val, self.cmd.val, topic_info)

                if self.cmd.send:<commit_msg>debug 11<commit_after>#!/usr/bin/env python
# coding=utf-8
import rospy
from pydoc import locate
from std_msgs.msg import String
import interpreter_callback


class key_interpreter():
    def __init__(self):
        self.cmd = Command()

    def keys_cb(self, msg, twist_pub):
            val = interpreter_callback.get_val(msg, topic_name, key_map)
            print 'val :', val
            if val is 'switch_teleop':
                self.cmd.send = not self.cmd.send
            elif val is not None:
                self.cmd.val = process_key(val, self.cmd.val, topic_info)

                if self.cmd.send:
{'fraction_non_alphanumeric': 0.09348914858096828, 'fraction_numerical': 0.00333889816360601, 'mean_word_length': 2.3121546961325965, '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': '1422802', 'n_tokens_mistral': 384, 'n_tokens_neox': 363, 'n_words': 97}