<commit_before><!DOCTYPE html>
<html>
	<head>
		<title>ShapeClip | Demo Page</title>
		
		<!-- Styling -->
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
		
		<link href='http://fonts.googleapis.com/css?family=Cabin:400,700' rel='stylesheet' type='text/css'>
		<style>
			document, body { background-color: black; color: white; position: fixed; width: 100%; height: 100%; margin: 0; } 
			
			.sc_pad {
				background-color: black;
			}
			
			#colourwheel { position: fixed; bottom: 100px; left: 100px; }
			#controls { position: fixed; bottom: 50px; left: 100px;  }
			#sugar { pointer-events: none; z-index: -99; position: fixed; bottom: 1cm; right: 1cm; color: #222; font-size: 5cm; font-family: 'Cabin', sans-serif; text-shadow: 1px 1px #222, -1px -1px #111}
		</style>
		
		<!-- Shape Clip -->
		<script type="text/javascript" src="../10_Driver/ShapeClipAPI.js"></script>
		
		<!-- JQuery -->
		<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
		
		<!-- Colour Wheel -->
		<script type="text/javascript" src="js/raphael-min.js"></script>
		<script type="text/javascript" src="js/colorwheel.js"></script>
		
		
		
		<script type="text/javascript">
			
			/** Compute the mean, deviation, and variance of an array. Return an object. */
			average = function(a) {
				var r = {mean: 0, variance: 0, deviation: 0}, t = a.length;
				for(var m, s = 0, l = t; l--; s += a[l]);
				for(m = r.mean = s / t, l = t, s = 0; l--; s += Math.pow(a[l] - m, 2));
				return r.deviation = Math.sqrt(r.variance = s / t), r;
			}
			
			
			
			
			var ws;
			
			var serial = null;	// The serial port (via web socket).
			var pad = null; 	// The shape clip pad.
			
			$(document).ready(function(){
				
				// Correct ppi value.
				var agent = navigator.userAgent.toLowerCase();
				if 		(agent.indexOf("windows") 	!= -1) 	{ }
				if 		(agent.indexOf("nexus 5") 	!= -1) 	{ __ppi(160); }
				else if (agent.indexOf("ipad") 		!= -1) 	{ __ppi(160); }
				console.log(navigator.userAgent.toLowerCase());
				//$("#report").text(navigator.userAgent.toLowerCase());
				
				//if (true) {__ppi()};	// Override PPI for Nexus5<commit_msg>Tweaking<commit_after><!DOCTYPE html>
<html>
	<head>
		<title>ShapeClip | Demo Page</title>
		
		<!-- Styling -->
		<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no" />
		
		<link href='http://fonts.googleapis.com/css?family=Cabin:400,700' rel='stylesheet' type='text/css'>
		<style>
			document, body { background-color: black; color: white; position: fixed; width: 100%; height: 100%; margin: 0; } 
			
			.sc_pad {
				background-color: black;
			}
			
			#colourwheel { position: fixed; bottom: 100px; left: 100px; }
			#controls { position: fixed; bottom: 50px; left: 100px;  }
			#sugar { pointer-events: none; z-index: -99; position: fixed; bottom: 1cm; right: 1cm; color: #222; font-size: 5cm; font-family: 'Cabin', sans-serif; text-shadow: 1px 1px #222, -1px -1px #111}
		</style>
		
		<!-- Shape Clip -->
		<script type="text/javascript" src="../10_Driver/ShapeClipAPI.js"></script>
		
		<!-- JQuery -->
		<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
		
		<!-- Colour Wheel -->
		<script type="text/javascript" src="js/raphael-min.js"></script>
		<script type="text/javascript" src="js/colorwheel.js"></script>
		
		
		
		<script type="text/javascript">
			
			/** Compute the mean, deviation, and variance of an array. Return an object. */
			average = function(a) {
				var r = {mean: 0, variance: 0, deviation: 0}, t = a.length;
				for(var m, s = 0, l = t; l--; s += a[l]);
				for(m = r.mean = s / t, l = t, s = 0; l--; s += Math.pow(a[l] - m, 2));
				return r.deviation = Math.sqrt(r.variance = s / t), r;
			}
			
			
			
			
			var ws;
			
			var serial = null;	// The serial port (via web socket).
			var pad = null; 	// The shape clip pad.
			
			$(document).ready(function(){
				
				// Correct ppi value.
				var agent = navigator.userAgent.toLowerCase();
				if 		(agent.indexOf("windows") 	!= -1) 	{ }
				if 		(agent.indexOf("nexus 5") 	!= -1) 	{ __ppi(150); }
				else if (agent.indexOf("ipad") 		!= -1) 	{ __ppi(160); }
				console.log(navigator.userAgent.toLowerCase());
				//$("#report").text(navigator.userAgent.toLowerCase());
				
				//if (true) {__ppi()};	// Override PPI for Nexus5
{'fraction_non_alphanumeric': 0.19221246905244205, 'fraction_numerical': 0.031510240828269184, 'mean_word_length': 2.9016681299385425, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '3079174', 'n_tokens_mistral': 1981, 'n_tokens_neox': 1584, 'n_words': 387}