<commit_before>private
restoreSelectedTools: selectedTools
	| mainTool extraTools |
	tools ifEmpty: [ ^self ].
	mainTool := self selectMainTool.
	
	extraTools := selectedTools reject: [ :each | each class = mainTool class ].
	extraTools size = selectedTools size ifTrue: [ extraTools := #() ]. "if main tool not existed before then we reset previously selected extra tools"
	(tools copyWithout: mainTool) do: [ :currentTool | 
		"Generally if previously selected extra tab is found in new tools then it should be selected.<commit_msg>tabs auto activation is fixed again: - restoreSelectedTools: should do nothing when current selection is same<commit_after>private
restoreSelectedTools: selectedTools
	| mainTool extraTools |
	tools ifEmpty: [ ^self ].
	selectedTools = self selectedTools ifTrue: [ ^self ].
	mainTool := self selectMainTool.
	
	extraTools := selectedTools reject: [ :each | each class = mainTool class ].
	extraTools size = selectedTools size ifTrue: [ extraTools := #() ]. "if main tool not existed before then we reset previously selected extra tools"
	(tools copyWithout: mainTool) do: [ :currentTool | 
		"Generally if previously selected extra tab is found in new tools then it should be selected.
{'fraction_non_alphanumeric': 0.07957342083675144, 'fraction_numerical': 0.0, 'mean_word_length': 4.837320574162679, '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': '1697127', 'n_tokens_mistral': 321, 'n_tokens_neox': 310, 'n_words': 136}