<commit_before>//
//  ViewController.swift
//  Sample
//
//  Created by <NAME> on 03/04/2017.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import UIKit
import SwiftyNotifications

class ViewController: UIViewController, SwiftyNotificationsDelegate {

    private var notification: SwiftyNotifications!
    private var customNotification: SwiftyNotifications!

    override func viewDidLoad() {
        super.viewDidLoad()

        notification = SwiftyNotifications.withStyle(style: .info,
                                                     title: "Swifty Notifications",
                                                     subtitle: "Highly configurable iOS UIView for presenting notifications that doesn't block the UI")
        notification.delegate = self
        view.addSubview(notification)

        customNotification = SwiftyNotifications.withStyle(style: .custom,
                                                           title: "Custom",
                                                           subtitle: "Custom notification with custom image and colors")
        customNotification.leftAccessoryView.image = UIImage(named: "apple_logo")!
        customNotification.setCustomColors(backgroundColor: UIColor.cyan, textColor: UIColor.white)<commit_msg>use touch handler<commit_after>//
//  ViewController.swift
//  Sample
//
//  Created by <NAME> on 03/04/2017.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import UIKit
import SwiftyNotifications

class ViewController: UIViewController, SwiftyNotificationsDelegate {

    private var notification: SwiftyNotifications!
    private var customNotification: SwiftyNotifications!

    override func viewDidLoad() {
        super.viewDidLoad()

        notification = SwiftyNotifications.withStyle(style: .info,
                                                     title: "Swifty Notifications",
                                                     subtitle: "Highly configurable iOS UIView for presenting notifications that doesn't block the UI")
        notification.delegate = self
        notification.addTouchHandler {

        }
        view.addSubview(notification)

        customNotification = SwiftyNotifications.withStyle(style: .custom,
                                                           title: "Custom",
                                                           subtitle: "Custom notification with custom image and colors")
        customNotification.leftAccessoryView.image = UIImage(named: "apple_logo")!
        customNotification.setCustomColors(backgroundColor: UIColor.cyan, textColor: UIColor.white)
{'fraction_non_alphanumeric': 0.07170245398773006, 'fraction_numerical': 0.009202453987730062, 'mean_word_length': 2.0057603686635943, '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': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '953127', 'n_tokens_mistral': 603, 'n_tokens_neox': 568, 'n_words': 156}