<commit_before>actions
editAction
	"only one fixed constraint managed for now"
	| dependency versionString |
	dependency := self selectedPackage.
	versionString := UIManager default
		request: 'Version for this dependency (or empty if no constraint)'
		initialAnswer: (dependency constraints 
			ifEmpty: [ '' ]
			ifNotEmpty: [ :constraints | constraints first asString allButFirst ])
		title: 'Constraints of ' , dependency targetedPackage , ' package'.
	versionString ifNil: [ ^ self ].
	ongoingPackageVersion
		updateDependency: (CGOPackageDependency 
			on: dependency packageName 
			for: dependency dependent
			withConstraints: { CGOFixedVersionConstraint with: versionString }).
	self refreshUI<commit_msg>manage empty versionString in dependency<commit_after>actions
editAction
	"only one fixed constraint managed for now"
	| dependency versionString |
	dependency := self selectedPackage.
	versionString := UIManager default
		request: 'Version for this dependency (or empty if no constraint)'
		initialAnswer: (dependency constraints 
			ifEmpty: [ '' ]
			ifNotEmpty: [ :constraints | constraints first asString allButFirst ])
		title: 'Constraints of ' , dependency targetedPackage , ' package'.
	versionString ifNil: [ ^ self ].
	versionString ifEmpty: [ ^ self ].

	ongoingPackageVersion
		updateDependency: (CGOPackageDependency 
			on: dependency packageName 
			for: dependency dependent
			withConstraints: { CGOFixedVersionConstraint with: versionString }).
	self refreshUI
{'fraction_non_alphanumeric': 0.07429718875502007, 'fraction_numerical': 0.0, 'mean_word_length': 5.0772357723577235, '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': '7255112', 'n_tokens_mistral': 416, 'n_tokens_neox': 379, 'n_words': 128}