<commit_before>
/// Button configured with common auth style settings which also updates layer border color on "isEnabled" state change.
class WMFAuthButton: UIButton, Themeable {
    fileprivate var theme: Theme = Theme.standard
    
    override open var isEnabled:Bool{
        didSet {
            layer.borderColor = borderColor(forIsEnabled: isEnabled)
        }
    }
    fileprivate func borderColor(forIsEnabled enabled:Bool) -> CGColor? {
        return enabled ? tintColor.cgColor : titleColor(for: .disabled)?.cgColor
    }
    override open func awakeFromNib() {
        super.awakeFromNib()
        layer.borderWidth = 1.0
        layer.cornerRadius = 5
        apply(theme: self.theme)
    }
    
    func apply(theme: Theme) {
        self.theme = theme
        setTitleColor(theme.colors.tertiaryText, for: .disabled)
        layer.borderColor = borderColor(forIsEnabled: isEnabled)
        setNeedsDisplay()
    }
}<commit_msg>update login & create account buttons<commit_after>
/// Button configured with common auth style settings which also updates layer border color on "isEnabled" state change.
class WMFAuthButton: UIButton, Themeable {
    fileprivate var theme: Theme = Theme.standard
    
    override open var isEnabled:Bool{
        didSet {
            layer.borderColor = borderColor(forIsEnabled: isEnabled)
        }
    }
    fileprivate func borderColor(forIsEnabled enabled:Bool) -> CGColor? {
        return enabled ? tintColor.cgColor : titleColor(for: .disabled)?.cgColor
    }
    override open func awakeFromNib() {
        super.awakeFromNib()
        layer.cornerRadius = 5
        apply(theme: self.theme)
    }
    
    func apply(theme: Theme) {
        self.theme = theme
        backgroundColor = theme.colors.cardButtonBackground
        setTitleColor(theme.colors.unselected, for: .disabled)
        setNeedsDisplay()
    }
}
{'fraction_non_alphanumeric': 0.0832, 'fraction_numerical': 0.0021333333333333334, 'mean_word_length': 2.744510978043912, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5811559', 'n_tokens_mistral': 520, 'n_tokens_neox': 511, 'n_words': 137}