<commit_before>// Copyright (C) 2018 O.S. Systems Sofware LTDA
//
// SPDX-License-Identifier: MPL-2.0
//

//! Controls the state machine of the system
//!
//! It supports following states, and transitions, as shown in the
//! below diagram:
//!
//! ```text
//!   .---------------.
//!   |               v
//! Idle -> Poll -> Probe -> Download -> Install -> Reboot
//!   ^      ^        '          '          '
//!   '      '        '          '          '
//!   '      `--------'          '          '
//!   `---------------'          '          '
//!   `--------------------------'          '
//!   `-------------------------------------'
//! ```

use failure::Error;
use firmware::Metadata;
use runtime_settings::RuntimeSettings;
use settings::Settings;

#[macro_use]
mod macros;

mod idle;
use self::idle::Idle;<commit_msg>states: Update diagram<commit_after>// Copyright (C) 2018 O.S. Systems Sofware LTDA
//
// SPDX-License-Identifier: MPL-2.0
//

//! Controls the state machine of the system
//!
//! It supports following states, and transitions, as shown in the
//! below diagram:
//!
//! ```text
//!   .--------------.   .---------.----> Error ------------.
//!   |              v  /         /         ^               '
//! Idle -> Poll -> Probe -> Download -> Install -> Reboot  |
//!   ^      ^        '          '          '               |
//!   '      '        '          '          '               |
//!   '      `--------'          '          '               |
//!   `---------------'          '          '               |
//!   `--------------------------'          '               |
//!   `-------------------------------------'               |
//!   `-----------------------------------------------------'
//! ```

use failure::Error;
use firmware::Metadata;
use runtime_settings::RuntimeSettings;
use settings::Settings;

#[macro_use]
mod macros;

mod idle;
use self::idle::Idle;
{'fraction_non_alphanumeric': 0.3013698630136986, 'fraction_numerical': 0.006322444678609062, 'mean_word_length': 0.8727810650887574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2177998', 'n_tokens_mistral': 536, 'n_tokens_neox': 483, 'n_words': 106}