<commit_before>//
//  Created by <NAME> on 09/08/16.
//  Copyright © 2018 TheLeftBit SL. All rights reserved.
//

#if canImport(UIKit)
import UIKit

extension UIImageView {
    
    private struct AssociatedKeys {
        static var BlurEffectViewKey = "BlurEffectViewKey"
    }

    public var blurEffectView: UIVisualEffectView? {
        get {
            return objc_getAssociatedObject(self, &AssociatedKeys.BlurEffectViewKey) as? UIVisualEffectView
        }
        
        set {
            if let newValue = newValue {
                objc_setAssociatedObject(
                    self,
                    &AssociatedKeys.BlurEffectViewKey,
                    newValue as UIVisualEffectView?,
                    .OBJC_ASSOCIATION_RETAIN_NONATOMIC
                )
            }
        }
    }

    public func addBlurEffect() {
        self.blurEffectView = {
            let effectView = UIVisualEffectView(effect: UIBlurEffect(style: .dark))<commit_msg>Make sure the blur effect can be customized<commit_after>//
//  Created by <NAME> on 09/08/16.
//  Copyright © 2018 TheLeftBit SL. All rights reserved.
//

#if canImport(UIKit)
import UIKit

extension UIImageView {
    
    private struct AssociatedKeys {
        static var BlurEffectViewKey = "BlurEffectViewKey"
    }

    public var blurEffectView: UIVisualEffectView? {
        get {
            return objc_getAssociatedObject(self, &AssociatedKeys.BlurEffectViewKey) as? UIVisualEffectView
        }
        
        set {
            if let newValue = newValue {
                objc_setAssociatedObject(
                    self,
                    &AssociatedKeys.BlurEffectViewKey,
                    newValue as UIVisualEffectView?,
                    .OBJC_ASSOCIATION_RETAIN_NONATOMIC
                )
            }
        }
    }

    public func addBlurEffect(_ blurEffect: UIBlurEffect = UIBlurEffect(style: .dark)) {
        self.blurEffectView = {
            let effectView = UIVisualEffectView(effect: blurEffect)
{'fraction_non_alphanumeric': 0.06869089099054256, 'fraction_numerical': 0.009955201592832254, 'mean_word_length': 1.8714285714285714, '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': '5043047', 'n_tokens_mistral': 594, 'n_tokens_neox': 571, 'n_words': 125}