<commit_before>//
//  ViewController.swift
//  ZTabsViewDemo
//
//  Created by CaryZheng on 15/6/27.
//  Copyright (c) 2015年 CaryZheng. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}
<commit_msg>Call ZTabsView<commit_after>//
//  ViewController.swift
//  ZTabsViewDemo
//
//  Created by CaryZheng on 15/6/27.
//  Copyright (c) 2015年 CaryZheng. All rights reserved.
//

import UIKit

class ViewController: UIViewController, IZTabsView {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        initTabsView()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    func initTabsView()
    {
        let statusBarHeight = UIApplication.sharedApplication().statusBarFrame.size.height
        
        let parentWidth = self.view.bounds.size.width
        let parentHeight = self.view.bounds.size.height
        
        var tabsView = ZTabsView()
        tabsView.delegate = self
        
        tabsView.frame = CGRectMake(0, statusBarHeight, parentWidth, parentHeight)
        
        let tabTitles = ["Tab1", "Tab2", "Tab3"]
        
        var view1 = UIView()
        view1.backgroundColor = UIColor.redColor()
        
        var view2 = UIView()
        view2.backgroundColor = UIColor.yellowColor()
        
        var view3 = UIView()
        view3.backgroundColor = UIColor.blueColor()
        
        let contentViews = [view1, view2, view3]
        tabsView.initView(tabTitles, contentViews: contentViews)
        
        self.view.addSubview(tabsView)
    }
    
    func onTabChanged(currentTabIndex: Int, lastTabIndex: Int)
    {
        ZLog.d("onTabChanged currentTabIndex = \(currentTabIndex), lastTabIndex = \(lastTabIndex)")
    }
}

{'fraction_non_alphanumeric': 0.09243316719528773, 'fraction_numerical': 0.014046216583597644, 'mean_word_length': 2.305389221556886, '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': '1208599', 'n_tokens_mistral': 674, 'n_tokens_neox': 638, 'n_words': 159}