<commit_before>import UIKit


private var temporaryFirstResponder: UIResponder?


public extension UIResponder {

	@nonobjc
	public var firstResponder: UIResponder? {
		defer {
			temporaryFirstResponder = nil
		}

		let application = UIApplication.sharedApplication()

		temporaryFirstResponder = nil
		application.sendAction("JetPack_determineFirstResponder", to: nil, from: nil, forEvent: nil)

		guard let firstResponder = temporaryFirstResponder else {
			// there is no first responder at all
			return nil
		}

		if application === self {
			// application.sendAction() already verified that the first responder in this responder's subchain
			return firstResponder
		}

		var nextResponder: UIResponder? = firstResponder
		while let responder = nextResponder {
			if responder === self {
				// first responder is in this responder's subchain
				return firstResponder
			}

			nextResponder = responder.nextResponder()
		}

		// first responder is not in this responder's subchain
		return nil
	}


	@objc
	private func JetPack_determineFirstResponder() {
		temporaryFirstResponder = self
	}
}
<commit_msg>Moved JetPack_ function name prefix to the @objc attribute<commit_after>import UIKit


private var temporaryFirstResponder: UIResponder?


public extension UIResponder {

	@nonobjc
	public var firstResponder: UIResponder? {
		defer {
			temporaryFirstResponder = nil
		}

		let application = UIApplication.sharedApplication()

		temporaryFirstResponder = nil
		application.sendAction("JetPack_determineFirstResponder", to: nil, from: nil, forEvent: nil)

		guard let firstResponder = temporaryFirstResponder else {
			// there is no first responder at all
			return nil
		}

		if application === self {
			// application.sendAction() already verified that the first responder in this responder's subchain
			return firstResponder
		}

		var nextResponder: UIResponder? = firstResponder
		while let responder = nextResponder {
			if responder === self {
				// first responder is in this responder's subchain
				return firstResponder
			}

			nextResponder = responder.nextResponder()
		}

		// first responder is not in this responder's subchain
		return nil
	}


	@objc(JetPack_determineFirstResponder)
	private func determineFirstResponder() {
		temporaryFirstResponder = self
	}
}

{'fraction_non_alphanumeric': 0.06565217391304348, 'fraction_numerical': 0.0, 'mean_word_length': 4.101995565410199, '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': '3619629', 'n_tokens_mistral': 798, 'n_tokens_neox': 649, 'n_words': 202}