<commit_before>class Player
  BLACKJACK = 21

  def initialize(hand=[])
    @hand = hand
  end

  def add_card(card)
    Player.new(@hand << card)
  end

  def score
    score = 0
    @hand.each do |card|
      score += card.value(@hand)
    end
    score
  end

  def bust?
    score > BLACKJACK
  end

  def blackjack?
    if @hand.size == 2
      return has_blackjack?(@hand[0], @hand[1])
    end
    false
  end

  private
    def has_blackjack?(first_card, second_card)
      (first_card.ace? || second_card.ace?) && 
        (second_card.face? || first_card.face?)
    end
end<commit_msg>Change the method signature of has_blackjack? method.<commit_after>class Player
  BLACKJACK = 21

  def initialize(hand=[])
    @hand = hand
  end

  def add_card(card)
    Player.new(@hand << card)
  end

  def score
    score = 0
    @hand.each do |card|
      score += card.value(@hand)
    end
    score
  end

  def bust?
    score > BLACKJACK
  end

  def blackjack?
    if @hand.size == 2
      return has_blackjack?
    end
    false
  end

  private
    def has_blackjack?
      first_card = @hand[0]
      second_card = @hand[1]
      (first_card.ace? || second_card.ace?) && 
        (second_card.face? || first_card.face?)
    end
end
{'fraction_non_alphanumeric': 0.10967741935483871, 'fraction_numerical': 0.00967741935483871, 'mean_word_length': 2.336021505376344, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '1012135', 'n_tokens_mistral': 457, 'n_tokens_neox': 435, 'n_words': 111}