<commit_before><!DOCTYPE html>
<html>
<head>
	<title>Meyda</title>
	<script type="text/javascript" src="main.js"></script>
	<meta charset="UTF-8">
</head>
<body>
	<audio src="test.mp3" id="tune" controls></audio>
	<script>

		var tune = document.getElementById('tune');
		tune.oncanplaythrough = function (e) {
			console.log("audio loaded");
			init();
			tune.play();
		}

		// callback for mic position
		function init() {
			// polyfill
			window.AudioContext = window.AudioContext || window.webkitAudioContext;
			var context = new AudioContext();

			// create audionode from mic
			window.source = context.createMediaElementSource( tune );

			// instantiate new medya
			var m = new Meyda(context,source,256);

			document.body.onkeydown = function() {
				tune.play();
				m.get(["normalisedSpectrum", "spectrum"]);
				//console.log(m.get(["spectrum","normalisedSpectrum"]));
			}
		}
	</script>
</body>
</html><commit_msg>adds logging back in to meyda return on index<commit_after><!DOCTYPE html>
<html>
<head>
	<title>Meyda</title>
	<script type="text/javascript" src="main.js"></script>
	<meta charset="UTF-8">
</head>
<body>
	<audio src="test.mp3" id="tune" controls></audio>
	<script>

		var tune = document.getElementById('tune');
		tune.oncanplaythrough = function (e) {
			console.log("audio loaded");
			init();
			tune.play();
		}

		// callback for mic position
		function init() {
			// polyfill
			window.AudioContext = window.AudioContext || window.webkitAudioContext;
			var context = new AudioContext();

			// create audionode from mic
			window.source = context.createMediaElementSource( tune );

			// instantiate new medya
			var m = new Meyda(context,source,256);

			document.body.onkeydown = function() {
				tune.play();
				m.get(["normalisedSpectrum", "spectrum"]);
				console.log(m.get(["spectrum","normalisedSpectrum"]));
			}
		}
	</script>
</body>
</html>
{'fraction_non_alphanumeric': 0.16877637130801687, 'fraction_numerical': 0.005274261603375527, 'mean_word_length': 3.9272727272727272, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5844491', 'n_tokens_mistral': 738, 'n_tokens_neox': 627, 'n_words': 135}