<commit_before>var html_ServerStatus_temp;
html_ServerStatus_temp = "\
	<div class='col-lg-3 col-sm-6'>\
		<div class='card'>\
			<div class='content'>\
				<div class='row'>\
					<div class='col-xs-5'>\
						<div class='icon-big {$Color} text-center'>\
							<i class='ti-light-bulb'></i>\
						</div>\
					</div>\
					<div class='col-xs-7'>\
						<div class='numbers'>\
							<p>{$ServerName}</p>\
							{$ServerStatus}\
						</div>\
					</div>\
				</div>\
				<div class='footer'>\
					<hr />\
					<div class='stats'>\
						<i class='ti-reload'></i>\
						{$UpdateTime}\
					</div>\
				</div>\
			</div>\
		</div>\
	</div>";
var html_ServerLine_temp;
html_ServerLine_temp = "\
	<div class='row'>\
		<div class='col-md-12'>\
			<div class='card'>\
				<div class='header'>\
					<h4 class='title'>{$serverName}</h4>\
					<p class='category'>Online Count</p>\
				</div>\
				<div class='content'>\
					<div id='{$serverNameId}' class='ct-chart'></div>\
					<div class='footer'>\
						<hr>\
						<div class='stats'>\
							<i class='ti-reload'></i>\
							Updated 1 second ago\
						</div>\
					</div>\
				</div>\
			</div>\
		</div>\
	</div>";
var html_ServerInfoTable_temp;
html_ServerInfoTable_temp = "\
	<div class='row'>\
		<div class='col-md-12'>\
			<div class='card'>\
				<div class='header'>\
					<h4 class='title'>{$TableTitle}</h4>\
					<p class='category'>{$TableDescript}</p>\
				</div>\
				<div class='content table-responsive table-full-width'>\
					<table class='table table-striped'>\
						<thead>\
							<th>ID</th>\
							<th>InfoName</th>\
							<th>InfoValue</th>\
						</thead>\
						<tbody>\
						{$InfoTableTr}\
						</tbody>\
					</table>\
				</div>\
			</div>\
		</div>\
	</div>"
var html_ServerInfoTableTr = "\
							<tr id='InfoTableTr'>\
								<td>{$RowID}</td>\
								<td>{$RowKey}</td>\
								<td>{$RowValue}</td>\
							</tr>"
var html_Nav_li = "\
                <li id='left_{$li_name}' class='{$li_active}' onclick='{$li_Script}'>\
                    <a href='#'>\
                        <i class='{$li_class}'></i>\
                        <p>{$li_name}</p>\
                    </a>\
                </li>"

var intervalTrigger;
var serverNowTime;
var chartMaxMaster;
var chartMaxWorld;
var chartMaxGame;
var chartMaxProxy;
var chartMaxLogin;
chartMaxMaster = 10;
chartMaxWorld = 10;
chartMaxGame = 10;
chartMaxProxy = 10;
chartMaxLogin = 10;
var labelArr = new Array();
var masterOnline = new Array();
var worldOnline = new Array();
var gameOnline = new Array();
var proxyOnline = new Array();
var loginOnline = new Array();
var chartList = new Array();
var currentPageHtml = "Dashboard";

function showNavBar(CurrentPage, ServerNameList, ServerIDList)
{
	var serverClass = "ti-view-list-alt";
	var dashboardClass = "ti-panel";
	var html_Nav_bar = html_Nav_li;
	html_Nav_bar = html_Nav_bar.replace("{$li_name}", "Dashboard");
	html_Nav_bar = html_Nav_bar.replace("{$li_name}", "Dashboard");
	if(CurrentPage == "Dashboard")
	{
		html_Nav_bar = html_Nav_bar.replace("{$li_active}", "active");
	}
	else
	{
		html_Nav_bar = html_Nav_bar.replace("{$li_active}", "");
	}
	html_Nav_bar = html_Nav_bar.replace("{$li_class}", dashboardClass);
	html_Nav_bar = html_Nav_bar.replace("{$li_Script}", "currentPageHtml=\"Dashboard\";");

	for(var i=0;i<ServerNameList.length;i++)
	{
		html_Nav_bar += html_Nav_li;
		html_Nav_bar = html_Nav_bar.replace("{$li_name}", ServerNameList[i]);
		html_Nav_bar = html_Nav_bar.replace("{$li_name}", ServerNameList[i]);
		if(CurrentPage == ServerNameList[i])
		{
			html_Nav_bar = html_Nav_bar.replace("{$li_active}", "active");
		}
		else
		{
			html_Nav_bar = html_Nav_bar.replace("{$li_active}", "");
		}
		html_Nav_bar = html_Nav_bar.replace("{$li_class}", serverClass);
		html_Nav_bar = html_Nav_bar.replace("{$li_Script}", "currentPageHtml=\""+ServerNameList[i]+"\";");
	}
	document.getElementById("Nav_ul").innerHTML = html_Nav_bar;
}

