<commit_before>//
//  FakeKeyboardContext.swift
//  KeyboardKit
//
//  Created by <NAME> on 2021-01-25.
//  Copyright © 2021 <NAME>. All rights reserved.
//

import UIKit

/**
 This is a fake `KeyboardContext`. It can be used when
 an action handler is needed, but it doesn't have to work.
 
 For instance, `SwiftUI` previews may require an instance to
 build, but the instance doesn't have to be real.
 */
public class FakeKeyboardContext: KeyboardContext {
    
    public init() {}
    
    @available(*, deprecated, message: "This property will be removed in KK 4.0. Usage is strongly discouraged.")
    public var controller: KeyboardInputViewController { fatalError() }
    
    @available(*, deprecated, message: "This property will be removed in KK 4.0. Usage is strongly discouraged.")
    public var emojiCategory: EmojiCategory = .smileys

    public var actionHandler: KeyboardActionHandler = FakeKeyboardActionHandler()
    public var keyboardAppearanceProvider: KeyboardAppearanceProvider = StandardKeyboardAppearanceProvider()
    public var keyboardBehavior: KeyboardBehavior = StandardKeyboardBehavior()
    public var keyboardInputSetProvider: KeyboardInputSetProvider = StandardKeyboardInputSetProvider()<commit_msg>Make fake context use a real vc<commit_after>//
//  FakeKeyboardContext.swift
//  KeyboardKit
//
//  Created by <NAME> on 2021-01-25.
//  Copyright © 2021 <NAME>. All rights reserved.
//

import UIKit

/**
 This is a fake `KeyboardContext`. It can be used when
 an action handler is needed, but it doesn't have to work.
 
 For instance, `SwiftUI` previews may require an instance to
 build, but the instance doesn't have to be real.
 */
public class FakeKeyboardContext: KeyboardContext {
    
    public init() {}
    
    @available(*, deprecated, message: "This property will be removed in KK 4.0. Usage is strongly discouraged.")
    public var controller: KeyboardInputViewController { KeyboardInputViewController() }
    
    @available(*, deprecated, message: "This property will be removed in KK 4.0. Usage is strongly discouraged.")
    public var emojiCategory: EmojiCategory = .smileys

    public var actionHandler: KeyboardActionHandler = FakeKeyboardActionHandler()
    public var keyboardAppearanceProvider: KeyboardAppearanceProvider = StandardKeyboardAppearanceProvider()
    public var keyboardBehavior: KeyboardBehavior = StandardKeyboardBehavior()
    public var keyboardInputSetProvider: KeyboardInputSetProvider = StandardKeyboardInputSetProvider()
{'fraction_non_alphanumeric': 0.07904191616766468, 'fraction_numerical': 0.01277445109780439, 'mean_word_length': 4.253668763102725, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '973559', 'n_tokens_mistral': 675, 'n_tokens_neox': 639, 'n_words': 249}