<commit_before>package de.haw.rnp.adapter.incomingclient.accesslayer;

import de.haw.rnp.adapter.incomingpeer.accesslayer.IIncomingPeerAdapterServices;
import de.haw.rnp.adapter.incomingpeer.accesslayer.IncomingPeerAdapterFacade;
import de.haw.rnp.adapter.outgoingpeer.accesslayer.IOutgoingPeerAdapterServices;
import de.haw.rnp.adapter.outgoingpeer.accesslayer.OutgoingPeerAdapterFacade;
import de.haw.rnp.component.transport.accesslayer.ITransportServices;
import de.haw.rnp.component.transport.accesslayer.ITransportServicesForIncomingPeerAdapter;
import de.haw.rnp.component.transport.accesslayer.TransportFacade;
import de.haw.rnp.component.transport.dataaccesslayer.entities.Field;
import de.haw.rnp.component.transport.dataaccesslayer.entities.Frame;
import de.haw.rnp.util.enumerations.FieldType;
import de.haw.rnp.util.enumerations.MessageType;
import de.haw.rnp.component.user.accesslayer.IUserServices;
import de.haw.rnp.component.user.accesslayer.UserFacade;
import de.haw.rnp.util.AddressType;


import java.net.InetAddress;
import java.net.UnknownHostException;

public class Main {

    static IIncomingPeerAdapterServices incomingPeerAdapterServices;
    static ITransportServices transportServices;
    static IUserServices userServices;
    static ITransportServicesForIncomingPeerAdapter transportServicesForIncomingPeerAdapter;
    static IOutgoingPeerAdapterServices outgoingPeerAdapterServices;

    public static void main(String[] args) {
        userServices = new UserFacade();
        outgoingPeerAdapterServices = new OutgoingPeerAdapterFacade();
        transportServices = new TransportFacade(userServices, outgoingPeerAdapterServices);
        transportServicesForIncomingPeerAdapter = new TransportFacade(userServices, outgoingPeerAdapterServices);
        incomingPeerAdapterServices = new IncomingPeerAdapterFacade(transportServicesForIncomingPeerAdapter);

        InetAddress net = null;

        try {
            net = InetAddress.getByName("localhost");
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }

        AddressType address = new AddressType(net, 10000);
        incomingPeerAdapterServices.startServer(address);
        incomingPeerAdapterServices.startQueueWorker();

        Frame frame = new Frame(address, address, 1, MessageType.Login, 3);
        frame.addField(new Field<>(FieldType.IP, 4, address.getIp()));
        frame.addField(new Field<>(FieldType.Port, 2, address.getPort()));
        frame.addField(new Field<>(FieldType.Name, 3, "FOO"));

        System.out.println("fuck off");
        transportServices.sendLogin(frame);
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        frame.setMessageType(MessageType.MyName);
        transportServices.sendLogin(frame);
    }
}<commit_msg>commented test main out<commit_after>package de.haw.rnp.adapter.incomingclient.accesslayer;

import de.haw.rnp.adapter.incomingpeer.accesslayer.IIncomingPeerAdapterServices;
import de.haw.rnp.adapter.incomingpeer.accesslayer.IncomingPeerAdapterFacade;
import de.haw.rnp.adapter.outgoingpeer.accesslayer.IOutgoingPeerAdapterServices;
import de.haw.rnp.adapter.outgoingpeer.accesslayer.OutgoingPeerAdapterFacade;
import de.haw.rnp.component.transport.accesslayer.ITransportServices;
import de.haw.rnp.component.transport.accesslayer.ITransportServicesForIncomingPeerAdapter;
import de.haw.rnp.component.transport.accesslayer.TransportFacade;
import de.haw.rnp.component.transport.dataaccesslayer.entities.Field;
import de.haw.rnp.component.transport.dataaccesslayer.entities.Frame;
import de.haw.rnp.util.enumerations.FieldType;
import de.haw.rnp.util.enumerations.MessageType;
import de.haw.rnp.component.user.accesslayer.IUserServices;
import de.haw.rnp.component.user.accesslayer.UserFacade;
import de.haw.rnp.util.AddressType;


import java.net.InetAddress;
import java.net.UnknownHostException;

public class Main {

    static IIncomingPeerAdapterServices incomingPeerAdapterServices;
    static ITransportServices transportServices;
    static IUserServices userServices;
    static ITransportServicesForIncomingPeerAdapter transportServicesForIncomingPeerAdapter;
    static IOutgoingPeerAdapterServices outgoingPeerAdapterServices;

    public static void main(String[] args) {
        /*
        userServices = new UserFacade();
        outgoingPeerAdapterServices = new OutgoingPeerAdapterFacade();
        transportServices = new TransportFacade(userServices, outgoingPeerAdapterServices);
        transportServicesForIncomingPeerAdapter = new TransportFacade(userServices, outgoingPeerAdapterServices);
        incomingPeerAdapterServices = new IncomingPeerAdapterFacade(transportServicesForIncomingPeerAdapter);

        InetAddress net = null;

        try {
            net = InetAddress.getByName("localhost");
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }

        AddressType address = new AddressType(net, 10000);
        incomingPeerAdapterServices.startServer(address);
        incomingPeerAdapterServices.startQueueWorker();

        Frame frame = new Frame(address, address, 1, MessageType.Login, 3);
        frame.addField(new Field<>(FieldType.IP, 4, address.getIp()));
        frame.addField(new Field<>(FieldType.Port, 2, address.getPort()));
        frame.addField(new Field<>(FieldType.Name, 3, "FOO"));

        System.out.println("fuck off");
        transportServices.sendLogin(frame);
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        frame.setMessageType(MessageType.MyName);
        transportServices.sendLogin(frame);
        */
    }
}
{'fraction_non_alphanumeric': 0.09150779896013865, 'fraction_numerical': 0.004852686308492201, 'mean_word_length': 4.373370577281192, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5400757', 'n_tokens_mistral': 1635, 'n_tokens_neox': 1571, 'n_words': 247}