<commit_before>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2008 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package spark.layout
{
import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.geom.Point;
import flash.geom.Rectangle;

import mx.containers.utilityClasses.Flex;
import mx.core.ILayoutElement;
import mx.events.PropertyChangeEvent;

import spark.components.supportClasses.GroupBase;
import spark.layout.supportClasses.LayoutBase;
import spark.layout.supportClasses.LayoutElementHelper;
import spark.layout.supportClasses.LinearLayoutVector;


/**
 *  The VerticalLayout arranges the layout elements in a vertical sequence,
 *  top to bottom, with optional gaps between the elements and optional padding
 *  around the sequence of elements.
 *
 *  <p>During measure(), the default size of the container is calculated by
 *  accumulating the preferred sizes of the elements, including gaps and padding.
 *  When requestedRowCount is set, only the space for that many elements
 *  will be measured, starting from the first element.</p>
 *
 *  <p>During updateDisplayList(), the height of each element is calculated
 *  according to the following rules, listed in their respective order of
 *  precedence (element's minimum height and maximum height are always respected):
 *  <ul>
 *    <li>If variableRowHeight is false, then set the element's height to the
 *    value of the rowHeight property.</li>
 *
 *    <li>If the element's percentHeight is set, then calculate the element's
 *    height by distributing the available container height between all
 *    elements with percentHeight setting. The available container height
 *    is equal to the container height minus the gaps, the padding and the
 *    space occupied by the rest of the elements. The element's precentHeight
 *    property is ignored when the layout is virtualized.</li>
 *<commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2008 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package spark.layouts
{
import flash.display.DisplayObject;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.geom.Point;
import flash.geom.Rectangle;

import mx.containers.utilityClasses.Flex;
import mx.core.ILayoutElement;
import mx.events.PropertyChangeEvent;

import spark.components.supportClasses.GroupBase;
import spark.layouts.supportClasses.LayoutBase;
import spark.layouts.supportClasses.LayoutElementHelper;
import spark.layouts.supportClasses.LinearLayoutVector;


/**
 *  The VerticalLayout arranges the layout elements in a vertical sequence,
 *  top to bottom, with optional gaps between the elements and optional padding
 *  around the sequence of elements.
 *
 *  <p>During measure(), the default size of the container is calculated by
 *  accumulating the preferred sizes of the elements, including gaps and padding.
 *  When requestedRowCount is set, only the space for that many elements
 *  will be measured, starting from the first element.</p>
 *
 *  <p>During updateDisplayList(), the height of each element is calculated
 *  according to the following rules, listed in their respective order of
 *  precedence (element's minimum height and maximum height are always respected):
 *  <ul>
 *    <li>If variableRowHeight is false, then set the element's height to the
 *    value of the rowHeight property.</li>
 *
 *    <li>If the element's percentHeight is set, then calculate the element's
 *    height by distributing the available container height between all
 *    elements with percentHeight setting. The available container height
 *    is equal to the container height minus the gaps, the padding and the
 *    space occupied by the rest of the elements. The element's precentHeight
 *    property is ignored when the layout is virtualized.</li>
 *
{'fraction_non_alphanumeric': 0.13277643438118267, 'fraction_numerical': 0.0017586282699494395, 'mean_word_length': 3.0770609318996414, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '4152320', 'n_tokens_mistral': 1100, 'n_tokens_neox': 1054, 'n_words': 475}