<commit_before>package it.polimi.modaclouds.recedingHorizonScaling4Cloud.util;

import it.polimi.modaclouds.recedingHorizonScaling4Cloud.exceptions.ConfigurationFileException;
import it.polimi.modaclouds.recedingHorizonScaling4Cloud.exceptions.ProjectFileSystemException;
import it.polimi.modaclouds.recedingHorizonScaling4Cloud.model.Container;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.DecimalFormat;
import java.util.Calendar;
import java.util.Map;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;

public class ConfigManager {
	
	private static final Logger journal = LoggerFactory
			.getLogger(ConfigManager.class);

	public static final String DEFAULT_IP = "127.0.0.1";
	
	public static String OWN_IP = DEFAULT_IP;
	
	public static final int DEFAULT_LISTENING_PORT = 81790;
	public static String LISTENING_PORT = Integer.toString(DEFAULT_LISTENING_PORT);
	
	public static final int DEFAULT_OTHER_OBSERVER_PORT = 8001;
	public static String OTHER_OBSERVER_PORT = Integer.toString(DEFAULT_OTHER_OBSERVER_PORT);
	
	public static String PATH_TO_DESIGN_TIME_MODEL;
	
	public static String SSH_USER_NAME;
	public static String SSH_HOST;
	public static String SSH_PASSWORD;
	
	public static String CLOUDML_WEBSOCKET_IP = DEFAULT_IP;
	
	public static final int DEFAULT_CLOUDML_WEBSOCKET_PORT = 9030;
	public static String CLOUDML_WEBSOCKET_PORT = Integer.toString(DEFAULT_CLOUDML_WEBSOCKET_PORT);
	
	public static String MONITORING_PLATFORM_IP = DEFAULT_IP;
	
	public static final int DEFAULT_MONITORING_PLATFORM_PORT = 8170;
	public static String MONITORING_PLATFORM_PORT = Integer.toString(DEFAULT_MONITORING_PLATFORM_PORT);
	
	public static final float DEFAULT_DEFAULT_DEMAND = 0f;
	public static String DEFAULT_DEMAND = Float.toString(DEFAULT_DEFAULT_DEMAND);
	
	public static String OBJECT_STORE_IP = DEFAULT_IP;
	
	public static final int DEFAULT_OBJECT_STORE_PORT = 20622;
	public static String OBJECT_STORE_PORT = Integer.toString(DEFAULT_OBJECT_STORE_PORT);
	<commit_msg>Changed the port address to 6789.<commit_after>package it.polimi.modaclouds.recedingHorizonScaling4Cloud.util;

import it.polimi.modaclouds.recedingHorizonScaling4Cloud.exceptions.ConfigurationFileException;
import it.polimi.modaclouds.recedingHorizonScaling4Cloud.exceptions.ProjectFileSystemException;
import it.polimi.modaclouds.recedingHorizonScaling4Cloud.model.Container;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.net.URL;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.text.DecimalFormat;
import java.util.Calendar;
import java.util.Map;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;

import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;

public class ConfigManager {
	
	private static final Logger journal = LoggerFactory
			.getLogger(ConfigManager.class);

	public static final String DEFAULT_IP = "127.0.0.1";
	
	public static String OWN_IP = DEFAULT_IP;
	
	public static final int DEFAULT_LISTENING_PORT = 6789;
	public static String LISTENING_PORT = Integer.toString(DEFAULT_LISTENING_PORT);
	
	public static final int DEFAULT_OTHER_OBSERVER_PORT = 8001;
	public static String OTHER_OBSERVER_PORT = Integer.toString(DEFAULT_OTHER_OBSERVER_PORT);
	
	public static String PATH_TO_DESIGN_TIME_MODEL;
	
	public static String SSH_USER_NAME;
	public static String SSH_HOST;
	public static String SSH_PASSWORD;
	
	public static String CLOUDML_WEBSOCKET_IP = DEFAULT_IP;
	
	public static final int DEFAULT_CLOUDML_WEBSOCKET_PORT = 9030;
	public static String CLOUDML_WEBSOCKET_PORT = Integer.toString(DEFAULT_CLOUDML_WEBSOCKET_PORT);
	
	public static String MONITORING_PLATFORM_IP = DEFAULT_IP;
	
	public static final int DEFAULT_MONITORING_PLATFORM_PORT = 8170;
	public static String MONITORING_PLATFORM_PORT = Integer.toString(DEFAULT_MONITORING_PLATFORM_PORT);
	
	public static final float DEFAULT_DEFAULT_DEMAND = 0f;
	public static String DEFAULT_DEMAND = Float.toString(DEFAULT_DEFAULT_DEMAND);
	
	public static String OBJECT_STORE_IP = DEFAULT_IP;
	
	public static final int DEFAULT_OBJECT_STORE_PORT = 20622;
	public static String OBJECT_STORE_PORT = Integer.toString(DEFAULT_OBJECT_STORE_PORT);
	
{'fraction_non_alphanumeric': 0.07086914995224451, 'fraction_numerical': 0.01585482330468004, 'mean_word_length': 6.426950354609929, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '5016487', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1682, 'n_words': 357}