<commit_before>$(document).ready(function() {
    "use strict";
    console.log("main.js loaded");
    myoTest();
});

function myoTest() {
	Myo.connect('com.myojs.main');

	//Start talking with Myo Connect
	//Myo.connect('com.stolksdorf.myAwesomeApp');
	console.log('Hello Myo!');
	//this.vibrate();

	Myo.on('fist', function(){
		console.log('fist!');
		//this.vibrate();
	});

	Myo.on('wave_out', function(){
		console.log('wave_out!');
		//this.vibrate();
	});

	Myo.on("fingers_spread", function() {
		console.log('fingers_spread!');
		//this.vibrate();
	});

	Myo.on("wave_in", function() {
		console.log('wave_in!');
		//this.vibrate();
	});

	Myo.on("double_tab", function() {
		console.log('double_tab!');
		//this.vibrate();
	});

}<commit_msg>Add up and down myo code<commit_after>$(document).ready(function() {
    "use strict";
    console.log("main.js loaded");
    myoTest();
});

function myoTest() {
	Myo.connect('com.myojs.main');

	//Start talking with Myo Connect
	//Myo.connect('com.stolksdorf.myAwesomeApp');
	console.log('Hello Myo!');
	//this.vibrate();

	Myo.on('fist', function(){
		console.log('fist!');
		//this.vibrate();
	});

	Myo.on('wave_out', function(){
		console.log('wave_out!');
		//this.vibrate();
	});

	Myo.on("fingers_spread", function() {
		console.log('fingers_spread!');
		//this.vibrate();
	});

	Myo.on("wave_in", function() {
		console.log('wave_in!');
		//this.vibrate();
	});

	Myo.on("double_tab", function() {
		console.log('double_tab!');
		//this.vibrate();
	});

	Myo.on("orientation", function(data) {
		//console.log(data.y);
		if (data.y > 0.45) {
			console.log("up");
		} else if (data.y < -0.35) {
			console.log("down");
		}

	});

}
{'fraction_non_alphanumeric': 0.24365781710914455, 'fraction_numerical': 0.0035398230088495575, 'mean_word_length': 3.8735632183908044, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1947366', 'n_tokens_mistral': 737, 'n_tokens_neox': 681, 'n_words': 93}