<commit_before>//
//  BaseTextView.swift
//  TastyTomato
//
//  Created by <NAME> on 8/29/16.
//  Copyright © 2016 resmio. All rights reserved.
//

import UIKit


// MARK: // Public
// MARK: Class Declaration
public class BaseTextView: UITextView {
    public required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        self._setup()
    }
    
    public override init(frame: CGRect, textContainer: NSTextContainer?) {
        super.init(frame: frame, textContainer: textContainer)
        self._setup()
    }
}


// MARK: // Private
// MARK: Setup
private extension BaseTextView {
    func _setup() {
        self.layer.cornerRadius = 4
        self.layer.borderWidth = 1
        self.layer.borderColor = UIColor.grayDDDDDD.cgColor
        self.clipsToBounds = true
        
        self.textContainerInset = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
        
        self.font = .m
        self.textColor = .gray555555
        self.autocapitalizationType = .none
        self.autocorrectionType = .no
    }
}
<commit_msg>Update code style in BaseTextView<commit_after>//
//  BaseTextView.swift
//  TastyTomato
//
//  Created by <NAME> on 8/29/16.
//  Copyright © 2016 resmio. All rights reserved.
//

import UIKit


// MARK: // Public
// MARK: Class Declaration
public class BaseTextView: UITextView {
    // Required Init
    public required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        self._init()
    }
    
    // Override Init
    public override init(frame: CGRect, textContainer: NSTextContainer?) {
        super.init(frame: frame, textContainer: textContainer)
        self._init()
    }
}


// MARK: // Private
// MARK: Common Init
private extension BaseTextView {
    func _init() {
        self.layer.borderColor = UIColor.grayDDDDDD.cgColor
        self.textColor = .gray555555
        
        let layer: CALayer = self.layer
        layer.cornerRadius = 4
        layer.borderWidth = 1
        
        self.clipsToBounds = true
        
        self.textContainerInset = UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10)
        
        self.font = .m
        self.autocapitalizationType = .none
        self.autocorrectionType = .no
    }
}

{'fraction_non_alphanumeric': 0.10674408217954444, 'fraction_numerical': 0.022331397945511387, 'mean_word_length': 2.190883190883191, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7316000', 'n_tokens_mistral': 750, 'n_tokens_neox': 688, 'n_words': 171}