<commit_before>"
We create a class `K2Automaton` with 4 instance variables `initialState`, `finalState`, `states` and `transitions` representing respectively the initial state, the possible final states, the states and the transitions of the automaton
"
Class {
	#name : #K2Automaton,
	#superclass : #Object,
	#instVars : [
		'initialState',
		'finalStates',
		'states',
		'transitions'
	],
	#category : #'K2-Automata'
}

{ #category : #accessing }
K2Automaton >> finalStates [
	^finalStates 
]

{ #category : #accessing }
K2Automaton >> initialState [ 
	^initialState 
]

{ #category : #accessing }
K2Automaton >> initialize [ 
states := OrderedCollection new
]

{ #category : #accessing }
K2Automaton >> states [ 
^states
]

{ #category : #accessing }
K2Automaton >> transitions [<commit_msg>Redefining `initialize` methods<commit_after>"
We create a class `K2Automaton` with 4 instance variables `initialState`, `finalState`, `states` and `transitions` representing respectively the initial state, the possible final states, the states and the transitions of the automaton
"
Class {
	#name : #K2Automaton,
	#superclass : #Object,
	#instVars : [
		'initialState',
		'finalStates',
		'states',
		'transitions'
	],
	#category : #'K2-Automata'
}

{ #category : #accessing }
K2Automaton >> finalStates [
	^finalStates 
]

{ #category : #accessing }
K2Automaton >> initialState [ 
	^initialState 
]

{ #category : #accessing }
K2Automaton >> initialize [ 
states := OrderedCollection new.
transitions := OrderedCollection new.
initialState := OrderedCollection new.
finalStates := OrderedCollection new
]

{ #category : #accessing }
K2Automaton >> states [ 
^states
]

{ #category : #accessing }
K2Automaton >> transitions [
{'fraction_non_alphanumeric': 0.12260313771063336, 'fraction_numerical': 0.010459035444509006, 'mean_word_length': 5.020979020979021, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '6943288', 'n_tokens_mistral': 558, 'n_tokens_neox': 548, 'n_words': 151}