<commit_before>Class {
	#name : #BrPager,
	#superclass : #BlElement,
	#traits : 'TBrLayoutResizable',
	#classTraits : 'TBrLayoutResizable classTrait',
	#category : #'Brick-Pager - UI'
}

{ #category : #'api - adding / removing' }
BrPager >> addPage: aContentElement [	
	self viewModel addPage: aContentElement viewModel
]

{ #category : #testing }
BrPager >> hasPageAfter: aPageElement [
	^ self viewModel hasPageAfter: aPageElement viewModel
]

{ #category : #initialization }
BrPager >> initialize [
	super initialize.
	self initializeViewModel.
	self initializeLook.
	self initializeLayout
]

{ #category : #initialization }
BrPager >> initializeLayout [
	self layout: BlLinearLayout vertical
]

{ #category : #initialization }
BrPager >> initializeLook [
	self background: BrGlamorousColors backdropColor.
	self aptitude: BrPagerScrollbarAptitude new + BrScrollablePagerAptitude new
]

{ #category : #initialization }
BrPager >> initializeViewModel [
	self viewModel: self newPagerModel
]<commit_msg> Rename Look to Aptitude: initializeLook<commit_after>Class {
	#name : #BrPager,
	#superclass : #BlElement,
	#traits : 'TBrLayoutResizable',
	#classTraits : 'TBrLayoutResizable classTrait',
	#category : #'Brick-Pager - UI'
}

{ #category : #'api - adding / removing' }
BrPager >> addPage: aContentElement [	
	self viewModel addPage: aContentElement viewModel
]

{ #category : #testing }
BrPager >> hasPageAfter: aPageElement [
	^ self viewModel hasPageAfter: aPageElement viewModel
]

{ #category : #initialization }
BrPager >> initialize [
	super initialize.
	self initializeViewModel.
	self initializeAptitude.
	self initializeLayout
]

{ #category : #initialization }
BrPager >> initializeAptitude [
	self background: BrGlamorousColors backdropColor.
	self aptitude: BrPagerScrollbarAptitude new + BrScrollablePagerAptitude new
]

{ #category : #initialization }
BrPager >> initializeLayout [
	self layout: BlLinearLayout vertical
]

{ #category : #initialization }
BrPager >> initializeViewModel [
	self viewModel: self newPagerModel
]
{'fraction_non_alphanumeric': 0.10034263338228096, 'fraction_numerical': 0.0, 'mean_word_length': 5.509554140127388, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '784813', 'n_tokens_mistral': 655, 'n_tokens_neox': 646, 'n_words': 159}