<commit_before>package sonata.kernel.placement.net;

import org.junit.Test;
import org.openstack4j.api.OSClient.OSClientV2;

import sonata.kernel.placement.config.PopResource;

import static org.junit.Assert.*;

public class TransalatorPortTest {
	
	@Test
	public void authenticate_Instance_cerate_port() throws Exception {
		PopResource res = new PopResource();
		res.setEndpoint("http://192.168.3.11:5001/v2.0");
		res.setUserName("bla");
		res.setPassword("<PASSWORD>");
		res.setTenantName("fc394f2ab2df4114bde39905f800dc57");
		res.setPopName("Datacenter1");
		OSClientV2 os = TranslatorNetwork.authenticate_instance(res);
		TranslatorPort.create_port(os, "PortTest", "bd3711ee-fc31-4d65-802d-df6f9b071ab0", "172.16.17.32", "afc8013b-89ca-462b-909f-13f582dcd52e");
		//wait(100000);
		//TranslatorPort.delete_port(os, "1");
	}
	
	@Test
	public void authenticate_Instance_delete_port() throws Exception {
		PopResource res = new PopResource();
		res.setEndpoint("http://192.168.3.11:5001/v2.0");
		res.setUserName("bla");
		res.setPassword("<PASSWORD>");
		res.setTenantName("fc394f2ab2df4114bde39905f800dc57");
		res.setPopName("Datacenter1");
		OSClientV2 os = TranslatorNetwork.authenticate_instance(res);
		TranslatorPort.delete_port(os, "2dc93c01-80fd-4fc0-8b67-b3bc16ffcfc6");
	}

}<commit_msg>Minor changes<commit_after>package sonata.kernel.placement.net;

import org.junit.Test;
import org.openstack4j.api.OSClient.OSClientV2;

import sonata.kernel.placement.config.PopResource;

import static org.junit.Assert.*;

public class TransalatorPortTest {
	
	@Test
	public void authenticate_Instance_cerate_port() throws Exception {
		PopResource res = new PopResource();
		res.setEndpoint("http://192.168.3.11:5001/v2.0");
		res.setUserName("bla");
		res.setPassword("<PASSWORD>");
		res.setTenantName("fc394f2ab2df4114bde39905f800dc57");
		res.setPopName("Datacenter1");
		OSClientV2 os = TranslatorNetwork.authenticate_instance(res);
		//TranslatorPort.create_port(os, "PortTest", "bd3711ee-fc31-4d65-802d-df6f9b071ab0", "172.16.17.32", "afc8013b-89ca-462b-909f-13f582dcd52e");
		//wait(100000);
		//TranslatorPort.delete_port(os, "1");
	}
	
	@Test
	public void authenticate_Instance_delete_port() throws Exception {
		PopResource res = new PopResource();
		res.setEndpoint("http://192.168.3.11:5001/v2.0");
		res.setUserName("bla");
		res.setPassword("<PASSWORD>");
		res.setTenantName("fc394f2ab2df4114bde39905f800dc57");
		res.setPopName("Datacenter1");
		OSClientV2 os = TranslatorNetwork.authenticate_instance(res);
		//TranslatorPort.delete_port(os, "2dc93c01-80fd-4fc0-8b67-b3bc16ffcfc6");
	}

}
{'fraction_non_alphanumeric': 0.14624808575803983, 'fraction_numerical': 0.10949464012251149, 'mean_word_length': 5.9866310160427805, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '1120214', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1005, 'n_words': 121}