<commit_before>//
//  NSObjectProtocolExtensionManipulation.swift
//  Laconic
//
//  Created by <NAME> on 25.03.16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation

public extension NSObjectProtocol {
    
    // MARK: Public static methods
    
    
    // MARK: Private static methods
    
    
    // MARK: Public object methods
    
    public func use(block: ((object: Self) -> Void)) -> Self {
        block(object: self)
        return self
    }
    
    public func useAs<ObjectType>(castToType: ObjectType.Type, use: (object: ObjectType) -> Void) -> Self {
        let castedObject = self as! ObjectType
        use(object: castedObject)
        return self
    }
    
    
    // MARK: Private object methods
    
}<commit_msg>Updated parameter names<commit_after>//
//  NSObjectProtocolExtensionManipulation.swift
//  Laconic
//
//  Created by <NAME> on 25.03.16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation

public extension NSObjectProtocol {
    
    // MARK: Public static methods
    
    
    // MARK: Private static methods
    
    
    // MARK: Public object methods
    
    public func use(block: ((object: Self) -> Void)) -> Self {
        block(object: self)
        return self
    }
    
    public func useAs<ObjectType>(castToType: ObjectType.Type, withBlock block: (object: ObjectType) -> Void) -> Self {
        let castedObject = self as! ObjectType
        block(object: castedObject)
        return self
    }
    
    
    // MARK: Private object methods
    
}
{'fraction_non_alphanumeric': 0.10465116279069768, 'fraction_numerical': 0.012919896640826873, 'mean_word_length': 2.122983870967742, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 17, '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': '2370974', 'n_tokens_mistral': 475, 'n_tokens_neox': 445, 'n_words': 133}