<commit_before>//
//  YFUserAcount.swift
//  MyWeiBoo
//
//  Created by 李永方 on 15/10/11.
//  Copyright © 2015年 李永方. All rights reserved.
//

import UIKit

class YFUserAcount: NSObject{
    
    ///  access_token 用于调用access_token，接口获取授权后的access token。
    var access_token: String?
    ///  expires_in access_token的生命周期，单位是秒数\
    var expires_in: NSTimeInterval = 0
    ///  uid (string)当前授权用户的UID。可获取用户的图像
    var uid: String?
    
    init(dict: [String: AnyObject]) {
        super.init()
    
        setValuesForKeysWithDictionary(dict)
    
    
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
    //描述信息的打印
    override var description: String {
        
//        let properities = ["access_token","expires_in:","uid"]
         let properities = ["access_token","expires_in","uid"]
        
        
        //模型转字典
        
        return ("\(dictionaryWithValuesForKeys(properities))")
        
         }
    

}<commit_msg>过期时间处理<commit_after>//
//  YFUserAcount.swift
//  MyWeiBoo
//
//  Created by 李永方 on 15/10/11.
//  Copyright © 2015年 李永方. All rights reserved.
//

import UIKit

class YFUserAcount: NSObject{
    
    ///  access_token 用于调用access_token，接口获取授权后的access token。
    var access_token: String?
    ///  expires_in access_token的生命周期，单位是秒数\
    var expires_in: NSTimeInterval = 0 {
        
        didSet{
        
        expires_Date = NSDate(timeIntervalSinceNow: expires_in)
        
        }
    
          }
    ///  uid (string)当前授权用户的UID。可获取用户的图像
    var uid: String?
    
    //过期日期
    var expires_Date: NSDate?
    
    init(dict: [String: AnyObject]) {
        super.init()
        setValuesForKeysWithDictionary(dict)
        
//        expires_Date = NSDate(timeIntervalSinceNow: expires_in)
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
        
    }
    
    //描述信息的打印
    override var description: String {
        
//        let properities = ["access_token","expires_in:","uid"]
         let properities = ["access_token","expires_in","uid","expires_Date"]
        
        
        //模型转字典
        
        return ("\(dictionaryWithValuesForKeys(properities))")
        
         }
    

}
{'fraction_non_alphanumeric': 0.10857908847184987, 'fraction_numerical': 0.009830205540661306, 'mean_word_length': 1.9460526315789475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2360369', 'n_tokens_mistral': 820, 'n_tokens_neox': 835, 'n_words': 137}