<commit_before>//
//  RouteDetailViewController.swift
//  TCAT
//
//  Created by <NAME> on 2/11/17.
//  Copyright © 2017 cuappdev. All rights reserved.
//

import UIKit
import Pulley

class RouteDetailViewController: PulleyViewController {
    
    required init(contentViewController: UIViewController, drawerViewController: UIViewController) {
        super.init(contentViewController: contentViewController, drawerViewController: drawerViewController)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        
        title = "Route Details"
        
        drawerCornerRadius = 16
        shadowOpacity = 0.25
        shadowRadius = 4
        backgroundDimmingColor = .black
        backgroundDimmingOpacity = 0.5
        
        setRightButton()
        
    }
    
    // MARK: Navigation Controller
    
    /// Set the right button in the navigation controller
    func setRightButton() {
        guard let buttonAttributes = (navigationController as? CustomNavigationController)?.buttonTitleTextAttributes
            else { return }
        self.navigationItem.leftBarButtonItem?.setTitleTextAttributes(buttonAttributes, for: .normal)
        let button = UIBarButtonItem(title: "Exit", style: .plain, target: self, action: #selector(exitAction))
        button.setTitleTextAttributes(buttonAttributes, for: .normal)
        self.navigationItem.setRightBarButton(button, animated: true)
    }
    
    /// Return app to home page
    @objc func exitAction() {
        navigationController?.popToRootViewController(animated: true)
    }

}<commit_msg>better animation of drawer<commit_after>//
//  RouteDetailViewController.swift
//  TCAT
//
//  Created by <NAME> on 2/11/17.
//  Copyright © 2017 cuappdev. All rights reserved.
//

import UIKit
import Pulley

class RouteDetailViewController: PulleyViewController {
    
    required init(contentViewController: UIViewController, drawerViewController: UIViewController) {
        super.init(contentViewController: contentViewController, drawerViewController: drawerViewController)
    }
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        
        title = "Route Details"
        
        drawerCornerRadius = 16
        shadowOpacity = 0.25
        shadowRadius = 4
        backgroundDimmingColor = .black
        backgroundDimmingOpacity = 0.5
        animationDuration = 0.5
        
        setRightButton()
        
    }
    
    // MARK: Navigation Controller
    
    /// Set the right button in the navigation controller
    func setRightButton() {
        guard let buttonAttributes = (navigationController as? CustomNavigationController)?.buttonTitleTextAttributes
            else { return }
        self.navigationItem.leftBarButtonItem?.setTitleTextAttributes(buttonAttributes, for: .normal)
        let button = UIBarButtonItem(title: "Exit", style: .plain, target: self, action: #selector(exitAction))
        button.setTitleTextAttributes(buttonAttributes, for: .normal)
        self.navigationItem.setRightBarButton(button, animated: true)
    }
    
    /// Return app to home page
    @objc func exitAction() {
        navigationController?.popToRootViewController(animated: true)
    }

}
{'fraction_non_alphanumeric': 0.08243203741596025, 'fraction_numerical': 0.010523238819058756, 'mean_word_length': 2.7034632034632033, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5882672', 'n_tokens_mistral': 932, 'n_tokens_neox': 876, 'n_words': 215}