<commit_before>//
// gateButton.js
// 
// Edited by <NAME> on 03/07/2018
// from button1.js by <NAME>
// Copyright High Fidelity 2018
//
// Licensed under the Apache 2.0 License
// See accompanying license file or http://apache.org/
//

/* global Pointers*/

(function() {

    var BUTTON_PRESS_OFFSET = 0.02;
    var DOWN_TIME_MS = 3000;
    var DISABLED_TIME_MS = 10000;
    var NEGATIVE = -1;
    var SEARCH_RADIUS = 100;
    var NO_ID = "{00000000-0000-0000-0000-000000000000}";
    var GATE_NUMBER_INDEX = 12;

    var YELLOW = {
        red: 237,
        green: 220,
        blue: 26
    };

    var RED = {
        red: 255,
        green: 0,
        blue: 0
    };

    var GREEN = {
        red: 28,
        green: 165,
        blue: 23
    };
<commit_msg>added button function summary<commit_after>//
// gateButton.js
// 
// Edited by <NAME> on 03/07/2018
// from button1.js by <NAME>
// Copyright High Fidelity 2018
//
// Licensed under the Apache 2.0 License
// See accompanying license file or http://apache.org/
//
// Buttons are named according to their type of function: open, close, hold, push in order, or simultaneous.
// The name also includes a number that must match the gate it is meant to control. A button changes color according to 
// its state and can only be pressed while green. Yellow indicates pressed down and red is disabled. A button should not 
// be parented or have children unless it is part of a "press in order" set in which case the child button must be in a 
// yellow state before its parent can be pressed. The last button of the series will not have a parentID and it 
// will open the gate. Buttons that must be held simultaneously have a sister button with the same name that must be in 
// a yellow state in order to open the gate. A "hold" must be held continuously to open the gate.

/* global Pointers*/

(function() {

    var BUTTON_PRESS_OFFSET = 0.02;
    var DOWN_TIME_MS = 3000;
    var DISABLED_TIME_MS = 10000;
    var NEGATIVE = -1;
    var SEARCH_RADIUS = 100;
    var NO_ID = "{00000000-0000-0000-0000-000000000000}";
    var GATE_NUMBER_INDEX = 12;

    var YELLOW = {
        red: 237,
        green: 220,
        blue: 26
    };

    var RED = {
        red: 255,
        green: 0,
        blue: 0
    };

    var GREEN = {
        red: 28,
        green: 165,
        blue: 23
    };

{'fraction_non_alphanumeric': 0.09485325393449597, 'fraction_numerical': 0.07230965546575925, 'mean_word_length': 2.2441379310344827, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '4313796', 'n_tokens_mistral': 886, 'n_tokens_neox': 714, 'n_words': 300}