<commit_before>//
//  Actor.swift
//  ViewComposer
//
//  Created by <NAME> on 2017-05-31.
//
//

import Foundation

public struct Actor {
    let target: NSObject
    let selector: Selector
    let event: UIControlEvents
}

public extension NSObject {
    func target(_ selector: Selector, event: UIControlEvents = .primaryActionTriggered) -> Actor {
        return Actor(target: self, selector: selector, event: event)
    }<commit_msg>Made initializer for Actor struct public<commit_after>//
//  Actor.swift
//  ViewComposer
//
//  Created by <NAME> on 2017-05-31.
//
//

import Foundation

public struct Actor {
    let target: NSObject
    let selector: Selector
    let event: UIControlEvents
    public init(_ target: NSObject, selector: Selector, event: UIControlEvents = .primaryActionTriggered) {
        self.target = target
        self.selector = selector
        self.event = event
    }
}

public extension NSObject {
    func target(_ selector: Selector, event: UIControlEvents = .primaryActionTriggered) -> Actor {
        return Actor(self, selector: selector, event: event)
    }
{'fraction_non_alphanumeric': 0.10018214936247723, 'fraction_numerical': 0.014571948998178506, 'mean_word_length': 3.010948905109489, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4737255', 'n_tokens_mistral': 337, 'n_tokens_neox': 319, 'n_words': 99}