<commit_before>import UIKit

import TwitterKit

class TweetViewController : TWTRTimelineViewController {

    convenience init() {
        
        let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
        let client = Twitter.sharedInstance().APIClient
        let dataSource = TWTRUserTimelineDataSource(screenName: appDelegate.username!, APIClient: client)
        
        self.init(dataSource: dataSource)
    }
    
    override required init(dataSource: TWTRTimelineDataSource) {
        super.init(dataSource: dataSource)
    }
    
    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override func viewWillAppear(animated: Bool) {

        let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
        let client = Twitter.sharedInstance().APIClient
        self.dataSource = TWTRUserTimelineDataSource(screenName: appDelegate.username!, APIClient: client)
        
        // kick off actual rendering
        super.viewWillAppear(animated)
        
        println("TweetViewController.viewWillAppear: \(self.dataSource)")
    }
    <commit_msg>adding changes to use the TwitterKit in the TweetViewController and some small changes to the TwitterKit<commit_after>import UIKit
import TwitterKit

class TweetViewController : TWTRTimelineViewController {
    
    convenience init() {
        
        let client = Twitter.sharedInstance().APIClient
        let screenName = Twitter.sharedInstance().session().userName
        let dataSource = TWTRUserTimelineDataSource(screenName: screenName, APIClient: client)
        
        self.init(dataSource: dataSource)
    }
    
    override required init(dataSource: TWTRTimelineDataSource) {
        super.init(dataSource: dataSource)
    }
    
    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override func viewWillAppear(animated: Bool) {

        let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate
        let screenName = Twitter.sharedInstance().session().userName
        let client = Twitter.sharedInstance().APIClient
        self.dataSource = TWTRUserTimelineDataSource(screenName: screenName, APIClient: client)
        
        // kick off actual rendering
        super.viewWillAppear(animated)
        
        println("TweetViewController.viewWillAppear: \(self.dataSource)")
    }
    
{'fraction_non_alphanumeric': 0.07670103092783505, 'fraction_numerical': 0.0, 'mean_word_length': 3.0366056572379367, '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': '3505049', 'n_tokens_mistral': 644, 'n_tokens_neox': 639, 'n_words': 138}