<commit_before>//
//  Toastable.swift
//  ToastWindow
//
//  Created by motoki on 2017/08/27.
//  Copyright © 2017年 vipt. All rights reserved.
//

import Foundation
import UIKit

protocol Toastable {
    func showToast(message: String)
    func showToast(message: String, duration: TimeInterval)
}

extension Toastable {
    
    func showToast(message: String) {
        self.showToast(message: message, duration: 1.0)
    }

    func showToast(message: String, duration: TimeInterval) {
        var toastWindowKey = 0
        let window = ToastWindow(frame: UIScreen.main.bounds)<commit_msg>Change display time default to 2 seconds<commit_after>//
//  Toastable.swift
//  ToastWindow
//
//  Created by motoki on 2017/08/27.
//  Copyright © 2017年 vipt. All rights reserved.
//

import Foundation
import UIKit

protocol Toastable {
    func showToast(message: String)
    func showToast(message: String, duration: TimeInterval)
}

extension Toastable {
    
    func showToast(message: String) {
        self.showToast(message: message, duration: 2.0)
    }

    func showToast(message: String, duration: TimeInterval) {
        var toastWindowKey = 0
        let window = ToastWindow(frame: UIScreen.main.bounds)
{'fraction_non_alphanumeric': 0.0989282769991756, 'fraction_numerical': 0.025556471558120363, 'mean_word_length': 3.1152542372881356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '91796', 'n_tokens_mistral': 406, 'n_tokens_neox': 369, 'n_words': 105}