<commit_before>/**
 * Copyright (c) 2014-2016 by the respective copyright holders.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.openhab.binding.zwave.internal.protocol.initialization;

/**
 * Node Stage Enumeration for node initialisation sequence.
 * The initialisation will be performed in the order of the enum definitions.
 *
 * @author <NAME>
 */
public enum ZWaveNodeInitStage {
    EMPTYNODE(true),
    PROTOINFO(true),
    INIT_NEIGHBORS(true),
    FAILED_CHECK(true),
    WAIT(true),
    PING(true),
    DETAILS(true),

    // States below form the main part of the initialisation
    // For newly included devices, we start here
    INCLUSION_START(true),
    IDENTIFY_NODE(true),
    SECURITY_REPORT(true),
    MANUFACTURER(true),
    APP_VERSION(true),
    DISCOVERY_COMPLETE(true),
    VERSION(true),
    ENDPOINTS(true),
    UPDATE_DATABASE(true),
    STATIC_VALUES(true),
    ASSOCIATIONS(false),
    SET_WAKEUP(false),
    SET_ASSOCIATION(false),
    DELETE_SUC_ROUTES(false),
    SUC_ROUTE(false),
    STATIC_END(false),

    // States below are not restored from the configuration files
    SESSION_START(false),
    GET_CONFIGURATION(false),
    DYNAMIC_VALUES(false),
    DYNAMIC_END(false),
<commit_msg>ZWave initialisation order to improve secure inclusion (#931)<commit_after>/**
 * Copyright (c) 2014-2016 by the respective copyright holders.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 */
package org.openhab.binding.zwave.internal.protocol.initialization;

/**
 * Node Stage Enumeration for node initialisation sequence.
 * The initialisation will be performed in the order of the enum definitions.
 *
 * @author <NAME>
 */
public enum ZWaveNodeInitStage {
    EMPTYNODE(true),
    PROTOINFO(true),
    INIT_NEIGHBORS(true),
    FAILED_CHECK(true),
    WAIT(true),
    PING(true),
    DETAILS(true),

    // States below form the main part of the initialisation
    // For newly included devices, we start here
    INCLUSION_START(true),
    IDENTIFY_NODE(true),
    MANUFACTURER(true),
    SECURITY_REPORT(true),
    APP_VERSION(true),
    DISCOVERY_COMPLETE(true),
    VERSION(true),
    ENDPOINTS(true),
    UPDATE_DATABASE(true),
    STATIC_VALUES(true),
    ASSOCIATIONS(false),
    SET_WAKEUP(false),
    SET_ASSOCIATION(false),
    DELETE_SUC_ROUTES(false),
    SUC_ROUTE(false),
    STATIC_END(false),

    // States below are not restored from the configuration files
    SESSION_START(false),
    GET_CONFIGURATION(false),
    DYNAMIC_VALUES(false),
    DYNAMIC_END(false),

{'fraction_non_alphanumeric': 0.09638964577656675, 'fraction_numerical': 0.009196185286103543, 'mean_word_length': 3.8465346534653464, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4561760', 'n_tokens_mistral': 970, 'n_tokens_neox': 901, 'n_words': 241}