<commit_before>var udooneo = require("./udooneo");

udooneo.Accelerometer.enable();
udooneo.Magnetometer.enable();
udooneo.Gyroscope.enable();

var values = [{}, {}, {}];

setTimeout(function () {

    var int = setInterval(function () {

        udooneo.Accelerometer.getData(function (data) {
            values[0] = data;
        });
        udooneo.Magnetometer.getData(function (data) {
            values[1] = data;
        });
        udooneo.Gyroscope.getData(function (data) {
            values[2] = data;
        });

        process.stdout.write('\033c');
        console.log(values);

    }, 100);

    setTimeout(function () {
        clearInterval(int);
        udooneo.Accelerometer.disable();
        udooneo.Magnetometer.disable();
        udooneo.Gyroscope.disable();
    }, 5000);

}, 1000);




<commit_msg>Example update<commit_after>var udooneo = require("./udooneo");

udooneo.Accelerometer.enable();
udooneo.Magnetometer.enable();
udooneo.Gyroscope.enable();

var values = {
    Accelerometer: "",
    Magnetometer: "",
    Gyroscope: ""
};

setTimeout(function () {

    var int = setInterval(function () {

        udooneo.Accelerometer.getData(function (data) {
            values.Accelerometer = data;
        });
        udooneo.Magnetometer.getData(function (data) {
            values.Magnetometer = data;
        });
        udooneo.Gyroscope.getData(function (data) {
            values.Gyroscope = data;
        });

        process.stdout.write('\033c');
        console.log([
            "Accelerometer: " + values.Accelerometer,
            "Magnetometer: " + values.Magnetometer,
            "Gyroscope: " + values.Gyroscope,
        ].join("\r\n"));

    }, 100);

    setTimeout(function () {
        clearInterval(int);
        udooneo.Accelerometer.disable();
        udooneo.Magnetometer.disable();
        udooneo.Gyroscope.disable();
    }, 5000);

}, 500);
{'fraction_non_alphanumeric': 0.1466733870967742, 'fraction_numerical': 0.015120967741935484, 'mean_word_length': 2.0680061823802163, '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': '279303', 'n_tokens_mistral': 674, 'n_tokens_neox': 603, 'n_words': 79}