<commit_before>var dataSocket = new WebSocket("ws:127.0.0.1:8000/echo");


dataSocket.onopen = function(){
	console.log("websocket open!");
}

dataSocket.onmessage =  function(e){
	var data = JSON.parse(e.data);
	if (data.id === "ICA"){
		camera.cardiac(data.two, data.bufferWindow);
	}
}

function sendData(data){
	dataSocket.send(data);
}

dataSocket.onclose = function(){
	console.log('closed');
}<commit_msg>any array instead of a specific ICA channel<commit_after>var dataSocket = new WebSocket("ws:127.0.0.1:8000/echo");

dataSocket.onopen = function(){
	console.log("websocket open!");
}

dataSocket.onmessage =  function(e){
	var data = JSON.parse(e.data);

	if (data.id === "ICA"){

		camera.cardiac(data.array, data.bufferWindow);
	}

}

function sendData(data){
	dataSocket.send(data);
}

dataSocket.onclose = function(){
	console.log('closed');
}
{'fraction_non_alphanumeric': 0.1794871794871795, 'fraction_numerical': 0.023310023310023312, 'mean_word_length': 5.22463768115942, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1036064', 'n_tokens_mistral': 329, 'n_tokens_neox': 306, 'n_words': 55}