<commit_before>package com.continuuity.passport.core;

import java.util.HashSet;
import java.util.Set;


/**
 * Identifies User entity in the system
 *
 */

public class User  {
  public enum RoleType{OWNER,ADMIN,USER}

  public class UserRole {

    private RoleType roleType;
    private String userId;

  }

  public class Authority {
    private RoleType role;
    private String accountId;
  }


  private String firstName;
  private String lastName;
  private String emailId;
  private String password;

  private Set<Authority> authorities = new HashSet<Authority>();

  public String getPassword() {
    return password;
  }
  public String getFirstName() {
    return firstName;
  }

  public String getLastName() {
    return lastName;
  }

  public String getEmailId() {
    return emailId;
  }

  public Set<Authority> getAuthorities() {
    return this.authorities;
  }

  private void addAuthority(Authority authority){
    this.authorities.add(authority);
  }


  //TODO: Add Builders to create build the object
  public static class Builder {
  }

}<commit_msg>Use unmodifiable set<commit_after>package com.continuuity.passport.core;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;


/**
 * Identifies User entity in the system
 *
 */

public class User  {
  public enum RoleType{OWNER,ADMIN,USER}

  public class UserRole {

    private RoleType roleType;
    private String userId;

  }

  public class Authority {
    private RoleType role;
    private String accountId;
  }


  private String firstName;
  private String lastName;
  private String emailId;
  private String password;

  private Set<Authority> authorities = new HashSet<Authority>();

  public String getPassword() {
    return password;
  }
  public String getFirstName() {
    return firstName;
  }

  public String getLastName() {
    return lastName;
  }

  public String getEmailId() {
    return emailId;
  }

  public Set<Authority> getAuthorities() {
    return Collections.unmodifiableSet(this.authorities);
  }

  private void addAuthority(Authority authority){
    this.authorities.add(authority);
  }


  //TODO: Add Builders to create build the object
  public static class Builder {
  }

}
{'fraction_non_alphanumeric': 0.08198198198198198, 'fraction_numerical': 0.0, 'mean_word_length': 3.459839357429719, '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': '3950933', 'n_tokens_mistral': 682, 'n_tokens_neox': 650, 'n_words': 194}