function showServerStatus(ServerNameList, ServerStatusList, UpdateTimeList, ServerOnlineList, ServerMaxList)
{
	if(typeof(ServerNameList) != "undefined")
	{
		var html_ServerStatus;
		html_ServerStatus = "";
		var html_ServerLine;
		html_ServerLine = "";
		for(var i=0;i<ServerNameList.length;i++){
			html_ServerStatus += html_ServerStatus_temp.replace("{$ServerName}", ServerNameList[i]);
			html_ServerStatus = html_ServerStatus.replace("{$UpdateTime}", UpdateTimeList[i]);
			if(ServerStatusList[i] == 1)
			{
				html_ServerStatus = html_ServerStatus.replace("{$Color}", "icon-success");
				html_ServerStatus = html_ServerStatus.replace("{$ServerStatus}", "Online");
			}
			else
			{
				html_ServerStatus = html_ServerStatus.replace("{$Color}", "icon-warning");
				html_ServerStatus = html_ServerStatus.replace("{$ServerStatus}", "Offline");
			}
			
			html_ServerLine += html_ServerLine_temp.replace("{$serverName}", ServerNameList[i]);
			html_ServerLine = html_ServerLine.replace("{$serverNameId}", ServerNameList[i] + "ID");
		}
		document.getElementById("serverContent").innerHTML = "<div class='row'>" + html_ServerStatus + "</div>" + html_ServerLine;
		
		for(var i=0;i<ServerNameList.length;i++)
		{
			var data = {
				labels: labelArr,
				series: 
				ServerOnlineList[i]
			};
			
			var options = {
			  lineSmooth: false,
			  low: 0,
			  high: ServerMaxList[i],
			  showArea: false,
			  height: "245px",
			  axisX: {
				showGrid: false,
			  },
			  lineSmooth: Chartist.Interpolation.simple({
				divisor: 5
			  }),
			  showLine: true,
			  showPoint: false,<commit_msg>fixed web chart for integer<commit_after>var html_ServerStatus_temp;
html_ServerStatus_temp = "\
	<div class='col-lg-3 col-sm-6'>\
		<div class='card'>\
			<div class='content'>\
				<div class='row'>\
					<div class='col-xs-5'>\
						<div class='icon-big {$Color} text-center'>\
							<i class='ti-light-bulb'></i>\
						</div>\
					</div>\
					<div class='col-xs-7'>\
						<div class='numbers'>\
							<p>{$ServerName}</p>\
							{$ServerStatus}\
						</div>\
					</div>\
				</div>\
				<div class='footer'>\
					<hr />\
					<div class='stats'>\
						<i class='ti-reload'></i>\
						{$UpdateTime}\
					</div>\
				</div>\
			</div>\
		</div>\
	</div>";
var html_ServerLine_temp;
html_ServerLine_temp = "\
	<div class='row'>\
		<div class='col-md-12'>\
			<div class='card'>\
				<div class='header'>\
					<h4 class='title'>{$serverName}</h4>\
					<p class='category'>Online Count</p>\
				</div>\
				<div class='content'>\
					<div id='{$serverNameId}' class='ct-chart'></div>\
					<div class='footer'>\
						<hr>\
						<div class='stats'>\
							<i class='ti-reload'></i>\
							Updated 1 second ago\
						</div>\
					</div>\
				</div>\
			</div>\
		</div>\
	</div>";
var html_ServerInfoTable_temp;
html_ServerInfoTable_temp = "\
	<div class='row'>\
		<div class='col-md-12'>\
			<div class='card'>\
				<div class='header'>\
					<h4 class='title'>{$TableTitle}</h4>\
					<p class='category'>{$TableDescript}</p>\
				</div>\
				<div class='content table-responsive table-full-width'>\
					<table class='table table-striped'>\
						<thead>\
							<th>ID</th>\
							<th>InfoName</th>\
							<th>InfoValue</th>\
						</thead>\
						<tbody>\
						{$InfoTableTr}\
						</tbody>\
					</table>\
				</div>\
			</div>\
		</div>\
	</div>"
var html_ServerInfoTableTr = "\
							<tr id='InfoTableTr'>\
								<td>{$RowID}</td>\
								<td>{$RowKey}</td>\
								<td>{$RowValue}</td>\
							</tr>"
var html_Nav_li = "\
                <li id='left_{$li_name}' class='{$li_active}' onclick='{$li_Script}'>\
                    <a href='#'>\
                        <i class='{$li_class}'></i>\
                        <p>{$li_name}</p>\
                    </a>\
                </li>"

var intervalTrigger;
var serverNowTime;
var chartMaxMaster;
var chartMaxWorld;
var chartMaxGame;
var chartMaxProxy;
var chartMaxLogin;
chartMaxMaster = 10;
chartMaxWorld = 10;
chartMaxGame = 10;
chartMaxProxy = 10;
chartMaxLogin = 10;
var labelArr = new Array();
var masterOnline = new Array();
var worldOnline = new Array();
var gameOnline = new Array();
var proxyOnline = new Array();
var loginOnline = new Array();
var chartList = new Array();
var currentPageHtml = "Dashboard";

function showNavBar(CurrentPage, ServerNameList, ServerIDList)
{
	var serverClass = "ti-view-list-alt";
	var dashboardClass = "ti-panel";
	var html_Nav_bar = html_Nav_li;
	html_Nav_bar = html_Nav_bar.replace("{$li_name}", "Dashboard");
	html_Nav_bar = html_Nav_bar.replace("{$li_name}", "Dashboard");
	if(CurrentPage == "Dashboard")
	{
		html_Nav_bar = html_Nav_bar.replace("{$li_active}", "active");
	}
	else
	{
		html_Nav_bar = html_Nav_bar.replace("{$li_active}", "");
	}
	html_Nav_bar = html_Nav_bar.replace("{$li_class}", dashboardClass);
	html_Nav_bar = html_Nav_bar.replace("{$li_Script}", "currentPageHtml=\"Dashboard\";");

	for(var i=0;i<ServerNameList.length;i++)
	{
		html_Nav_bar += html_Nav_li;
		html_Nav_bar = html_Nav_bar.replace("{$li_name}", ServerNameList[i]);
		html_Nav_bar = html_Nav_bar.replace("{$li_name}", ServerNameList[i]);
		if(CurrentPage == ServerNameList[i])
		{
			html_Nav_bar = html_Nav_bar.replace("{$li_active}", "active");
		}
		else
		{
			html_Nav_bar = html_Nav_bar.replace("{$li_active}", "");
		}
		html_Nav_bar = html_Nav_bar.replace("{$li_class}", serverClass);
		html_Nav_bar = html_Nav_bar.replace("{$li_Script}", "currentPageHtml=\""+ServerNameList[i]+"\";");
	}
	document.getElementById("Nav_ul").innerHTML = html_Nav_bar;
}

function showServerStatus(ServerNameList, ServerStatusList, UpdateTimeList, ServerOnlineList, ServerMaxList)
{
	if(typeof(ServerNameList) != "undefined")
	{
		var html_ServerStatus;
		html_ServerStatus = "";
		var html_ServerLine;
		html_ServerLine = "";
		for(var i=0;i<ServerNameList.length;i++){
			html_ServerStatus += html_ServerStatus_temp.replace("{$ServerName}", ServerNameList[i]);
			html_ServerStatus = html_ServerStatus.replace("{$UpdateTime}", UpdateTimeList[i]);
			if(ServerStatusList[i] == 1)
			{
				html_ServerStatus = html_ServerStatus.replace("{$Color}", "icon-success");
				html_ServerStatus = html_ServerStatus.replace("{$ServerStatus}", "Online");
			}
			else
			{
				html_ServerStatus = html_ServerStatus.replace("{$Color}", "icon-warning");
				html_ServerStatus = html_ServerStatus.replace("{$ServerStatus}", "Offline");
			}
			
			html_ServerLine += html_ServerLine_temp.replace("{$serverName}", ServerNameList[i]);
			html_ServerLine = html_ServerLine.replace("{$serverNameId}", ServerNameList[i] + "ID");
		}
		document.getElementById("serverContent").innerHTML = "<div class='row'>" + html_ServerStatus + "</div>" + html_ServerLine;
		
		for(var i=0;i<ServerNameList.length;i++)
		{
			var data = {
				labels: labelArr,
				series: 
				ServerOnlineList[i]
			};
			
			var options = {
			  lineSmooth: false,
			  low: 0,
			  high: ServerMaxList[i],
			  showArea: false,
			  height: "245px",
			  axisX: {
				showGrid: false,
			  },
			  axisY: {
			  	onlyInteger: true,
			  },
			  lineSmooth: Chartist.Interpolation.simple({
				divisor: 5
			  }),
			  showLine: true,
			  showPoint: false,
{'fraction_non_alphanumeric': 0.1859633437639696, 'fraction_numerical': 0.005721949038891372, 'mean_word_length': 3.289110429447853, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 191, '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': '4104816', 'n_tokens_mistral': 4751, 'n_tokens_neox': 3879, 'n_words': 676}