<commit_before>import UIKit

class ViewController: UIViewController {


    // MARK: Properties
    @IBOutlet weak var doItHttpButton: UIButton!
    @IBOutlet weak var nameField: UITextField!
    @IBOutlet weak var numberField: UITextField!
    @IBOutlet weak var monthField: UITextField!
    @IBOutlet weak var yearField: UITextField!
    @IBOutlet weak var cvvField: UITextField!

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }

    // MARK: Actions

    @IBAction func requestToken(_ sender: UIButton) {
        let publicMerchantId = "10000001641125237535111218"
        let card = Card(name: nameField.text!, number: numberField.text!, cvv: cvvField.text!, expiryMonth: monthField.text!, expiryYear: yearField.text!)
        let totalAmount = 10.00
        let kushki = Kushki(publicMerchantId: publicMerchantId,
                            currency: "USD",
                            environment: KushkiEnvironment.testing)
        kushki.requestToken(card: card, totalAmount: totalAmount) { transaction in
            print(transaction.token)
            DispatchQueue.main.async(execute: {
                let alert = UIAlertController(title: "Aurus Token",
                                              message: transaction.token,
                                              preferredStyle: UIAlertControllerStyle.alert)
                alert.addAction(UIAlertAction(title: "Ok", style: .default))
                self.present(alert, animated: true)
            })
        }
    }

}<commit_msg>@diegovillacis10 [KFE-204] improves demo app<commit_after>import UIKit

class ViewController: UIViewController {


    // MARK: Properties
    @IBOutlet weak var doItHttpButton: UIButton!
    @IBOutlet weak var nameField: UITextField!
    @IBOutlet weak var numberField: UITextField!
    @IBOutlet weak var monthField: UITextField!
    @IBOutlet weak var yearField: UITextField!
    @IBOutlet weak var cvvField: UITextField!

    override func viewDidLoad() {
        super.viewDidLoad()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }

    // MARK: Actions

    @IBAction func requestToken(_ sender: UIButton) {
        let publicMerchantId = "10000001641125237535111218"
        let card = Card(name: nameField.text!, number: numberField.text!, cvv: cvvField.text!, expiryMonth: monthField.text!, expiryYear: yearField.text!)
        let totalAmount = 10.00
        let kushki = Kushki(publicMerchantId: publicMerchantId,
                            currency: "USD",
                            environment: KushkiEnvironment.testing)
        kushki.requestToken(card: card, totalAmount: totalAmount) { transaction in
            let message = transaction.token != "" ? transaction.token : (transaction.code + ": " + transaction.text)
            DispatchQueue.main.async(execute: {
                let alert = UIAlertController(title: "Aurus Token",
                                              message: message,
                                              preferredStyle: UIAlertControllerStyle.alert)
                alert.addAction(UIAlertAction(title: "Ok", style: .default))
                self.present(alert, animated: true)
            })
        }
    }

}
{'fraction_non_alphanumeric': 0.08555189949147472, 'fraction_numerical': 0.01944361352078971, 'mean_word_length': 2.259259259259259, 'pattern_counts': {'":': 1, '<': 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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1983932', 'n_tokens_mistral': 973, 'n_tokens_neox': 868, 'n_words': 213}