<commit_before>menu
canCompareToCurrent

	^ changes selectedItems size = 1
		and: [ changes selectedItem isMethodDeclaration ]<commit_msg>Does not enable the "Comapre to current" menu item unless there is a  current method  with which to compare.<commit_after>menu
canCompareToCurrent

	| aMethodDeclaration |
	(changes selectedItems size = 1) ifFalse: [ ^ false ].
	((aMethodDeclaration := changes selectedItem) isMethodDeclaration) ifFalse: [  ^ false ].
	
	( aMethodDeclaration existsBehavior) ifFalse: [ ^ false ].
	^ aMethodDeclaration targetClass includesSelector: aMethodDeclaration methodSelector
	
{'fraction_non_alphanumeric': 0.07260726072607261, 'fraction_numerical': 0.0033003300330033004, 'mean_word_length': 5.670329670329671, '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': '1094457', 'n_tokens_mistral': 165, 'n_tokens_neox': 156, 'n_words': 52}