<commit_before>package lib;

import interfaces.ICard;
import interfaces.IPlayer;
import java.util.*;

public class CPlayer implements IPlayer {

	private int money;
	private ArrayList<ICard> hand = new ArrayList<ICard>();
	
	@Override
	public ArrayList<ICard> getHand() {
		return hand;
	}

	@Override
	public int getMoney() {
		return money;
	}

	@Override
	public int getBet(int bet) {
		int finalBet;
		Random rand = new Random();
		while(true){
			int playerBet = rand.nextInt(5)+1;;
			if(playerBet == 1){
				finalBet = Bet.FOLD;
				System.out.println("Computer play: Fold");
				break;
			}
			else if(playerBet == 2){
				if(bet!=0){
					continue;
				}
				finalBet = Bet.CHECK;
				System.out.println("Computer play: Check");
				break;
			}
			else if(playerBet == 3){
				if(money<bet){
					continue;
				}
				finalBet = Bet.CALL;
				System.out.println("Computer play: Call");
				break;
			}
			else if(playerBet == 4){
				finalBet = Bet.ALLIN;
				System.out.println("Computer play: ALL-In");
				break;
			}
			else{
				if((money-bet)<bet){
					continue;
				}
				finalBet = rand.nextInt(money-bet);
				System.out.println("Computer play: Raise("+finalBet+")");
				break;
			}
		}
		return finalBet;<commit_msg>modified so computer have different prob. distribution for bets<commit_after>package lib;

import interfaces.ICard;
import interfaces.IPlayer;
import java.util.*;

public class CPlayer implements IPlayer {

	private int money;
	private ArrayList<ICard> hand = new ArrayList<ICard>();
	
	@Override
	public ArrayList<ICard> getHand() {
		return hand;
	}

	@Override
	public int getMoney() {
		return money;
	}

	@Override
	public int getBet(int bet) {
		int finalBet;
		Random rand = new Random();
		while(true){
			int playerBet = rand.nextInt(10)+1;;
			if(playerBet == 1){
				finalBet = Bet.FOLD;
				System.out.println("Computer play: Fold");
				break;
			}
			else if(playerBet <= 3){
				if(bet!=0){
					continue;
				}
				finalBet = Bet.CHECK;
				System.out.println("Computer play: Check");
				break;
			}
			else if(playerBet <= 7){
				if(money<bet){
					continue;
				}
				finalBet = Bet.CALL;
				System.out.println("Computer play: Call");
				break;
			}
			else if(playerBet <= 8){
				finalBet = Bet.ALLIN;
				System.out.println("Computer play: ALL-In");
				break;
			}
			else{
				if((money-bet)<bet){
					continue;
				}
				finalBet = rand.nextInt(money-bet);
				System.out.println("Computer play: Raise("+finalBet+")");
				break;
			}
		}
		return finalBet;
{'fraction_non_alphanumeric': 0.13912009512485138, 'fraction_numerical': 0.005945303210463734, 'mean_word_length': 3.0063492063492063, 'pattern_counts': {'":': 0, '<': 16, '<?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': '74241', 'n_tokens_mistral': 1100, 'n_tokens_neox': 844, 'n_words': 203}