<commit_before>package de.retest.recheck.ignore;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Optional;

import de.retest.recheck.configuration.ProjectConfiguration;
import de.retest.recheck.configuration.ProjectConfigurationUtil;

public class RecheckIgnoreUtil {

	private RecheckIgnoreUtil() {

	}

	public static Optional<Path> getIgnoreFile() {
		final String projectBasePath = System.getProperty( ProjectConfiguration.RETEST_PROJECT_ROOT, "" );
		final Path projectConfig = ProjectConfigurationUtil.findProjectConfigurationFolder(
				Paths.get( projectBasePath ) );
		final Path ignoreFile = projectConfig.resolve( ProjectConfiguration.RECHECK_IGNORE );

		if ( ignoreFile.toFile().exists() ) {
			return Optional.of( ignoreFile );
		}

		return Optional.empty();
	}
}<commit_msg>Fix recheck.ignore finder<commit_after>package de.retest.recheck.ignore;

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Optional;

import de.retest.recheck.configuration.ProjectConfiguration;
import de.retest.recheck.configuration.ProjectConfigurationUtil;

public class RecheckIgnoreUtil {

	private RecheckIgnoreUtil() {

	}

	public static Optional<Path> getIgnoreFile() {
		final String projectBasePath = System.getProperty( ProjectConfiguration.RETEST_PROJECT_ROOT, "" );
		if ( !projectBasePath.isEmpty() ) {
			final Path projectConfig = ProjectConfigurationUtil.findProjectConfigurationFolder(
					Paths.get( projectBasePath ) );
			final Path ignoreFile = projectConfig.resolve( ProjectConfiguration.RECHECK_IGNORE );
			if ( ignoreFile.toFile().exists() ) {
				return Optional.of( ignoreFile );
			}
		} else {
			final Path ignoreFile = ProjectConfigurationUtil.findProjectConfigurationFolder().resolve(
					ProjectConfiguration.RECHECK_IGNORE );
			if ( ignoreFile.toFile().exists() ) {
				return Optional.of( ignoreFile );
			}
		}
		return Optional.empty();
	}
}
{'fraction_non_alphanumeric': 0.10203019260801666, 'fraction_numerical': 0.0, 'mean_word_length': 5.2200647249190935, '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': '5105912', 'n_tokens_mistral': 591, 'n_tokens_neox': 540, 'n_words': 103}