<commit_before>/// base class for BaseView and Layout
Item {
	property int count; 					///< number of children elements
	property bool trace;					///< output debug info in logs: layouts, item positioning

	property int spacing;					///< spacing between adjanced items, pixels
	property int currentIndex;				///< index of current focused item
	property int contentWidth;				///< content width
	property int contentHeight;				///< content height
	property bool keyNavigationWraps;		///< key navigation wraps from first to last and vise versa
	property bool handleNavigationKeys;		///< handle navigation keys, move focus
	property int layoutDelay: -1;			///< <0 - end of the tick (default), 0 - request animation frame, >0 - delay in ms
	property int prerenderDelay: -1;		///< <0 - end of the tick (default), 0 - request animation frame, >0 - delay in ms
	property bool offlineLayout;			///< layout delegates even if view's invisible
	property lazy padding: BaseLayoutContentPadding { } //< padding for content

	///@private
	constructor: {
		this.count = 0
		this._padding = {}
	}

	/// @private
	function _attach() { }

	///@private
	function _scheduleLayout() {
		if (!this.recursiveVisible && !this.offlineLayout)
			return

		if (this.prerenderDelay >= 0 && this.layoutDelay >= 0 && this.layoutDelay < this.prerenderDelay) {
			this._context.delayedAction('layout', this, this._doLayoutNP, this.layoutDelay)
			this._context.delayedAction('prerender', this, this._doLayout, this.prerenderDelay)
		} else
			this._context.delayedAction('layout', this, this._doLayout, this.layoutDelay)
	}

	///@private
	function _doLayout() {
		this._attach()
		this._processUpdates()
		this._layout()
	}<commit_msg>remove redundant assignment<commit_after>/// base class for BaseView and Layout
Item {
	property int count; 					///< number of children elements
	property bool trace;					///< output debug info in logs: layouts, item positioning

	property int spacing;					///< spacing between adjanced items, pixels
	property int currentIndex;				///< index of current focused item
	property int contentWidth;				///< content width
	property int contentHeight;				///< content height
	property bool keyNavigationWraps;		///< key navigation wraps from first to last and vise versa
	property bool handleNavigationKeys;		///< handle navigation keys, move focus
	property int layoutDelay: -1;			///< <0 - end of the tick (default), 0 - request animation frame, >0 - delay in ms
	property int prerenderDelay: -1;		///< <0 - end of the tick (default), 0 - request animation frame, >0 - delay in ms
	property bool offlineLayout;			///< layout delegates even if view's invisible
	property lazy padding: BaseLayoutContentPadding { } //< padding for content

	///@private
	constructor: {
		this._padding = {}
	}

	/// @private
	function _attach() { }

	///@private
	function _scheduleLayout() {
		if (!this.recursiveVisible && !this.offlineLayout)
			return

		if (this.prerenderDelay >= 0 && this.layoutDelay >= 0 && this.layoutDelay < this.prerenderDelay) {
			this._context.delayedAction('layout', this, this._doLayoutNP, this.layoutDelay)
			this._context.delayedAction('prerender', this, this._doLayout, this.prerenderDelay)
		} else
			this._context.delayedAction('layout', this, this._doLayout, this.layoutDelay)
	}

	///@private
	function _doLayout() {
		this._attach()
		this._processUpdates()
		this._layout()
	}
{'fraction_non_alphanumeric': 0.11650485436893204, 'fraction_numerical': 0.00617828773168579, 'mean_word_length': 3.576043068640646, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 11, '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': '5588220', 'n_tokens_mistral': 1084, 'n_tokens_neox': 966, 'n_words': 332}