<commit_before>import Foundation

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

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

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

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

extension UIView {
    open func wmf_configureSubviewsForDynamicType() {
        if #available(iOS 10.0, *) {
            for subview in subviews {
                subview.wmf_configureSubviewsForDynamicType()
            }
        }
    }
}

extension UIButton {
    override open func wmf_configureSubviewsForDynamicType(){
        if #available(iOS 10.0, *) {
            guard let titleLabel = titleLabel else {
                return
            }
            titleLabel.adjustsFontForContentSizeCategory = true
            titleLabel.textAlignment = .center
            titleLabel.numberOfLines = 1
            titleLabel.clipsToBounds = false
            titleLabel.lineBreakMode = .byTruncatingTail
            titleLabel.minimumScaleFactor = 0.25
            titleLabel.adjustsFontSizeToFitWidth = true
        }
        super.wmf_configureSubviewsForDynamicType()
    }
}

extension UILabel {
    override open func wmf_configureSubviewsForDynamicType(){
        if #available(iOS 10.0, *) {
            adjustsFontForContentSizeCategory = true
        }
        super.wmf_configureSubviewsForDynamicType()
    }
}

extension UITextField {
    override open func wmf_configureSubviewsForDynamicType(){
        if #available(iOS 10.0, *) {
            adjustsFontForContentSizeCategory = true
        }
        super.wmf_configureSubviewsForDynamicType()
    }
}

{'fraction_non_alphanumeric': 0.07121759107318675, 'fraction_numerical': 0.010502133245815556, 'mean_word_length': 2.1358024691358026, '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': '6950997', 'n_tokens_mistral': 865, 'n_tokens_neox': 818, 'n_words': 155}