<commit_before>package it.polimi.deib.dspace.net;

import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

import org.apache.commons.io.IOUtils;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.entity.mime.content.FileBody;
import org.apache.http.entity.mime.content.StringBody;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.json.simple.JSONArray;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

/**
 * Manages interaction with the backend
 * @author <NAME> <<EMAIL>>
 */
public class NetworkManager {
	
	private static NetworkManager instance;
	private static String rootEndpoint = "http://localhost:8000";
	private static String vmConfigsEndpoint = rootEndpoint+"/vm-types";
	private static String alternativesEndpoint = rootEndpoint+"/alternatives";<commit_msg>fixing naming inconsistencies<commit_after>package it.polimi.deib.dspace.net;

import java.io.File;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.List;

import org.apache.commons.io.IOUtils;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ContentType;
import org.apache.http.entity.mime.MultipartEntityBuilder;
import org.apache.http.entity.mime.content.FileBody;
import org.apache.http.entity.mime.content.StringBody;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.json.simple.JSONArray;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;

/**
 * Manages interaction with the backend
 * @author <NAME> <<EMAIL>>
 */
public class NetworkManager {
	
	private static NetworkManager instance;
	private static String rootEndpoint = "http://localhost:8000";
	private static String vmConfigsEndpoint = rootEndpoint+"/vm-types";
{'fraction_non_alphanumeric': 0.11247803163444639, 'fraction_numerical': 0.0035149384885764497, 'mean_word_length': 6.006153846153846, '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': '819693', 'n_tokens_mistral': 686, 'n_tokens_neox': 672, 'n_words': 128}