<commit_before>//
//  DTMenuButtonItem.swift
//  Pods
//
//  Created by Admin on 13/03/2017.
//
//

import Foundation

public final class DTMenuButton: NSObject {
    public init(view: DTMenuItemView = DTMenuItemView(type: UIButtonType.custom), completionHandlerBlock: DTButtonItemHandlerBlock?) {
        super.init()
        self.view = view
        self.completionHandlerBlock = completionHandlerBlock
        view.addTarget(self, action: #selector(buttonTapped(_:)), for: UIControlEvents.touchUpInside)
    }
    
    /// Handler for item
    public var completionHandlerBlock: DTButtonItemHandlerBlock?
    
    /// View presenting for the item
    public var view: UIView!
    
    /// Final position of item when displaying on menu controller. Public get only.
    var position: CGPoint = CGPoint.zero
    
    func buttonTapped(_ button: UIButton) {
        completionHandlerBlock?(self)
    }
}

/// Class DTMenuButtonView.
/// Default view class for view in DTMenuButton.
open class DTMenuItemView: UIButton {
    open override func layoutSubviews() {
        super.layoutSubviews()
        layer.cornerRadius = self.frame.size.width/2
        layer.masksToBounds = true
        layer.borderColor = UIColor.black.cgColor
        layer.borderWidth = 1
    }
}


<commit_msg>remove border and corner radius from DTMenuItemView<commit_after>//
//  DTMenuButtonItem.swift
//  Pods
//
//  Created by Admin on 13/03/2017.
//
//

import Foundation

public final class DTMenuButton: NSObject {
    public init(view: DTMenuItemView = DTMenuItemView(type: UIButtonType.custom), completionHandlerBlock: DTButtonItemHandlerBlock?) {
        super.init()
        self.view = view
        self.completionHandlerBlock = completionHandlerBlock
        view.addTarget(self, action: #selector(buttonTapped(_:)), for: UIControlEvents.touchUpInside)
    }
    
    /// Handler for item
    public var completionHandlerBlock: DTButtonItemHandlerBlock?
    
    /// View presenting for the item
    public var view: UIView!
    
    /// Final position of item when displaying on menu controller. Public get only.
    var position: CGPoint = CGPoint.zero
    
    func buttonTapped(_ button: UIButton) {
        completionHandlerBlock?(self)
    }
}

/// DTMenuButtonView.
public typealias DTMenuItemView = UIButton



{'fraction_non_alphanumeric': 0.08893709327548807, 'fraction_numerical': 0.0078091106290672455, 'mean_word_length': 2.941880341880342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3396831', 'n_tokens_mistral': 661, 'n_tokens_neox': 634, 'n_words': 175}