<commit_before>import rospy
from costar_objrec_msgs.msg import *
from predicator_msgs.msg import *

'''
convert detected objects into predicate messages we can query later on
'''
class DetectedObjectsPublisher:

    def __init__(self):
        self.pub = rospy.Publisher('/predicator/input', PredicateList)
        self.vpub = rospy.Publisher('/predicator/valid_input', ValidPredicates)

    def callback(self,msg):
        true_msg = PredicateList()
        valid_msg = ValidPredicates()



        self.pub.publish(true_msg)
        self.vpub.publish(valid_msg)<commit_msg>creating callback<commit_after>import rospy
from costar_objrec_msgs.msg import *
from predicator_msgs.msg import *

'''
convert detected objects into predicate messages we can query later on
'''
class DetectedObjectsPublisher:

    def __init__(self):
        self.pub = rospy.Publisher('/predicator/input', PredicateList)
        self.vpub = rospy.Publisher('/predicator/valid_input', ValidPredicates)

    def callback(self,msg):
        true_msg = PredicateList()
        valid_msg = ValidPredicates()

        

        self.pub.publish(true_msg)
        self.vpub.publish(valid_msg)
{'fraction_non_alphanumeric': 0.09466437177280551, 'fraction_numerical': 0.0, 'mean_word_length': 3.652, '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': '2896208', 'n_tokens_mistral': 364, 'n_tokens_neox': 339, 'n_words': 74}