<commit_before>package de.retest.recheck;

import java.util.ArrayList;

import de.retest.recheck.report.SuiteReplayResult;
import de.retest.recheck.suite.ExecutableSuite;
import de.retest.recheck.ui.descriptors.GroundState;

public class SuiteReplayResultProvider {

	private static SuiteReplayResultProvider instance;

	public static SuiteReplayResultProvider getInstance() {
		if ( instance == null ) {
			instance = new SuiteReplayResultProvider();
		}
		return instance;
	}

	static SuiteReplayResultProvider getTestInstance() {
		return new SuiteReplayResultProvider();
	}

	private SuiteReplayResultProvider() {}

	private SuiteReplayResult currentSuite;

	public SuiteReplayResult getSuite( final String suiteName ) {
		if ( currentSuite == null) {
			currentSuite = createSuiteReplayResult( suiteName );
		}
		if ( !suiteName.equals( currentSuite.getSuiteName() ) ) {
			currentSuite = createSuiteReplayResult( suiteName );
		}
		return currentSuite;
	}

	private SuiteReplayResult createSuiteReplayResult( final String suiteName ) {
		final GroundState groundState = new GroundState();
		final ExecutableSuite execSuite = new ExecutableSuite( groundState, 0, new ArrayList<>() );
		execSuite.setName( suiteName );
		return new SuiteReplayResult( execSuite, 0, groundState );
	}
}<commit_msg>Fit the constructor<commit_after>package de.retest.recheck;

import java.util.ArrayList;

import de.retest.recheck.report.SuiteReplayResult;
import de.retest.recheck.suite.ExecutableSuite;
import de.retest.recheck.ui.descriptors.GroundState;

public class SuiteReplayResultProvider {

	private static SuiteReplayResultProvider instance;

	public static SuiteReplayResultProvider getInstance() {
		if ( instance == null ) {
			instance = new SuiteReplayResultProvider();
		}
		return instance;
	}

	static SuiteReplayResultProvider getTestInstance() {
		return new SuiteReplayResultProvider();
	}

	private SuiteReplayResultProvider() {}

	private SuiteReplayResult currentSuite;

	public SuiteReplayResult getSuite( final String suiteName ) {
		if ( currentSuite == null) {
			currentSuite = createSuiteReplayResult( suiteName );
		}
		if ( !suiteName.equals( currentSuite.getSuiteName() ) ) {
			currentSuite = createSuiteReplayResult( suiteName );
		}
		return currentSuite;
	}

	private SuiteReplayResult createSuiteReplayResult( final String suiteName ) {
		final GroundState groundState = new GroundState();
		final ExecutableSuite execSuite = new ExecutableSuite( groundState, 0, new ArrayList<>() );
		execSuite.setName( suiteName );
		return new SuiteReplayResult( suiteName, 0, groundState, execSuite.getUuid(), groundState );
	}
}
{'fraction_non_alphanumeric': 0.08674242424242425, 'fraction_numerical': 0.0015151515151515152, 'mean_word_length': 5.504926108374384, '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': '4043247', 'n_tokens_mistral': 804, 'n_tokens_neox': 747, 'n_words': 180}