<commit_before>/*
 Leg 1: 01, 02, 03, 04, 0F, 0D
 Leg 2: 07, 08, 09, 06, 05, 0A
 Leg 3: 12, 11, 10, 0E, 0C, 0B

  0   1   2   3   4   5   6   7   8   9   10  11  12  13  14  15  16  17
 [00, 01, 02, 03, 14, 13, 10, 11, 12, 22, 21, 20, 15, 25, 24, 05, 23, 04]
*/

var MAX_VALUE = 255;
var MIN_VALUE = 0;

function clamp(value) {
    return Math.max(MIN_VALUE, Math.min(value, MAX_VALUE));
}

function create(client) {
    var piGlow = {
        values: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],

        transaction: false,

        update: function() {
            if(!this.t) {
                client.writeBytes(this.values, function() {})
            }
        }
    };

    function reset() {
        piGlow.all = 0;
    }<commit_msg>comment<commit_after>var MAX_VALUE = 255;
var MIN_VALUE = 0;

function clamp(value) {
    return Math.max(MIN_VALUE, Math.min(value, MAX_VALUE));
}

function create(client) {
    var piGlow = {
        values: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],

        transaction: false,

        update: function() {
            if(!this.t) {
                client.writeBytes(this.values, function() {})
            }
        }
    };

    function reset() {
        piGlow.all = 0;
    }
{'fraction_non_alphanumeric': 0.15625, 'fraction_numerical': 0.11298076923076923, 'mean_word_length': 1.813063063063063, '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': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '181806', 'n_tokens_mistral': 613, 'n_tokens_neox': 482, 'n_words': 153}