<commit_before>var version = "1.0.1";
var loadTime = 500;
var swalTimeout = 1000;
var previousVolume = 0; // Used for remembering the last volume value when muted
var volume = 0;

var url;
var rpcUrl;
var roomData;
var devices = [];
var displayInputs = {}; // map of each displayOutput to their current displayInput
var audioInputs = {}; // map of each audioOutput to their current audioInput
var blanks = {}; // map of each displayOutput to true/false

function init() {
	displayVersion();
}

function getRoom() {
	var hostname = document.getElementById('hostname').innerHTML;
	hostname = hostname.replace(/\s+/g, ''); // remove white space
	console.log("hostname =", hostname);
	var split = hostname.split('-');

	url = "http://" + hostname +":8000/buildings/" + split[0] + "/rooms/" + split[1];
	rpcUrl = "http://" + hostname + ":8100/buildings/" + split[0] + "/rooms/" + split[1];
	console.log("url for this room: ", url);

	console.log("here");
	getAllData();
<commit_msg>finished<commit_after>var version = "1.0.1";
var loadTime = 500;
var swalTimeout = 1000;
var previousVolume = 0; // Used for remembering the last volume value when muted
var volume = 0;

var url;
var rpcUrl;
var roomData;
var devices = [];
var displayInputs = {}; // map of each displayOutput to their current displayInput
var audioInputs = {}; // map of each audioOutput to their current audioInput
var blanks = {}; // map of each displayOutput to true/false

function init() {
	displayVersion();
}

function getRoom() {
	var hostname = document.getElementById('hostname').innerHTML;
	hostname = hostname.replace(/\s+/g, ''); // remove white space
	console.log("hostname =", hostname);
	var split = hostname.split('-');

	var urlHost = document.location.host;
	urlHost = /.+?(?=:)/.exec(urlHost) // remove port info
	console.log("urlHost =", urlHost);
	url = "http://" + urlHost  + ":8000/buildings/" + split[0] + "/rooms/" + split[1];
	rpcUrl = "http://" + urlHost + ":8100/buildings/" + split[0] + "/rooms/" + split[1];
	console.log("url for this room: ", url);

	getAllData();

{'fraction_non_alphanumeric': 0.1661807580174927, 'fraction_numerical': 0.023323615160349854, 'mean_word_length': 4.121890547263682, 'pattern_counts': {'":': 4, '<': 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': '5358609', 'n_tokens_mistral': 678, 'n_tokens_neox': 652, 'n_words': 207}