<commit_before>part of valorzhong_bones;




abstract class Container extends Component {
  Layout _layout;
  Rectangle _bounds;

  Container([this._layout]): super() {
    if (_layout == null) {
      _layout = new EmptyLayout();
    }
  }

  setSize(num width, num height) {
    if (_bounds == null) {
      _bounds = new Rectangle(0, 0, 0, 0);
    }
    _bounds.setTo(0, 0, width, height);
    invalidate();
  }

  num get width {
    _prepareBounds();
    return _bounds.width;
  }

  num get height {
    _prepareBounds();
    return _bounds.height;
  }

  Rectangle get bounds {
    _prepareBounds();
    return _bounds;
  }

  _prepareBounds() {
    if (_bounds == null) {
      setSize(super.width, super.height);
    }<commit_msg>set size to bounds if bounds is empty.<commit_after>part of valorzhong_bones;




abstract class Container extends Component {
  Layout _layout;
  Rectangle _bounds;

  Container([this._layout]): super() {
    if (_layout == null) {
      _layout = new EmptyLayout();
    }
  }

  setSize(num width, num height) {
    if (_bounds == null) {
      _bounds = new Rectangle(0, 0, 0, 0);
    }
    _bounds.setTo(0, 0, width, height);
    invalidate();
  }

  num get width {
    _prepareBounds();
    return _bounds.width;
  }

  num get height {
    _prepareBounds();
    return _bounds.height;
  }

  Rectangle get bounds {
    _prepareBounds();
    return _bounds;
  }

  _prepareBounds() {
    if (_bounds == null || _bounds.isEmpty) {
      setSize(super.width, super.height);
    }
{'fraction_non_alphanumeric': 0.12089356110381078, 'fraction_numerical': 0.00788436268068331, 'mean_word_length': 2.6966019417475726, 'pattern_counts': {'":': 0, '<': 3, '<?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': '102278', 'n_tokens_mistral': 519, 'n_tokens_neox': 485, 'n_words': 132}