<commit_before>import UIKit

class VerticallySplitViewController: UIViewController {
    @IBOutlet private weak var topView: UIView!
    @IBOutlet private weak var bottomView: UIView!

    private let topViewController: UIViewController & Themeable
    private let bottomViewController: UIViewController & Themeable

    private var theme = Theme.standard

    init(topViewController: UIViewController & Themeable, bottomViewController: UIViewController & Themeable) {
        self.topViewController = topViewController
        self.bottomViewController = bottomViewController
        super.init(nibName: "VerticallySplitViewController", bundle: nil)
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        wmf_add(childController: topViewController, andConstrainToEdgesOfContainerView: topView)
        wmf_add(childController: bottomViewController, andConstrainToEdgesOfContainerView: bottomView)
        apply(theme: theme)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

extension VerticallySplitViewController: Themeable {
    func apply(theme: Theme) {
        self.theme = theme
        guard viewIfLoaded != nil else {
            return
        }
        topViewController.apply(theme: theme)
        bottomViewController.apply(theme: theme)
        view.backgroundColor = bottomViewController.view.backgroundColor
    }
}<commit_msg>fix bg color<commit_after>import UIKit

class VerticallySplitViewController: UIViewController {
    @IBOutlet private weak var topView: UIView!
    @IBOutlet private weak var bottomView: UIView!

    private let topViewController: UIViewController & Themeable
    private let bottomViewController: UIViewController & Themeable

    private var theme = Theme.standard

    init(topViewController: UIViewController & Themeable, bottomViewController: UIViewController & Themeable) {
        self.topViewController = topViewController
        self.bottomViewController = bottomViewController
        super.init(nibName: "VerticallySplitViewController", bundle: nil)
    }

    override func viewDidLoad() {
        super.viewDidLoad()
        wmf_add(childController: topViewController, andConstrainToEdgesOfContainerView: topView)
        wmf_add(childController: bottomViewController, andConstrainToEdgesOfContainerView: bottomView)
        apply(theme: theme)
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

extension VerticallySplitViewController: Themeable {
    func apply(theme: Theme) {
        self.theme = theme
        guard viewIfLoaded != nil else {
            return
        }
        topViewController.apply(theme: theme)
        bottomViewController.apply(theme: theme)
        if let navigationController = bottomViewController as? UINavigationController {
            view.backgroundColor = navigationController.topViewController?.view.backgroundColor
        } else {
            view.backgroundColor = bottomViewController.view.backgroundColor
        }
    }
}
{'fraction_non_alphanumeric': 0.06731391585760518, 'fraction_numerical': 0.0, 'mean_word_length': 3.6134328358208956, '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': '2974031', 'n_tokens_mistral': 803, 'n_tokens_neox': 743, 'n_words': 185}