<commit_before>package gr.ntua.vision.monitoring.heartbeat.unit;

import gr.ntua.vision.monitoring.heartbeat.HeartbeatReceiver;
import gr.ntua.vision.monitoring.heartbeat.HeartbeatSender;

import java.io.IOException;
import java.net.InetAddress;
import java.util.HashMap;
import java.util.Iterator;

import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class HeartbeatTest {

    private static final String MULTICAST_IP   = "172.16.17.32";
    private static final int    MULTICAST_PORT = 6000;
    private static final int    TTL            = 0;
    
    private static final Logger   log                        = LoggerFactory.getLogger(HeartbeatSender.class);


    /*
     * 
     */
    @Test
    public void testHeartbeatServiceSuccessfull() throws IOException {
        log.info("starting HeartbeatServiceSuccessfull test...");
        

        final HeartbeatReceiver receiver = new HeartbeatReceiver(InetAddress.getByName(HeartbeatTest.MULTICAST_IP),
                HeartbeatTest.MULTICAST_PORT);
        receiver.clearMembership();
        final HeartbeatSender sender = new HeartbeatSender(InetAddress.getByName(HeartbeatTest.MULTICAST_IP),<commit_msg>testing multicast with different ttl<commit_after>package gr.ntua.vision.monitoring.heartbeat.unit;

import gr.ntua.vision.monitoring.heartbeat.HeartbeatReceiver;
import gr.ntua.vision.monitoring.heartbeat.HeartbeatSender;

import java.io.IOException;
import java.net.InetAddress;
import java.util.HashMap;
import java.util.Iterator;

import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class HeartbeatTest {

    private static final String MULTICAST_IP   = "172.16.17.32";
    private static final int    MULTICAST_PORT = 6000;
    private static final int    TTL            = 3;
    
    private static final Logger   log                        = LoggerFactory.getLogger(HeartbeatSender.class);


    /*
     * 
     */
    @Test
    public void testHeartbeatServiceSuccessfull() throws IOException {
        log.info("starting HeartbeatServiceSuccessfull test...");
        

        final HeartbeatReceiver receiver = new HeartbeatReceiver(InetAddress.getByName(HeartbeatTest.MULTICAST_IP),
                HeartbeatTest.MULTICAST_PORT);
        receiver.clearMembership();
        final HeartbeatSender sender = new HeartbeatSender(InetAddress.getByName(HeartbeatTest.MULTICAST_IP),
{'fraction_non_alphanumeric': 0.08235769075494549, 'fraction_numerical': 0.012918853451756156, 'mean_word_length': 3.3550087873462213, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4674550', 'n_tokens_mistral': 756, 'n_tokens_neox': 706, 'n_words': 143}