<commit_before>////
///  UIViewExtensions.swift
//

extension UIView {

    func findSubview<T>(_ test: ((UIView) -> Bool)? = nil) -> T? where T: UIView {
        if let view = self as? T, test?(self) ?? true {
            return view
        }<commit_msg>fixes findSubview for specs (the param passed into closure will always be type 'T')<commit_after>////
///  UIViewExtensions.swift
//

extension UIView {

    func findSubview<T>(_ test: ((T) -> Bool)? = nil) -> T? where T: UIView {
        if let view = self as? T, test?(view) ?? true {
            return view
        }
{'fraction_non_alphanumeric': 0.15251299826689774, 'fraction_numerical': 0.0, 'mean_word_length': 2.284090909090909, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4428160', 'n_tokens_mistral': 188, 'n_tokens_neox': 181, 'n_words': 61}