<commit_before>@IBDesignable extension UIButton{
    
    @IBInspectable var borderColor: UIColor?{
        get {
            guard let color = layer.borderColor else{
                return nil
            }
            return UIColor(cgColor: color)
        }
        set{
            layer.borderColor = newValue?.cgColor
        }
    }
    @IBInspectable var borderWidth: CGFloat{
        get {
            return layer.borderWidth
        }
        set{
            layer.borderWidth = newValue
        }
    }
    @IBInspectable var cornerRadius: CGFloat{
        get {
            return layer.cornerRadius
        }
        set{
            layer.cornerRadius = newValue
            clipsToBounds = newValue > 0
        }
    }
    
}

@IBDesignable extension UILabel{
    
    @IBInspectable var borderColor: UIColor?{
        get {
            guard let color = layer.borderColor else{
                return nil
            }
            return UIColor(cgColor: color)
        }
        set{
            layer.borderColor = newValue?.cgColor
        }
    }
    @IBInspectable var borderWidth: CGFloat{
        get {
            return layer.borderWidth
        }
        set{
            layer.borderWidth = newValue
        }
    }
    @IBInspectable var cornerRadius: CGFloat{
        get {
            return layer.cornerRadius
        }
        set{
            layer.cornerRadius = newValue
            clipsToBounds = newValue > 0
        }
    }
    
}

@IBDesignable extension UIButton {

    @IBInspectable var kern: CGFloat{
        get {
            return 0
        }
        set{
            self.kern(kerningValue: newValue)
        }
    }
    
    func kern(kerningValue:CGFloat) {
        let attributedText =  NSAttributedString(string: self.titleLabel!.text!, attributes: [NSKernAttributeName:kerningValue, NSFontAttributeName:self.titleLabel!.font, NSForegroundColorAttributeName:self.titleLabel!.textColor])
        self.setAttributedTitle(attributedText, for: .normal)
    }
}

@IBDesignable extension UILabel {

    @IBInspectable var kern: CGFloat{
        get {
            return 0
        }
        set{
            self.kern(kerningValue: newValue)
        }
    }

    func kern(kerningValue:CGFloat) {
        self.attributedText =  NSAttributedString(string: self.text ?? "", attributes: [NSKernAttributeName:kerningValue, NSFontAttributeName:font, NSForegroundColorAttributeName:self.textColor])
    }
}<commit_msg>no message<commit_after>@IBDesignable extension UIButton{
    
    @IBInspectable var borderColor: UIColor?{
        get {
            guard let color = layer.borderColor else{
                return nil
            }
            return UIColor(cgColor: color)
        }
        set{
            layer.borderColor = newValue?.cgColor
        }
    }
    @IBInspectable var borderWidth: CGFloat{
        get {
            return layer.borderWidth
        }
        set{
            layer.borderWidth = newValue
        }
    }
    @IBInspectable var cornerRadius: CGFloat{
        get {
            return layer.cornerRadius
        }
        set{
            layer.cornerRadius = newValue
            clipsToBounds = newValue > 0
        }
    }
    
}

@IBDesignable extension UILabel{
    
    @IBInspectable var borderColor: UIColor?{
        get {
            guard let color = layer.borderColor else{
                return nil
            }
            return UIColor(cgColor: color)
        }
        set{
            layer.borderColor = newValue?.cgColor
        }
    }
    @IBInspectable var borderWidth: CGFloat{
        get {
            return layer.borderWidth
        }
        set{
            layer.borderWidth = newValue
        }
    }
    @IBInspectable var cornerRadius: CGFloat{
        get {
            return layer.cornerRadius
        }
        set{
            layer.cornerRadius = newValue
            clipsToBounds = newValue > 0
        }
    }
    
}

@IBDesignable extension UIButton {

    @IBInspectable var kern: CGFloat{
        get {
            return 0
        }
        set{
            self.kern(kerningValue: newValue)
        }
    }
    
    func kern(kerningValue:CGFloat) {
        if let text = self.titleLabel!.text{
            let attributedString =  NSMutableAttributedString(attributedString: self.titleLabel!.attributedText ?? NSMutableAttributedString(string: text))
            attributedString.addAttribute(NSKernAttributeName, value: kern, range: NSMakeRange(0, attributedString.length))
            self.setAttributedTitle(attributedString, for: .normal)
        }
    }
}

@IBDesignable extension UILabel {

    @IBInspectable var kern: CGFloat{
        get {
            return 0
        }
        set{
            self.kern(kerningValue: newValue)
        }
    }

    func kern(kerningValue:CGFloat) {
        if let text = self.text{
            let attributedString =  NSMutableAttributedString(attributedString: self.attributedText ?? NSMutableAttributedString(string: text))
            attributedString.addAttribute(NSKernAttributeName, value: kern, range: NSMakeRange(0, attributedString.length))
            self.attributedText =  attributedString
        }
    }
}
{'fraction_non_alphanumeric': 0.07412398921832884, 'fraction_numerical': 0.0019252984212552945, 'mean_word_length': 1.6903158984981874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '907157', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1450, 'n_words': 292}