<commit_before>//
//  ViewController.swift
//  Parse-Twitter
//
//  Created by <NAME> on 2/5/17.
//  Copyright © 2017 Santa Clara iOS Connect. All rights reserved.
//

import UIKit
import Parse
import ParseUI

class ViewController: UIViewController, PFLogInViewControllerDelegate, PFSignUpViewControllerDelegate {
    
    
    @IBOutlet var loginButton: UIButton!
    
    func show(_ sender: Any) {
        let stroyboard = UIStoryboard(name: "ChatTable", bundle: nil)
        let ctvc = stroyboard.instantiateViewController(withIdentifier: "ChatTableViewController") as! ChatTableViewController
        ctvc.parseClassName = "GameScore"
        self.navigationController?.pushViewController(ctvc, animated: true)
        //present(ctvc, animated: true, completion: nil)
    }
  
    override func viewDidLoad() {
        super.viewDidLoad()
        
        
    }
    
    @IBAction func loginButtonClicked(_ sender: Any) {
        
        let pfLoginPage = PFLogInViewController()
        pfLoginPage.delegate = self
        pfLoginPage.signUpController?.delegate = self
        self.present(pfLoginPage, animated: true) { 
            print("pfloginpage presented")
        }
        
        
        
    }
    
    func signUpViewController(_ signUpController: PFSignUpViewController, didSignUp user: PFUser) {
        
        print("success")
        print(user)
        
        //present homeViewControler Here
        
    }
    
    
    func signUpViewController(_ signUpController: PFSignUpViewController, didFailToSignUpWithError error: Error?) {
        if let er = error {
            print(er.localizedDescription)
        }
        
    }
  
    func log(_ logInController: PFLogInViewController, didFailToLogInWithError error: Error?) {
        
        if let er = error {
            print(er.localizedDescription)
        }
    }
    
    func log(_ logInController: PFLogInViewController, didLogIn user: PFUser) {
        //dismiss top login VC
        logInController.dismiss(animated: true, completion: nil)
        print(user.email!)
        
        if let delegate = UIApplication.shared.delegate as? AppDelegate {
            delegate.appController.didLogin()
        }
        //present homeViewControler Here
     }

}
<commit_msg>Remove comments and cleanup whitespace<commit_after>import UIKit
import Parse
import ParseUI

class ViewController: UIViewController, PFLogInViewControllerDelegate, PFSignUpViewControllerDelegate {

    @IBOutlet var loginButton: UIButton!
    
    func show(_ sender: Any) {
        let stroyboard = UIStoryboard(name: "ChatTable", bundle: nil)
        let ctvc = stroyboard.instantiateViewController(withIdentifier: "ChatTableViewController") as! ChatTableViewController
        ctvc.parseClassName = "GameScore"
        self.navigationController?.pushViewController(ctvc, animated: true)
        //present(ctvc, animated: true, completion: nil)
    }
    
    @IBAction func loginButtonClicked(_ sender: Any) {
        let pfLoginPage = PFLogInViewController()
        pfLoginPage.delegate = self
        pfLoginPage.signUpController?.delegate = self
        self.present(pfLoginPage, animated: true) { 
            print("pfloginpage presented")
        }
    }
    
    func signUpViewController(_ signUpController: PFSignUpViewController, didSignUp user: PFUser) {
        print("success")
        print(user)
    }

    func signUpViewController(_ signUpController: PFSignUpViewController, didFailToSignUpWithError error: Error?) {
        if let er = error {
            print(er.localizedDescription)
        }
    }

    func log(_ logInController: PFLogInViewController, didFailToLogInWithError error: Error?) {
        if let er = error {
            print(er.localizedDescription)
        }
    }

    func log(_ logInController: PFLogInViewController, didLogIn user: PFUser) {

        logInController.dismiss(animated: true, completion: nil)
        print(user.email!)

        if let delegate = UIApplication.shared.delegate as? AppDelegate {
            delegate.appController.didLogin()
        }
     }
}

{'fraction_non_alphanumeric': 0.07993155707650941, 'fraction_numerical': 0.001955512099731117, 'mean_word_length': 2.5957820738137083, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1362790', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1092, 'n_words': 256}