<commit_before>function initializeChatPhaseOne() {
	loadLanguage(userArray[getLoggedInUserId()]["language"]);
}

function initializeChatPhaseTwo() {
	fetchNews();
	reportActivity();
	resizeWindow();
}

function generateUserBar(fullsize) {
	
	$('#sidebar').html("");
	var userHTML = "";
	
	for(var i in userArray) {
		if(i == 0) continue;
		
		var statusClass;
		if(userArray[i].status == 0) {
			statusClass = 'offline';
		}
		else if(userArray[i].status == 1) {
			statusClass = 'available';
		}
		else if(userArray[i].status == 2) {
			statusClass = 'away';
		}
		else if(userArray[i].status == 3){
			statusClass = 'occupied';
		}
		
		var userStatus = '<span class="status-circle status-' + statusClass + '">&nbsp;</span>';
		if(fullsize)
			userHTML += '<div class="userbox"><div class="userbox-image"><img class="img-rounded" src="res/images/uploads/'+ imgArray[userArray[i].image] + '"></div><div id="userbox' + i + '" class="userbox-data"><div class="userbox-username">' + userStatus + ' ' + userArray[i].display_name + '</div><div class="userbox-statusmessage">' + userArray[i].status_message +'</div></div><br class="clear"></div></div>';
		else
			userHTML += '<span class="status-circled-background status-' + statusClass + '">' + userArray[i].display_name + '</span> ';
		
	}
	
	if(!fullsize){
		userHTML = '<div class="centered-userbar">' + userHTML + '</div>'
	}

	$('#sidebar').append(userHTML);
}

//Run functions
getUserArray();
getEmoticonArray();
getImageArray();
getChatInformation();
Notification.requestPermission();<commit_msg>update status to logged on when logging in<commit_after>function initializeChatPhaseOne() {
	loadLanguage(userArray[getLoggedInUserId()]["language"]);
}

function initializeChatPhaseTwo() {
	fetchNews();
	reportActivity();
	resizeWindow();
	if(userArray[getLoggedInUserId()]["status"]==0){
		sendStatus(1);
	}
}

function generateUserBar(fullsize) {
	
	$('#sidebar').html("");
	var userHTML = "";
	
	for(var i in userArray) {
		if(i == 0) continue;
		
		var statusClass;
		if(userArray[i].status == 0) {
			statusClass = 'offline';
		}
		else if(userArray[i].status == 1) {
			statusClass = 'available';
		}
		else if(userArray[i].status == 2) {
			statusClass = 'away';
		}
		else if(userArray[i].status == 3){
			statusClass = 'occupied';
		}
		
		var userStatus = '<span class="status-circle status-' + statusClass + '">&nbsp;</span>';
		if(fullsize)
			userHTML += '<div class="userbox"><div class="userbox-image"><img class="img-rounded" src="res/images/uploads/'+ imgArray[userArray[i].image] + '"></div><div id="userbox' + i + '" class="userbox-data"><div class="userbox-username">' + userStatus + ' ' + userArray[i].display_name + '</div><div class="userbox-statusmessage">' + userArray[i].status_message +'</div></div><br class="clear"></div></div>';
		else
			userHTML += '<span class="status-circled-background status-' + statusClass + '">' + userArray[i].display_name + '</span> ';
		
	}
	
	if(!fullsize){
		userHTML = '<div class="centered-userbar">' + userHTML + '</div>'
	}

	$('#sidebar').append(userHTML);
}

//Run functions
getUserArray();
getEmoticonArray();
getImageArray();
getChatInformation();
Notification.requestPermission();
{'fraction_non_alphanumeric': 0.2014995313964386, 'fraction_numerical': 0.0037488284910965324, 'mean_word_length': 5.145873320537428, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '2174818', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1052, 'n_words': 188}