<commit_before>//
//  MercadoPagoContext.swift
//  MercadoPagoSDK
//
//  Created by <NAME> on 1/7/16.
//  Copyright © 2016 MercadoPago. All rights reserved.
//

import Foundation
import UIKit
import MercadoPagoTracker

public class MercadoPagoContext : NSObject, MPTrackerDelegate {
    
    static let sharedInstance = MercadoPagoContext()
    
    var public_key: String = ""
    
    var private_key: String = ""
    
    var base_url: String = ""

    var customer_uri: String = ""
    
    var merchant_access_token: String = ""
    
    var initialFlavor: Flavor?

    var preference_uri: String = ""
    
    var payment_uri: String = ""
    
    var payment_key : String = ""
    
    public class var PUBLIC_KEY : String {
        return "public_key"
    }
    
    public class var PRIVATE_KEY : String {
        return "private_key"
    }

    public class func isAuthenticatedUser() -> Bool{
        return !sharedInstance.private_key.isEmpty
    }

   public func flavor() -> Flavor!{
    if (initialFlavor == nil){
        return Flavor.Flavor_3
    }else{
        return initialFlavor
    }
    
    }
    public func framework() -> String!{
        return  "iOS"
    }
    public func sdkVersion() -> String!{
        return "0.9.1"
    }
 
    var site = GAKey.MLA
    
    
    public func siteId() -> GAKey!{
        return site<commit_msg>- Cambio de version a 1.0.0<commit_after>//
//  MercadoPagoContext.swift
//  MercadoPagoSDK
//
//  Created by <NAME> on 1/7/16.
//  Copyright © 2016 MercadoPago. All rights reserved.
//

import Foundation
import UIKit
import MercadoPagoTracker

public class MercadoPagoContext : NSObject, MPTrackerDelegate {
    
    static let sharedInstance = MercadoPagoContext()
    
    var public_key: String = ""
    
    var private_key: String = ""
    
    var base_url: String = ""

    var customer_uri: String = ""
    
    var merchant_access_token: String = ""
    
    var initialFlavor: Flavor?

    var preference_uri: String = ""
    
    var payment_uri: String = ""
    
    var payment_key : String = ""
    
    public class var PUBLIC_KEY : String {
        return "public_key"
    }
    
    public class var PRIVATE_KEY : String {
        return "private_key"
    }

    public class func isAuthenticatedUser() -> Bool{
        return !sharedInstance.private_key.isEmpty
    }

   public func flavor() -> Flavor!{
    if (initialFlavor == nil){
        return Flavor.Flavor_3
    }else{
        return initialFlavor
    }
    
    }
    public func framework() -> String!{
        return  "iOS"
    }
    public func sdkVersion() -> String!{
        return "1.0.0"
    }
 
    var site = GAKey.MLA
    
    
    public func siteId() -> GAKey!{
        return site
{'fraction_non_alphanumeric': 0.09553440702781844, 'fraction_numerical': 0.009882869692532943, 'mean_word_length': 2.1163055872291903, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1558959', 'n_tokens_mistral': 884, 'n_tokens_neox': 847, 'n_words': 226}