<commit_before>package CollectionsHW;

import java.util.Scanner;
import java.util.TreeSet;

public class Task10DistinctWords {
    /*At the first line at the console you are given a piece of text. Extract all words 
     from it and print them in alphabetical order. Consider each non-letter character as 
     word separator. Take the repeating words only once. Ignore the character casing. 
     Print the result words in a single line, separated by spaces. Examples:*/

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String pattern = "\\W+";
        TreeSet<String> distinct=new TreeSet<>();
        
        ;
        for (String string : input.split(pattern)) {
            distinct.add(string.toLowerCase());
        }
        
        for (String string : distinct) {
            System.out.println(string);
        }
    }
}<commit_msg>deleted forgotten ;<commit_after>package CollectionsHW;

import java.util.Scanner;
import java.util.TreeSet;

public class Task10DistinctWords {
    /*At the first line at the console you are given a piece of text. Extract all words 
     from it and print them in alphabetical order. Consider each non-letter character as 
     word separator. Take the repeating words only once. Ignore the character casing. 
     Print the result words in a single line, separated by spaces. Examples:*/

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.nextLine();
        String pattern = "\\W+";
        TreeSet<String> distinct=new TreeSet<>();
        
        for (String string : input.split(pattern)) {
            distinct.add(string.toLowerCase());
        }
        
        for (String string : distinct) {
            System.out.println(string);
        }
    }
}
{'fraction_non_alphanumeric': 0.08807733619763695, 'fraction_numerical': 0.0021482277121374865, 'mean_word_length': 2.45, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1462560', 'n_tokens_mistral': 498, 'n_tokens_neox': 479, 'n_words': 184}