<commit_before>import java.util.TreeMap;
import java.util.Arrays;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import static java.util.function.Function.identity;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.counting;

public class WordCountApp {

    public static void main(String[] args) {
        ((new BufferedReader(new InputStreamReader(System.in)))
            .lines()
            .flatMap(line -> Arrays.stream((line.toLowerCase()).split("[^a-z']+")))
            .collect(groupingBy(identity(), TreeMap::new, counting())))
        .forEach((word, count) -> System.out.printf("%s %d\n", word, count));
    }
    
}<commit_msg>small change; can't decide which one looks better<commit_after>import java.util.TreeMap;
import java.util.Arrays;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import static java.util.function.Function.identity;
import static java.util.stream.Collectors.groupingBy;
import static java.util.stream.Collectors.counting;

public class WordCountApp {

    public static void main(String[] args) {
        ((new BufferedReader(new InputStreamReader(System.in)))
            .lines()
            .flatMap(line -> Arrays.stream(line.split("[^a-zA-Z']+")))
            .collect(groupingBy(String::toLowerCase, TreeMap::new, counting())))
        .forEach((word, count) -> System.out.printf("%s %d\n", word, count));
    }

}
{'fraction_non_alphanumeric': 0.14701803051317613, 'fraction_numerical': 0.0, 'mean_word_length': 3.875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6849888', 'n_tokens_mistral': 431, 'n_tokens_neox': 429, 'n_words': 87}