<commit_before>//
//  UIKit.swift
//  Portal
//
//  Created by <NAME> on 12/13/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit





internal protocol UIImageConvertible {
    
    var asUIImage: UIImage { get }
    
}

public typealias Image = UIImageContainer

public struct UIImageContainer: ImageType, UIImageConvertible {
    
    public static func loadImage(named imageName: String, from bundle: Bundle = .main) -> UIImageContainer? {
        return UIImage(named: imageName, in: bundle, compatibleWith: .none).map(UIImageContainer.init)
    }
    
    public var size: Size {
        return Size(width: UInt(image.size.width), height: UInt(image.size.height))
    }
    
    var asUIImage: UIImage {
        return image
    }
    
    private let image: UIImage
    
    internal init(image: UIImage) {
        self.image = image
    }
    
}

















extension StatusBarStyle {
    
    internal var asUIStatusBarStyle: UIStatusBarStyle {<commit_msg>Make UIImageContainer init public.<commit_after>//
//  UIKit.swift
//  Portal
//
//  Created by <NAME> on 12/13/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit





internal protocol UIImageConvertible {
    
    var asUIImage: UIImage { get }
    
}

public typealias Image = UIImageContainer

public struct UIImageContainer: ImageType, UIImageConvertible {
    
    public static func loadImage(named imageName: String, from bundle: Bundle = .main) -> UIImageContainer? {
        return UIImage(named: imageName, in: bundle, compatibleWith: .none).map(UIImageContainer.init)
    }
    
    public var size: Size {
        return Size(width: UInt(image.size.width), height: UInt(image.size.height))
    }
    
    var asUIImage: UIImage {
        return image
    }
    
    private let image: UIImage
    
    public init(image: UIImage) {
        self.image = image
    }
    
}

















extension StatusBarStyle {
    
    internal var asUIStatusBarStyle: UIStatusBarStyle {
{'fraction_non_alphanumeric': 0.09254627313656828, 'fraction_numerical': 0.010005002501250625, 'mean_word_length': 2.4782608695652173, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2537160', 'n_tokens_mistral': 616, 'n_tokens_neox': 589, 'n_words': 163}