<commit_before>"
I provide support for marking cards in the home screen as viewed.

I hold a list of status objects for cards and know how to persists it and read it from a STON preference file. For cards that are viewed I return a ${class:GtHomeViewedCardStatus}$. Otherwise if no status was saved for a card I return a status of type ${class:GtHomeNullCardStatus}$.
"
Class {
	#name : #GtNewsItemsStatusRegistry,
	#superclass : #Object,
	#instVars : [
		'registryFileLocator',
		'newsStatusesById'
	],
	#classInstVars : [
		'defaultInstance'
	],
	#category : #'GToolkit-World-News'
}

{ #category : #accessing }
GtNewsItemsStatusRegistry class >> defaultInstance [
	^ defaultInstance ifNil: [  
		self initializeDefaultVersion.
		defaultInstance ]
]

{ #category : #accessing }
GtNewsItemsStatusRegistry class >> defaultPreferences [<commit_msg>Fix missing references in class comment of GtNewsItemsStatusRegistry<commit_after>"
I provide support for marking cards in the home screen as viewed.

I hold a list of status objects for cards and know how to persists it and read it from a STON preference file. For cards that are viewed I return a ${class:GtNewsItemViewedStatus}$. Otherwise if no status was saved for a card I return a status of type ${class:GtNewsItemNullStatus}$.
"
Class {
	#name : #GtNewsItemsStatusRegistry,
	#superclass : #Object,
	#instVars : [
		'registryFileLocator',
		'newsStatusesById'
	],
	#classInstVars : [
		'defaultInstance'
	],
	#category : #'GToolkit-World-News'
}

{ #category : #accessing }
GtNewsItemsStatusRegistry class >> defaultInstance [
	^ defaultInstance ifNil: [  
		self initializeDefaultVersion.
		defaultInstance ]
]

{ #category : #accessing }
GtNewsItemsStatusRegistry class >> defaultPreferences [
{'fraction_non_alphanumeric': 0.08576329331046312, 'fraction_numerical': 0.0, 'mean_word_length': 4.9523809523809526, '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': '2491134', 'n_tokens_mistral': 523, 'n_tokens_neox': 515, 'n_words': 183}