<commit_before><%@ page session="false" language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=utf-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<jsp:useBean id="ctx"
	type="com.dianping.cat.report.page.heartbeat.Context" scope="request" />
<jsp:useBean id="payload"
	type="com.dianping.cat.report.page.heartbeat.Payload" scope="request" />
<jsp:useBean id="model"
	type="com.dianping.cat.report.page.heartbeat.Model" scope="request" />
<c:set var="report" value="${model.report}" />

<a:report title="Heartbeat Report"
	navUrlPrefix="domain=${model.domain}&ip=${model.ipAddress}"
	timestamp="${w:format(model.currentTime,'yyyy-MM-dd HH:mm:ss')}">

	<jsp:attribute name="subtitle">From ${w:format(report.startTime,'yyyy-MM-dd HH:mm:ss')} to ${w:format(report.endTime,'yyyy-MM-dd HH:mm:ss')}</jsp:attribute>

	<jsp:body>

<res:useCss value="${res.css.local.heartbeat_css}" target="head-css" />
<res:useJs value="${res.js.local['jquery-1.7.1.js']}" target="head-js" />

<table class="machines">
<th>Machines: 
		<c:forEach var="ip" items="${model.ips}">
   	  		&nbsp;[&nbsp;
   	  		<c:choose>
					<c:when test="${model.ipAddress eq ip}">
						<a href="?domain=${model.domain}&ip=${ip}&date=${model.date}"
								class="current">${ip}</a>
					</c:when>
					<c:otherwise>
						<a href="?domain=${model.domain}&ip=${ip}&date=${model.date}">${ip}</a>
					</c:otherwise>
				</c:choose>
   	 		&nbsp;]&nbsp;
		</c:forEach>
		</th>
</table>
<br>
<table class="graph">
<tr>
	<th>Thread Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="380"	xmlns="http://www.w3.org/2000/svg">
		  ${model.activeThreadGraph}
		  ${model.daemonThreadGraph}
		  ${model.totalThreadGraph}
		  ${model.startedThreadGraph}
		  ${model.catThreadGraph}
		  ${model.pigeonThreadGraph}
		</svg>
	</td>
</tr>
<tr>
	<th>System Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="190"	xmlns="http://www.w3.org/2000/svg">
		  ${model.gcCountGraph}
		  ${model.systemLoadAverageGraph}
		</svg>
	</td>
</tr>
<tr>
	<th>Memery Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="190"	xmlns="http://www.w3.org/2000/svg">
		  ${model.heapUsageGraph}
		  ${model.noneHeapUsageGraph}
		  ${model.memoryFreeGraph}
		</svg>
	</td>
</tr>
<tr>
	<th>Disk Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="190"	xmlns="http://www.w3.org/2000/svg">
		  ${model.diskFreeGraph}
		  ${model.diskUseableGraph}
		</svg>
	</td>
</tr>
<tr>
	<th>Cat Message Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="190"	xmlns="http://www.w3.org/2000/svg">
		  ${model.catMessageProducedGraph}
		  ${model.catMessageOverflowGraph}<commit_msg>move memory free graph to first<commit_after><%@ page session="false" language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=utf-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<jsp:useBean id="ctx"
	type="com.dianping.cat.report.page.heartbeat.Context" scope="request" />
<jsp:useBean id="payload"
	type="com.dianping.cat.report.page.heartbeat.Payload" scope="request" />
<jsp:useBean id="model"
	type="com.dianping.cat.report.page.heartbeat.Model" scope="request" />
<c:set var="report" value="${model.report}" />

<a:report title="Heartbeat Report"
	navUrlPrefix="domain=${model.domain}&ip=${model.ipAddress}"
	timestamp="${w:format(model.currentTime,'yyyy-MM-dd HH:mm:ss')}">

	<jsp:attribute name="subtitle">From ${w:format(report.startTime,'yyyy-MM-dd HH:mm:ss')} to ${w:format(report.endTime,'yyyy-MM-dd HH:mm:ss')}</jsp:attribute>

	<jsp:body>

<res:useCss value="${res.css.local.heartbeat_css}" target="head-css" />
<res:useJs value="${res.js.local['jquery-1.7.1.js']}" target="head-js" />

<table class="machines">
<th>Machines: 
		<c:forEach var="ip" items="${model.ips}">
   	  		&nbsp;[&nbsp;
   	  		<c:choose>
					<c:when test="${model.ipAddress eq ip}">
						<a href="?domain=${model.domain}&ip=${ip}&date=${model.date}"
								class="current">${ip}</a>
					</c:when>
					<c:otherwise>
						<a href="?domain=${model.domain}&ip=${ip}&date=${model.date}">${ip}</a>
					</c:otherwise>
				</c:choose>
   	 		&nbsp;]&nbsp;
		</c:forEach>
		</th>
</table>
<br>
<table class="graph">
<tr>
	<th>Thread Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="380"	xmlns="http://www.w3.org/2000/svg">
		  ${model.activeThreadGraph}
		  ${model.daemonThreadGraph}
		  ${model.totalThreadGraph}
		  ${model.startedThreadGraph}
		  ${model.catThreadGraph}
		  ${model.pigeonThreadGraph}
		</svg>
	</td>
</tr>
<tr>
	<th>System Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="190"	xmlns="http://www.w3.org/2000/svg">
		  ${model.gcCountGraph}
		  ${model.systemLoadAverageGraph}
		</svg>
	</td>
</tr>
<tr>
	<th>Memery Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="190"	xmlns="http://www.w3.org/2000/svg">
		  ${model.memoryFreeGraph}
		  ${model.heapUsageGraph}
		  ${model.noneHeapUsageGraph}
		</svg>
	</td>
</tr>
<tr>
	<th>Disk Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="190"	xmlns="http://www.w3.org/2000/svg">
		  ${model.diskFreeGraph}
		  ${model.diskUseableGraph}
		</svg>
	</td>
</tr>
<tr>
	<th>Cat Message Info</th>
</tr>
<tr>
	<td>
		<svg version="1.1" width="1400" height="190"	xmlns="http://www.w3.org/2000/svg">
		  ${model.catMessageProducedGraph}
		  ${model.catMessageOverflowGraph}
{'fraction_non_alphanumeric': 0.24100363156157148, 'fraction_numerical': 0.027401782766589635, 'mean_word_length': 4.568933823529412, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 167, 'https://': 0, 'lorem ipsum': 0, 'www.': 16, 'xml': 10}, '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': '2552542', 'n_tokens_mistral': 2766, 'n_tokens_neox': 2482, 'n_words': 352}