<commit_before>import UIKit

class TextField: UITextField {
    
    open override func layoutSubviews() {
        super.layoutSubviews()
        
        self.textAlignment = .center
        self.font = UIFont.systemFont(ofSize: 15)
        
        self.layer.cornerRadius = 16
        self.layer.borderWidth = 1.0
        self.clipsToBounds = true
        
        self.tintColor = ColorPalette.white
        self.textColor = ColorPalette.white
    }
    
    func setPlaceHolder(with text: String) {
        self.attributedPlaceholder = NSAttributedString(string: text,
                                                        attributes: [NSForegroundColorAttributeName:
                                                            UIColor.white.withAlphaComponent(0.5)])
    }
    
    func addDoneButtonOnKeyboard() {
        let toolbar = UIToolbar(frame: CGRect(x: 0, y: 0, width: bounds.width, height: 40))
        
        let flexSpace = UIBarButtonItem(barButtonSystemItem: .flexibleSpace, target: nil, action: nil)
        let doneButton  = UIBarButtonItem(title: "Ok", style: .done, target: self, action: #selector(self.doneButtonAction))
        
        toolbar.items = [flexSpace, doneButton]
        
        self.inputAccessoryView = toolbar
    }
    
    func doneButtonAction() {
        self.resignFirstResponder()
    }
}
<commit_msg>removing toolbar from keyboard<commit_after>import UIKit

class TextField: UITextField {
    
    open override func layoutSubviews() {
        super.layoutSubviews()
        
        self.textAlignment = .center
        self.font = UIFont.systemFont(ofSize: 15)
        
        self.layer.cornerRadius = 16
        self.layer.borderWidth = 1.0
        self.clipsToBounds = true
        
        self.tintColor = ColorPalette.white
        self.textColor = ColorPalette.white
    }
    
    func setPlaceHolder(with text: String) {
        self.attributedPlaceholder = NSAttributedString(string: text,
                                                        attributes: [NSForegroundColorAttributeName:
                                                            UIColor.white.withAlphaComponent(0.5)])
    }
}

{'fraction_non_alphanumeric': 0.0792992162286768, 'fraction_numerical': 0.009220839096357769, 'mean_word_length': 1.7784891165172856, '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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4661484', 'n_tokens_mistral': 597, 'n_tokens_neox': 572, 'n_words': 112}