<commit_before>//
//  AppDelegate.swift
//  3DTouch
//
//  Created by 彭盛凇 on 16/10/17.
//  Copyright © 2016年 huangbaoche. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    var window: UIWindow?
    
    //判断是否为3Dtouch进入App
    
    func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
        
        switch shortcutItem.type {
        case "one":
            print("使用3D Touch 点击了第一个选项")
            
            let nav = window?.rootViewController as? UINavigationController
            <commit_msg>修改 循环使用 3DTouch 出现的问题<commit_after>//
//  AppDelegate.swift
//  3DTouch
//
//  Created by 彭盛凇 on 16/10/17.
//  Copyright © 2016年 huangbaoche. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
    
    var window: UIWindow?
    
    //判断是否为3Dtouch进入App
    
    func application(_ application: UIApplication, performActionFor shortcutItem: UIApplicationShortcutItem, completionHandler: @escaping (Bool) -> Void) {
        
        switch shortcutItem.type {
        case "one":
            print("使用3D Touch 点击了第一个选项")
            
            let nav = window?.rootViewController as? UINavigationController
            
            if  nav!.viewControllers.count > 1 {
                nav!.popToRootViewController(animated: false)
            }
            
{'fraction_non_alphanumeric': 0.08489304812834225, 'fraction_numerical': 0.01871657754010695, 'mean_word_length': 2.3046357615894038, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 6, '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': '4311312', 'n_tokens_mistral': 497, 'n_tokens_neox': 464, 'n_words': 106}