<commit_before>(function() {
	"use strict";
	var elem = document.getElementById('app');

	perfMonitor.startFPSMonitor();
	perfMonitor.startMemMonitor();
	perfMonitor.initProfiler('view update');

	var staticNode = {
		children: null,
		dom: null,
		flags: 1 << 1,
		key: null,
		props: {
			className: 'arrow'
		},
		ref: null,
		type: 'div'
	};

	function renderBenchmark(dbs) {
		var length = dbs.length;
		var databases = new Array(length);

		for (var i = 0; i < length; i++) {
			var db = dbs[i];
			var lastSample = db.lastSample;
			var children = new Array(7);

			children[0] = {
				children: db.dbname,
				dom: null,
				flags: 1 << 1,
				key: null,
				props: dbName,
				ref: null,
				type: 'td'
			};
			children[1] = {
				children: {
					children: lastSample.nbQueries + '',
					dom: null,
					flags: 1 << 1,
					key: null,
					props: {
						className: lastSample.countClassName
					},
					ref: null,
					type: 'span'
				},
				dom: null,
				flags: 1 << 1,
				key: null,
				props: dbQueryCount,
				ref: null,
				type: 'td'
			};

			for (var i2 = 0; i2 < 5; i2++) {
				var query = lastSample.topFiveQueries[i2];

				children[i2 + 2] = {
					children: [
						{
							children: query.formatElapsed,
							dom: null,
							flags: 1 << 1,
							key: null,
							props: foo,
							ref: null,
							type: 'div'
						},
						{
							children: [
								{
									children: query.query,
									dom: null,
									flags: 1 << 1,
									key: null,
									props: popoverContent,
									ref: null,
									type: 'div'
								},
								staticNode
							],
							dom: null,
							flags: 1 << 1,
							key: null,
							props: popoverLeft,
							ref: null,
							type: 'div'
						}
					],
					dom: null,
					flags: 1 << 1,
					key: null,
					props: {
						className: query.elapsedClassName
					},
					ref: null,
					type: 'td'
				}
				databases[i] = {
					children: children,
					dom: null,
					flags: 1 << 1,
					key: null,
					props: null,
					ref: null,
					type: 'tr'
				};
		}

		Inferno.render({
			children: {
				children: databases,
				dom: null,
				flags: 1 << 1,
				key: null,
				props: null,
				ref: null,
				type: 'tbody'
			},
			dom: null,
			flags: 1 << 1,
			key: null,
			props: tableProps,
			ref: null,
			type: 'table'
		}, elem);
	}

	var tableProps = {
		className: 'table table-striped latest-data'
	};
	var dbName = {
		className: 'dbname'
	};
	var dbQueryCount = {
		className: 'query-count'
	};
	var foo = {
		className: 'foo'
	};
	var popoverLeft = {
		className: 'popover left'
	};
	var popoverContent = {
		className: 'popover-content'
	};

	function render() {
		var dbs = ENV.generateData(false).toArray();
		perfMonitor.startProfile('view update');
		renderBenchmark(dbs);
		perfMonitor.endProfile('view update');
		setTimeout(render, ENV.timeout);
	}
	render();
})();<commit_msg>updated dbmonster<commit_after>(function() {
	"use strict";
	var elem = document.getElementById('app');

	perfMonitor.startFPSMonitor();
	perfMonitor.startMemMonitor();
	perfMonitor.initProfiler('view update');

	var createVNode = Inferno.createVNode;
	var staticNode = createVNode(2, 'div', { className: 'arrow' }, null, null, null, true);
	var tableProps = {
		className: 'table table-striped latest-data'
	};
	var dbName = {
		className: 'dbname'
	};
	var dbQueryCount = {
		className: 'query-count'
	};
	var foo = {
		className: 'foo'
	};
	var popoverLeft = {
		className: 'popover left'
	};
	var popoverContent = {
		className: 'popover-content'
	};

	function renderBenchmark(dbs) {
		var length = dbs.length;
		var databases = new Array(length);

		for (var i = 0; i < length; i++) {
			var db = dbs[i];
			var lastSample = db.lastSample;
			var children = new Array(7);

			children[0] = createVNode(2, 'td', dbName, db.dbname, null, null, true);
			children[1] = createVNode(2, 'td', dbQueryCount, createVNode(2, 'span', {
				className: lastSample.countClassName
			}, lastSample.nbQueries, null, null, true), null, null, true);

			for (var i2 = 0; i2 < 5; i2++) {
				var query = lastSample.topFiveQueries[i2];

				children[i2 + 2] = createVNode(66, 'td', {
					className: query.elapsedClassName
				}, [
					createVNode(2, 'div', foo, query.formatElapsed, null, null, true),
					createVNode(66, 'div', popoverLeft, [
						createVNode(2, 'div', popoverContent, query.query, null, null, true),
						staticNode
					], null, null, true)
				], null, null, true);
				databases[i] = createVNode(66, 'tr', null, children, null, null, true);
			}
		}

		Inferno.render(
			createVNode(2, 'table', tableProps, createVNode(66, 'tbody', null, databases, null, null, true), null, null, true),
		elem);
	}

	function render() {
		var dbs = ENV.generateData(false).toArray();
		perfMonitor.startProfile('view update');
		renderBenchmark(dbs);
		perfMonitor.endProfile('view update');
		setTimeout(render, ENV.timeout);
	}
	render();
})();
{'fraction_non_alphanumeric': 0.1509319286871961, 'fraction_numerical': 0.012358184764991896, 'mean_word_length': 2.606281957633309, 'pattern_counts': {'":': 0, '<': 29, '<?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': '635204', 'n_tokens_mistral': 2313, 'n_tokens_neox': 1743, 'n_words': 436}