<commit_before>//
//  NavVC.swift
//  YouTube
//
//  Created by <NAME> on 8/4/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

class NavVC: UINavigationController, PlayerVCDelegate  {

    //MARK: Properties
    lazy var playVC: PlayVC = {
        let pvc: PlayVC = self.storyboard?.instantiateViewController(withIdentifier: "PlayVC") as! PlayVC
        pvc.view.frame = CGRect.init(origin: self.hiddenOrigin, size: UIScreen.main.bounds.size)
        pvc.delegate = self
        return pvc
    }()
    let statusView: UIView = {
        let st = UIView.init(frame: UIApplication.shared.statusBarFrame)
        st.backgroundColor = UIColor.black
        st.alpha = 0.15
        return st
    }()
        let hiddenOrigin: CGPoint = {
        let y = UIScreen.main.bounds.height - (UIScreen.main.bounds.width * 9 / 32) - 10
        let x = -UIScreen.main.bounds.width
        let coordinate = CGPoint.init(x: x, y: y)
        return coordinate
    }()
    let minimizedOrigin: CGPoint = {
        let x = UIScreen.main.bounds.width/2 - 10
        let y = UIScreen.main.bounds.height - (UIScreen.main.bounds.width * 9 / 32) - 10
        let coordinate = CGPoint.init(x: x, y: y)
        return coordinate
    }()
    let fullScreenOrigin = CGPoint.init(x: 0, y: 0)

    //Methods
    func animatePlayView(toState: stateOfVC) {
        switch toState {
        case .fullScreen:<commit_msg>minor bug fixing<commit_after>//
//  NavVC.swift
//  YouTube
//
//  Created by <NAME> on 8/4/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

class NavVC: UINavigationController, PlayerVCDelegate  {

    //MARK: Properties
    
    @IBOutlet var playerView: UIView!
    lazy var playVC: PlayVC = {
        let pvc: PlayVC = self.storyboard?.instantiateViewController(withIdentifier: "PlayVC") as! PlayVC
        pvc.view.frame = CGRect.init(origin: self.hiddenOrigin, size: UIScreen.main.bounds.size)
        pvc.delegate = self
        return pvc
    }()
    let statusView: UIView = {
        let st = UIView.init(frame: UIApplication.shared.statusBarFrame)
        st.backgroundColor = UIColor.black
        st.alpha = 0.15
        return st
    }()
        let hiddenOrigin: CGPoint = {
        let y = UIScreen.main.bounds.height - (UIScreen.main.bounds.width * 9 / 32) - 10
        let x = -UIScreen.main.bounds.width
        let coordinate = CGPoint.init(x: x, y: y)
        return coordinate
    }()
    let minimizedOrigin: CGPoint = {
        let x = UIScreen.main.bounds.width/2 - 10
        let y = UIScreen.main.bounds.height - (UIScreen.main.bounds.width * 9 / 32) - 10
        let coordinate = CGPoint.init(x: x, y: y)
        return coordinate
    }()
    let fullScreenOrigin = CGPoint.init(x: 0, y: 0)

    //Methods
    func animatePlayView(toState: stateOfVC) {
        switch toState {
        case .fullScreen:
{'fraction_non_alphanumeric': 0.11557262569832402, 'fraction_numerical': 0.018156424581005588, 'mean_word_length': 2.2556818181818183, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2118742', 'n_tokens_mistral': 993, 'n_tokens_neox': 927, 'n_words': 231}