<commit_before>/* TRUNK */
package bingo;

import bingo.*;
import java.util.Scanner;
import java.util.ArrayList;

public class Bingo {

    public static void main(String[] args) {
        int choice = 0;
        Scanner input = new Scanner(System.in);
        
        do {
            System.out.println("Please Select: ");
            System.out.println("1. New Game ");
            System.out.println("0. Exit ");


            choice = input.nextInt();

            if(choice == 1) {
                int numOfPlayers;
                
                System.out.println("How many players are in this game? ");
                numOfPlayers = input.nextInt();
                ArrayList<Player> players = new ArrayList<Player>(numOfPlayers);


                for(int i = 0; i < numOfPlayers; i++)
                {
                    Player plr = new Player();
                    System.out.print("What is Player " + (i + 1) + " name? ");
                    String name = input.next();
                    plr.setName(name);
                    
                    /* FOR MORE THAN ONE CARDS
                    System.out.print("How many Bingo cards for " + plr.getName());
                    numOfCards = input.nextInt();
                    */
                    
                    players.add(plr);
                }
                
                

            } else if(choice == 0) {
                System.out.println("Bye bye!");
                
            } else {
                System.out.println("Please try again");
                
            }
            
            //end while<commit_msg>Print player info<commit_after>/* TRUNK */
package bingo;

import bingo.*;
import java.util.Scanner;
import java.util.ArrayList;

public class Bingo {

    public static void main(String[] args) {
        int choice = 0;
        Scanner input = new Scanner(System.in);
        
        do {
            System.out.println("Please Select: ");
            System.out.println("1. New Game ");
            System.out.println("0. Exit ");


            choice = input.nextInt();

            if(choice == 1) {
                int numOfPlayers;
                
                System.out.println("How many players are in this game? ");
                numOfPlayers = input.nextInt();
                ArrayList<Player> players = new ArrayList<Player>(numOfPlayers);


                for(int i = 0; i < numOfPlayers; i++)
                {
                    Player plr = new Player();
                    System.out.print("What is Player " + (i + 1) + " name? ");
                    String name = input.next();
                    plr.setName(name);
                    
                    /* FOR MORE THAN ONE CARDS
                    System.out.print("How many Bingo cards for " + plr.getName());
                    numOfCards = input.nextInt();
                    */
                    
                    players.add(plr);
                }
                
                // your code
                for(Player plr: players){
                  System.out.println("ID: " + plr.getPid() + " NAME: " + plr.getName() + "No.CARDS: " + plr.countCards());
                }
                
                

            } else if(choice == 0) {
                System.out.println("Bye bye!");
                
            } else {
                System.out.println("Please try again");
                
            }
            
            //end while
{'fraction_non_alphanumeric': 0.11082400229687052, 'fraction_numerical': 0.004019523399368361, 'mean_word_length': 1.0566706021251475, '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': '6572065', 'n_tokens_mistral': 927, 'n_tokens_neox': 842, 'n_words': 206}