<commit_before>//
//  RoundedCornerView.swift
//  Segues
//
//  Created by <NAME> on 11/28/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import UIKit
import QuartzCore

class RoundedCornerView: UIView {

    var borderColor:UIColor? = nil {
        didSet {
            if let borderColor = borderColor {
                layer.borderColor = borderColor.CGColor
            } else {
                layer.borderColor = nil
            }
        }
    }
    
    var borderWidth:CGFloat = 0.0 {
        didSet {
            layer.borderWidth = borderWidth
        }
    }

    var cornerRadius:CGFloat {
        set (radius) {
            self.layer.cornerRadius = radius
            self.layer.masksToBounds = radius > 0.0
        }
        get {
            return self.layer.cornerRadius
        }
    }

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        self.cornerRadius = 3.0
    }

    override init(frame: CGRect) {
        super.init(frame: frame)
        self.cornerRadius = 3.0
    }
}

class RoundImageView: UIImageView {
    
    let circlePathLayer = CAShapeLayer()

    var borderColor:UIColor = UIColor.blackColor() {
        didSet {
            layer.borderColor = borderColor.CGColor
        }
    }<commit_msg>Adding InterfaceBuilder configuration controls<commit_after>//
//  RoundedCornerView.swift
//  Segues
//
//  Created by <NAME> on 11/28/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import UIKit
import QuartzCore

@IBDesignable class RoundedCornerView: UIView {

    @IBInspectable var borderColor:UIColor? = nil {
        didSet {
            if let borderColor = borderColor {
                layer.borderColor = borderColor.CGColor
            } else {
                layer.borderColor = nil
            }
        }
    }
    
    @IBInspectable var borderWidth:CGFloat = 0.0 {
        didSet {
            layer.borderWidth = borderWidth
        }
    }

    @IBInspectable var cornerRadius:CGFloat {
        set (radius) {
            self.layer.cornerRadius = radius
            self.layer.masksToBounds = radius > 0.0
        }
        get {
            return self.layer.cornerRadius
        }
    }

    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        self.cornerRadius = 3.0
    }

    override init(frame: CGRect) {
        super.init(frame: frame)
        self.cornerRadius = 3.0
    }
}

@IBDesignable class RoundImageView: UIImageView {
    
    let circlePathLayer = CAShapeLayer()

    @IBInspectable var borderColor:UIColor = UIColor.blackColor() {
        didSet {
            layer.borderColor = borderColor.CGColor
        }
    }
{'fraction_non_alphanumeric': 0.09026482655725476, 'fraction_numerical': 0.013427825438269302, 'mean_word_length': 1.7479508196721312, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6119123', 'n_tokens_mistral': 841, 'n_tokens_neox': 793, 'n_words': 169}