<commit_before>"
RTCircularTreeMapExample new installTitle: 'FileSystem' 
		code:
		'

| b color |
b := RTCircularTreeMapBuilder new.
color := RTScale linear 
	domain: { 0. 12000.};
	range: { Color gray. Color red }.
b shape
	color: Color transparent;
	borderColor: Color black;
	if: [ :f | f isFile ] color: [ :f | color scale: f size sqrt ].
b 
	leafWeight: [:f | f size sqrt ]; 
	explore: FileSystem disk workingDirectory
	nesting: #directories
	leaves: #files.
b build.
^ b view'
	
"
Class {
	#name : #RTCircularTreeMapExample,
	#superclass : #RTAbstractExample,
	#category : #'Roassal2-Builder-CircularMap'
}

{ #category : #sources }
RTCircularTreeMapExample >> example01 [

| b inst |
	b := RTCircularTreeMapBuilder new.
	b shape
		color: Color transparent.
	inst := nil.
	b
		baseradius: 200;
		weight: #tally.
	b explore: (MessageTally new
		spyEvery: 1
		on: [ inst := Object browse]; yourself)
		using: #children.
	inst close.
	
	b build.
	^ b view
]

{ #category : #icons }
RTCircularTreeMapExample >> example01Icon [
	^ 'iVBORw0KGgoAAAANSUhEUgAAAGQAAABeCAYAAADVA7GfAAAOE0lEQVR4XuWdZa/bShCG8+tb
terngtSqqlqVmZmZmZmZGTZXj3Xeo7lz1smakpx4pMiJY9idd3jX6063234aJeq0nwXtB6T9
1H5A2g9I+6n9gLQfkKHQjx8/ws2bN8OBAwe6vT4nTpwIL168CO0HpEb6/Plzxvjdu3dn28uX
L4c/f/4UYvLbt2/DwYMHw759+7LPtWvXQvsBKUB37twJe/fuBYCANjRxDzSMexw5ciT8/Pkz
tB+QiCZMaEGA7H5J9+rVq7P/J0xSth+GHjp0yO7vbtiwIWzfvj37/9GjR32Zff/+/bBr165w
5cqV0HpAXr58Gfbs2RNgCr8BA+auX78+Y2gdGoIv2bp1awbYmzdvel4PrTl16lRoHSBfv37N
pPLhw4dZ548dOxY2btwYbt++3Sgz3r9/H/bv3x82b94ceoGDkFy9ejW0ApDDhw9nZubTp08B
6T158mR49erVwDt/9OjRcOnSpfDgwYPovdmPSZTQjB0gz58/D2fOnAlfvnzJzAImaRRsNg7+
9OnTuYy/ceNGILobK0AA4OzZsxkI+IhRDDfPnz8fzp0797+gQvT69evMB7Gd1oD8+vUrAwEw
MBH9nOooEP4sL1fhv6b9XKfJCEpg4DOmU7ZM1Id/Q6D8f/fu3Ws0EmsEEOL/48ePZ4DkOc1R
p3///mWCFGv/48ePs/5NC0B+//4diKQIL/nenea0ZcuWaIJJnayJ0LhTt1SR1AFGd4yI8Dem<commit_msg>fixed an example in RTCircularTreeMapExample<commit_after>"
RTCircularTreeMapExample new installTitle: 'FileSystem' 
		code:
		'

| b color |
b := RTCircularTreeMapBuilder new.
color := RTScale linear 
	domain: { 0. 12000.};
	range: { Color gray. Color red }.
b shape
	color: Color transparent;
	borderColor: Color black;
	if: [ :f | f isFile ] color: [ :f | color scale: f size sqrt ].
b 
	leafWeight: [:f | f size sqrt ]; 
	explore: FileSystem disk workingDirectory
	nesting: #directories
	leaves: #files.
b build.
^ b view'
	
"
Class {
	#name : #RTCircularTreeMapExample,
	#superclass : #RTAbstractExample,
	#category : #'Roassal2-Builder-CircularMap'
}

{ #category : #sources }
RTCircularTreeMapExample >> example01 [

| b |
	b := RTCircularTreeMapBuilder new.
	b shape
		color: Color transparent.
	
	b
		baseradius: 200;
		weight: #tally.
	b explore: (MessageTally new
		spyEvery: 1
		on: [SystemNavigation default allSendersOf: #copy ]; 
		yourself)
		using: #children.
	
	b build.
	^ b view
]

{ #category : #icons }
RTCircularTreeMapExample >> example01Icon [
	^ '<KEY>
{'fraction_non_alphanumeric': 0.10047846889952153, 'fraction_numerical': 0.06254272043745727, 'mean_word_length': 5.175105485232067, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 12, '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': '817077', 'n_tokens_mistral': 1489, 'n_tokens_neox': 1348, 'n_words': 231}