<commit_before>import UIKit

//MARK: - VKSocialData and metadata
public final class VKImage {
    public let image: UIImage
    public let parameters: VKImageParameters
    
    public init (image: UIImage, parameters: VKImageParameters) {
        self.image = image
        self.parameters = parameters
    }
}

public final class VKSocialData: SocialData {
    public var text: String?
    public var url: NSURL? {
        willSet(newValue) {
            if newValue != nil {
                self.image = nil
            }
        }
    }
    public var image: VKImage? {
        willSet(newValue) {
            if newValue != nil {
                self.url = nil
            }
        }
    }
}

//MARK: - VKNetwork
private let VKPermisions = ["photos", "wall"]

public class VKNetwork: NSObject {
    
    override public init() {
        super.init()
        
        //init session
        if VKSdk.instance().uiDelegate == nil {
            VKSdk.instance().uiDelegate = self
        }
        VKSdk.instance().registerDelegate(self)
        VKSdk.wakeUpSession(VKPermisions) { (state, error) -> Void in
            if let lError = error {
                debugPrint("\(__FUNCTION__) - is received error \(lError)")
            } else {
                debugPrint("\(__FUNCTION__) - is updated state \(state.rawValue)")
            }
        }
    }<commit_msg>SocialVK can send url and image<commit_after>import UIKit

//MARK: - VKSocialData and metadata
public final class VKImage {
    public let image: UIImage
    public let parameters: VKImageParameters
    
    public init (image: UIImage, parameters: VKImageParameters) {
        self.image = image
        self.parameters = parameters
    }
}

public final class VKSocialData: SocialData {
    public var text: String?
    public var url: NSURL?
    public var image: VKImage?
}

//MARK: - VKNetwork
private let VKPermisions = ["photos", "wall"]

public class VKNetwork: NSObject {
    
    override public init() {
        super.init()
        
        //init session
        if VKSdk.instance().uiDelegate == nil {
            VKSdk.instance().uiDelegate = self
        }
        VKSdk.instance().registerDelegate(self)
        VKSdk.wakeUpSession(VKPermisions) { (state, error) -> Void in
            if let lError = error {
                debugPrint("\(__FUNCTION__) - is received error \(lError)")
            } else {
                debugPrint("\(__FUNCTION__) - is updated state \(state.rawValue)")
            }
        }
    }
{'fraction_non_alphanumeric': 0.09824281150159744, 'fraction_numerical': 0.0, 'mean_word_length': 1.9127906976744187, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1339740', 'n_tokens_mistral': 709, 'n_tokens_neox': 698, 'n_words': 193}