<commit_before>package defyndiantest;

import java.util.Date;

import defyndian.config.DefyndianConfig;
import defyndian.core.DefyndianSensor;
import exception.DefyndianDatabaseException;
import exception.DefyndianMQException;
import messaging.DefyndianEnvelope;
import messaging.DefyndianMessage;
import messaging.RoutingInfo;

public class TestSensor extends DefyndianSensor{

	public TestSensor(String arg0, int arg1) throws DefyndianMQException, DefyndianDatabaseException {
		super(arg0, arg1);
	}

	@Override
	protected void createMessages() {
		logger.info("Putting message in inbox");
		try {
			putMessageInOutbox(new DefyndianMessage(("Test Message [" + new Date() + "]").getBytes()));
		} catch (InterruptedException e) {
			logger.error("Interrupted while queueing message, message is lost");<commit_msg>Works for new DefyndianMessage structure<commit_after>package defyndiantest;

import java.util.Date;

import defyndian.config.DefyndianConfig;
import defyndian.core.DefyndianSensor;
import exception.DefyndianDatabaseException;
import exception.DefyndianMQException;
import messaging.DefyndianEnvelope;
import messaging.DefyndianMessage;
import messaging.RoutingInfo;

public class TestSensor extends DefyndianSensor{

	public TestSensor(String arg0, int arg1) throws DefyndianMQException, DefyndianDatabaseException {
		super(arg0, arg1);
	}

	@Override
	protected void createMessages() {
		logger.info("Putting message in inbox");
		try {
			DefyndianMessage message = DefyndianMessage.withBody(("Test Message [" + new Date() + "]"));
			logger.debug(message.toJSONString());
			putMessageInOutbox(message);
		} catch (InterruptedException e) {
			logger.error("Interrupted while queueing message, message is lost");
{'fraction_non_alphanumeric': 0.09174841315637623, 'fraction_numerical': 0.004616272360069244, 'mean_word_length': 6.7757847533632285, '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': '1191131', 'n_tokens_mistral': 560, 'n_tokens_neox': 536, 'n_words': 121}