<commit_before>package org.carlspring.strongbox.jaas;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Set;

/**
 * @author mtodorov
 */
public class User implements Serializable
{

    private long userId;

    private String username;

    private Credentials credentials = new Credentials();

    private Set<Role> roles;


    public User()
    {
    }

    public User(String username,
                Credentials credentials)
    {
        this.username = username;
        this.credentials = credentials;
    }

    public long getUserId()
    {
        return userId;
    }

    public void setUserId(long userId)
    {
        this.userId = userId;
    }

    public String getUsername()
    {
        return username;
    }

    public void setUsername(String username)
    {<commit_msg>Re-worked the code.<commit_after>package org.carlspring.strongbox.jaas;

import java.io.Serializable;
import java.util.Arrays;
import java.util.LinkedHashSet;
import java.util.Set;

/**
 * @author mtodorov
 */
public class User implements Serializable
{

    private long userId;

    private String username;

    private Credentials credentials = new Credentials();

    private Set<Role> roles = new LinkedHashSet<Role>();


    public User()
    {
    }

    public User(String username,
                Credentials credentials)
    {
        this.username = username;
        this.credentials = credentials;
    }

    public long getUserId()
    {
        return userId;
    }

    public void setUserId(long userId)
    {
        this.userId = userId;
    }

    public String getUsername()
    {
        return username;
    }

    public void setUsername(String username)
    {
{'fraction_non_alphanumeric': 0.08558030480656506, 'fraction_numerical': 0.0, 'mean_word_length': 2.3735177865612647, 'pattern_counts': {'":': 0, '<': 6, '<?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': '5826876', 'n_tokens_mistral': 497, 'n_tokens_neox': 479, 'n_words': 126}