<commit_before>//main functions
var helper = require('./lib/shared');

//libs
var Myo = require('myo');
var ioc = require('socket.io-client');
var socket = ioc.connect('http://localhost:3000');

var move = false;
var center_x = 23;
var last_yaw = 0;

Myo.connect('do.d3.skol');

Myo.on('connected', () => {
    helper.logger.debug('[Myo] Connected');
    Myo.setLockingPolicy('none');
});

Myo.on('pose', (pose) => {
    helper.logger.debug(`[MYO] ${pose}`);
    if (pose === 'fist' || pose === 'fingers_spread') {
        socket.emit('myo', {
            type: 'pose',
            pose: pose
        });
    } else if (pose === 'double_tap') {
        if (move) {
            move = false
        } else {
            center_x = 23;
            move = true;
        }
    } else if (pose === 'wave_in') {<commit_msg>Update with a myo local tester<commit_after>//main functions
var helper = require('./lib/shared');

//libs
var Myo = require('myo');
var ioc = require('socket.io-client');
var socket = ioc.connect('http://192.168.42.10:3000');

var move = false;
var center_x = 23;
var last_yaw = 0;

Myo.connect('do.d3.skol');

Myo.on('connected', () => {
    helper.logger.debug('[Myo] Connected');
    Myo.setLockingPolicy('none');
});

Myo.on('pose', (pose) => {
    helper.logger.debug(`[MYO] ${pose}`);
    if (pose === 'fist' || pose === 'fingers_spread') {
        socket.emit('myo', {
            type: 'pose',
            pose: pose
        });
    } else if (pose === 'double_tap') {
        if (move) {
            move = false
        } else {
            center_x = 23;
            move = true;
        }
    } else if (pose === 'wave_in') {
{'fraction_non_alphanumeric': 0.1987915407854985, 'fraction_numerical': 0.01812688821752266, 'mean_word_length': 2.3454545454545452, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6833086', 'n_tokens_mistral': 604, 'n_tokens_neox': 574, 'n_words': 125}