<commit_before>package objektwerks;

import java.util.stream.Stream;

import org.junit.jupiter.api.Test;

class StreamTest {
	@Test void streamTest() {
		var stream = Stream.of(1, 2, 3);
		var sum = stream.map(i -> i * i).reduce((x, y) -> x + y);
		assert(sum.get() == 14);
	}
}<commit_msg>refactored stream test<commit_after>package objektwerks;

import java.util.stream.Stream;

import org.junit.jupiter.api.Test;

class StreamTest {
	@Test void reduceTest() {
		var stream = Stream.of(1, 2, 3);
		var optional = stream.map(i -> i * i).reduce(Integer::sum);
		assert(optional.orElse(-1) == 14);
	}
}
{'fraction_non_alphanumeric': 0.16805324459234608, 'fraction_numerical': 0.018302828618968387, 'mean_word_length': 4.101694915254237, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '400713', 'n_tokens_mistral': 240, 'n_tokens_neox': 225, 'n_words': 51}