<commit_before>import java.util.ArrayList;

public class Seat {
  private Player          player;
  private int             bet;
  private ArrayList<Card> pocket;

	public Seat () {
    player = null;
    bet    = 0;
    pocket = new ArrayList<>();
	}

  public void placeBet () {
    this.bet = this.player.getBet ();
  }

  public int getPocketCount () {
    int total = 0;

    // add all cards except aces
    for (Card card : pocket) {
      if (card.getFace() != "Ace") {
        total += card.getFaceValue();
      }
    }

    // add aces
    for (Card card : pocket) {
      if (card.getFace() == "Ace") {
        if (total + card.getFaceValue() >= 21) {
          total += 1;
        } else {
          total += 11;
        }
      }
    }

    return total;
  }

  public void addPlayer (Player player) {
    this.player = player;
  }
  public Player getPlayer () {<commit_msg>fix bug where if you get blackjack you asked for another card never being able to actually get blackjack<commit_after>import java.util.ArrayList;

public class Seat {
  private Player          player;
  private int             bet;
  private ArrayList<Card> pocket;

	public Seat () {
    player = null;
    bet    = 0;
    pocket = new ArrayList<>();
	}

  public void placeBet () {
    this.bet = this.player.getBet ();
  }

  public int getPocketCount () {
    int total = 0;

    // add all cards except aces
    for (Card card : pocket) {
      if (card.getFace() != "Ace") {
        total += card.getFaceValue();
      }
    }

    // add aces
    for (Card card : pocket) {
      if (card.getFace() == "Ace") {
        if (total + card.getFaceValue() > 21) {
          total += 1;
        } else {
          total += 11;
        }
      }
    }

    return total;
  }

  public void addPlayer (Player player) {
    this.player = player;
  }
  public Player getPlayer () {
{'fraction_non_alphanumeric': 0.12165058949624866, 'fraction_numerical': 0.007502679528403001, 'mean_word_length': 1.8591117917304747, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4350493', 'n_tokens_mistral': 603, 'n_tokens_neox': 574, 'n_words': 174}