<commit_before>layout
measure: anElement with: anExtentSpec
	
	anElement childrenDo: [ :each |
		self
			measureChild: each
			parentSpec: anExtentSpec.
		each position: each measuredBounds origin.
		each size: each measuredBounds extent ].

	self applyOn: anElement managedChildren.
	self fit: anElement with: anExtentSpec<commit_msg>Improved #measure: anElement with: anExtentSpec to set extent after measurement<commit_after>layout
measure: anElement with: anExtentSpec
	
	anElement childrenDo: [ :each |
		self
			measureChild: each
			parentSpec: anExtentSpec.
		each extent: each measuredExtent ].

	self applyOn: anElement managedChildren.
	self fit: anElement with: anExtentSpec
{'fraction_non_alphanumeric': 0.06268221574344024, 'fraction_numerical': 0.0, 'mean_word_length': 5.079646017699115, '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': '5047532', 'n_tokens_mistral': 218, 'n_tokens_neox': 197, 'n_words': 66}