<commit_before>//
//  AppDelegate.swift
//  iOS10_LocalNotifications
//
//  Created by <NAME> on 2017-09-26.
//  Copyright © 2017 <NAME> . All rights reserved.
//

import UIKit
import UserNotifications

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

         NotificationManager.sharedInstance()

        return true
    }

    func application(_ application: UIApplication, didReceive notification: UILocalNotification) {
        // Handle local notification with alert or alternative UI
    }

}<commit_msg>fix example code<commit_after>//
//  AppDelegate.swift
//  iOS10_LocalNotifications
//
//  Created by <NAME> on 2017-09-26.
//  Copyright © 2017 <NAME> . All rights reserved.
//

import UIKit
import UserNotifications

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        
        if #available(iOS 10.0, *) {
            UNUserNotificationCenter.current().delegate = NotificationManager.sharedInstance()
        }
        
        return true
    }

    func application(_ application: UIApplication, didReceive notification: UILocalNotification) {
        // Handle local notification with alert or alternative UI
    }

}
{'fraction_non_alphanumeric': 0.08653220559531555, 'fraction_numerical': 0.020169160702667534, 'mean_word_length': 3.4322766570605188, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '667221', 'n_tokens_mistral': 435, 'n_tokens_neox': 388, 'n_words': 114}