<commit_before>import Foundation

extension UIButton {
    fileprivate func wmf_configureForDynamicType(){
        if #available(iOS 10.0, *) {
            self.titleLabel!.adjustsFontForContentSizeCategory = true
            self.titleLabel!.textAlignment = .center
            self.titleLabel!.numberOfLines = 1
            self.titleLabel!.clipsToBounds = false
            self.titleLabel!.lineBreakMode = .byTruncatingTail
            self.titleLabel!.minimumScaleFactor = 0.25
            self.titleLabel!.adjustsFontSizeToFitWidth = true
        }
    }
}

extension UILabel {
    fileprivate func wmf_configureForDynamicType(){
        if #available(iOS 10.0, *) {
            self.adjustsFontForContentSizeCategory = true
        }
    }
}

extension UIView {
    func wmf_configureSubviewsForDynamicType() {
        if #available(iOS 10.0, *) {
            if self.isKind(of: UIButton.self) {
                (self as! UIButton).wmf_configureForDynamicType()
            }else if self.isKind(of: UILabel.self) {
                (self as! UILabel).wmf_configureForDynamicType()
            }
            for subview in self.subviews {
                subview.wmf_configureSubviewsForDynamicType()
            }<commit_msg>Update "wmf_configureSubviewsForDynamicType()" to handle UITextField.<commit_after>import Foundation

extension UIButton {
    fileprivate func wmf_configureForDynamicType(){
        if #available(iOS 10.0, *) {
            self.titleLabel!.adjustsFontForContentSizeCategory = true
            self.titleLabel!.textAlignment = .center
            self.titleLabel!.numberOfLines = 1
            self.titleLabel!.clipsToBounds = false
            self.titleLabel!.lineBreakMode = .byTruncatingTail
            self.titleLabel!.minimumScaleFactor = 0.25
            self.titleLabel!.adjustsFontSizeToFitWidth = true
        }
    }
}

extension UILabel {
    fileprivate func wmf_configureForDynamicType(){
        if #available(iOS 10.0, *) {
            self.adjustsFontForContentSizeCategory = true
        }
    }
}

extension UITextField {
    fileprivate func wmf_configureForDynamicType(){
        if #available(iOS 10.0, *) {
            self.adjustsFontForContentSizeCategory = true
        }
    }
}

extension UIView {
    func wmf_configureSubviewsForDynamicType() {
        if #available(iOS 10.0, *) {
            if self.isKind(of: UIButton.self) {
                (self as! UIButton).wmf_configureForDynamicType()
            }else if self.isKind(of: UILabel.self) {
                (self as! UILabel).wmf_configureForDynamicType()
            }else if self.isKind(of: UITextField.self) {
                (self as! UITextField).wmf_configureForDynamicType()
            }
            for subview in self.subviews {
                subview.wmf_configureSubviewsForDynamicType()
            }
{'fraction_non_alphanumeric': 0.08750882145377559, 'fraction_numerical': 0.010232886379675371, 'mean_word_length': 2.2698961937716264, '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': '4929889', 'n_tokens_mistral': 845, 'n_tokens_neox': 786, 'n_words': 139}