<commit_before>package com.kurento.kmf.connector.test.base;

import java.util.Properties;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.context.WebApplicationContext;

import com.kurento.kmf.connector.ConnectorApp;
import com.kurento.kmf.spring.KurentoApplicationContextUtils;

public class BootBaseTest {

	protected static ConfigurableApplicationContext context;

	@BeforeClass
	public static void start() throws Exception {

		Properties properties = new Properties();
		properties.put("server.port", getPort());

		trasvaseProperty("kurento.serverAddress", "mediaserver.address",
				properties);
		trasvaseProperty("kurento.serverPort", "mediaserver.port", properties);
		trasvaseProperty("kurento.handlerAddress", "handler.address",
				properties);
		trasvaseProperty("kurento.handlerPort", "handler.port", properties);

		SpringApplication application = new SpringApplication(
				ConnectorApp.class);

		application.setDefaultProperties(properties);
		context = application.run();
	}

	@AfterClass
	public static void stop() {

		if(context != null) {
			context.close();
		}
	}

	private static void trasvaseProperty(String systemPropertyName,
			String propertyName, Properties properties) {
		String property = System.getProperty(systemPropertyName);

		if (property != null)
			properties.put(propertyName, property);

	}

	protected static String getPort() {
		String port = System.getProperty("http.port");
		if (port == null) {
			port = "8080";
		}
		return port;
	}

	public static void main(String[] args) throws Exception {
		start();
	}

}<commit_msg>Change default port to 7788 to allow Jenkins to execute tests<commit_after>package com.kurento.kmf.connector.test.base;

import java.util.Properties;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.springframework.boot.SpringApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.context.WebApplicationContext;

import com.kurento.kmf.connector.ConnectorApp;
import com.kurento.kmf.spring.KurentoApplicationContextUtils;

public class BootBaseTest {

	protected static ConfigurableApplicationContext context;

	@BeforeClass
	public static void start() throws Exception {

		Properties properties = new Properties();
		properties.put("server.port", getPort());

		trasvaseProperty("kurento.serverAddress", "mediaserver.address",
				properties);
		trasvaseProperty("kurento.serverPort", "mediaserver.port", properties);
		trasvaseProperty("kurento.handlerAddress", "handler.address",
				properties);
		trasvaseProperty("kurento.handlerPort", "handler.port", properties);

		SpringApplication application = new SpringApplication(
				ConnectorApp.class);

		application.setDefaultProperties(properties);
		context = application.run();
	}

	@AfterClass
	public static void stop() {

		if(context != null) {
			context.close();
		}
	}

	private static void trasvaseProperty(String systemPropertyName,
			String propertyName, Properties properties) {
		String property = System.getProperty(systemPropertyName);

		if (property != null)
			properties.put(propertyName, property);

	}

	protected static String getPort() {
		String port = System.getProperty("http.port");
		if (port == null) {
			port = "7788";
		}
		return port;
	}

	public static void main(String[] args) throws Exception {
		start();
	}

}
{'fraction_non_alphanumeric': 0.106878908470722, 'fraction_numerical': 0.0034110289937464467, 'mean_word_length': 5.4568807339449545, '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': '6272731', 'n_tokens_mistral': 1078, 'n_tokens_neox': 977, 'n_words': 220}