<commit_before>const mqtt = require('mqtt');

module.exports = () => {
  const client = mqtt.connect('mqtt://iot.eclipse.org');

  var student_controller = require('../controllers/student.controller');
  var teacher_controller = require('../controllers/teacher.controller');
  var lesson_controller = require('../controllers/lesson.controller');

  client.on('connect', () => {
    client.subscribe('ChamadaRFID/UFPE/CIn/Sala_1_PUB');
  })

  client.on('message', (topic, message) => {
    if(topic === 'ChamadaRFID/UFPE/CIn/Sala_1_PUB') {
      console.log(message);
    }
  })
}<commit_msg>Fixing the print message<commit_after>const mqtt = require('mqtt');

module.exports = () => {
  const client = mqtt.connect('mqtt://iot.eclipse.org');

  var student_controller = require('../controllers/student.controller');
  var teacher_controller = require('../controllers/teacher.controller');
  var lesson_controller = require('../controllers/lesson.controller');

  client.on('connect', () => {
    client.subscribe('ChamadaRFID/UFPE/CIn/Sala_1_PUB');
  })

  client.on('message', (topic, message) => {
    if(topic === 'ChamadaRFID/UFPE/CIn/Sala_1_PUB') {
      console.log(message.toString());
    }
  })
}
{'fraction_non_alphanumeric': 0.18822553897180763, 'fraction_numerical': 0.003316749585406302, 'mean_word_length': 4.270742358078603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '1411171', 'n_tokens_mistral': 415, 'n_tokens_neox': 407, 'n_words': 51}