<commit_before>package mware_lib;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import de.haw.vs.nameservice.ObjectReference;
import mware_lib.communication.CommunicationModule;
import mware_lib.communication.ReflectionUtil;
import mware_lib.nameservice.NameServiceProxy;
import org.slf4j.LoggerFactory;

/**
 * This class acts as the main entry point for the middleware.
 */
public class ObjectBroker implements IObjectBroker {

    private NameService nameService;
    private CommunicationModule communicationModule;
    private static ObjectBroker instance;
    private final Logger logger = (Logger) LoggerFactory.getLogger(ObjectBroker.class);

    /**
     * Main entry point to the middleware.
     *
     * @param serviceHost String host of NameService
     * @param listenPort  int Port of NameService
     * @param debug       boolean indicates extra logging
     * @return ObjectBroker
     */
    public static ObjectBroker init(String serviceHost, int listenPort, boolean debug) {
        if (instance == null) {
            Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
            root.setLevel(Level.DEBUG);
            instance = new ObjectBroker(serviceHost, listenPort);<commit_msg>debugging flag reactivated<commit_after>package mware_lib;

import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.Logger;
import de.haw.vs.nameservice.ObjectReference;
import mware_lib.communication.CommunicationModule;
import mware_lib.communication.ReflectionUtil;
import mware_lib.nameservice.NameServiceProxy;
import org.slf4j.LoggerFactory;

/**
 * This class acts as the main entry point for the middleware.
 */
public class ObjectBroker implements IObjectBroker {

    private NameService nameService;
    private CommunicationModule communicationModule;
    private static ObjectBroker instance;
    private final Logger logger = (Logger) LoggerFactory.getLogger(ObjectBroker.class);

    /**
     * Main entry point to the middleware.
     *
     * @param serviceHost String host of NameService
     * @param listenPort  int Port of NameService
     * @param debug       boolean indicates extra logging
     * @return ObjectBroker
     */
    public static ObjectBroker init(String serviceHost, int listenPort, boolean debug) {
        if (instance == null) {
            if (debug) {
                Logger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
                root.setLevel(Level.DEBUG);
            }
            instance = new ObjectBroker(serviceHost, listenPort);
{'fraction_non_alphanumeric': 0.07447633824670287, 'fraction_numerical': 0.0007757951900698216, 'mean_word_length': 3.6135957066189626, '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': '1217082', 'n_tokens_mistral': 696, 'n_tokens_neox': 680, 'n_words': 193}