<commit_before>//
//  PineSelectTextFieldInputView.swift
//  Pods
//
//  Created by <NAME> on 11/03/16.
//
//

import UIKit

public class PineSelectTextFieldInputView: UIControl {
    
    public var done : PineButton = PineButton(title: "DONE")
    public var select : PineSelectGroup = PineSelectGroup()
    var items : [AnyObject] = []
    
    public init(items: [AnyObject] = []){
        super.init(frame: CGRectZero)
        self.frame = CGRect(x: 0, y: 0, width: 0, height: 250)
        self.items = items
        setup()
    }
    
    public required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    public func setup(){
        self.select = PineSelectGroup(items: items)
        self.addSubview(done)
        self.addSubview(select)
        style()
    }
    
    public func style(){
        styleSelect()
        styleDone()
    }
    
    public func styleSelect(){
        self.select.snp_makeConstraints { (make) -> Void in
            make.left.top.right.equalTo(self)
            make.bottom.equalTo(self.done.snp_top)
        }
    }
    
    public func styleDone(){
        self.done.snp_makeConstraints { (make) -> Void in
            make.left.right.bottom.equalTo(self)
            make.height.equalTo(PineConfig.Button.height)
        }
    }
    
}
<commit_msg>prefferedselectgroup added<commit_after>//
//  PineSelectTextFieldInputView.swift
//  Pods
//
//  Created by <NAME> on 11/03/16.
//
//

import UIKit

public class PineSelectTextFieldInputView: UIControl {
    
    public var done : PineButton = PineButton(title: "DONE")
    public var select : PineSelectGroup = PineSelectGroup()
    var items : [AnyObject] = []
    
    public init(items: [AnyObject] = []){
        super.init(frame: CGRectZero)
        self.frame = CGRect(x: 0, y: 0, width: 0, height: 250)
        self.items = items
        setup()
    }
    
    public required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    public func setup(){
        self.select = preferredSelectGroup()
        self.addSubview(done)
        self.addSubview(select)
        style()
    }
    
    public func style(){
        styleSelect()
        styleDone()
    }
    
    public func styleSelect(){
        self.select.snp_makeConstraints { (make) -> Void in
            make.left.top.right.equalTo(self)
            make.bottom.equalTo(self.done.snp_top)
        }
    }
    
    public func styleDone(){
        self.done.snp_makeConstraints { (make) -> Void in
            make.left.right.bottom.equalTo(self)
            make.height.equalTo(PineConfig.Button.height)
        }
    }
    
    public func preferredSelectGroup() -> PineSelectGroup {
        return PineSelectGroup(items: items)
    }
    
}

{'fraction_non_alphanumeric': 0.11505681818181818, 'fraction_numerical': 0.008522727272727272, 'mean_word_length': 2.092206366630077, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '3305026', 'n_tokens_mistral': 914, 'n_tokens_neox': 869, 'n_words': 181}