<commit_before>"
I am UI manager for a headless setup.
I block all UI manager API that uses Morphs and will trow an error instead.
"
Class {
	#name : #CommandLineUIManager,
	#superclass : #UIManager,
	#instVars : [
		'doNotQuitOnRestart',
		'uiManager'
	],
	#classVars : [
		'SnapshotErrorImage'
	],
	#category : #UIManager
}

{ #category : #testing }
CommandLineUIManager class >> isValidForCurrentSystemConfiguration [

	^ Smalltalk isHeadless and: [ Smalltalk isInteractive ]
]

{ #category : #'instance creation' }
CommandLineUIManager class >> replacing: aUIManager [

	"Replace the current UI manager with instance of myself. 
	Keep a backup reference to old manager, and then restore it, when image will be interactive again. "
	
	^ self new replacing: aUIManager
]

{ #category : #accessing }<commit_msg>Trigger CI<commit_after>"
I am UI manager for a headless setup.
I block all UI manager API that uses Morphs and will trow an error instead.
" 
Class {
	#name : #CommandLineUIManager,
	#superclass : #UIManager,
	#instVars : [
		'doNotQuitOnRestart',
		'uiManager'
	],
	#classVars : [
		'SnapshotErrorImage'
	],
	#category : #UIManager
}

{ #category : #testing }
CommandLineUIManager class >> isValidForCurrentSystemConfiguration [

	^ Smalltalk isHeadless and: [ Smalltalk isInteractive ]
]

{ #category : #'instance creation' }
CommandLineUIManager class >> replacing: aUIManager [

	"Replace the current UI manager with instance of myself. 
	Keep a backup reference to old manager, and then restore it, when image will be interactive again. "
	
	^ self new replacing: aUIManager
]

{ #category : #accessing }
{'fraction_non_alphanumeric': 0.09247842170160296, 'fraction_numerical': 0.0, 'mean_word_length': 4.539249146757679, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4659091', 'n_tokens_mistral': 508, 'n_tokens_neox': 520, 'n_words': 171}