<commit_before>package strings;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
import static strings.ReverseWordsInASentence.reverseWordsInASentence;

class ReverseWordsInASentenceTest {

    private String expected;
    private String input;

    @Test
    void reverseWordsInASentence1() {
        expected = "Alice";
        input = "Alice";

        test(expected, input);
    }

    @Test
    void reverseWordsInASentence2() {
        expected = "Alice likes";
        input = "likes Alice";

        test(expected, input);
    }

    @Test
    void reverseWordsInASentence3() {
        expected = "Alice likes Bob";
        input = "Bob likes Alice";

        test(expected, input);
    }

    @Test
    void reverseWordsInASentence4() {
        expected = "Alice doesn't like Bob";
        input = "Bob doesn't like Alice";

        test(expected, input);
    }

    private void test(String expected, String input) {<commit_msg>changed issue with reversing words<commit_after>package strings;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.*;
import static strings.ReverseWordsInASentence.reverseWordsInASentence;

class ReverseWordsInASentenceTest {

    private String expected;
    private String input;

    @Test
    void reverseWordsInASentence1() {
        expected = "Alice";
        input = "Alice";

        test(expected, input);
    }

    @Test
    void reverseWordsInASentence2() {
        expected = "Alice likes";
        input = "likes Alice";

        test(expected, input);
    }

    @Test
    void reverseWordsInASentence3() {
        expected = "Alice likes Bob";
        input = "Bob likes Alice";

        test(expected, input);
    }

    @Test
    void reverseWordsInASentence4() {
        expected = "Alice doesn't like Bob";
        input = "Bob like doesn't Alice";

        test(expected, input);
    }

    private void test(String expected, String input) {
{'fraction_non_alphanumeric': 0.09731373542828181, 'fraction_numerical': 0.0040547389761784085, 'mean_word_length': 2.6353591160220993, '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': '3861741', 'n_tokens_mistral': 614, 'n_tokens_neox': 566, 'n_words': 148}