<commit_before>//
//  StateMachine.swift
//  TinyCore
//
//  Created by <NAME> on 20/01/2018.
//  Copyright © 2018 TinyWorld. All rights reserved.
//

// MARK: - StateMachine

public final class StateMachine<L: AnyObject> {

    public let eventManger = EventManager<StateMachineEvent, L>()

    public private(set) var currentState: State {

        didSet { eventManger.emit(.updateCurrentState) }

    }

    public init(initialState: State) { self.currentState = initialState }

}

extension StateMachine {

    func enter(_ state: State) throws {
<commit_msg>fix access control for state machine<commit_after>//
//  StateMachine.swift
//  TinyCore
//
//  Created by <NAME> on 20/01/2018.
//  Copyright © 2018 TinyWorld. All rights reserved.
//

// MARK: - StateMachine

public final class StateMachine<L: AnyObject> {

    public let eventManger = EventManager<StateMachineEvent, L>()

    public private(set) var currentState: State {

        didSet { eventManger.emit(.updateCurrentState) }

    }

    public init(initialState: State) { self.currentState = initialState }

}

public extension StateMachine {

    public final func enter(_ state: State) throws {

{'fraction_non_alphanumeric': 0.10930828351836037, 'fraction_numerical': 0.02049530315969257, 'mean_word_length': 3.2310469314079424, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2864090', 'n_tokens_mistral': 379, 'n_tokens_neox': 338, 'n_words': 100}