<commit_before>package Game;
import java.util.LinkedList;
import java.util.Scanner;

import Cards.*;

/*
 *this class is for the deck of the robot.  
 */
public class deckHand {
	private LinkedList<Card> hand;

	public deckHand() {
		this.hand=new LinkedList<Card>();
	}
	public void Init()
	/*
	 * this method init the robot with 8 cards.
	 */
	{
		System.out.println("Please enter 8 new card for begining: ");
		for(int i=0;i<8;i++)
		{
			hand.addFirst(getCardByString(new Scanner(System.in).nextLine()) );
			System.out.println(hand.getFirst());
		}
	}
	public Card getCardByString(String str)
	/*
	 * this function takes a string and change it to Card.
	 */
	{
		Card c = null;
		if (Character.isDigit(str.charAt(0)))// if it is numeric card.
		{
			int num=Character.getNumericValue(str.charAt(0));
			c = new numberCard(num,Colors.valueOf( str.substring(2, str.length())));
			System.out.println(c);
		}
		else if (str.indexOf(" ")!=-1)// if it is special color card such as PLUS RED ...
		{<commit_msg>remove all system.out.println and scanner.<commit_after>package Game;
import java.util.LinkedList;
import java.util.Scanner;

import Cards.*;

/*
 *this class is for the deck of the robot.  
 */
public class deckHand {
	private LinkedList<Card> hand;

	public deckHand() {
		this.hand=new LinkedList<Card>();
	}
	public void Init(String [] cards)
	/*
	 * this method init the robot with 8 cards.
	 * takes 8 strings and change them to cards.
	 */
	{
		for(int i=0;i<8;i++)
		{
			hand.addFirst(getCardByString(cards[i]) );
		}
	}
	public Card getCardByString(String str)
	/*
	 * this function takes a string and change it to Card.
	 */
	{
		Card c = null;
		if (Character.isDigit(str.charAt(0)))// if it is numeric card.
		{
			int num=Character.getNumericValue(str.charAt(0));
			c = new numberCard(num,Colors.valueOf( str.substring(2, str.length())));
			System.out.println(c);
		}
		else if (str.indexOf(" ")!=-1)// if it is special color card such as PLUS RED ...
		{
{'fraction_non_alphanumeric': 0.14487632508833923, 'fraction_numerical': 0.008076728924785462, 'mean_word_length': 3.4439461883408073, 'pattern_counts': {'":': 0, '<': 9, '<?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': '5187220', 'n_tokens_mistral': 743, 'n_tokens_neox': 683, 'n_words': 196}