<commit_before>// constructor :: controls Player and Dealer attributes
function Player() {
	this.cards = [];
	this.score = 0;
	this.wager = 0;
}

Player.prototype.receiveCard = function(card){
	this.card.push(card);
};

// constructor
function PlayerUI(name){
	this.name = name;
  	this.cardDom = undefined;
  	this.scoreDom = undefined;
}

PlayerUI.prototype.setCardDom = function(element){
  	this.cardDom = element;
};

PlayerUI.prototype.setScoreDom = function(element){
  	this.scoreDom = element;
};

// constructor
function Betting (){
	this.maxCashToStart = 1500;
	this.cashLeftOver = undefined;
	this.playerWager = undefined;
}

// betting actions
Betting.prototype = {
	constructor: Betting,
	disableBets: function(){
		// rewrite this ...
		newDiv.className ='bets-off';
		var firstItem = document.querySelector('.bets').firstChild;
		document.querySelector('.bets').insertBefore(newDiv, firstItem);
	},
	updateWager: function(){
		// rewrite this ...
		document.querySelector('.wager-total .bet').innerHTML = playerWager;
	}
};

function GameController() {

}

// constructor
function GameUI(){
	this.dealButton = document.getElementById('deal-button');
	this.hitButton = document.getElementById('hit-me');
	this.stayButton = document.getElementById('stay');
	this.resetButton = document.getElementById('reset');
}
<commit_msg>add comments to better organize the distinct prototypes and logic<commit_after>////////////////////////
// :: PLAYER LOGIC :: //
////////////////////////

// constructor :: controls Player and Dealer attributes
function Player() {
	this.cards = [];
	this.score = 0;
	this.wager = 0;
}

Player.prototype.receiveCard = function(card){
	this.card.push(card);
};

// constructor
function PlayerUI(name){
	this.name = name;
  	this.cardDom = undefined;
  	this.scoreDom = undefined;
}

PlayerUI.prototype.setCardDom = function(element){
  	this.cardDom = element;
};

PlayerUI.prototype.setScoreDom = function(element){
  	this.scoreDom = element;
};

///////////////////////
// :: WAGER LOGIC :: //
///////////////////////

// constructor
function Betting (){
	this.maxCashToStart = 1500;
	this.cashLeftOver = undefined;
	this.playerWager = undefined;
}

// betting actions
Betting.prototype = {
	constructor: Betting,
	disableBets: function(){
		// rewrite this ...
		newDiv.className ='bets-off';
		var firstItem = document.querySelector('.bets').firstChild;
		document.querySelector('.bets').insertBefore(newDiv, firstItem);
	},
	updateWager: function(){
		// rewrite this ...
		document.querySelector('.wager-total .bet').innerHTML = playerWager;
	}
};

function GameController() {

}

//////////////////////////
// :: GAMEPLAY LOGIC :: //
//////////////////////////

// constructor
function GameUI(){
	this.dealButton = document.getElementById('deal-button');
	this.hitButton = document.getElementById('hit-me');
	this.stayButton = document.getElementById('stay');
	this.resetButton = document.getElementById('reset');
}

{'fraction_non_alphanumeric': 0.19115163796014858, 'fraction_numerical': 0.004052684903748734, 'mean_word_length': 3.4143070044709387, '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': '1488065', 'n_tokens_mistral': 918, 'n_tokens_neox': 881, 'n_words': 173}