<commit_before>package ru.job4j.sorting;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import java.util.Arrays;

public class SortUser {
    public Set<User> sort(List<User> users) {
        Set<User> userset = new TreeSet<>();
        userset.addAll(users);
        return userset;
    }

    public static void main(String[] args) {

        List<User> users = new ArrayList<>();
        users.addAll(Arrays.asList(
                new User("User1", 10), new User("User2", 5), new User("User3", 7)));
        System.out.println(users);
        Set<User> userset = new SortUser().sort(users);
        System.out.println(userset);
    }
}<commit_msg>[#34681] SortUser refactored<commit_after>package ru.job4j.sorting;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import java.util.Arrays;

public class SortUser {
    public Set<User> sort(List<User> users) {
        return new TreeSet<>(users);
    }

    public static void main(String[] args) {
        List<User> users = new ArrayList<>(Arrays.asList(
                new User("User1", 10), new User("User2", 5), new User("User3", 7)));
        System.out.println(users);
        System.out.println(new SortUser().sort(users));
    }
}
{'fraction_non_alphanumeric': 0.14560862865947613, 'fraction_numerical': 0.016178736517719568, 'mean_word_length': 3.1107594936708862, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '7484064', 'n_tokens_mistral': 425, 'n_tokens_neox': 412, 'n_words': 96}