<commit_before>package de.dergrafiker.filenamecleaner;

import org.apache.commons.lang3.SystemUtils;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assumptions.assumeFalse;

class CaseSensitivityCheckerTest {

    private final CaseSensitivityChecker caseSensitivityChecker = new CaseSensitivityChecker();

    @Test
    void name1() throws IOException {
        assumeFalse(SystemUtils.IS_OS_WINDOWS);
        Path tempFile = Files.createTempFile("foo", "bar");
        assertThat(caseSensitivityChecker.isCaseSensitive(tempFile)).isTrue();
    }
}<commit_msg>added inverse test<commit_after>package de.dergrafiker.filenamecleaner;

import org.apache.commons.lang3.SystemUtils;
import org.junit.jupiter.api.Test;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;

import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assumptions.assumeFalse;
import static org.junit.jupiter.api.Assumptions.assumeTrue;

class CaseSensitivityCheckerTest {

    private final CaseSensitivityChecker caseSensitivityChecker = new CaseSensitivityChecker();

    @Test
    void whenNotOnWindowsThenFilenamesAreCaseSensitive() throws IOException {
        assumeFalse(SystemUtils.IS_OS_WINDOWS);
        Path tempFile = Files.createTempFile("foo", "bar");
        assertThat(caseSensitivityChecker.isCaseSensitive(tempFile)).isTrue();
    }

    @Test
    void whenOnWindowsThenFilenamsAreNotCaseSensitive() throws IOException {
        assumeTrue(SystemUtils.IS_OS_WINDOWS);
        Path tempFile = Files.createTempFile("foo", "bar");
        assertThat(caseSensitivityChecker.isCaseSensitive(tempFile)).isFalse();
    }
}
{'fraction_non_alphanumeric': 0.09771986970684039, 'fraction_numerical': 0.0016286644951140066, 'mean_word_length': 5.022875816993464, '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': '5664714', 'n_tokens_mistral': 555, 'n_tokens_neox': 554, 'n_words': 90}