<commit_before>import UIKit.UIViewController
import UIKit.UIWindow

struct AppWindowWireframe: WindowWireframe {

    static var shared: AppWindowWireframe = {
        guard let window = UIApplication.shared.delegate?.window, let unwrappedWindow = window else { fatalError("Application has no window") }
        return AppWindowWireframe(window: unwrappedWindow)
    }()
    
    private let window: UIWindow

    public init(window: UIWindow) {
        self.window = window
    }

    func setRoot(_ viewController: UIViewController) {
        window.rootViewController = viewController
    }

}<commit_msg>Restore simple fade transition between preload and news<commit_after>import UIKit.UIViewController
import UIKit.UIWindow

struct AppWindowWireframe: WindowWireframe {

    static var shared: AppWindowWireframe = {
        guard let window = UIApplication.shared.delegate?.window, let unwrappedWindow = window else { fatalError("Application has no window") }
        return AppWindowWireframe(window: unwrappedWindow)
    }()
    
    private let window: UIWindow

    public init(window: UIWindow) {
        self.window = window
    }

    func setRoot(_ viewController: UIViewController) {
        let transition = CATransition()
        transition.type = .fade
        transition.subtype = nil
        transition.duration = 0.25
        transition.timingFunction = CAMediaTimingFunction(name: .linear)
        
        window.layer.add(transition, forKey: kCATransition)
        window.rootViewController = viewController
    }

}
{'fraction_non_alphanumeric': 0.07337662337662337, 'fraction_numerical': 0.001948051948051948, 'mean_word_length': 3.304469273743017, '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': '7239963', 'n_tokens_mistral': 423, 'n_tokens_neox': 389, 'n_words': 104}