<commit_before>queries
selectScope: anEnvironmentScopeClass of: basisObjects

	| existingScopes preparedBasis scopeType |
	self cleanGarbageInCache.
	scopeType := basisObjects 
		ifEmpty: [ Object ]  
		ifNotEmpty: [ basisObjects anyOne calypsoEnvironmentType ].
	existingScopes := scopeCache at: anEnvironmentScopeClass -> scopeType ifAbsentPut: [ WeakValueDictionary new ].
	
	preparedBasis := anEnvironmentScopeClass prepareBasisFrom: basisObjects.
	^existingScopes 
		at: preparedBasis 
		ifAbsentPut: [anEnvironmentScopeClass of: preparedBasis in: self]<commit_msg>NavigationENvironment scope cache logic reverted. It is again just class of scope -> list of instances<commit_after>queries
selectScope: anEnvironmentScopeClass of: basisObjects

	| existingScopes preparedBasis |
	self cleanGarbageInCache.
	existingScopes := scopeCache at: anEnvironmentScopeClass ifAbsentPut: [ WeakValueDictionary new ].
	preparedBasis := anEnvironmentScopeClass prepareBasisFrom: basisObjects.
	^existingScopes 
		at: preparedBasis 
		ifAbsentPut: [anEnvironmentScopeClass of: preparedBasis in: self]
{'fraction_non_alphanumeric': 0.060550458715596334, 'fraction_numerical': 0.0, 'mean_word_length': 6.576388888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5836285', 'n_tokens_mistral': 318, 'n_tokens_neox': 295, 'n_words': 81}