<commit_before>package de.uka.ipd.sdq.beagle.core.testutil.factories;

import de.uka.ipd.sdq.beagle.core.ProjectInformation;
import de.uka.ipd.sdq.beagle.core.facade.SourceCodeFileProvider;

import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.nio.charset.Charset;
import java.nio.file.Files;

/**
 * Creates test project information instances.
 *
 * @author <NAME>
 */
public class ProjectInformationFactory implements SourceCodeFileProvider {

	/**
	 * See {@link Serializable}.
	 */
	private static final long serialVersionUID = -2919717213224100923L;

	/**
	 * Creates a new project information.
	 *
	 * @return A newly initialised project information you must not make any assumptions
	 *         about.
	 */
	public ProjectInformation getOne() {
		return new ProjectInformation(0, this, "", Charset.defaultCharset(),
			new LaunchConfigurationFactory().getAllAsSet());
	}

	@Override
	public File getSourceFile(final String fullyQualifiedJavaPath) {

		try {
			return Files.createTempFile("testfile", ".java").toFile();
		} catch (final IOException ioException) {
			throw new RuntimeException(ioException);
		}
	}
}<commit_msg>adapt factory to new timeout class<commit_after>package de.uka.ipd.sdq.beagle.core.testutil.factories;

import static org.mockito.Mockito.mock;

import de.uka.ipd.sdq.beagle.core.ProjectInformation;
import de.uka.ipd.sdq.beagle.core.facade.SourceCodeFileProvider;
import de.uka.ipd.sdq.beagle.core.timeout.Timeout;

import java.io.File;
import java.io.IOException;
import java.io.Serializable;
import java.nio.charset.Charset;
import java.nio.file.Files;

/**
 * Creates test project information instances.
 *
 * @author <NAME>
 */
public class ProjectInformationFactory implements SourceCodeFileProvider {

	/**
	 * See {@link Serializable}.
	 */
	private static final long serialVersionUID = -2919717213224100923L;

	/**
	 * Creates a new project information.
	 *
	 * @return A newly initialised project information you must not make any assumptions
	 *         about.
	 */
	public ProjectInformation getOne() {
		final Timeout timeout = mock(Timeout.class);
		return new ProjectInformation(timeout, this, "", Charset.defaultCharset(),
			new LaunchConfigurationFactory().getAllAsSet());
	}

	@Override
	public File getSourceFile(final String fullyQualifiedJavaPath) {

		try {
			return Files.createTempFile("testfile", ".java").toFile();
		} catch (final IOException ioException) {
			throw new RuntimeException(ioException);
		}
	}
}
{'fraction_non_alphanumeric': 0.11035856573705179, 'fraction_numerical': 0.015537848605577689, 'mean_word_length': 4.506578947368421, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '145318', 'n_tokens_mistral': 815, 'n_tokens_neox': 738, 'n_words': 178}