<commit_before>package us.dot.its.jpo.ode.services.vsd;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import us.dot.its.jpo.ode.OdeProperties;
import us.dot.its.jpo.ode.plugin.j2735.J2735Bsm;
import us.dot.its.jpo.ode.wrapper.MessageConsumer;
import us.dot.its.jpo.ode.wrapper.MessageProducer;

@Controller
public class BsmToVsdPackagerController {

   private static final Logger logger = LoggerFactory.getLogger(BsmToVsdPackagerController.class);

   @Autowired
   private BsmToVsdPackagerController(OdeProperties odeProps) {
      super();

      String inputTopic = odeProps.getKafkaTopicBsmRawJson(); // TODO - needs to
                                                              // be filtered
      String outputTopic = odeProps.getKafkaTopicEncodedVsd();

      if (odeProps.isEnabledVsdKafkaTopic()) {<commit_msg>ODE-314 bugfix<commit_after>package us.dot.its.jpo.ode.services.vsd;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import us.dot.its.jpo.ode.OdeProperties;
import us.dot.its.jpo.ode.plugin.j2735.J2735Bsm;
import us.dot.its.jpo.ode.wrapper.MessageConsumer;
import us.dot.its.jpo.ode.wrapper.MessageProducer;

// TODO @Controller
public class BsmToVsdPackagerController {

   private static final Logger logger = LoggerFactory.getLogger(BsmToVsdPackagerController.class);

   @Autowired
   private BsmToVsdPackagerController(OdeProperties odeProps) {
      super();

      String inputTopic = odeProps.getKafkaTopicBsmRawJson(); // TODO - needs to
                                                              // be filtered
      String outputTopic = odeProps.getKafkaTopicEncodedVsd();

      if (odeProps.isEnabledVsdKafkaTopic()) {
{'fraction_non_alphanumeric': 0.09586170770036669, 'fraction_numerical': 0.012048192771084338, 'mean_word_length': 3.5153664302600474, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6893852', 'n_tokens_mistral': 600, 'n_tokens_neox': 589, 'n_words': 94}