<commit_before>package statistics;


import java.util.Objects;

public class PlayerAccount implements Comparable<PlayerAccount> {

    private String nickName;
    private Double score;
    private String level;
    private String date;

    PlayerAccount(String nickName, Double score, String level, String date){
        this.nickName = nickName;
        this.score = score;
        this.level = level;
        this.date = date;
    }


    public String getLevel() {
        return level;
    }

    public void setLevel(String level){
        this.level = level;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName){
        this.nickName = nickName;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score){
        this.score = score;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date){
        this.date = date;
    }

    @Override
    public int compareTo(PlayerAccount pa) {
        int level1 = PlayerStats.getNumLevel(level);
        int level2 = PlayerStats.getNumLevel(pa.getLevel());
        if(score > pa.getScore() && level1 <=level2 || score >= pa.getScore() && level1 < level2 )
            return 1;
        else if(Objects.equals(score, pa.getScore()) && level1 == level2)
            return 0;
        else
            return -1;
    }
}
<commit_msg>added sorted statistics<commit_after>package statistics;


import java.util.Objects;

public class PlayerAccount implements Comparable<PlayerAccount> {

    private String nickName;
    private Double score;
    private String level;
    private String date;

    PlayerAccount(String nickName, Double score, String level, String date){
        this.nickName = nickName;
        this.score = score;
        this.level = level;
        this.date = date;
    }


    public String getLevel() {
        return level;
    }

    public void setLevel(String level){
        this.level = level;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName){
        this.nickName = nickName;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score){
        this.score = score;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date){
        this.date = date;
    }

    @Override
    public int compareTo(PlayerAccount pa) {
        int level1 = PlayerStats.getNumLevel(level);
        int level2 = PlayerStats.getNumLevel(pa.level);
        if(score > pa.score && level1 <=level2 || score >= pa.score && level1 < level2 )
            return 1;
        else if(Objects.equals(score, pa.score) && level1 == level2)
            return 0;
        else
            return -1;
    }

}

{'fraction_non_alphanumeric': 0.09284467713787085, 'fraction_numerical': 0.007678883071553229, 'mean_word_length': 2.1494505494505494, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7381245', 'n_tokens_mistral': 826, 'n_tokens_neox': 791, 'n_words': 226}