<commit_before>//
//  UIScreen.swift
//  Pods
//
//  Created by <NAME> on 2/16/16.
//
//

import Foundation

public extension UIScreen {
    /**
     Return a view snapshot containing the status bar.

     - returns: The `UIView` snapshot.
     - author: <NAME>
     - copyright: ©2016 Lionheart Software LLC
     - date: February 17, 2016
     */
    func snapshotContainingStatusBar() -> UIView {
        let screen = UIScreen.mainScreen()
        let view = UIScreen.mainScreen().snapshotViewAfterScreenUpdates(true)
        return view.resizableSnapshotViewFromRect(CGRect(x: 0, y: 0, width: CGRectGetWidth(screen.bounds), height: 20), afterScreenUpdates: true, withCapInsets: UIEdgeInsetsZero)
    }
}<commit_msg>provide statusBarView function<commit_after>//
//  UIScreen.swift
//  Pods
//
//  Created by <NAME> on 2/16/16.
//
//

import Foundation

public extension UIScreen {
    /**
     Return a view snapshot containing the status bar.

     - returns: The `UIView` snapshot.
     - author: <NAME>
     - copyright: ©2016 Lionheart Software LLC
     - date: February 17, 2016
     */
    func statusBarView() -> UIView {
        let view = snapshotViewAfterScreenUpdates(true)
        return view.resizableSnapshotViewFromRect(CGRect(x: 0, y: 0, width: CGRectGetWidth(bounds), height: CGRectGetHeight(bounds)), afterScreenUpdates: true, withCapInsets: UIEdgeInsetsZero)
    }
}
{'fraction_non_alphanumeric': 0.11311239193083573, 'fraction_numerical': 0.025936599423631124, 'mean_word_length': 3.0028818443804033, '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': '1043983', 'n_tokens_mistral': 463, 'n_tokens_neox': 424, 'n_words': 115}