<commit_before>class TestChildrenLayout < MK::Layout

  def layout
    add ChildLabelLayout
    add ChildButtonLayout, :child_button
    add ChildImageLayout, :child_image
  end

end


class ChildLabelLayout < MK::Layout

  def layout
    root UILabel
  end

end


class ChildButtonLayout < MK::Layout

  def layout
    root UIButton
  end

end


class ChildImageLayout < MK::Layout

  def layout
    root UIImageView
  end

end<commit_msg>update child layout specs to test for reapply<commit_after>class TestChildrenLayout < MK::Layout

  def layout
    add UILabel, :label
    add ChildLabelLayout
    add ChildButtonLayout, :child_button
    add ChildImageLayout, :child_image
  end

  def label_style
    initial do
      text 'root foo'
    end
    reapply do
      text 'root reapplied'
    end
  end

end


class ChildLabelLayout < MK::Layout

  def layout
    root UILabel, :label
  end

  def label_style
    initial do
      text 'foo'
    end
    reapply do
      text 'reapplied'
    end
  end

end


class ChildButtonLayout < MK::Layout

  def layout
    root UIButton, :button
  end

  def button_style
    initial do
      title 'foo'
    end
    reapply do
      title 'reapplied'
    end
  end

end


class ChildImageLayout < MK::Layout

  def layout
    root UIImageView, :image
  end

  def blank_image
    @blank_image ||= begin
      UIGraphicsBeginImageContextWithOptions([10, 10], false, UIScreen.mainScreen.scale)
      blank_image = UIGraphicsGetImageFromCurrentImageContext()
      UIGraphicsEndImageContext()
      blank_image
    end
  end

  def reapplied_image
    @reapplied_image ||= begin
      UIGraphicsBeginImageContextWithOptions([11, 11], false, UIScreen.mainScreen.scale)
      reapplied_image = UIGraphicsGetImageFromCurrentImageContext()
      UIGraphicsEndImageContext()
      reapplied_image
    end
  end

  def image_style
    initial do
      image blank_image
    end
    reapply do
      image reapplied_image
    end
  end

end
{'fraction_non_alphanumeric': 0.04757085020242915, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 2.861328125, 'pattern_counts': {'":': 0, '<': 11, '<?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': '2347291', 'n_tokens_mistral': 646, 'n_tokens_neox': 602, 'n_words': 178}