<commit_before>def pause(p)
    sleep(p)
    puts
end
def converter(input)
	if input == input.capitalize; return input.to_i
	else; return input.capitalize
	end
end
class CardError < Exception; end
class Card # Represents a card in the deck
	attr_reader :num
	@@value = {"Ace" => 1, 4 => 0, 9 => 0, "Jack" => 0, "Joker" => 0, "King" => 99, "Queen" => -10}
	def value
		@@value.default = @num.to_i
		return @@value[@num]
	end
	def _value
		return case @num
			when "Ace" then 1
			when 2..3 then @num
			when 4 then 0
			when 5..8 then @num
			when 9 then 0
			when 10 then 10
			when "Jack" then 0
			when "Queen" then -10
			when "King" then 99
			when "Joker" then 0
		end
	end
    def initialize(card); @num = card; end
end
class UserCard < Card # This class converts user input into a Card-like object
	attr_reader :num
	@@num = {King: "King", K: "King", Ace: "Ace", A: "Ace", Queen: "Queen", Q: "Queen", Jack: "Jack", J: "Jack", Joker: "Joker", "$".to_sym => "Joker"}
	def _num; @@num; end
	def initialize(number=""); @@num.default, @num = number.to_i, @@num[number.capitalize.to_sym]; end
end
class Hand # Creates a object that holds and can play cards
    attr_reader :hand
    def initialize; @hand = [$deck.shift, $deck.shift, $deck.shift]; end
    def play(card)
		if card.num == "King"; $value = 99
		elsif card.num == "Joker"; $value = 0
		else; $value += card.value
		end
		i, done = 0, false
		for index in @hand
			if index.num == card.num and not done
				discard = @hand[i]
				@hand.delete_at(i)
				draw = $deck.shift
				@hand.push(draw)
				$deck.push(discard)
				done = true
			end
			i += 1
		end
	end
    def view
		print "\tThese are your cards: "<commit_msg>Removed Usercard<commit_after>def pause(p)
    sleep(p)
    puts
end
def converter(input)
	if input == input.capitalize; return input.to_i
	else; return input.capitalize
	end
end
class CardError < Exception; end
class Card # Represents a card in the deck
	attr_reader :num
	@@value = {"Ace" => 1, 4 => 0, 9 => 0, "Jack" => 0, "Joker" => 0, "King" => 99, "Queen" => -10}
	def value
		@@value.default = @num.to_i
		return @@value[@num]
	end
	def _value
		return case @num
			when "Ace" then 1
			when 2..3 then @num
			when 4 then 0
			when 5..8 then @num
			when 9 then 0
			when 10 then 10
			when "Jack" then 0
			when "Queen" then -10
			when "King" then 99
			when "Joker" then 0
		end
	end
    def initialize(card); @num = card; end
end
class Hand # Creates a object that holds and can play cards
    attr_reader :hand
    def initialize; @hand = [$deck.shift, $deck.shift, $deck.shift]; end
    def play(card)
		if card.num == "King"; $value = 99
		elsif card.num == "Joker"; $value = 0
		else; $value += card.value
		end
		i, done = 0, false
		for index in @hand
			if index.num == card.num and not done
				discard = @hand[i]
				@hand.delete_at(i)
				draw = $deck.shift
				@hand.push(draw)
				$deck.push(discard)
				done = true
			end
			i += 1
		end
	end
    def view
		print "\tThese are your cards: "
{'fraction_non_alphanumeric': 0.1353784594864955, 'fraction_numerical': 0.02334111370456819, 'mean_word_length': 2.90625, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 18, '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': '453669', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1093, 'n_words': 402}