<commit_before>package in.twizmwaz.openuhc.team;

import in.twizmwaz.openuhc.OpenUHC;
import in.twizmwaz.openuhc.event.player.team.PlayerJoinTeamEvent;
import in.twizmwaz.openuhc.event.player.team.PlayerLeaveTeamEvent;

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

import lombok.Getter;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

@Getter
public class Team {

  private final Set<UUID> players = new HashSet<>();
  private final UUID leader;

  private final String prefix;

  /**
   * A team with a leader.
   *
   * @param leader The leader of the team
   */
  public Team(Player leader) {
    this.leader = leader.getUniqueId();
    join(leader);

    //TODO: Implement colored prefixes
    this.prefix = ChatColor.WHITE.toString();
  }

  /**<commit_msg>New teams should be added to the game upon creation<commit_after>package in.twizmwaz.openuhc.team;

import in.twizmwaz.openuhc.OpenUHC;
import in.twizmwaz.openuhc.event.player.team.PlayerJoinTeamEvent;
import in.twizmwaz.openuhc.event.player.team.PlayerLeaveTeamEvent;

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

import lombok.Getter;
import net.md_5.bungee.api.ChatColor;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;

@Getter
public class Team {

  private final Set<UUID> players = new HashSet<>();
  private final UUID leader;

  private final String prefix;

  /**
   * A team with a leader.
   *
   * @param leader The leader of the team
   */
  public Team(Player leader) {
    this.leader = leader.getUniqueId();
    join(leader);

    //TODO: Implement colored prefixes
    this.prefix = ChatColor.WHITE.toString();

    OpenUHC.getCurrentGame().getTeams().add(this);
  }

  /**
{'fraction_non_alphanumeric': 0.11425339366515837, 'fraction_numerical': 0.0011312217194570137, 'mean_word_length': 3.9002770083102494, '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': '6812654', 'n_tokens_mistral': 626, 'n_tokens_neox': 609, 'n_words': 138}