<commit_before><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>canvg.js test</title>
		<!--[if IE]>
		<script type="text/javascript" src="flashcanvas.js"></script>
		<![endif]-->		
		<script type="text/javascript" src="../rgbcolor.js"></script>
		<script type="text/javascript" src="../canvg.js"></script>
		<script type="text/javascript">
		var context;
		function bodyonload() { if (typeof(FlashCanvas) != 'undefined') context = document.getElementById('canvas').getContext; }
		function render() {
			var c = document.getElementById('canvas');
			c.width = document.getElementById('width').value;
			c.height = document.getElementById('height').value;
			if (context) c.getContext = context;
			canvg(c, document.getElementById('svg').value);
		}
		function r() {
			var c = document.getElementById('canvas');
			c.width = '1000';
			c.height = '600';
			if (context) c.getContext = context;
		}
		</script>
		
		<style type="text/css">
		body { font-family: verdana; }
		#title { padding: 0 0 5px 5px; margin: 0; }
		#message { background-color: orangered; padding: 5px; margin-bottom: 10px; }
		#message a { color: white; }
		td { vertical-align: top; }<commit_msg>fixes issue 28<commit_after><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<title>canvg.js test</title>
		<!--[if IE]>
		<script type="text/javascript" src="flashcanvas.js"></script>
		<![endif]-->		
		<script type="text/javascript" src="../rgbcolor.js"></script>
		<script type="text/javascript" src="../canvg.js"></script>
		<script type="text/javascript">
		function q(k) {
			var qs = window.location.search.substring(1);
			var t = qs.split("&");
			for (i=0;i<t.length;i++) {
				kv = t[i].split("=");
				if (kv[0] == k) return unescape(kv[1]).replace('+',' ');
			}		
			return null;
		}		
		var context;
		function bodyonload() { 
			if (typeof(FlashCanvas) != 'undefined') context = document.getElementById('canvas').getContext; 
			var qUrl = q('url'); if (qUrl != null && qUrl != '') { r(); canvg('canvas', qUrl); }
			var qSvg = q('svg'); if (qSvg != null && qSvg != '') { r(); canvg('canvas', qSvg); }			
		}
		function render() {
			var c = document.getElementById('canvas');
			c.width = document.getElementById('width').value;
			c.height = document.getElementById('height').value;
			if (context) c.getContext = context;
			canvg(c, document.getElementById('svg').value);
		}
		function r() {
			var c = document.getElementById('canvas');
			c.width = '1000';
			c.height = '600';
			if (context) c.getContext = context;
		}
		</script>
		
		<style type="text/css">
		body { font-family: verdana; }
		#title { padding: 0 0 5px 5px; margin: 0; }
		#message { background-color: orangered; padding: 5px; margin-bottom: 10px; }
		#message a { color: white; }
		td { vertical-align: top; }
{'fraction_non_alphanumeric': 0.20006839945280439, 'fraction_numerical': 0.016415868673050615, 'mean_word_length': 3.740680713128039, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2596063', 'n_tokens_mistral': 1165, 'n_tokens_neox': 999, 'n_words': 223}