<commit_before>//
//  AwesomeMediaPlayerLayer.swift
//  AwesomeMedia
//
//  Created by <NAME> on 4/10/18.
//

import AVFoundation

public class AwesomeMediaPlayerLayer: AVPlayerLayer {
    
    public static var shared: AwesomeMediaPlayerLayer = {
        return newInstance
    }()
    
    public static var newInstance: AwesomeMediaPlayerLayer {
        let playerLayer = AwesomeMediaPlayerLayer()
        playerLayer.videoGravity = .resizeAspectFill
        
        return playerLayer
    }
}

extension UIView {
    
    public func addPlayerLayer(_ playerLayer: AVPlayerLayer = AwesomeMediaPlayerLayer.shared) {
        removePlayerLayer()
        
        self.layer.insertSublayer(playerLayer, at: 0)
        self.layer.masksToBounds = true
    }<commit_msg>Updated AwesomeMediaPlayerLayer<commit_after>//
//  AwesomeMediaPlayerLayer.swift
//  AwesomeMedia
//
//  Created by <NAME> on 4/10/18.
//

import AVFoundation

public class AwesomeMediaPlayerLayer: AVPlayerLayer {
    
    public static var shared: AwesomeMediaPlayerLayer = {
        return newInstance
    }()
    
    public static var newInstance: AwesomeMediaPlayerLayer {
        let playerLayer = AwesomeMediaPlayerLayer()
        
        return playerLayer
    }
}

extension UIView {
    
    public func addPlayerLayer(_ playerLayer: AVPlayerLayer = AwesomeMediaPlayerLayer.shared) {
        removePlayerLayer()
        
        self.layer.insertSublayer(playerLayer, at: 0)
        self.layer.masksToBounds = true
    }
{'fraction_non_alphanumeric': 0.07538358905937291, 'fraction_numerical': 0.008005336891260841, 'mean_word_length': 2.7220843672456576, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5625310', 'n_tokens_mistral': 430, 'n_tokens_neox': 409, 'n_words': 93}