<commit_before>package jive;

import flash.system.Capabilities;

class LookAndFeelHelper {
    public static var maxDimension = Math.max(Capabilities.screenResolutionX, Capabilities.screenResolutionY);
    public static var minDimension = Math.min(Capabilities.screenResolutionX, Capabilities.screenResolutionY);
    public static var scale: Float = Math.floor(Math.min(LookAndFeelHelper.minDimension * 0.350, 0.350 * 2/3 * LookAndFeelHelper.maxDimension))/112;
}<commit_msg>Calculate the app dimensions when an app started.<commit_after>package jive;

import flash.system.Capabilities;

class LookAndFeelHelper {
    public static var maxDimension(get, null): Float;
    private static var _maxDimension: Float = -1.0;
    private static function get_maxDimension(): Float {
        if (_maxDimension < 0) {
            _maxDimension = Math.max(Capabilities.screenResolutionX, Capabilities.screenResolutionY);
        }
        return _maxDimension;
    }

    public static var minDimension(get, null): Float;
    private static var _minDimension: Float = -1.1;
    private static function get_minDimension(): Float {
        if (_minDimension < 0) {
            _minDimension = Math.min(Capabilities.screenResolutionX, Capabilities.screenResolutionY);
        }
        return _minDimension;
    }

    public static var scale(get, null): Float;
    private static var _scale: Float = -1.1;
    private static function get_scale(): Float {
        if (_scale < 0) {
            _scale = Math.floor(Math.min(LookAndFeelHelper.minDimension * 0.350, 0.350 * 2/3 * LookAndFeelHelper.maxDimension))/112;
        }
        return _scale;
    }
}
{'fraction_non_alphanumeric': 0.09196102314250913, 'fraction_numerical': 0.021315468940316686, 'mean_word_length': 3.5013698630136987, 'pattern_counts': {'":': 0, '<': 6, '<?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': '5299001', 'n_tokens_mistral': 492, 'n_tokens_neox': 482, 'n_words': 119}