<commit_before><html>
	<head>
	  <meta charset="UTF-8">
	  <script language="javascript" type="text/javascript" src="p5.js"></script>
  	  <script language="javascript" type="text/javascript" src="p5.dom.js"></script>
	  <script language="javascript" type="text/javascript" src="p5.serialport.js"></script>
 	  <script language="javascript" type="text/javascript">
		// Declare a "SerialPort" object
		var serial;

		var portListDiv;

		var portSelect;
		var selectedPort;

		var rescanPorts;

		var connectButton;
		var disconnectButton;
		
		var serialConsoleEnabledCheckbox;
		var serialConsoleEnabled = false;
		var serialConsole;
	
		var clearButton;
		
		var sendMessage;
		var sendButton;
		
// 		var consoleBuffer = [];
// 		var lastConsoleLogTime = Date.now();
// 		var LOGWAIT = 2000;

		function setup() {
			createCanvas(1, 1);

			portListDiv = select("#serialports");
			
			// GUI controls
 			portSelect = createSelect();
 			portSelect.option("No Ports Found");
			portSelect.parent(select("#portselectdiv"));

			rescanPorts = select("#rescan");
			rescanPorts.mousePressed(function() {
				serial.list();
			});

			connectButton = select("#connect");
			connectButton.mousePressed(connectPressed);
			disconnectButton = select("#disconnect");
			disconnectButton.mousePressed(disconnectPressed);
			
			serialConsole = select("#serialconsole");	
			serialConsoleEnabledCheckbox = select("#serialconsoleenabled");
			serialConsoleEnabledCheckbox.elt.addEventListener('change', serialConsoleSwitch);
			
			clearButton = select("#clear");
			clearButton.elt.addEventListener('click', clearPressed);
			//clearButton.mousePressed("clearPressed");
			
			sendButton = select("#send");
			sendMessage = select("#message");
			sendButton.elt.addEventListener('click', sendPressed);
			
			// Instantiate our SerialPort object
			serial = new p5.SerialPort();
<commit_msg>Disabled and hid console by default, take 2<commit_after><html>
	<head>
	  <meta charset="UTF-8">
	  <script language="javascript" type="text/javascript" src="p5.js"></script>
  	  <script language="javascript" type="text/javascript" src="p5.dom.js"></script>
	  <script language="javascript" type="text/javascript" src="p5.serialport.js"></script>
 	  <script language="javascript" type="text/javascript">
		// Declare a "SerialPort" object
		var serial;

		var portListDiv;

		var portSelect;
		var selectedPort;

		var rescanPorts;

		var connectButton;
		var disconnectButton;
		
		var serialConsoleEnabledCheckbox;
		var serialConsoleEnabled = false;
		var serialConsole;
	
		var clearButton;
		
		var sendMessage;
		var sendButton;
		
// 		var consoleBuffer = [];
// 		var lastConsoleLogTime = Date.now();
// 		var LOGWAIT = 2000;

		function setup() {
			createCanvas(1, 1);

			portListDiv = select("#serialports");
			
			// GUI controls
 			portSelect = createSelect();
 			portSelect.option("No Ports Found");
			portSelect.parent(select("#portselectdiv"));

			rescanPorts = select("#rescan");
			rescanPorts.mousePressed(function() {
				serial.list();
			});

			connectButton = select("#connect");
			connectButton.mousePressed(connectPressed);
			disconnectButton = select("#disconnect");
			disconnectButton.mousePressed(disconnectPressed);
			
			serialConsole = select("#serialconsole");	
			serialConsoleEnabledCheckbox = select("#serialconsoleenabled");
			serialConsoleEnabledCheckbox.elt.checked = false;
			serialConsoleEnabledCheckbox.elt.addEventListener('change', serialConsoleSwitch);
			
			clearButton = select("#clear");
			clearButton.elt.addEventListener('click', clearPressed);
			//clearButton.mousePressed("clearPressed");
			
			sendButton = select("#send");
			sendMessage = select("#message");
			sendButton.elt.addEventListener('click', sendPressed);
			
			// Instantiate our SerialPort object
			serial = new p5.SerialPort();

{'fraction_non_alphanumeric': 0.1347002335842201, 'fraction_numerical': 0.005969374513366208, 'mean_word_length': 4.443502824858757, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4168413', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1096, 'n_words': 221}