<commit_before>navigation
selectClass: aClass
	| foundItems classDefinition |
	self changeNavigationStateBy: [ 
		self switchToMetaLevelScope: aClass metaLevelScope.	
		foundItems := classView dataSource findItemsWith: { aClass instanceSide }.
		foundItems ifNotEmpty: [ 
			"we want ensure that selected package is the package of found class.
			If it is not then we will select required package"
			classDefinition := foundItems anyOne getProperty: ClyClassDefinitionProperty.
			(self isPackageSelected: classDefinition definitionPackage) 
				ifTrue: [ ^self selectedClasses selectItems: foundItems ]].
		
		self selectPackage: aClass package.
		self selectedPackages isEmpty ifTrue: [ ^self ].<commit_msg>select existing tag of class during #selectClass:<commit_after>navigation
selectClass: aClass
	| foundItems classDefinition |
	self changeNavigationStateBy: [ 
		self switchToMetaLevelScope: aClass metaLevelScope.	
		foundItems := classView dataSource findItemsWith: { aClass instanceSide }.
		foundItems ifNotEmpty: [ 
			"we want ensure that selected package is the package of found class.
			If it is not then we will select required package"
			classDefinition := foundItems anyOne getProperty: ClyClassDefinitionProperty.
			(self isPackageSelected: classDefinition definitionPackage) 
				ifTrue: [ ^self selectedClasses selectItems: foundItems ]].
		
		aClass tags 
			ifEmpty: [ self selectPackage: aClass package]
			ifNotEmpty: [:tags | self selectPackage: aClass package atClassTag: tags anyOne].
		self selectedPackages isEmpty ifTrue: [ ^self ].
{'fraction_non_alphanumeric': 0.061224489795918366, 'fraction_numerical': 0.0, 'mean_word_length': 4.988549618320611, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7663916', 'n_tokens_mistral': 453, 'n_tokens_neox': 406, 'n_words': 146}