<commit_before>import {Component} from '@angular/core';
import {Deck} from './deck.'
import {Balance} from "./balance";
import {Bet} from "./bet";
import {Game} from "./game";
import {Player} from "./player";
import {Dealer} from "./dealer";

@Component({
  moduleId: module.id,
  selector: 'my-app',
  templateUrl: 'app.template.html',
  providers: [Deck, Balance, Bet, Game, Player]
})

export class AppComponent {

  public betInitial = {
    name: ''
  };

  public playerInitial = {
    name:'',
    purse: ''
  };

  public betAmount = 0;

  public isGameStarted = false;

  bet: Bet;
  dialerFakeBet: Bet;
  player: Player;
  game: Game;
  dealer:Player;
  cardDesk:Deck;

  constructor() {
     this.dialerFakeBet = new Bet('Dealer', 20);
     this.dealer = new Player('Dealer', 1000000, this.dialerFakeBet);
  }

  onStartClick(betName:string) {
    this.isGameStarted = true;
    this.bet = new Bet(betName, this.betAmount);
    this.player = new Player(this.playerInitial.name, parseInt(this.playerInitial.purse), this.bet);
    console.log('i am running');

    this.cardDesk = new Deck();
    this.cardDesk.shuffle();
    this.player.receiveCards(this.getCardsFromCardDesk(2));
    this.dealer.receiveCards(this.getCardsFromCardDesk(2));

    this.isThirdCardNeeded(this.player.getPoints(), this.dealer.getPoints());

    let betWinner: string = this.checkWinner();<commit_msg>provide default name, balance, bet<commit_after>import {Component} from '@angular/core';
import {Deck} from './deck.'
import {Balance} from "./balance";
import {Bet} from "./bet";
import {Game} from "./game";
import {Player} from "./player";
import {Dealer} from "./dealer";

@Component({
  moduleId: module.id,
  selector: 'my-app',
  templateUrl: 'app.template.html',
  providers: [Deck, Balance, Bet, Game, Player]
})

export class AppComponent {

  public betInitial = {
    name: 'bankBet'
  };

  public playerInitial = {
    name:'Demo',
    purse: '100'
  };

  public betAmount = 1;

  public isGameStarted = false;

  bet: Bet;
  dialerFakeBet: Bet;
  player: Player;
  game: Game;
  dealer:Player;
  cardDesk:Deck;

  constructor() {
     this.dialerFakeBet = new Bet('Dealer', 20);
     this.dealer = new Player('Dealer', 1000000, this.dialerFakeBet);
  }

  onStartClick(betName:string) {
    this.isGameStarted = true;
    this.bet = new Bet(betName, this.betAmount);
    this.player = new Player(this.playerInitial.name, parseInt(this.playerInitial.purse), this.bet);
    console.log('i am running');

    this.cardDesk = new Deck();
    this.cardDesk.shuffle();
    this.player.receiveCards(this.getCardsFromCardDesk(2));
    this.dealer.receiveCards(this.getCardsFromCardDesk(2));

    this.isThirdCardNeeded(this.player.getPoints(), this.dealer.getPoints());

    let betWinner: string = this.checkWinner();
{'fraction_non_alphanumeric': 0.152753108348135, 'fraction_numerical': 0.009591474245115453, 'mean_word_length': 3.9316987740805605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4406659', 'n_tokens_mistral': 997, 'n_tokens_neox': 952, 'n_words': 213}