<commit_before>'use strict';

var HID = require('node-hid'),
    pakkit = require('pakkit'),
    RollingSpider = require("rolling-spider"),
    argv = require('yargs').argv;

var drone = new RollingSpider(argv.uuid),
    joysticks = {
        left: {
            x: 0,
            y: 0
        },
        right: {
            x: 0,
            y: 0
        }
    },
    buttons = {
        plus: {
            count: 0,
            modulus: 1,
            actions: [
                ['toggle']
            ]
        },
        minus: {
            count: 0,
            modulus: 1,
            actions: [
                ['flatTrim']
            ]
        },
        home: {
            count: 0,
            modulus: 1,
            actions: [
                ['emergency']
            ]
        },
        l: {
            count: 0,
            modulus: 1,
            actions: [
                ['backFlip']
            ]
        },
        r: {
            count: 0,
            modulus: 1,
            actions: [
                ['frontFlip']
            ]
        },
        zl: {
            count: 0,
            modulus: 1,
            actions: [
                ['leftFlip']
            ]
        },
        zr: {
            count: 0,
            modulus: 1,
            actions: [
                ['rightFlip']
            ]
        },
        a: {
            count: 0,
            modulus: 2,
            actions: [
                ['wheelOn'], // count is odd
                ['wheelOff'] // count is even
            ]
        }
    },
    actions = [];

var packets = pakkit.export({
    WII_U_PRO_CONTROLLER : {
        buttons: {
            mask: [
                null, null, null, null, null, null,
                'plus', 'minus', 'home',
                null, null,
                'dup', 'ddown', 'dleft', 'dright',
                'a', 'b', 'x', 'y',
                'l', 'r',
                'zl', 'zr',
                'leftstick', 'rightstick'
            ],
            type: 'uint32le'
        },
        left: {
            type: 'joystick'
        },
        right: {
            type: 'joystick'
        }<commit_msg>wheel off needs emergency after, emergency may need wheel off<commit_after>'use strict';

var HID = require('node-hid'),
    pakkit = require('pakkit'),
    RollingSpider = require("rolling-spider"),
    argv = require('yargs').argv;

var drone = new RollingSpider(argv.uuid),
    joysticks = {
        left: {
            x: 0,
            y: 0
        },
        right: {
            x: 0,
            y: 0
        }
    },
    buttons = {
        plus: {
            count: 0,
            modulus: 1,
            actions: [
                ['toggle']
            ]
        },
        minus: {
            count: 0,
            modulus: 1,
            actions: [
                ['flatTrim']
            ]
        },
        home: {
            count: 0,
            modulus: 1,
            actions: [
                ['wheelOff', 'emergency']
            ]
        },
        l: {
            count: 0,
            modulus: 1,
            actions: [
                ['backFlip']
            ]
        },
        r: {
            count: 0,
            modulus: 1,
            actions: [
                ['frontFlip']
            ]
        },
        zl: {
            count: 0,
            modulus: 1,
            actions: [
                ['leftFlip']
            ]
        },
        zr: {
            count: 0,
            modulus: 1,
            actions: [
                ['rightFlip']
            ]
        },
        a: {
            count: 0,
            modulus: 2,
            actions: [
                ['wheelOn'], // count is odd
                ['wheelOff', 'emergency'] // count is even
            ]
        }
    },
    actions = [];

var packets = pakkit.export({
    WII_U_PRO_CONTROLLER : {
        buttons: {
            mask: [
                null, null, null, null, null, null,
                'plus', 'minus', 'home',
                null, null,
                'dup', 'ddown', 'dleft', 'dright',
                'a', 'b', 'x', 'y',
                'l', 'r',
                'zl', 'zr',
                'leftstick', 'rightstick'
            ],
            type: 'uint32le'
        },
        left: {
            type: 'joystick'
        },
        right: {
            type: 'joystick'
        }
{'fraction_non_alphanumeric': 0.12920192087811572, 'fraction_numerical': 0.010061742510862108, 'mean_word_length': 0.7970419063270336, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2285853', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1229, 'n_words': 271}