<commit_before>// TEZT . JAVA

package cat.calidos.morfeu.utils;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import javax.xml.transform.Source;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import org.apache.commons.io.FileUtils;
import org.xmlunit.builder.DiffBuilder;
import org.xmlunit.builder.Input;
import org.xmlunit.diff.Diff;

/**
* @author <NAME>
*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public class Tezt {

protected static final String URL_PROPERTY = "app-url";
protected static String DEFAULT_URL = "http://localhost:8980";
public static final String DEFAULT_TMP_FOLDER_NAME = "integration-tests-tmp";


public String tempDirectoryPath() {
	return defineSystemVariable("TMP_FOLDER", "./target/"+DEFAULT_TMP_FOLDER_NAME);
}


public File setupTempDirectory() throws Exception {

	String tmp = tempDirectoryPath();
	File tmpFolder = new File(tmp);
	if (tmpFolder.exists()) {
		if (tmpFolder.isFile()) {
			fail("Temporary folder destination exists and it's not a directory");
		}
	} else {<commit_msg>test url updated<commit_after>// TEZT . JAVA

package cat.calidos.morfeu.utils;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.fail;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import javax.xml.transform.Source;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;

import org.apache.commons.io.FileUtils;
import org.xmlunit.builder.DiffBuilder;
import org.xmlunit.builder.Input;
import org.xmlunit.diff.Diff;

/**
* @author <NAME>
*///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public class Tezt {

protected static final String URL_PROPERTY = "app-url";
protected static String DEFAULT_URL = "http://localhost:3000/";
public static final String DEFAULT_TMP_FOLDER_NAME = "integration-tests-tmp";


public String tempDirectoryPath() {
	return defineSystemVariable("TMP_FOLDER", "./target/"+DEFAULT_TMP_FOLDER_NAME);
}


public File setupTempDirectory() throws Exception {

	String tmp = tempDirectoryPath();
	File tmpFolder = new File(tmp);
	if (tmpFolder.exists()) {
		if (tmpFolder.isFile()) {
			fail("Temporary folder destination exists and it's not a directory");
		}
	} else {
{'fraction_non_alphanumeric': 0.194947209653092, 'fraction_numerical': 0.0030165912518853697, 'mean_word_length': 3.320846905537459, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '5444170', 'n_tokens_mistral': 780, 'n_tokens_neox': 736, 'n_words': 176}